SPAHR00410_통합건진소견.xrw 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>통합판정소견예문</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <judgexmpcdlst>
  11. <item>
  12. <sel/>
  13. <judgexmpcd/>
  14. <judghangshrtcnts/>
  15. <judghangcnts/>
  16. </item>
  17. </judgexmpcdlst>
  18. </main>
  19. <send>
  20. <srchjudgexmpcd/>
  21. <srchjudgexmpcnts/>
  22. <srchinstcd/>
  23. <srchhealexamflag/>
  24. <srchhealexamdetlflag/>
  25. </send>
  26. <init/>
  27. <hidden/>
  28. <temp/>
  29. </root>
  30. </instance>
  31. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  32. <script type="javascript" src="../../../ast/commonweb/js/AHA001.js"/>
  33. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  34. <submission id="TRAHB00806" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/judgexmpcdlst"/>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. fInit();
  38. ]]>
  39. </script>
  40. </model>
  41. <script type="javascript">
  42. <![CDATA[
  43. function fInit(){
  44. model.removeNodeset(grd_judgexmp.nodeset);
  45. if( checkOpener() ){
  46. //model.setValue("/root/send/srchjudgexmpcd", model.getValue("/root/temp/judgexmpcd"));
  47. //model.setValue("/root/send/srchjudgexmpcnts", model.getValue("/root/temp/judghangshrtcnts"));
  48. //model.setValue("/root/send/srchhealexamflag", model.getValue("/root/temp/healexamflag"));
  49. model.setValue("/root/send/srchhealexamdetlflag", opener.javascript.getParameter("SPAHR00400_PARAM8"));
  50. model.setValue("/root/send/srchjudgexmpcd" ,opener.javascript.getParameter("SPAHR00410_PARAM5"));
  51. model.setValue("/root/send/srchjudgexmpcnts" ,opener.javascript.getParameter("SPAHR00410_PARAM6"));
  52. model.setValue("/root/send/srchhealexamflag" ,opener.javascript.getParameter("SPAHR00410_PARAM7"));
  53. model.refresh();
  54. }
  55. fGetRsltExmpList();
  56. }
  57. /**
  58. * 결과예문(소견) 조회
  59. */
  60. function fGetRsltExmpList(){
  61. model.removeNodeset(grd_judgexmp.nodeset);
  62. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
  63. submit("TRAHB00806");
  64. }
  65. /**
  66. * 선택 결과문구 set
  67. */
  68. function fSetData(){
  69. if(checkOpener()){
  70. var vDestNodeSet = opener.javascript.getParameter("SPAHR00410_PARAM2"); //목적노드Set
  71. var vDestNodeCd = opener.javascript.getParameter("SPAHR00410_PARAM3"); //코드 목적노드
  72. var vDestNodeNm = opener.javascript.getParameter("SPAHR00410_PARAM4"); //내용 목적노드
  73. var vMulti = opener.javascript.getParameter("SPAHR00410_PARAM1");// 다중선택여부(Y/N)
  74. if( vMulti == "N" ){
  75. var idx = grd_judgexmp.row;
  76. if( idx < 1) return ;
  77. opener.model.setValue(vDestNodeCd , grd_judgexmp.valueMatrix(idx, grd_judgexmp.colRef("judgexmpcd"))) ;
  78. opener.model.setValue(vDestNodeNm , grd_judgexmp.valueMatrix(idx, grd_judgexmp.colRef("judghangcnts"))) ;
  79. }
  80. else {
  81. var nodeList = instance1.selectNodes(grd_judgexmp.nodeset + "[sel='Y']");
  82. var rCSV = getNodeListCSV(nodeList);
  83. setCSVToNode("/root/temp", rCSV);
  84. copyNodeListType(vDestNodeSet, "/root/temp/list", "replace", opener.model , model);
  85. }
  86. opener.model.makeNode("/root/temp/okflag");
  87. opener.model.setValue("/root/temp/okflag", "ok");
  88. opener.model.refresh();
  89. }
  90. }
  91. ]]>
  92. </script>
  93. </xhtml:head>
  94. <xhtml:body pagewidth="560" pageheight="495" guideline="1,1194;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  95. <group id="group3" scroll="auto" style="left:0px; top:0px; width:540px; height:460px; ">
  96. <group id="group2" style="left:0px; top:0px; width:535px; height:35px; vertical-align:top; ">
  97. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:535px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  98. <input id="ipt_rsltexmpnm" ref="/root/send/srchjudgexmpcnts" class="input_search" style="left:230px; top:8px; width:190px; height:19px; ">
  99. <script type="javascript" ev:event="onkeyup">
  100. <![CDATA[
  101. inputEnterKey("btn_search", "DOMActivate");
  102. ]]>
  103. </script>
  104. </input>
  105. <input id="ipt_rsltexmpcd" ref="/root/send/srchjudgexmpcd" class="input_search" style="left:65px; top:8px; width:90px; height:19px; ">
  106. <script type="javascript" ev:event="onkeyup">
  107. <![CDATA[
  108. inputEnterKey("btn_search", "DOMActivate");
  109. ]]>
  110. </script>
  111. </input>
  112. <line id="line13" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  113. <caption id="caption1" class="search_name" style="left:170px; top:8px; width:65px; height:17px; ">내용 :</caption>
  114. <caption id="caption2" class="search_name" style="left:6px; top:8px; width:64px; height:17px; ">코드 :</caption>
  115. <button id="btn_search" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
  116. <caption>조회</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. fGetRsltExmpList();
  120. ]]>
  121. </script>
  122. </button>
  123. </group>
  124. <line id="line1" class="line_1" style="x1:0px; y1:38px; x2:535px; y2:38px; "/>
  125. <datagrid id="grd_judgexmp" nodeset="/root/main/judgexmpcdlst/item" autoresize="true" caption="V^소견코드^한글소견^한글판정소견" colsep="^" colwidth="28, 65, 150, 248" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:45px; width:535px; height:410px; ">
  126. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  127. <col ref="judgexmpcd"/>
  128. <col ref="judghangshrtcnts"/>
  129. <col ref="judghangcnts"/>
  130. <script type="javascript" ev:event="ondblclick">
  131. <![CDATA[
  132. //그리드의 셀 이외의 곳을 클릭하면 종료한다.
  133. if(!eval(grd_judgexmp.iscell(event.target))) return false;
  134. // 그리드의 헤더부분을 클릭하면 종료한다.
  135. if(eval(grd_judgexmp.row) < eval(grd_judgexmp.fixedRows)) return false;
  136. var vMulti = opener.javascript.getParameter("SPAHR00410_PARAM1");// 다중선택여부(Y/N)
  137. if( vMulti == "N" ){
  138. fSetData();
  139. window.close();
  140. }else {
  141. var sel = grd_judgexmp.valueMatrix(grd_judgexmp.row, grd_judgexmp.colRef("sel"));
  142. if(sel == "Y") {
  143. grd_judgexmp.valueMatrix(grd_judgexmp.row, grd_judgexmp.colRef("sel")) = "N";
  144. } else {
  145. grd_judgexmp.valueMatrix(grd_judgexmp.row, grd_judgexmp.colRef("sel")) = "Y";
  146. fSetData();
  147. window.close();
  148. }
  149. }
  150. ]]>
  151. </script>
  152. </datagrid>
  153. </group>
  154. <group id="grp_btn" scroll="auto" style="left:0px; top:461px; width:535px; height:27px; ">
  155. <button id="btn_confirm" class="btn4_letter2" style="left:418px; top:5px; width:56px; height:22px; ">
  156. <caption>확인</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. fSetData();
  160. window.close();
  161. ]]>
  162. </script>
  163. </button>
  164. <button id="btn_cancel" class="btn4_letter2" style="left:477px; top:5px; width:56px; height:22px; ">
  165. <caption>취소</caption>
  166. <script type="javascript" ev:event="DOMActivate">
  167. <![CDATA[
  168. window.close();
  169. ]]>
  170. </script>
  171. </button>
  172. </group>
  173. </xhtml:body>
  174. </xhtml:html>