SPAEA02302_코드조회(검사치료).xrw 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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. <excucdlist>
  11. <item>
  12. <check/>
  13. <excucd/>
  14. <excucdnm/>
  15. </item>
  16. </excucdlist>
  17. </main>
  18. <send>
  19. <srchexcucd/>
  20. <globalinstance>
  21. <instance1/>
  22. </globalinstance>
  23. <tmplcdflag>B</tmplcdflag>
  24. </send>
  25. <hidden/>
  26. <init/>
  27. </root>
  28. </instance>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. aezfSetSuppDeptcd();
  32. if ( checkOpener() ) {
  33. /*var openerid = opener.model.getValue("/root/send/windowloadinstance");
  34. //alert('openerid->'+openerid);
  35. switch (openerid) {
  36. case "SMAEB02000" : model.setValue("/root/send/srchexcucd", model.getValue("/root/send/srchexcucd")+"%");
  37. submit("TRAEA02310");
  38. model.setValue("/root/send/srchexcucd", "");
  39. model.refresh();
  40. break;
  41. default:
  42. break;
  43. } */
  44. model.setValue("/root/send/srchexcucd", model.getValue("/root/send/srchexcucd")+"%");
  45. submit("TRAEA02310");
  46. model.setValue("/root/send/srchexcucd", "");
  47. model.refresh();
  48. }
  49. else {
  50. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  51. }
  52. model.setFocus("ipt_excucd");
  53. ]]>
  54. </script>
  55. <submission id="TRAEA02310" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/excucdlist"/>
  56. </model>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  59. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  61. </xhtml:head>
  62. <xhtml:body pagewidth="535" pageheight="578" guideline="1,1194;2,576;1,517;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  63. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:550px; ">
  64. <group id="group2" style="left:0px; top:0px; width:518px; height:35px; vertical-align:top; ">
  65. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  66. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색코드 :</caption>
  67. <line id="line13" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  68. <input id="ipt_excucd" ref="/root/send/srchexcucd" class="input_search" style="left:109px; top:8px; width:316px; height:19px; ">
  69. <script type="javascript" ev:event="onkeyup">
  70. <![CDATA[
  71. inputEnterKey("btn_sea", "DOMActivate");
  72. ]]>
  73. </script>
  74. </input>
  75. <button id="btn_sea" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
  76. <caption>조회</caption>
  77. <script type="javascript" ev:event="DOMActivate">
  78. <![CDATA[
  79. /*var openerid = opener.model.getValue("/root/send/windowloadinstance");
  80. switch (openerid) {
  81. case "SMAEB02000" : submit("TRAEA02310");
  82. model.setValue("/root/send/srchexcucd", "");
  83. model.refresh();
  84. break;
  85. default:
  86. break;
  87. } */
  88. submit("TRAEA02310");
  89. model.setValue("/root/send/srchexcucd", "");
  90. model.refresh();
  91. model.setFocus("ipt_excucd");
  92. ]]>
  93. </script>
  94. </button>
  95. </group>
  96. <caption id="caption1" class="tit_2" style="left:5px; top:46px; width:95px; height:14px; ">코드조회</caption>
  97. <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:517px; y2:61px; "/>
  98. <datagrid id="grd_excucd" nodeset="/root/main/excucdlist/item" caption="선택^코드^코드명칭" colsep="^" colwidth="58, 124, 316" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:515px; height:480px; ">
  99. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  100. <col ref="excucd"/>
  101. <col ref="excucdnm"/>
  102. </datagrid>
  103. </group>
  104. <group id="group1" scroll="auto" style="left:0px; top:550px; width:518px; height:27px; ">
  105. <button id="btn_cfm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
  106. <caption>확인</caption>
  107. <script type="javascript" ev:event="DOMActivate">
  108. <![CDATA[
  109. if ( grd_excucd.row == 0 ) return;
  110. var openerid = opener.model.getValue("/root/send/windowloadinstance");
  111. var check = "";
  112. var loopcnt = 0;
  113. var loop = grd_excucd.rows - grd_excucd.fixedRows;
  114. var str_temp = "";
  115. var str_temp2 = "";
  116. var str_check = "";
  117. for( var i = 1 ; i <= loop ; i++ ) {
  118. check = model.getValue("/root/main/excucdlist/item[" + i + "]/check");
  119. if ( check == "Y" ) {
  120. str_temp += model.getValue("/root/main/excucdlist/item["+i+"]/excucd");
  121. str_temp2 += model.getValue("/root/main/excucdlist/item["+i+"]/excucdnm");
  122. str_temp = str_temp + " "
  123. str_temp2 = str_temp2 + " "
  124. }
  125. loopcnt++;
  126. }
  127. if ( loopcnt == 0 ) {
  128. messageBox("코드를 선택해 주십시오.","I999");
  129. return "0";
  130. }
  131. //alert(str_temp);
  132. /*switch (openerid) {
  133. case "SMAEB02000" : // 재료소모코드관리(핵의학 체내)
  134. var checkrow = opener.grd_matrcstcode.row;
  135. opener.model.setValue("/root/main/matrcstcodelist/item["+checkrow+"]/excucd", str_temp);
  136. opener.model.setValue("/root/main/matrcstcodelist/item["+checkrow+"]/excucdnm", str_temp2);
  137. break;
  138. default:
  139. break;
  140. } */
  141. switch (openerid) {
  142. case "SMAEB02000" : // 재료소모코드관리(핵의학 체내)
  143. var checkrow = opener.grd_matrcstcode.row;
  144. opener.model.setValue("/root/main/matrcstcodelist/item["+checkrow+"]/excucd", str_temp);
  145. opener.model.setValue("/root/main/matrcstcodelist/item["+checkrow+"]/excucdnm", str_temp2);
  146. break;
  147. case "SMAEB00200" : // 검사치료코드관리의 대체처방코드 컬럼, 20080702
  148. var loopcnt = 0;
  149. for( var i = 1 ; i <= loop ; i++ ) {
  150. check = model.getValue("/root/main/excucdlist/item[" + i + "]/check");
  151. if ( check == "Y" ) {
  152. str_check += model.getValue("/root/main/excucdlist/item["+i+"]/excucd");
  153. str_check = str_check + "^"
  154. }
  155. loopcnt++;
  156. }
  157. if ( loopcnt == 0 ) {
  158. messageBox("코드를 선택해 주십시오.","I999");
  159. return "0";
  160. }
  161. var checkrow = opener.grd_examcurecdlist.row-1;
  162. opener.model.setValue("/root/main/examcurecdlist/item["+checkrow+"]/angioaltprcpcd", str_check);
  163. break;
  164. case "SMAER00400" : // 결과서식의 검사코드 조건, 20090212, 장준원
  165. opener.model.setValue("/root/send/reqdata/srchexcucd", str_temp);
  166. break;
  167. default:
  168. opener.model.setValue("/root/send/excucd", str_temp);
  169. opener.model.setValue("/root/send/excucdnm", str_temp2);
  170. break;
  171. }
  172. opener.model.refresh();
  173. window.close();
  174. ]]>
  175. </script>
  176. </button>
  177. <button id="btn_cls" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
  178. <caption>닫기</caption>
  179. <close ev:event="DOMActivate"/>
  180. </button>
  181. <button id="button1" class="btn4_letter2" style="left:340px; top:4px; width:56px; height:22px; ">
  182. <caption>취소</caption>
  183. <script type="javascript" ev:event="DOMActivate">
  184. <![CDATA[
  185. var openerid = opener.model.getValue("/root/send/windowloadinstance");
  186. /*switch (openerid) {
  187. case "SMAEB02000" : submit("TRAEA02310");
  188. break;
  189. default:
  190. break;
  191. } */
  192. submit("TRAEA02310");
  193. ]]>
  194. </script>
  195. </button>
  196. </group>
  197. </xhtml:body>
  198. </xhtml:html>