123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPAHR00300.xrw
- * 설 명 : 종합판정문구선택
- * 설 계 자 : 손주연
- * 작 성 자 : 손주연
- * 작 성 일 : 2007.03.13
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <judgexmpcdlst>
- <item>
- <sel/>
- <judgexmpcd/>
- <judghangshrtcnts/>
- <judgengshrtcnts/>
- <judghangcnts/>
- <judgengcnts/>
- </item>
- </judgexmpcdlst>
- </main>
- <send>
- <srchjudgexmpcd/>
- <srchjudgexmpcnts/>
- <srchinstcd/>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- </send>
- <init/>
- <hidden>
- </hidden>
- <target>
- <code/>
- <name/>
- <flag/>
- <grid/>
- </target>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AHA001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRAHB00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/judgexmpcdlst"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- /**
- * 초기화
- * SPAHR00300_PARAM1: 다중선택여부(Y/N)
- * SPAHR00300_PARAM2: 목적노드Set
- * SPAHR00300_PARAM3: 종합판정문구코드 목적노드
- * SPAHR00300_PARAM4: 종합판정문구내용 목적노드
- * SPAHR00300_PARAM5: 종합판정문구검색코드
- * SPAHR00300_PARAM6: 종합판정문구검색내용
- * SPAHR00300_PARAM7: 건진구분
- * SPAHR00300_PARAM8: 공단건진 1,2차 구분
- */
- function fInit(){
- if( checkOpener() ){
- opener.model.makeNode("/root/temp/SPAHR00300/okflag" );
- opener.model.setValue("/root/temp/SPAHR00300/okflag", "");
- model.removeNodeset("/root/main/judgexmpcdlst/item");
- model.setValue("/root/send/srchjudgexmpcd" ,opener.javascript.getParameter("SPAHR00300_PARAM5"));
- model.setValue("/root/send/srchjudgexmpcnts" ,opener.javascript.getParameter("SPAHR00300_PARAM6"));
- model.setValue("/root/send/srchhealexamflag" ,opener.javascript.getParameter("SPAHR00300_PARAM7"));
- if (opener.javascript.getParameter("SPAHR00300_PARAM7") == "G" ) {
- model.makeValue("/root/send/srchjudgexmpcd" ,opener.javascript.getParameter("SPAHR00300_PARAM8"));
- }
- // model.setValue("/root/send/srchhealexamdetlflag" ,opener.javascript.getParameter("SPAHR00300_PARAM8"));
- var vMulti = opener.javascript.getParameter("SPAHR00300_PARAM1");// 다중선택여부(Y/N)
- if( vMulti == "N" ) grd_judglst.colHidden(1) = true;
- model.refresh();
-
- if( (model.getValue("/root/send/srchjudgexmpcd") == "") && (model.getValue("/root/send/srchjudgexmpcnts") == "") ){
- return ;
- }
- if (model.getValue("/root/send/srchjudgexmpcd")>="G012") {
- grd_judglst.colWidth(3) = 80;
- grd_judglst.colAttribute(3,"visibility") = "visible";
- grd_judglst.colAttribute(4,"visibility") = "hidden";
- grd_judglst.colAttribute(5,"visibility") = "visible";
- grd_judglst.colAttribute(6,"visibility") = "hidden";
- } else {
- grd_judglst.colWidth(3) = 200;
- grd_judglst.colAttribute(3,"visibility") = "visible";
- grd_judglst.colAttribute(4,"visibility") = "visible";
- grd_judglst.colAttribute(5,"visibility") = "hidden";
- grd_judglst.colAttribute(6,"visibility") = "hidden";
- }
- }
- fGetJudgExmpList();
- }
- /**
- * 종합판정문구 조회
- */
- function fGetJudgExmpList(){
- model.removeNodeset("/root/main/judgexmpcdlst/item");
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
- submit("TRAHB00801");
- }
- /**
- * 선택 종합판정문구 set
- */ function fSetData(){
- if( checkOpener() ){
- var vDestNodeSet = opener.javascript.getParameter("SPAHR00300_PARAM2"); //목적노드Set
- var vDestNodeCd = opener.javascript.getParameter("SPAHR00300_PARAM3"); //종합판정문구코드 목적노드
- var vDestNodeNm = opener.javascript.getParameter("SPAHR00300_PARAM4"); //종합판정문구내용 목적노드
- var vMulti = opener.javascript.getParameter("SPAHR00300_PARAM1");// 다중선택여부(Y/N)
- if( vMulti == "N" ){
- var idx = grd_judglst.row;
- if( idx < 1) return ;
- //alert(model.getValue("/root/send/srchjudgexmpcd"));
- opener.model.setValue(vDestNodeCd , grd_judglst.valueMatrix(idx, 2)) ;
- if (model.getValue("/root/send/srchjudgexmpcd")>="G012") {
- opener.model.setValue(vDestNodeNm , grd_judglst.valueMatrix(idx, 5)) ;
- } else {
- opener.model.setValue(vDestNodeNm , grd_judglst.valueMatrix(idx, 3)) ;
- }
- }
- else {
- var nodeList = instance1.selectNodes(grd_judglst.nodeset + "[sel='Y']");
- var rCSV = getNodeListCSV(nodeList);
- setCSVToNode("/root/temp", rCSV);
- copyNodeListType(vDestNodeSet, "/root/temp/list", "replace", opener.model , model);
- //astfInsertGridData(grd_judglst, opener.grd_judglst , "2" , "sel", "", "");//judgexmpcd,cmtcd,judghangshrtcnts,cmtcnts
- }
- opener.model.setValue("/root/temp/SPAHR00300/okflag", "ok");
- opener.model.refresh();
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="542" pageheight="495" guideline="1,1194;1,518;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_btn" scroll="auto" style="left:0px; top:461px; width:518px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetData();
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="onclick"/>
- </button>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:460px; ">
- <group id="group2" style="left:0px; top:0px; width:517px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">코드 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetJudgExmpList();
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_judgnm" ref="/root/send/srchjudgexmpcnts" class="input_search" style="left:290px; top:8px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- //inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_judgcd" ref="/root/send/srchjudgexmpcd" class="input_search" style="left:80px; top:8px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:215px; top:8px; width:86px; height:17px; ">내용 :</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:38px; x2:517px; y2:38px; "/>
- <datagrid id="grd_judglst" nodeset="/root/main/judgexmpcdlst/item" autoresize="true" caption="선택^판정코드^판정내용(한)^판정내용(영)^판정내용^caption2" colsep="^" colwidth="31, 64, 200, 214, 300, 100" dataheight="25" defaultrows="0" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:45px; width:517px; height:410px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="judgexmpcd"/>
- <col ref="judghangshrtcnts"/>
- <col ref="judgengshrtcnts"/>
- <col ref="judghangcnts"/>
- <col ref="judgengcnts"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var vMulti = opener.javascript.getParameter("SPAHR00300_PARAM1");// 다중선택여부(Y/N)
- if( vMulti == "N" ){
- fSetData();
- window.close();
- }
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|