123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHA04360.xrw
- * 설 명 : 특수일괄보정
- * 설 계 자 : 장준원
- * 작 성 자 : 장준원
- * 작 성 일 : 2010.03.15
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>특수일괄보정</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <totalpatlst>
- <item>
- <chk/>
- <rsrvdd/>
- <rsrvno/>
- <pid/>
- <hngnm/>
- <testcd/>
- <testnm/>
- <rslt1/>
- <rslt2/>
- <rslt3/>
- <healexamflag/>
- </item>
- </totalpatlst>
- <tempinfo>
- <assorsltlst>
- <itemasso>
- <rsltcd/>
- <rsltnm/>
- <testcd/>
- </itemasso>
- </assorsltlst>
- <assorsltlst1>
- <itemasso>
- <rsltcd/>
- <rsltnm/>
- <testcd/>
- </itemasso>
- </assorsltlst1>
- </tempinfo>
- </main>
- <send>
- <srch>
- <srchfromdd/>
- <srchtodd/>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- <srchpid/>
- <srchpnm/>
- <srchplceflag/>
- <srchcmpycd/>
- <srchtestcd1/>
- <srchtestnm1/>
- <srchtestcd2>LCU102</srchtestcd2>
- <srchtestnm2>크레아티닌(URINE)</srchtestnm2>
- <srchcmpycd/>
- <srchcmpynm/>
- <srchbojung/>
- </srch>
- <saveinfo>
- <infolist/>
- </saveinfo>
- </send>
- <init>
- <baseinfo>
- <plceflag/>
- </baseinfo>
- <send>
- <srchcmpycd/>
- <srchcmpynm/>
- </send>
- </init>
- <hidden>
- <count/>
- <itemrslt/>
- <testlst>
- <testcd/>
- <testnm/>
- </testlst>
- <pkglst/>
- </hidden>
- <temp>
- <aplyitem>
- <outtestrsltcnts/>
- <assorsltcd/>
- <assorsltcd1/>
- <testrsltcnts/>
- </aplyitem>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fInitInfo();
- fGetBaseInfo();
- btn_search.dispatch("DOMActivate");
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TXAHA04361" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/saveinfo/infolist" replace="instance" resultref="/root/hidden/itemrslt"/>
- <submission id="TRAHA00001"/>
- <submission id="TRAHA04361" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/totalpatlst"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var m_vHealexamflag = "";
- var m_vHealexamdetlflag = "";
-
- /*=======================================================================================
- *공통코드 가져오기
- =======================================================================================*/
- function fGetBaseInfo(){
-
- var sFlag = getScreenMenuParameter();
- //alert('sFlag->'+sFlag);
-
- if(sFlag == "") {
- m_vHealexamflag = "G"
- m_vHealexamdetlflag = "G01"
- }else {
- m_vHealexamflag = sFlag.substr(0,1);
- m_vHealexamdetlflag = sFlag;
- }
-
- model.setValue("/root/send/srch/srchhealexamflag", m_vHealexamflag);
- model.setValue("/root/send/srch/srchhealexamdetlflag", m_vHealexamdetlflag);
-
- //건진분류(종건/일건) , 건진상태구분, 계약종류
- zbcfGetCodeList( new Array( "A0110" ),
- new Array ( "/root/init/baseinfo/plceflag" ) // 장소구분
- );
- submit("TRZBC00101");
-
- var deptLength = model.instances(0).selectNodes( "/root/init/baseinfo/plceflag/A0110" ).length+1;
- model.makeValue("/root/init/baseinfo/plceflag/A0110["+deptLength+"]/cdid", "");
- model.makeValue("/root/init/baseinfo/plceflag/A0110["+deptLength+"]/cdnm", "전체");
- }
- /*=======================================================================================
- *초기화
- =======================================================================================*/
- function fInitInfo(){
- var cur_date = getCurrentDate() ;
- model.setValue( ipt_srchfromdd.attribute("ref") , cur_date) ;
- model.setValue(ipt_srchtodd.attribute("ref") , cur_date) ;
-
- grd_patdtllst.fixedcellcheckbox(0,1)=true;
- }
-
- /**=======================================================================================
- * 건진 결과 대상자 리스트 조회
- =======================================================================================*/
- function fGetTotalPatList(){
-
- model.makeValue("/root/send/srch/srchhopedd", model.getValue("/root/send/srch/srchtodd"));
- model.setValue("/root/send/srch/srchcmpycd", model.getValue("/root/init/send/srchcmpycd"));
-
- if(submit("TRAHA04361")) {
- }
-
- }
- /**=======================================================================================
- * 수치적용된 값 반올림처리
- =======================================================================================*/
- function round(val,precision) {
- if(!isNaN(val) && val != Number.POSITIVE_INFINITY) {
- val = val * Math.pow(10,precision);
- val = Math.round(val);
- return val/Math.pow(10,precision); //지수계산
- }else {
- return ;
- }
- }
-
- /**=======================================================================================
- * 공단연계결과와 특검연계결과에 따른 답안 예문
- =======================================================================================*/
- function fSetAssoChoiExmp(vCls, vGrd) {
- var idx = vGrd.row;
- if(vCls == "1"){
- var rsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("assorsltcd") );
- var testcd = vGrd.valueMatrix(idx , vGrd.colRef("testcd") );
- var nodeList = instance1.selectNodes("/root/main/tempinfo/assorsltlst/itemasso");
- for(var i=0; i <= nodeList.length; i++) {
- var desrsltcnts = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + i + "]/rsltcd");
- var destestcd = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + i + "]/testcd");
- if(rsltcnts == desrsltcnts && testcd == destestcd) {
- vGrd.valueMatrix( idx , vGrd.colRef("assorsltcnts") ) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + i + "]/rsltnm");
- vGrd.valueMatrix( idx , vGrd.colRef("assorsltcd") ) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + i + "]/rsltcd");
- grp_assorsltexmp.visible = false;
- break;
- }
- }
- }else if(vCls == "2"){
- var rsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("assorsltcd1") );
- var testcd = vGrd.valueMatrix(idx , vGrd.colRef("testcd") );
- var nodeList = instance1.selectNodes("/root/main/tempinfo/assorsltlst1/itemasso");
- for(var i=0; i <= nodeList.length; i++) {
- var desrsltcnts = model.getValue("/root/main/tempinfo/assorsltlst1/itemasso[" + i + "]/rsltcd");
- var destestcd = model.getValue("/root/main/tempinfo/assorsltlst1/itemasso[" + i + "]/testcd");
- if(rsltcnts == desrsltcnts && testcd == destestcd) {
- vGrd.valueMatrix( idx , vGrd.colRef("assorsltcnts1") ) = model.getValue("/root/main/tempinfo/assorsltlst1/itemasso[" + i + "]/rsltnm");
- vGrd.valueMatrix( idx , vGrd.colRef("assorsltcd1") ) = model.getValue("/root/main/tempinfo/assorsltlst1/itemasso[" + i + "]/rsltcd");
- grp_assorsltexmp1.visible = false;
- break;
- }
- }
- }
- }
-
- function fSetAssoChoiExmpCnts(vCls, vGrd) {
- if(vCls == "1"){
- for(var idx=1;idx<vGrd.rows; idx++){
- var rsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("assorsltcd") );
- var testcd = vGrd.valueMatrix(idx , vGrd.colRef("testcd") );
- var nodeList = instance1.selectNodes("/root/main/totalpatlst/itemassoexmp");
- for(var i=0; i <= nodeList.length; i++) {
- var desrsltcnts = model.getValue("/root/main/totalpatlst/itemassoexmp[" + i + "]/rsltcd");
- var destestcd = model.getValue("/root/main/totalpatlst/itemassoexmp[" + i + "]/testcd");
- if(rsltcnts == desrsltcnts && testcd == destestcd) {
- vGrd.valueMatrix( idx , vGrd.colRef("assorsltcnts") ) = model.getValue("/root/main/totalpatlst/itemassoexmp[" + i + "]/rsltnm");
- vGrd.valueMatrix( idx , vGrd.colRef("assorsltcd") ) = model.getValue("/root/main/totalpatlst/itemassoexmp[" + i + "]/rsltcd");
- }
- }
- }
- }else if(vCls == "2"){
- for(var idx=1;idx<vGrd.rows; idx++){
- var rsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("assorsltcd1") );
- var testcd = vGrd.valueMatrix(idx , vGrd.colRef("testcd") );
- var nodeList = instance1.selectNodes("/root/main/totalpatlst/itemassoexmp1");
- for(var i=0; i <= nodeList.length; i++) {
- var desrsltcnts = model.getValue("/root/main/totalpatlst/itemassoexmp1[" + i + "]/rsltcd");
- var destestcd = model.getValue("/root/main/totalpatlst/itemassoexmp1[" + i + "]/testcd");
- if(rsltcnts == desrsltcnts && testcd == destestcd) {
- vGrd.valueMatrix( idx , vGrd.colRef("assorsltcnts1") ) = model.getValue("/root/main/totalpatlst/itemassoexmp1[" + i + "]/rsltnm");
- vGrd.valueMatrix( idx , vGrd.colRef("assorsltcd1") ) = model.getValue("/root/main/totalpatlst/itemassoexmp1[" + i + "]/rsltcd");
- }
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1220" pageheight="820" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">특수일괄보정</caption>
- </group>
- <group id="group2" style="left:0px; top:18px; width:1190px; height:72px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:70px; "/>
- <caption id="caption10" class="search_name" style="left:10px; top:12px; width:91px; height:17px; ">처방일자 :</caption>
- <input id="ipt_srchfromdd" ref="/root/send/srch/srchfromdd" class="input_s_essential" inputtype="date" style="left:97px; top:11px; width:90px; height:19px; "/>
- <input id="ipt_srchtodd" ref="/root/send/srch/srchtodd" class="input_s_essential" inputtype="date" style="left:210px; top:11px; width:90px; height:19px; "/>
- <line id="line5" class="line_4" style="x1:1115px; y1:6px; x2:1115px; y2:39px; "/>
- <caption id="caption13" class="search_name" style="left:315px; top:11px; width:86px; height:17px; ">환자검색 :</caption>
- <caption id="caption14" class="search_n_b" style="left:191px; top:12px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_pid" ref="/root/send/srch/srchpid" class="input_search" style="left:402px; top:11px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode != 13) return ;
- model.setValue("/root/send/srch/srchpid" , ipt_pid.currentText)
- fGetTotalPatList();
- ]]>
- </script>
- </input>
- <button id="btn_selpat" class="icon_search" style="left:507px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchPatInfo("SMAHR00900", "pnm",model.getValue("/root/temp/send/srchtext") , "N","", ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
- if( model.getValue( ipt_pid.attribute("ref")) != "" ){
- fGetTotalPatList();
- }
- ]]>
- </script>
- </button>
- <input id="ipt_pnm" ref="/root/send/srch/srchpnm" class="output_fix" style="left:530px; top:11px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode != 13) return ;
- model.makeValue("/root/temp/send/srchtext" , ipt_pnm.currentText);
- inputEnterKey("btn_selpat","DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:12px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //조회 버튼 클릭 이벤트
- fGetTotalPatList();
- ]]>
- </script>
- </button>
- <caption id="caption36" class="search_name" style="left:640px; top:10px; width:69px; height:17px; ">장소 :</caption>
- <select1 id="cmb_srchplceflag" ref="/root/send/srch/srchplceflag" appearance="minimal" style="left:704px; top:9px; width:60px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/plceflag/A0110">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_selcmpy" class="icon_search" style="left:945px; top:13px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetComnCd("SMAHA00400", "09" , "nm", ipt_srchcmpycd.currentText ,ipt_srchcmpycd.attribute("ref"), opt_srchcmpynm.attribute("ref"));
- ]]>
- </script>
- </button>
- <caption id="caption42" class="search_name" style="left:786px; top:10px; width:86px; height:17px; ">거래처 :</caption>
- <input id="ipt_srchcmpycd" ref="/root/init/send/srchcmpycd" class="input_search" style="left:860px; top:10px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_selcmpy", "DOMActivate");
- ]]>
- </script>
- </input>
- <output id="opt_srchcmpynm" ref="/root/init/send/srchcmpynm" class="output_fix" style="left:965px; top:10px; width:140px; height:19px; "/>
- <caption id="caption21" class="search_name" style="left:10px; top:40px; width:86px; height:17px; ">검사코드 :</caption>
- <input id="ipt_testcd" ref="/root/send/srch/srchtestcd1" class="input_s_essential" imemode="disabled" _chartype="upper" style="left:97px; top:40px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode != 13) return ;
- model.resetInstanceNode("/root/hidden/testlst");
-
- fGetPkgCd("SMAHA00300", "A", "N","nm" , "" ,"G03" , "", "/root/hidden/testlst","Y","" ,"" );
-
- var testcd = model.getValue("/root/hidden/testlst/testcd");
- var testnm = model.getValue("/root/hidden/testlst/testnm");
-
- model.setValue("/root/send/srch/srchtestcd1",testcd);
- model.setValue("/root/send/srch/srchtestnm1",testnm);
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="button2" class="icon_search" style="left:185px; top:40px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/testlst");
-
- fGetPkgCd("SMAHA00300", "A", "N","nm" , "" ,"G03" , "", "/root/hidden/testlst","Y","" ,"" );
-
- var testcd = model.getValue("/root/hidden/testlst/testcd");
- var testnm = model.getValue("/root/hidden/testlst/testnm");
-
- model.setValue("/root/send/srch/srchtestcd1",testcd);
- model.setValue("/root/send/srch/srchtestnm1",testnm);
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/send/srch/srchtestnm1" class="output_fix" imemode="disabled" _chartype="upper" style="left:205px; top:40px; width:190px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- ]]>
- </script>
- </input>
- <button id="button3" class="icon_search" style="left:580px; top:40px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/testlst");
-
-
- fGetPkgCd("SMAHA00300", "A", "N","nm" , "" ,"G03" , "", "/root/hidden/testlst","Y","" ,"" );
-
- var testcd = model.getValue("/root/hidden/testlst/testcd");
- var testnm = model.getValue("/root/hidden/testlst/testnm");
-
- model.setValue("/root/send/srch/srchtestcd2",testcd);
- model.setValue("/root/send/srch/srchtestnm2",testnm);
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:410px; top:40px; width:86px; height:17px; ">검사코드 :</caption>
- <input id="input2" ref="/root/send/srch/srchtestcd2" class="input_s_essential" imemode="disabled" _chartype="upper" style="left:497px; top:40px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode != 13) return ;
- model.resetInstanceNode("/root/hidden/testlst");
-
-
- fGetPkgCd("SMAHA00300", "A", "N","nm" , "" ,"G03" , "", "/root/hidden/testlst","Y","" ,"" );
-
- var testcd = model.getValue("/root/hidden/testlst/testcd");
- var testnm = model.getValue("/root/hidden/testlst/testnm");
-
- model.setValue("/root/send/srch/srchtestcd2",testcd);
- model.setValue("/root/send/srch/srchtestnm2",testnm);
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="input3" ref="/root/send/srch/srchtestnm2" class="output_fix" imemode="disabled" _chartype="upper" style="left:600px; top:40px; width:210px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <input id="input4" ref="/root/send/srch/srchbojung" class="input_s_essential" imemode="disabled" _chartype="upper" style="left:905px; top:40px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:828px; top:40px; width:86px; height:17px; ">보정값 :</caption>
- </group>
- <switch id="switch1" style="left:0px; top:90px; width:1195px; height:630px; ">
- <case id="case_prnt" selected="true">
- <caption id="caption11" class="tit_2" style="left:5px; top:5px; width:144px; height:13px; ">상세내역</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:20px; x2:1187px; y2:20px; "/>
- <datagrid id="grd_patdtllst" nodeset="/root/main/totalpatlst/item" autoresize="true" caption="선택^예약일자^예약번호^등록번호^환자명^검사코드^검사명^결과1^결과2^결과3^건진구분" colsep="^" colwidth="59, 80, 80, 80, 80, 90, 200, 100, 100, 100, 60" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:25px; width:1180px; height:595px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="rsrvdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rsrvno" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="testcd" style="text-align:left; "/>
- <col ref="testnm" style="text-align:left; "/>
- <col ref="rslt1" style="text-align:right; "/>
- <col ref="rslt2" style="text-align:right; "/>
- <col ref="rslt3" type="input" style="text-align:right; "/>
- <col ref="healexamflag" visibility="hidden"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var colidx = grd_patdtllst.col;
-
- if (event.keyCode == 13){
- if( grd_patdtllst.col == grd_patdtllst.colRef("assorsltcd")) {
- if( grd_patdtllst.row < 1) return ;
- if( grd_patdtllst.row < grd_patdtllst.rows ) {
- fSetAssoChoiExmp("1", grd_patdtllst);
- }
- }else if( grd_patdtllst.col == grd_patdtllst.colRef("assorsltcd1")) {
- if( grd_patdtllst.row < 1) return ;
- if( grd_patdtllst.row < grd_patdtllst.rows ) {
- fSetAssoChoiExmp("2", grd_patdtllst);
- }
- }
- var nextRow = grd_patdtllst.row + 1
- if(grd_patdtllst.colType(grd_patdtllst.col) == "input" && nextRow < grd_patdtllst.rows) {
- grd_patdtllst.row = nextRow;
- grd_patdtllst.editCell();
- }
- }
-
- if( grd_patdtllst.colAttribute(colidx, "ref") == "assorsltcnts" || grd_patdtllst.colAttribute(colidx, "ref") == "assorsltcd" ||
- grd_patdtllst.colAttribute(colidx, "ref") == "assorsltcnts1" || grd_patdtllst.colAttribute(colidx, "ref") == "assorsltcd1" ) {
-
- model.setValue("/root/main/totalpatlst/item["+grd_patdtllst.row+"]/chk" ,"Y");
- }
- grd_patdtllst.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_patdtllst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onstartedit">
- <![CDATA[
- var vTestCd = model.getValue("/root/main/totalpatlst/item[" + grd_patdtllst.row + "]/testcd");
- if(grd_patdtllst.col == grd_patdtllst.colRef("assorsltcd")) {
- if(model.getXPathValue("count(/root/main/totalpatlst/itemassoexmp[testcd = '" + vTestCd + "'])") > 0) {
- model.removeNodeset("/root/main/tempinfo/assorsltlst/itemasso");
- model.makeNode("/root/main/tempinfo/assorsltlst/itemasso");
- copyNodesetType("/root/main/tempinfo/assorsltlst/itemasso", "/root/main/totalpatlst/itemassoexmp[testcd = '" + vTestCd + "']");
- grd_assorslt.refresh();
- grp_assorsltexmp.visible = true;
- grp_assorsltexmp1.visible = false;
- }else {
- grp_assorsltexmp.visible = false;
- }
- }else if(grd_patdtllst.col == grd_patdtllst.colRef("assorsltcd1")) {
- if(model.getXPathValue("count(/root/main/totalpatlst/itemassoexmp1[testcd = '" + vTestCd + "'])") > 0) {
- model.removeNodeset("/root/main/tempinfo/assorsltlst1/itemasso");
- model.makeNode("/root/main/tempinfo/assorsltlst1/itemasso");
- copyNodesetType("/root/main/tempinfo/assorsltlst1/itemasso", "/root/main/totalpatlst/itemassoexmp1[testcd = '" + vTestCd + "']");
- grd_assorslt1.refresh();
- grp_assorsltexmp1.visible = true;
- grp_assorsltexmp.visible = false;
- }else {
- grp_assorsltexmp1.visible = false;
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()){
- grd_patdtllst.dispatch("onstartedit");
- }
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="button1" class="btn4_letter2" visibility="visible" style="left:1133px; top:725px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //var loopcnt = 0;
- //var loop = grd_patdtllst.rows - grd_patdtllst.fixedRows;
- var nodeList = instance1.selectNodes("/root/main/totalpatlst/item[chk='Y']");
- var rCSV = getNodeListCSV(nodeList);
- //alert("rCSV["+rCSV+"]");
- //return;
- if ( rCSV == null ) {
- messageBox("일괄 등록할 내역을 선택해 주십시오.","I999");
- return "0";
- }
- model.setValue("/root/send/saveinfo/infolist", rCSV);
-
- if ( messageBox("일괄 보정내역을 ","Q002")==6 ) {
- submit("TXAHA04361");
- btn_search.dispatch("DOMActivate");
- }else {
- model.resetInstanceNode("/root/send/saveinfo/infolist");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|