SMPIJ01800_퇴원후외래예약검사조회.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <pidnmref>
  11. <pidnmrslt>
  12. <pidnm/>
  13. </pidnmrslt>
  14. </pidnmref>
  15. <list1>
  16. <hoprclist/>
  17. </list1>
  18. <list2>
  19. <dexoplist/>
  20. </list2>
  21. </main>
  22. <send>
  23. <reqdata>
  24. <pid/>
  25. <infromdd/>
  26. <intodd/>
  27. </reqdata>
  28. <reqdata1>
  29. <pid/>
  30. <orddd/>
  31. <cretno/>
  32. <orddeptcd/>
  33. <orddrid/>
  34. <insukind/>
  35. </reqdata1>
  36. </send>
  37. <hidden>
  38. <cond>
  39. <smpij01800>
  40. <pid/>
  41. <patnm/>
  42. <indd/>
  43. <dschdd/>
  44. </smpij01800>
  45. </cond>
  46. </hidden>
  47. <init/>
  48. <temp/>
  49. </root>
  50. </instance>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. fInitialize(); // 화면을 초기화한다.
  54. ]]>
  55. </script>
  56. <submission id="TRPIJ01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list1"/>
  57. <submission id="TRPIJ01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/pidnmref"/>
  58. <submission id="TRPIJ01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata1" resultref="/root/main/list2"/>
  59. </model>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  64. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript">
  68. <![CDATA[
  69. function fCheckOpener() {
  70. // var pid = model.getValue("/root/hidden/cond/smpij01800/pid");
  71. // var indd = model.getValue("/root/hidden/cond/smpij01800/indd");
  72. // var dschdd = model.getValue("/root/hidden/cond/smpij01800/dschdd");
  73. model.removeNodeset("/root/main/list1/hopclist");
  74. model.removeNodeset("/root/main/list2/dexoplist");
  75. model.setValue("/root/send/reqdata/pid", model.getValue("/root/hidden/cond/smpij01800/pid"));
  76. model.setValue("/root/main/pidnmref/pidnmrslt/pidnm", model.getValue("/root/hidden/cond/smpij01800/patnm"));
  77. model.setValue("/root/send/reqdata/infromdd",model.getValue("/root/hidden/cond/smpij01800/indd"));
  78. model.setValue("/root/send/reqdata/intodd",model.getValue("/root/hidden/cond/smpij01800/dschdd"));
  79. submit("TRPIJ01801");
  80. model.refresh();
  81. }
  82. function fInitialize() {
  83. model.removeNodeset("/root/main/list1/hopclist");
  84. model.removeNodeset("/root/main/list2/dexoplist");
  85. model.resetInstanceNode("/root/send/reqdata/pid");
  86. model.resetInstanceNode("/root/send/reqdata/patnm");
  87. model.resetInstanceNode("/root/send/reqdata/infromdd");
  88. model.resetInstanceNode("/root/send/reqdata/intodd");
  89. model.resetInstanceNode("/root/main/pidnmref/pidnmrslt/pidnm");
  90. model.setValue("/root/send/reqdata/infromdd",getCurrentDate());
  91. model.setValue("/root/send/reqdata/intodd",getCurrentDate());
  92. model.refresh();
  93. }
  94. function fDschAftOutSrv() {
  95. model.removeNodeset("/root/main/list1/hopclist");
  96. model.removeNodeset("/root/main/list2/dexoplist");
  97. var pid = model.getValue("/root/send/reqdata/pid");
  98. var pidnm = model.getValue("/root/main/pidnmref/pidnmrslt/pidnm");
  99. var infromdd = model.getValue("/root/send/reqdata/infromdd");
  100. var intodd = model.getValue("/root/send/reqdata/intodd");
  101. if(infromdd > intodd) {
  102. messageBox("시작일은 종료일보다 앞설 수","I004");
  103. return false;
  104. }
  105. submit("TRPIJ01801");
  106. }
  107. function fRefPidnm() {
  108. var pid = model.getValue("/root/send/reqdata/pid");
  109. if(pid == "") {
  110. messageBox("환자번호를","C001");
  111. return;
  112. } else {
  113. submit("TRPIJ01802");
  114. }
  115. }
  116. function fChkPidnm() {
  117. fRefPidnm();
  118. }
  119. ]]>
  120. </script>
  121. </xhtml:head>
  122. <xhtml:body pagewidth="1202" pageheight="715" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  123. <group id="group1" style="left:0px; top:0px; width:813px; height:13px; ">
  124. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:269px; height:14px; ">퇴원후외래예약검사조회</caption>
  125. </group>
  126. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1186px; height:675px; ">
  127. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1186px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  128. <button id="btn_ref" class="btn1_letter2" navindex="4" style="left:1115px; top:17px; width:56px; height:22px; ">
  129. <caption>조회</caption>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[
  132. fDschAftOutSrv();
  133. ]]>
  134. </script>
  135. </button>
  136. <line id="line13" style="x1:1100px; y1:17px; x2:1100px; y2:39px; border-color:#ffe4bb; border-left-style:solid; "/>
  137. <caption id="caption3" class="tit_2" style="left:311px; top:55px; width:212px; height:13px; ">퇴원후외래예약검사</caption>
  138. <line id="line1" class="line_1" style="x1:305px; y1:70px; x2:1185px; y2:70px; "/>
  139. <caption id="caption1" class="search_name" style="left:15px; top:19px; width:81px; height:17px; ">환자번호:</caption>
  140. <caption id="caption4" class="search_name" style="left:319px; top:19px; width:93px; height:17px; ">입원기간 :</caption>
  141. <input id="ipt_intodd" ref="/root/send/reqdata/intodd" class="input_search" navindex="3" inputtype="date" style="left:529px; top:18px; width:100px; height:19px; "/>
  142. <caption id="caption5" style="left:513px; top:22px; width:15px; height:15px; ">~</caption>
  143. <input id="ipt_infromdd" ref="/root/send/reqdata/infromdd" class="input_search" navindex="2" inputtype="date" style="left:408px; top:18px; width:100px; height:19px; "/>
  144. <input id="ipt_pid" ref="/root/send/reqdata/pid" class="input_search" navindex="1" inputtype="button" maxlength="10" style="left:99px; top:18px; width:116px; height:19px; ">
  145. <script type="javascript" ev:event="onbuttonclick">
  146. <![CDATA[
  147. fRefPidnm();
  148. ]]>
  149. </script>
  150. <script type="javascript" ev:event="onkeydown">
  151. <![CDATA[
  152. if(event.keyCode == 13) {
  153. setInputNodeCurText();
  154. fChkPidnm();
  155. }
  156. ]]>
  157. </script>
  158. </input>
  159. <output id="opt_patnm" ref="/root/main/pidnmref/pidnmrslt/pidnm" class="output_fix" style="left:218px; top:18px; width:80px; height:19px; "/>
  160. <line id="line8" class="line_1" style="x1:0px; y1:70px; x2:300px; y2:70px; "/>
  161. <datagrid id="grd_hoprc" nodeset="/root/main/list1/hoprclist" caption="환자번호^외래예약일자^진료과코드^진료과^진료의코드^진료의^보험유형^입원일자^입원일련번호" colsep="^" colwidth="0, 95, 0, 91, 0, 90, 80, 100, 100" dataheight="23" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:75px; width:300px; height:600px; ">
  162. <col ref="pid" visibility="hidden"/>
  163. <col ref="outorddd" format="yyyy-mm-dd" style="text-align:center; "/>
  164. <col ref="orddeptcd" visibility="hidden"/>
  165. <col ref="orddeptnm"/>
  166. <col ref="orddrid" visibility="hidden"/>
  167. <col ref="orddrnm"/>
  168. <col ref="insukind" visibility="hidden"/>
  169. <col ref="orddd" visibility="hidden"/>
  170. <col ref="cretno" visibility="hidden"/>
  171. <script type="javascript" ev:event="onclick">
  172. <![CDATA[
  173. if(grd_hoprc.isCell(event.target) && grd_hoprc.row >= grd_hoprc.fixedRows) {
  174. var row = grd_hoprc.row ;
  175. model.setValue("/root/send/reqdata1/pid",grd_hoprc.valueMatrix(row, grd_hoprc.colRef("pid")));
  176. model.setValue("/root/send/reqdata1/orddd",grd_hoprc.valueMatrix(row, grd_hoprc.colRef("orddd")));
  177. model.setValue("/root/send/reqdata1/cretno",grd_hoprc.valueMatrix(row, grd_hoprc.colRef("cretno")));
  178. model.setValue("/root/send/reqdata1/orddeptcd",grd_hoprc.valueMatrix(row, grd_hoprc.colRef("orddeptcd")));
  179. model.setValue("/root/send/reqdata1/orddrid",grd_hoprc.valueMatrix(row, grd_hoprc.colRef("orddrid")));
  180. model.setValue("/root/send/reqdata1/insukind",grd_hoprc.valueMatrix(row, grd_hoprc.colRef("insukind")));
  181. // 외래미시행처방 미시행 오더 조회
  182. submit("TRPIJ01803");
  183. }
  184. ]]>
  185. </script>
  186. <script type="javascript" ev:event="onaftersort">
  187. <![CDATA[
  188. grd_hoprc.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  189. ]]>
  190. </script>
  191. </datagrid>
  192. <caption id="caption15" class="tit_2" style="left:5px; top:55px; width:43px; height:13px; ">일자</caption>
  193. <datagrid id="grd_dexop" nodeset="/root/main/list2/dexoplist" visibility="visible" caption="G^처방코드^EDI코드^처방명^급^투여량^횟수^일수^처방일자" colsep="^" colwidth="25, 100, 100, 320, 50, 60, 50, 50, 90" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:305px; top:75px; width:880px; height:600px; ">
  194. <col ref="grupsnglyn" style="text-align:center; "/>
  195. <col ref="calcscorcd"/>
  196. <col ref="edicd"/>
  197. <col ref="ordnm"/>
  198. <col ref="payflagcd" style="text-align:center; "/>
  199. <col ref="execprcpqty" format="#,###.00" style="text-align:right; "/>
  200. <col ref="execprcptims" format="#,###" style="text-align:right; "/>
  201. <col ref="execprcpdayno" format="#,###" style="text-align:right; "/>
  202. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  203. </datagrid>
  204. </group>
  205. <!-- 20070622 1347-->
  206. <group id="group2" style="left:0px; top:688px; width:1186px; height:27px; ">
  207. <button id="btn_init" class="btn4_letter3" navindex="9" style="left:1058px; top:5px; width:68px; height:22px; ">
  208. <caption>초기화</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. fInitialize();
  212. ]]>
  213. </script>
  214. </button>
  215. <button id="btn_close" class="btn4_letter2" navindex="10" style="left:1129px; top:5px; width:56px; height:22px; ">
  216. <caption>닫기</caption>
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. window.close(); // F5 실행시 IE를 종료시킨다.
  220. ]]>
  221. </script>
  222. </button>
  223. </group>
  224. </xhtml:body>
  225. </xhtml:html>