SPAHR00300_종합판정문구선택.xrw 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPAHR00300.xrw
  4. * 설 명 : 종합판정문구선택
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2007.03.13
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>종합판정문구선택</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <judgexmpcdlst>
  20. <item>
  21. <sel/>
  22. <judgexmpcd/>
  23. <judghangshrtcnts/>
  24. <judgengshrtcnts/>
  25. <judghangcnts/>
  26. <judgengcnts/>
  27. </item>
  28. </judgexmpcdlst>
  29. </main>
  30. <send>
  31. <srchjudgexmpcd/>
  32. <srchjudgexmpcnts/>
  33. <srchinstcd/>
  34. <srchhealexamflag/>
  35. <srchhealexamdetlflag/>
  36. </send>
  37. <init/>
  38. <hidden>
  39. </hidden>
  40. <target>
  41. <code/>
  42. <name/>
  43. <flag/>
  44. <grid/>
  45. </target>
  46. <temp/>
  47. </root>
  48. </instance>
  49. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  50. <script type="javascript" src="../../../ast/commonweb/js/AHA001.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <submission id="TRAHB00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/judgexmpcdlst"/>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. fInit();
  56. ]]>
  57. </script>
  58. </model>
  59. <script type="javascript">
  60. <![CDATA[
  61. /**
  62. * 초기화
  63. * SPAHR00300_PARAM1: 다중선택여부(Y/N)
  64. * SPAHR00300_PARAM2: 목적노드Set
  65. * SPAHR00300_PARAM3: 종합판정문구코드 목적노드
  66. * SPAHR00300_PARAM4: 종합판정문구내용 목적노드
  67. * SPAHR00300_PARAM5: 종합판정문구검색코드
  68. * SPAHR00300_PARAM6: 종합판정문구검색내용
  69. * SPAHR00300_PARAM7: 건진구분
  70. * SPAHR00300_PARAM8: 공단건진 1,2차 구분
  71. */
  72. function fInit(){
  73. if( checkOpener() ){
  74. opener.model.makeNode("/root/temp/SPAHR00300/okflag" );
  75. opener.model.setValue("/root/temp/SPAHR00300/okflag", "");
  76. model.removeNodeset("/root/main/judgexmpcdlst/item");
  77. model.setValue("/root/send/srchjudgexmpcd" ,opener.javascript.getParameter("SPAHR00300_PARAM5"));
  78. model.setValue("/root/send/srchjudgexmpcnts" ,opener.javascript.getParameter("SPAHR00300_PARAM6"));
  79. model.setValue("/root/send/srchhealexamflag" ,opener.javascript.getParameter("SPAHR00300_PARAM7"));
  80. if (opener.javascript.getParameter("SPAHR00300_PARAM7") == "G" ) {
  81. model.makeValue("/root/send/srchjudgexmpcd" ,opener.javascript.getParameter("SPAHR00300_PARAM8"));
  82. }
  83. // model.setValue("/root/send/srchhealexamdetlflag" ,opener.javascript.getParameter("SPAHR00300_PARAM8"));
  84. var vMulti = opener.javascript.getParameter("SPAHR00300_PARAM1");// 다중선택여부(Y/N)
  85. if( vMulti == "N" ) grd_judglst.colHidden(1) = true;
  86. model.refresh();
  87. if( (model.getValue("/root/send/srchjudgexmpcd") == "") && (model.getValue("/root/send/srchjudgexmpcnts") == "") ){
  88. return ;
  89. }
  90. if (model.getValue("/root/send/srchjudgexmpcd")>="G012") {
  91. grd_judglst.colWidth(3) = 80;
  92. grd_judglst.colAttribute(3,"visibility") = "visible";
  93. grd_judglst.colAttribute(4,"visibility") = "hidden";
  94. grd_judglst.colAttribute(5,"visibility") = "visible";
  95. grd_judglst.colAttribute(6,"visibility") = "hidden";
  96. } else {
  97. grd_judglst.colWidth(3) = 200;
  98. grd_judglst.colAttribute(3,"visibility") = "visible";
  99. grd_judglst.colAttribute(4,"visibility") = "visible";
  100. grd_judglst.colAttribute(5,"visibility") = "hidden";
  101. grd_judglst.colAttribute(6,"visibility") = "hidden";
  102. }
  103. }
  104. fGetJudgExmpList();
  105. }
  106. /**
  107. * 종합판정문구 조회
  108. */
  109. function fGetJudgExmpList(){
  110. model.removeNodeset("/root/main/judgexmpcdlst/item");
  111. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
  112. submit("TRAHB00801");
  113. }
  114. /**
  115. * 선택 종합판정문구 set
  116. */ function fSetData(){
  117. if( checkOpener() ){
  118. var vDestNodeSet = opener.javascript.getParameter("SPAHR00300_PARAM2"); //목적노드Set
  119. var vDestNodeCd = opener.javascript.getParameter("SPAHR00300_PARAM3"); //종합판정문구코드 목적노드
  120. var vDestNodeNm = opener.javascript.getParameter("SPAHR00300_PARAM4"); //종합판정문구내용 목적노드
  121. var vMulti = opener.javascript.getParameter("SPAHR00300_PARAM1");// 다중선택여부(Y/N)
  122. if( vMulti == "N" ){
  123. var idx = grd_judglst.row;
  124. if( idx < 1) return ;
  125. //alert(model.getValue("/root/send/srchjudgexmpcd"));
  126. opener.model.setValue(vDestNodeCd , grd_judglst.valueMatrix(idx, 2)) ;
  127. if (model.getValue("/root/send/srchjudgexmpcd")>="G012") {
  128. opener.model.setValue(vDestNodeNm , grd_judglst.valueMatrix(idx, 5)) ;
  129. } else {
  130. opener.model.setValue(vDestNodeNm , grd_judglst.valueMatrix(idx, 3)) ;
  131. }
  132. }
  133. else {
  134. var nodeList = instance1.selectNodes(grd_judglst.nodeset + "[sel='Y']");
  135. var rCSV = getNodeListCSV(nodeList);
  136. setCSVToNode("/root/temp", rCSV);
  137. copyNodeListType(vDestNodeSet, "/root/temp/list", "replace", opener.model , model);
  138. //astfInsertGridData(grd_judglst, opener.grd_judglst , "2" , "sel", "", "");//judgexmpcd,cmtcd,judghangshrtcnts,cmtcnts
  139. }
  140. opener.model.setValue("/root/temp/SPAHR00300/okflag", "ok");
  141. opener.model.refresh();
  142. }
  143. }
  144. ]]>
  145. </script>
  146. </xhtml:head>
  147. <xhtml:body pagewidth="542" pageheight="495" guideline="1,1194;1,518;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  148. <group id="grp_btn" scroll="auto" style="left:0px; top:461px; width:518px; height:27px; ">
  149. <button id="btn_confirm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
  150. <caption>확인</caption>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. fSetData();
  154. window.close();
  155. ]]>
  156. </script>
  157. </button>
  158. <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
  159. <caption>취소</caption>
  160. <close ev:event="onclick"/>
  161. </button>
  162. </group>
  163. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:460px; ">
  164. <group id="group2" style="left:0px; top:0px; width:517px; height:35px; vertical-align:top; ">
  165. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  166. <caption id="caption2" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">코드 :</caption>
  167. <button id="btn_search" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
  168. <caption>조회</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. fGetJudgExmpList();
  172. ]]>
  173. </script>
  174. </button>
  175. <line id="line13" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  176. <input id="ipt_judgnm" ref="/root/send/srchjudgexmpcnts" class="input_search" style="left:290px; top:8px; width:120px; height:19px; ">
  177. <script type="javascript" ev:event="onkeyup">
  178. <![CDATA[
  179. //inputEnterKey("btn_search", "DOMActivate");
  180. ]]>
  181. </script>
  182. </input>
  183. <input id="ipt_judgcd" ref="/root/send/srchjudgexmpcd" class="input_search" style="left:80px; top:8px; width:120px; height:19px; ">
  184. <script type="javascript" ev:event="onkeyup">
  185. <![CDATA[
  186. inputEnterKey("btn_search", "DOMActivate");
  187. ]]>
  188. </script>
  189. </input>
  190. <caption id="caption1" class="search_name" style="left:215px; top:8px; width:86px; height:17px; ">내용 :</caption>
  191. </group>
  192. <line id="line1" class="line_1" style="x1:0px; y1:38px; x2:517px; y2:38px; "/>
  193. <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; ">
  194. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  195. <col ref="judgexmpcd"/>
  196. <col ref="judghangshrtcnts"/>
  197. <col ref="judgengshrtcnts"/>
  198. <col ref="judghangcnts"/>
  199. <col ref="judgengcnts"/>
  200. <script type="javascript" ev:event="ondblclick">
  201. <![CDATA[
  202. var vMulti = opener.javascript.getParameter("SPAHR00300_PARAM1");// 다중선택여부(Y/N)
  203. if( vMulti == "N" ){
  204. fSetData();
  205. window.close();
  206. }
  207. ]]>
  208. </script>
  209. </datagrid>
  210. </group>
  211. </xhtml:body>
  212. </xhtml:html>