123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHA04350.xrw
- * 설 명 : 검사결과일괄등록
- * 설 계 자 : 장준원
- * 작 성 자 : 장준원
- * 작 성 일 : 2010.03.15
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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/>
- <prcpdd/>
- <pid/>
- <hngnm/>
- <testcd/>
- <testnm/>
- <testrsltcnts/>
- <assorsltcnts/>
- <assorsltcd/>
- <assorsltcnts1/>
- <assorsltcd1/>
- <healexamflag/>
- <rsrvno/>
- <rslthistseq/>
- </item>
- <itemassoexmp/>
- <itemassoexmp1/>
- </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/>
- <srchtestcd/>
- <srchtestnm/>
- </srch>
- <saveinfo>
- <infolist/>
- </saveinfo>
- </send>
- <init>
- <baseinfo>
- <plceflag/>
- </baseinfo>
- <send>
- <srchcmpycd/>
- <srchcmpynm/>
- </send>
- </init>
- <hidden>
- <count/>
- <itemrslt/>
- </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="TRAHA04351" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" replace="instance" resultref="/root/main/totalpatlst"/>
- <submission id="TXAHA04351" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/saveinfo/infolist" replace="instance" resultref="/root/hidden/itemrslt"/>
- <submission id="TRAHA00001"/>
- </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,0)=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("TRAHA04351")) {
- }
-
- fMerge();
- }
- /**=======================================================================================
- * 건진 결과 리스트 병합
- =======================================================================================*/
- function fMerge(){
- grd_patdtllst.mergecells = "bycol";
- grd_patdtllst.mergeCol(0) = false;
- grd_patdtllst.mergeCol(1) = false;
- grd_patdtllst.mergeCol(2) = false;
- grd_patdtllst.mergeCol(3) = true;
- grd_patdtllst.mergeCol(4) = true;
- grd_patdtllst.mergeCol(5) = false;
- grd_patdtllst.mergeCol(6) = false;
- grd_patdtllst.mergeCol(7) = false;
- grd_patdtllst.mergeCol(8) = false;
- grd_patdtllst.mergeCol(9) = false;
- grd_patdtllst.mergeCol(10) = false;
- grd_patdtllst.mergeCol(11) = false;
- grd_patdtllst.mergeCol(12) = false;
- grd_patdtllst.mergeCol(13) = false;
- grd_patdtllst.mergeCol(14) = false;
- grd_patdtllst.mergeCol(15) = false;
- grd_patdtllst.mergeCol(16) = false;
- grd_patdtllst.mergeCol(17) = false;
- grd_patdtllst.mergeCol(18) = false;
- //grd_patdtllst.merge();
- }
- /**=======================================================================================
- * 수치적용된 값 반올림처리
- =======================================================================================*/
- 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:785px; 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:872px; 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:977px; 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="input_search" style="left:1000px; 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:311px; top:41px; width:69px; height:17px; ">장소 :</caption>
- <select1 id="cmb_srchplceflag" ref="/root/send/srch/srchplceflag" appearance="minimal" style="left:400px; top:40px; 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:664px; top:38px; 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:490px; top:35px; width:86px; height:17px; ">거래처 :</caption>
- <input id="ipt_srchcmpycd" ref="/root/init/send/srchcmpycd" class="input_search" style="left:579px; top:35px; 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:684px; top:35px; width:140px; height:19px; "/>
- <caption id="caption21" class="search_name" style="left:311px; top:10px; width:86px; height:17px; ">검사코드 :</caption>
- <caption id="caption22" class="search_name" style="left:490px; top:10px; width:86px; height:17px; ">검사명칭 :</caption>
- <input id="ipt_testnm" ref="/root/send/srch/srchtestnm" class="input_search" style="left:580px; top:10px; width:195px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_testcd" ref="/root/send/srch/srchtestcd" class="input_s_essential" imemode="disabled" _chartype="upper" style="left:400px; top:10px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <switch id="switch1" style="left:0px; top:169px; width:1195px; height:551px; ">
- <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="^예약일자^처방일자^등록번호^환자명^검사코드^검사명^외부결과내용^수치결과내용^공단연계결과^공단연계결과^특검연계결과^특검연계결과^공단^특검^건진구분^예약번호^결과이력번호^결과구분" colsep="^" colwidth="37, 80, 80, 80, 80, 90, 200, 100, 100, 60, 100, 60, 100, 50, 50, 60, 70, 78, 100" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:5px; top:25px; width:1180px; height:515px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="rsrvdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" 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="outtestrsltcnts" type="input" style="text-align:right; "/>
- <col ref="testrsltcnts" style="text-align:right; "/>
- <col ref="assorsltcd" type="input" style="text-align:right; "/>
- <col ref="assorsltcnts" type="input" style="text-align:right; "/>
- <col ref="assorsltcd1" type="input" style="text-align:right; "/>
- <col ref="assorsltcnts1" type="input" style="text-align:right; "/>
- <col checkvalue="Y,N" disabled="true" ref="gbn1" type="checkbox"/>
- <col checkvalue="Y,N" disabled="true" ref="gbn2" type="checkbox"/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="rslthistseq" visibility="hidden"/>
- <col ref="rsltflag" 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>
- <group id="grp_assorsltexmp" visibility="hidden" style="left:40px; top:75px; width:185px; height:235px; ">
- <caption id="caption55" class="tit_2" style="left:5px; top:5px; width:108px; height:14px; ">공단결과예문</caption>
- <line id="line35" class="line_1" style="x1:5px; y1:20px; x2:180px; y2:20px; "/>
- <button id="btn_choiclose" class="icon_plus" style="left:166px; top:4px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_assorsltexmp.visible = false;
- ]]>
- </script>
- </button>
- <datagrid id="grd_assorslt" nodeset="/root/main/tempinfo/assorsltlst/itemasso" allowselection="false" caption="코드^결과내용" colsep="^" colwidth="20, 120" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" tooltip="true" style="left:5px; top:23px; width:175px; height:205px; ">
- <col ref="rsltcd"/>
- <col ref="rsltnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var idx = grd_assorslt.row;
- if( idx < 1) return ;
- grd_patdtllst.valueMatrix(grd_patdtllst.row, grd_patdtllst.colRef("assorsltcnts")) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + idx + "]/rsltnm" );
- grd_patdtllst.valueMatrix(grd_patdtllst.row, grd_patdtllst.colRef("assorsltcd")) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + idx + "]/rsltcd" );
-
- 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();
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_assorsltexmp1" visibility="hidden" style="left:60px; top:75px; width:185px; height:235px; ">
- <caption id="caption18" class="tit_2" style="left:5px; top:5px; width:108px; height:14px; ">특수결과예문</caption>
- <line id="line10" class="line_1" style="x1:5px; y1:20px; x2:180px; y2:20px; "/>
- <button id="button17" class="icon_plus" style="left:166px; top:4px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_assorsltexmp1.visible = false;
- ]]>
- </script>
- </button>
- <datagrid id="grd_assorslt1" nodeset="/root/main/tempinfo/assorsltlst1/itemasso" allowselection="false" caption="코드^결과내용" colsep="^" colwidth="20, 120" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" tooltip="true" style="left:5px; top:23px; width:175px; height:205px; ">
- <col ref="rsltcd"/>
- <col ref="rsltnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var idx = grd_assorslt1.row;
- if( idx < 1) return ;
- grd_patdtllst.valueMatrix(grd_patdtllst.row, grd_patdtllst.colRef("assorsltcnts1")) = model.getValue("/root/main/tempinfo/assorsltlst1/itemasso[" + idx + "]/rsltnm" );
- grd_patdtllst.valueMatrix(grd_patdtllst.row, grd_patdtllst.colRef("assorsltcd1")) = model.getValue("/root/main/tempinfo/assorsltlst1/itemasso[" + idx + "]/rsltcd" );
-
- 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();
- }
- ]]>
- </script>
- </datagrid>
- </group>
- </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("TXAHA04351");
- btn_search.dispatch("DOMActivate");
- }else {
- model.resetInstanceNode("/root/send/saveinfo/infolist");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:5px; y1:110px; x2:1187px; y2:110px; "/>
- <caption id="caption2" class="cell_1" style="left:5px; top:115px; width:80px; height:23px; text-align:center; vertical-align:middle; ">외부결과</caption>
- <input id="ipt_outtestrsltcnts" ref="/root/temp/aplyitem/outtestrsltcnts" style="left:88px; top:117px; width:150px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:380px; top:115px; width:80px; height:23px; text-align:center; vertical-align:middle; ">공단연계</caption>
- <input id="ipt_assorsltcd" ref="/root/temp/aplyitem/assorsltcd" style="left:463px; top:117px; width:150px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:750px; top:115px; width:80px; height:23px; text-align:center; vertical-align:middle; ">특검연계</caption>
- <input id="ipt_assorsltcd1" ref="/root/temp/aplyitem/assorsltcd1" style="left:833px; top:117px; width:150px; height:19px; "/>
- <line id="line7" class="line_2" style="x1:5px; y1:140px; x2:1187px; y2:140px; "/>
- <caption id="caption5" class="cell_1" style="left:5px; top:143px; width:80px; height:23px; text-align:center; vertical-align:middle; ">수치결과</caption>
- <input id="ipt_testrsltcnts" ref="/root/temp/aplyitem/testrsltcnts" style="left:88px; top:145px; width:150px; height:19px; text-align:right; padding-right:3; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if(ipt_testrsltcnts.value != ""){
- if(isNaN(ipt_testrsltcnts.value)){
- alert("수치결과값으로 숫자형식으로 입력하세요.");
- model.setValue("/root/temp/aplyitem/testrsltcnts", "");
- model.setFocus("ipt_testrsltcnts");
- ipt_testrsltcnts.refresh();
- return;
- }
- }
- ]]>
- </script>
- </input>
- <line id="line3" class="line_2" style="x1:5px; y1:167px; x2:1187px; y2:167px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:95px; width:144px; height:13px; ">일괄적용항목</caption>
- <button id="btn_aply" class="btn2_letter4" style="left:1117px; top:117px; width:64px; height:19px; ">
- <caption>적 용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- openLoadingBar("적용중입니다...") ;//처리중 화면을 오픈한다.
- var outtestrsltcnts = model.getValue("/root/temp/aplyitem/outtestrsltcnts");
-
- if(outtestrsltcnts == ""){
- for(var i=grd_patdtllst.fixedRows; i<grd_patdtllst.rows; i++){
- grd_patdtllst.rowStatus(i) = 2;
- if(model.getValue("/root/temp/aplyitem/assorsltcd") != ""){
- grd_patdtllst.valueMatrix(i, grd_patdtllst.colRef("assorsltcd")) = model.getValue("/root/temp/aplyitem/assorsltcd");
- }
- if(model.getValue("/root/temp/aplyitem/assorsltcd1") != ""){
- grd_patdtllst.valueMatrix(i, grd_patdtllst.colRef("assorsltcd1")) = model.getValue("/root/temp/aplyitem/assorsltcd1");
- }
- }
- }else{
- for(var i=grd_patdtllst.fixedRows; i<grd_patdtllst.rows; i++){
- if(grd_patdtllst.valueMatrix(i, grd_patdtllst.colRef("outtestrsltcnts")).indexOf(outtestrsltcnts) >= 0){
- grd_patdtllst.rowStatus(i) = 2;
- if(model.getValue("/root/temp/aplyitem/assorsltcd") != ""){
- grd_patdtllst.valueMatrix(i, grd_patdtllst.colRef("assorsltcd")) = model.getValue("/root/temp/aplyitem/assorsltcd");
- }
- if(model.getValue("/root/temp/aplyitem/assorsltcd1") != ""){
- grd_patdtllst.valueMatrix(i, grd_patdtllst.colRef("assorsltcd1")) = model.getValue("/root/temp/aplyitem/assorsltcd1");
- }
- }
- }
- }
-
- if(model.getValue("/root/temp/aplyitem/assorsltcd") != ""){
- fSetAssoChoiExmpCnts("1", grd_patdtllst);
- }
- if(model.getValue("/root/temp/aplyitem/assorsltcd1") != ""){
- fSetAssoChoiExmpCnts("2", grd_patdtllst);
- }
-
- closeLoadingBar() ;//처리중 화면을 close한다.
- ]]>
- </script>
- </button>
- <button id="btn_valaply" class="btn2_letter4" style="left:1117px; top:145px; width:64px; height:19px; ">
- <caption>수치적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- openLoadingBar("적용중입니다...") ;//처리중 화면을 오픈한다.
- var testrsltcnts = model.getValue("/root/temp/aplyitem/testrsltcnts");
- if(testrsltcnts != ""){
- for(var i=grd_patdtllst.fixedRows; i<grd_patdtllst.rows; i++){
- var outtestrsltcnts = grd_patdtllst.valueMatrix(i, grd_patdtllst.colRef("outtestrsltcnts"));
- var rsltflag = grd_patdtllst.valueMatrix(i, grd_patdtllst.colRef("rsltflag"));
- //if(outtestrsltcnts == "" || isNaN(outtestrsltcnts)){
- if(outtestrsltcnts == "" || isNaN(outtestrsltcnts) || rsltflag != "N"){
- continue;
- }else{
- grd_patdtllst.rowStatus(i) = 2;
- grd_patdtllst.valueMatrix(i, grd_patdtllst.colRef("testrsltcnts")) = round(parseFloat(outtestrsltcnts/testrsltcnts), 2);
- }
- }
- }
-
- closeLoadingBar() ;//처리중 화면을 close한다.
- ]]>
- </script>
- </button>
- <button id="button2" class="btn6_letter4" style="left:15px; top:725px; width:80px; height:22px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var fileName = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls"); // 2009-07-01 엑셀저장 두번째 저장 실패 오류 확인 두번째 테스트
- if (fileName != "") {
- grd_patdtllst.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|