SMABO01300_입원예정.xrw 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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>BMT 입원예정자 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <inschepsnlist>
  11. <item>
  12. <trnptwardcd/>
  13. <trnptroomcd/>
  14. <deptcd/>
  15. <pid/>
  16. <hngnm/>
  17. <rrgstno/>
  18. <sex/>
  19. <age/>
  20. <inschedd/>
  21. <indd/>
  22. <atdoctid/>
  23. </item>
  24. </inschepsnlist>
  25. <hsctinfo>
  26. <patinfolist>
  27. <hngnm/>
  28. <rrgstno1/>
  29. <age/>
  30. <sex/>
  31. <pid/>
  32. <rrgstno2/>
  33. </patinfolist>
  34. </hsctinfo>
  35. <popupendflag/>
  36. </main>
  37. <init>
  38. <cmbinfo>
  39. <trnptwardcd>
  40. <A0479>
  41. <cdid/>
  42. <cdnm/>
  43. </A0479>
  44. </trnptwardcd>
  45. <trnptroomcd>
  46. <A0480>
  47. <cdid/>
  48. <cdnm/>
  49. </A0480>
  50. </trnptroomcd>
  51. <sex>
  52. <P0313>
  53. <cdid/>
  54. <cdnm/>
  55. </P0313>
  56. </sex>
  57. </cmbinfo>
  58. </init>
  59. <send>
  60. <req>
  61. <inschefromdd/>
  62. <inschetodd/>
  63. <trnptwardcd/>
  64. <trnptroomcd/>
  65. <pid/>
  66. </req>
  67. </send>
  68. <temp>
  69. <bmtpatientinfo/>
  70. <tempcodeinfo/>
  71. <tempcodeinfo2/>
  72. </temp>
  73. </root>
  74. </instance>
  75. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  77. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  78. <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  80. <script type="javascript" ev:event="xforms-ready">
  81. <![CDATA[
  82. // 공통코드 가져오기
  83. //zbcfGetCodeList( new Array("A0479", "A0480", "P0313"), new Array("/root/init/cmbinfo/trnptwardcd", "/root/init/cmbinfo/trnptroomcd", "/root/init/cmbinfo/sex") );
  84. zbcfGetCodeList( new Array("P0313"), new Array("/root/init/cmbinfo/sex") );
  85. //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
  86. // aboGetCodeList(new Array("A0479", "A0480"), new Array("/root/init/cmbinfo/trnptwardcd", "/root/init/cmbinfo/trnptroomcd") );
  87. model.setValue("/root/send/req/inschefromdd", getCurrentDate().toDate().getAddDate(-0,"M").getDateFormat("YYYYMMDD"));
  88. model.setValue("/root/send/req/inschetodd", getCurrentDate());
  89. model.refresh()
  90. // 파라미터로 넘어온 것 (등록번호)이 있는지 체크한다.
  91. if ( checkOpener()) {
  92. var param = opener.javascript.getParameter("opener_parameter_id");
  93. if(param != "") // opener parameter value가 있는 경우
  94. {
  95. //parameter value를 이용하여 프로그램 수행
  96. condarray = param.split("▦");
  97. model.setValue("/root/send/req/pid", condarray[0]);
  98. return;
  99. }
  100. }
  101. // Opener에서 받은 파라미터가 없으면 Top 정보를 참조한다.
  102. var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
  103. if ( paminfo != "" ) {
  104. model.removeNodeset("/root/temp/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
  105. model.makeNode("/root/temp/paminfo");
  106. setCSVToNode("/root/temp/paminfo", paminfo);
  107. //상단 정보를 이용하여 프로그램 수행
  108. var pid = model.getValue("/root/temp/paminfo" + "/list/pid");
  109. model.setValue("/root/send/req/pid", pid);
  110. } else {
  111. //세션에 저장된 PID정보를 가져옴.
  112. var gv_pid = getGlobalVariable("gv_pid", "A");
  113. if(gv_pid != "") {
  114. model.setValue("/root/send/req/pid", gv_pid);
  115. }
  116. }
  117. model.refresh();
  118. ]]>
  119. </script>
  120. <submission id="TRABO01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/inschepsnlist"/>
  121. <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tempcodeinfo"/>
  122. </model>
  123. </xhtml:head>
  124. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  125. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  126. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">입원 예정</caption>
  127. </group>
  128. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  129. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:91px; height:13px; ">입원 예정</caption>
  130. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  131. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  132. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  133. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:138px; height:17px; ">기간(입원예정일) :</caption>
  134. <caption id="caption5" class="search_no_b" style="left:257px; top:10px; width:12px; height:17px; ">~</caption>
  135. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  136. <input id="input1" ref="/root/send/req/inschefromdd" class="input_s_essential" inputtype="date" style="left:154px; top:8px; width:100px; height:19px; "/>
  137. <input id="input25" ref="/root/send/req/inschetodd" class="input_s_essential" inputtype="date" style="left:272px; top:8px; width:100px; height:19px; "/>
  138. <caption id="caption3" class="search_name" style="left:390px; top:9px; width:60px; height:17px; ">Unit :</caption>
  139. <select1 id="combo1" ref="/root/send/req/trnptwardcd" class="combo_search" appearance="minimal" style="left:453px; top:8px; width:100px; height:19px; ">
  140. <choices>
  141. <itemset nodeset="/root/init/cmbinfo/trnptwardcd/A0479">
  142. <label ref="cdnm"/>
  143. <value ref="cdid"/>
  144. </itemset>
  145. </choices>
  146. </select1>
  147. <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  148. <caption>조회</caption>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. submit("TRABO01301");
  152. ]]>
  153. </script>
  154. </button>
  155. <select1 id="combo2" ref="/root/send/req/trnptroomcd" class="combo_search" appearance="minimal" style="left:634px; top:8px; width:100px; height:19px; ">
  156. <choices>
  157. <itemset nodeset="/root/init/cmbinfo/trnptroomcd/A0480">
  158. <label ref="cdnm"/>
  159. <value ref="cdid"/>
  160. </itemset>
  161. </choices>
  162. </select1>
  163. <caption id="caption4" class="search_name" style="left:571px; top:9px; width:60px; height:17px; ">병실 :</caption>
  164. <input id="ipt_pid" ref="/root/send/req/pid" class="input_essential" editable="true" inputtype="button" maxlength="10" style="left:841px; top:8px; width:100px; height:19px; ">
  165. <script type="javascript" ev:event="onkeyup">
  166. <![CDATA[
  167. inputEnterKey("btn_sea", "DOMActivate");
  168. ]]>
  169. </script>
  170. <script type="javascript" ev:event="xforms-next">
  171. <![CDATA[
  172. model.setFocus( "ipt_pid");
  173. ]]>
  174. </script>
  175. <script type="javascript" ev:event="onbuttonclick">
  176. <![CDATA[
  177. abofGetBmtPatientSearch("/root/main/hsctinfo/patinfolist", "/root/temp/bmtpatientinfo");
  178. model.setValue("/root/send/req/pid", model.getValue("/root/main/hsctinfo/patinfolist/pid"));
  179. ipt_pid.refresh();
  180. ]]>
  181. </script>
  182. </input>
  183. <caption id="caption16" class="search_name" style="left:752px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  184. </group>
  185. <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:50px; width:64px; height:19px; ">
  186. <caption>엑셀저장</caption>
  187. <script type="javascript" ev:event="DOMActivate">
  188. <![CDATA[
  189. var fileName = window.fileDialog("save", ",", false, "입원예정", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  190. if (fileName != "")
  191. {
  192. grd_inschepsnlist.saveExcel(fileName);
  193. }
  194. ]]>
  195. </script>
  196. </button>
  197. <datagrid id="grd_inschepsnlist" nodeset="/root/main/inschepsnlist/item" class="datagrid1" caption="Unit^병실^진료과^등록번호^환자명^주민등록번호^성별^나이^입원예정일^원무입원일^주치의" colsep="^" colwidth="78, 60, 150, 100, 100, 150, 100, 80, 100, 100, 100" dataheight="25" defaultrows="3" explorerbar="sortshow" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1194px; height:664px; text-align:center; ">
  198. <col ref="trnptwardcd" type="output"/>
  199. <col ref="trnptroomcd" type="output"/>
  200. <col ref="deptcd" type="output"/>
  201. <col ref="pid" type="output"/>
  202. <col ref="hngnm"/>
  203. <col ref="rrgstno"/>
  204. <col ref="sex" type="combo">
  205. <choices>
  206. <itemset nodeset="/root/init/cmbinfo/sex/P0313">
  207. <label ref="cdnm"/>
  208. <value ref="cdid"/>
  209. </itemset>
  210. </choices>
  211. </col>
  212. <col ref="age"/>
  213. <col ref="inschedd" format="yyyy-mm-dd" style="text-align:center; "/>
  214. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  215. <col ref="atdoctid"/>
  216. <script type="javascript" ev:event="onaftersort">
  217. <![CDATA[
  218. grd_inschepsnlist.gridToInstance();
  219. ]]>
  220. </script>
  221. </datagrid>
  222. </group>
  223. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  224. <button id="btn_save" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  225. <caption>출력</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. exeReportPreview("RPABO01301", "XMLSTR", "/root/main/inschepsnlist");
  229. ]]>
  230. </script>
  231. </button>
  232. </group>
  233. </xhtml:body>
  234. </xhtml:html>