SMMNE12000_외래접수환자리스트.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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. <cond>
  11. <pid/>
  12. <orddd/>
  13. <orddeptcd/>
  14. <orddrid/>
  15. <hngnm/>
  16. </cond>
  17. <outpatinfo>
  18. <outpatlist/>
  19. </outpatinfo>
  20. <patinfo>
  21. <patinfolist/>
  22. </patinfo>
  23. <send>
  24. <srchcond/>
  25. <pid/>
  26. <hngnm/>
  27. </send>
  28. <infecpatlist>
  29. <infecpatlist/>
  30. </infecpatlist>
  31. <opprcpinfo/>
  32. </main>
  33. <send>
  34. <reqdata/>
  35. <savedata/>
  36. </send>
  37. <hidden>
  38. <srchcond/>
  39. <pid/>
  40. <hngnm/>
  41. </hidden>
  42. <init>
  43. <M0062/>
  44. <P0341/>
  45. <orddept/>
  46. <userlist/>
  47. </init>
  48. <temp>
  49. <cond/>
  50. </temp>
  51. </root>
  52. </instance>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. var sOUTPATLIST_PATH = "/root/main/outpatinfo/outpatlist";
  56. model.removeNodeset(sOUTPATLIST_PATH);
  57. model.setValue("/root/main/cond/orddd", getCurrentDate());
  58. zbcfGetCodeList(new Array("M0062", "P0341"), new Array("/root/init/M0062","/root/init/P0341"));
  59. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "O");
  60. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", getUserInfo("dutplcecd"), "0330");
  61. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  62. model.setValue("/root/main/cond/orddeptcd", "2280000000"); // 응급의학과
  63. model.refresh();
  64. fOrddridList();
  65. ]]>
  66. </script>
  67. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  68. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  69. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  70. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  71. <submission id="TRMNE12000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/outpatinfo"/>
  72. </model>
  73. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/numericHelper.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="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  79. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  80. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  81. <script type="javascript">
  82. <![CDATA[
  83. function fReqOutPatList() {
  84. model.copyNode("/root/send/reqdata", "/root/main/cond");
  85. submit("TRMNE12000");
  86. }
  87. function fOrddridList() {
  88. model.removeNodeset("/root/init/userlist");
  89. model.makeNode("/root/init/userlist/usercombo");
  90. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddept.value, "0330");
  91. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  92. cmb_orddrid.select(0);
  93. model.refresh();
  94. }
  95. ]]>
  96. </script>
  97. </xhtml:head>
  98. <xhtml:body pagewidth="1120" guideline="1,0;1,1100;2,782;1,-3;" style="background-color:transparent; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  99. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:16px; width:1100px; height:34px; background-color:#fffbf2; border-color:#ffd799; "/>
  100. <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1100px; y2:80px; "/>
  101. <caption id="caption30" class="search_name" style="left:628px; top:24px; width:76px; height:17px; ">등록번호</caption>
  102. <caption id="caption14" class="search_name" style="left:6px; top:24px; width:76px; height:17px; ">진 료 일</caption>
  103. <caption id="caption26" class="search_name" style="left:193px; top:24px; width:76px; height:17px; ">진 료 과</caption>
  104. <caption id="caption29" class="search_name" style="left:442px; top:24px; width:76px; height:17px; ">진 료 의</caption>
  105. <caption id="caption2" class="tit_2" style="left:0px; top:65px; width:126px; height:13px; font-family:굴림; vertical-align:middle; ">외래환자 리스트</caption>
  106. <input id="ipt_orddd" ref="/root/main/cond/orddd" class="input" autonext="false" inputtype="date" style="left:85px; top:24px; width:90px; height:19px; "/>
  107. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" imemode="disabled" maxlength="10" isemptyformatted="false" style="left:707px; top:24px; width:90px; height:19px; ">
  108. <script type="javascript" ev:event="onkeypress">
  109. <![CDATA[
  110. inputEnterKey("btn_reqpatnm", "DOMActivate");
  111. ]]>
  112. </script>
  113. </input>
  114. <datagrid id="grd_outpatlist" nodeset="/root/main/outpatinfo/outpatlist" caption="구분^내원일시^성명^등록번호^S/A^진료과^예약구분^진료의^진단코드^진단명^오늘결과^One Stop^orddd^cretno^instcd^acptseqno^orgorddd^repltype^수납VIP사유코드^수납VIP사유^medamtpostyn^민원여부^color^orddrid" colsep="^" colwidth="50, 130, 70, 75, 55, 100, 100, 65, 85, 320, 0, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:85px; width:1100px; height:697px; text-align:center; margin-left:0; margin-right:0; ">
  115. <col disabled="true" ref="elbulbodstat" type="combo" style="text-align:center; ">
  116. <choices>
  117. <itemset nodeset="/root/init/M0062/M0062">
  118. <label ref="cdnm"/>
  119. <value ref="cdid"/>
  120. </itemset>
  121. </choices>
  122. </col>
  123. <col ref="ordddt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  124. <col ref="hngnm" style="text-align:left; "/>
  125. <col ref="pid"/>
  126. <col ref="sexage"/>
  127. <col ref="orddeptnm"/>
  128. <col disabled="true" ref="rsrvflag" type="combo">
  129. <choices>
  130. <itemset nodeset="/root/init/P0341/P0341">
  131. <label ref="cdnm"/>
  132. <value ref="cdid"/>
  133. </itemset>
  134. </choices>
  135. </col>
  136. <col ref="orddrnm" style="text-align:center; "/>
  137. <col ref="icd10cd" style="text-align:center; "/>
  138. <col ref="diagnm" style="text-align:left; "/>
  139. <col ref="prcptdayaftrcptyn"/>
  140. <col ref="onestop"/>
  141. <col ref="orddd"/>
  142. <col ref="cretno"/>
  143. <col ref="instcd"/>
  144. <col ref="orddrid" visibility="hidden"/>
  145. <script type="javascript" ev:event="onaftersort">
  146. <![CDATA[
  147. grd_outpatlist.gridToInstance();
  148. ]]>
  149. </script>
  150. </datagrid>
  151. <line id="line3" style="x1:1020px; y1:20px; x2:1020px; y2:46px; border-color:#ffe4bb; border-left-style:solid; "/>
  152. <caption id="caption6" class="search_name" style="left:816px; top:25px; width:81px; height:17px; ">성 명</caption>
  153. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_default" appearance="minimal" editmode="search" style="left:272px; top:24px; width:150px; height:19px; ">
  154. <choices>
  155. <itemset nodeset="/root/init/orddept/dept">
  156. <label ref="depthngnm"/>
  157. <value ref="deptcd"/>
  158. </itemset>
  159. </choices>
  160. <script type="javascript" ev:event="xforms-value-changed">
  161. <![CDATA[
  162. fOrddridList();
  163. ]]>
  164. </script>
  165. </select1>
  166. <input id="ipt_hngnm" ref="/root/main/cond/hngnm" class="input_search" style="left:890px; top:25px; width:90px; height:19px; ">
  167. <script type="javascript" ev:event="onkeypress">
  168. <![CDATA[
  169. if(event.keyCode == 13){
  170. model.setValue("/root/hidden/srchcond", "2");
  171. model.setValue("/root/hidden/hngnm", ipt_hngnm.currentText);
  172. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden", "/root/send");
  173. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  174. var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  175. model.setValue("/root/main/cond/pid", pid);
  176. model.setValue("/root/main/cond/hngnm", hngnm);
  177. model.refresh();
  178. }
  179. ]]>
  180. </script>
  181. </input>
  182. <button id="btn_req" class="btn1_letter2" style="left:1035px; top:25px; width:56px; height:22px; ">
  183. <caption>조회</caption>
  184. <script type="javascript" ev:event="DOMActivate">
  185. <![CDATA[
  186. fReqOutPatList();
  187. ]]>
  188. </script>
  189. </button>
  190. <button id="btn_patsrch" class="icon_search" style="left:987px; top:27px; width:16px; height:16px; ">
  191. <caption/>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. modal("SPPMC02500");
  195. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  196. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  197. model.setValue("/root/main/cond/pid", sPid);
  198. model.setValue("/root/main/cond/hngnm", sHngnm);
  199. model.refresh();
  200. ]]>
  201. </script>
  202. </button>
  203. <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" appearance="minimal" itemcount="30" style="left:521px; top:24px; width:90px; height:19px; ">
  204. <choices>
  205. <itemset nodeset="/root/init/userlist/usercombo">
  206. <label ref="usernm"/>
  207. <value ref="userid"/>
  208. </itemset>
  209. </choices>
  210. <script type="javascript" ev:event="xforms-value-changed">
  211. <![CDATA[
  212. fReqOutPatList();
  213. ]]>
  214. </script>
  215. </select1>
  216. <button id="btn_reqpatnm" disabled="true" style="left:795px; top:25px; width:25px; height:20px; ">
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. fPidTrim("/root/main/cond/pid")
  220. var pid = model.getValue("/root/main/cond/pid");
  221. if(pid == ""){
  222. return;
  223. }
  224. if(reqPatInfo("pid", "ptbs", pid)==true){
  225. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  226. model.setValue("/root/main/cond/hngnm", hngnm);
  227. model.refresh();
  228. fReqOutPatList();
  229. }
  230. model.refresh();
  231. ]]>
  232. </script>
  233. <caption/>
  234. </button>
  235. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; font-family:굴림; ">외래 환자 조회</caption>
  236. </xhtml:body>
  237. </xhtml:html>