SPMQR03100_환자별진료대기시간.xrw 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <search>
  11. <fromdd/>
  12. <todd/>
  13. <orddeptcd/>
  14. <orddrid/>
  15. <ampmflag>AM</ampmflag>
  16. <offset/>
  17. <pagesize>10000</pagesize>
  18. </search>
  19. <ordwaitlist>
  20. <ordwaitlistinfo>
  21. <pid/>
  22. <orddd/>
  23. <depthngnm/>
  24. <usernm/>
  25. <specordyn/>
  26. <ordtm/>
  27. <nursacptdt/>
  28. <ordstartdt/>
  29. <dracptdt/>
  30. </ordwaitlistinfo>
  31. </ordwaitlist>
  32. </main>
  33. <init>
  34. <dept>
  35. <dept/>
  36. </dept>
  37. <userlist/>
  38. <resultref/>
  39. </init>
  40. <send>
  41. <reqdata/>
  42. </send>
  43. </root>
  44. </instance>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. fInitialize();
  48. ]]>
  49. </script>
  50. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  51. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  52. <submission id="TRMQR03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/search" add="bottom" resultref="/root/main/ordwaitlist"/>
  53. </model>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  58. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  59. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  60. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  61. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  64. <script type="javascript" src="../../../emr/qiweb/js/SPMQR03100.js"/>
  65. </xhtml:head>
  66. <xhtml:body style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  67. <caption id="caption3" class="tit_1" style="left:0px; top:0px; width:230px; height:13px; ">진료대기시간관리 - 환자별리스트</caption>
  68. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:21px; width:1168px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  69. <caption id="caption1" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">조회기간</caption>
  70. <input id="ipt_fromdd" ref="/root/main/search/fromdd" class="input_s_essential" inputtype="date" style="left:90px; top:30px; width:100px; height:19px; ">
  71. <script type="javascript" ev:event="xforms-value-changed">
  72. <![CDATA[
  73. // 날짜 Validation Check
  74. if(ipt_fromdd.value !="")
  75. {
  76. if(ipt_fromdd.value > ipt_todd.value)
  77. {
  78. messageBox("종료일 이전 날자만 입력","I006");
  79. ipt_fromdd.value = getCurrentDate();
  80. }
  81. }
  82. ]]>
  83. </script>
  84. </input>
  85. <caption id="caption2" style="left:195px; top:30px; width:15px; height:20px; ">~</caption>
  86. <input id="ipt_todd" ref="/root/main/search/todd" class="input_s_essential" inputtype="date" style="left:215px; top:30px; width:100px; height:19px; ">
  87. <script type="javascript" ev:event="xforms-value-changed">
  88. <![CDATA[
  89. // 날짜 Validation Check
  90. if(ipt_todd.value !="")
  91. {
  92. if(ipt_fromdd.value > ipt_todd.value)
  93. {
  94. messageBox("시작일 이후 날자만 입력","I006");
  95. ipt_todd.value = getCurrentDate();
  96. }
  97. }
  98. ]]>
  99. </script>
  100. </input>
  101. <caption id="caption26" class="search_name" style="left:330px; top:30px; width:86px; height:17px; ">진료과</caption>
  102. <select1 id="cmb_orddeptcd" ref="/root/main/search/orddeptcd" class="combo_s_essential" appearance="minimal" style="left:395px; top:30px; width:100px; height:19px; ">
  103. <choices>
  104. <itemset nodeset="/root/init/dept/dept">
  105. <label ref="depthngnm"/>
  106. <value ref="deptcd"/>
  107. </itemset>
  108. </choices>
  109. <script type="javascript" ev:event="xforms-value-changed">
  110. <![CDATA[
  111. if(model.getValue("/root/main/search/orddeptcd") == "") {
  112. model.removeNodeset("/root/main/search/orddrid");
  113. model.makeNode("/root/main/search/orddrid");
  114. }
  115. model.removeNodeset("/root/init/userlist");
  116. model.makeNode("/root/init/userlist/usercombo");
  117. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddeptcd.value, "0330");
  118. addComboInstance("/root/init/userlist", "userid^usernm", "^전체", "usercombo"); //의사콤보 전체항목 추가
  119. cmb_orddrid.select(1);
  120. model.refresh();
  121. ]]>
  122. </script>
  123. </select1>
  124. <caption id="caption29" class="search_name" style="left:506px; top:30px; width:86px; height:17px; ">진료의</caption>
  125. <select1 id="cmb_orddrid" ref="/root/main/search/orddrid" class="combo_s_essential" appearance="minimal" style="left:575px; top:30px; width:100px; height:19px; ">
  126. <choices>
  127. <itemset nodeset="/root/init/userlist/usercombo">
  128. <label ref="usernm"/>
  129. <value ref="userid"/>
  130. </itemset>
  131. </choices>
  132. </select1>
  133. <select1 id="rdo_ampm" ref="/root/main/search/ampmflag" appearance="full" cols="3" overflow="visible" style="left:695px; top:30px; width:210px; height:20px; border-style:none; ">
  134. <choices>
  135. <item>
  136. <label>오전</label>
  137. <value>AM</value>
  138. </item>
  139. <item>
  140. <label>오후</label>
  141. <value>PM</value>
  142. </item>
  143. <item>
  144. <label>오전-당일접수제외</label>
  145. <value>EX</value>
  146. </item>
  147. </choices>
  148. </select1>
  149. <line id="line2" style="x1:1090px; y1:25px; x2:1090px; y2:51px; border-color:#ffcc99; "/>
  150. <button id="btn_search" class="btn1_letter2" style="left:1106px; top:28px; width:56px; height:22px; ">
  151. <caption>조회</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. var fromdd = ipt_fromdd.value;
  155. var todd = ipt_todd.value;
  156. var dateInterval = getDateInterval(fromdd, todd, "dd");
  157. if(dateInterval > 30) {
  158. messageBox("한달 이상은 조회를", "E001");
  159. }
  160. if(ipt_todd.value == "" || ipt_fromdd.value == "") {
  161. messageBox("날짜는", "I003");
  162. ipt_todd.value = getCurrentDate();
  163. ipt_fromdd.value = getCurrentDate();
  164. return;
  165. }
  166. fGetOrdWaitlistPat();
  167. ]]>
  168. </script>
  169. </button>
  170. <datagrid id="grd_ordwaitlist" nodeset="/root/main/ordwaitlist/ordwaitlistinfo" caption="등록번호^진료일자^진료과^의사^선택진료여부^예약시간^환자도착시간^진료시작시간^진료종료시간" colsep="^" colwidth="100, 120, 110, 100, 100, 110, 120, 120, 120" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:88px; width:1168px; height:678px; ">
  171. <col ref="pid" style="text-align:center; "/>
  172. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  173. <col ref="depthngnm" style="text-align:center; "/>
  174. <col ref="usernm" style="text-align:center; "/>
  175. <col ref="specordyn" style="text-align:center; "/>
  176. <col ref="ordtm" format="hh:nn" style="text-align:center; "/>
  177. <col ref="nursacptdt" format="hh:nn:ss" style="text-align:center; "/>
  178. <col ref="ordstartdt" format="hh:nn:ss" style="text-align:center; "/>
  179. <col ref="dracptdt" format="hh:nn:ss" style="text-align:center; "/>
  180. <script type="javascript" ev:event="onaftersort">
  181. <![CDATA[
  182. grd_ordwaitlist.gridToInstance();
  183. ]]>
  184. </script>
  185. <script type="javascript" ev:event="onscrolldown">
  186. <![CDATA[
  187. if(grd_ordwaitlist.vscroll.attribute("max") == grd_ordwaitlist.vscroll.attribute("pos")) {
  188. model.setValue("/root/main/search/offset", grd_ordwaitlist.rows-grd_ordwaitlist.fixedRows); // grid의 header row는 제외
  189. submit("TRMQR03002");
  190. grd_ordwaitlist.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
  191. }
  192. ]]>
  193. </script>
  194. </datagrid>
  195. <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1167px; y2:85px; "/>
  196. <button id="button1" class="btn2_letter4" style="left:1100px; top:61px; width:64px; height:19px; ">
  197. <caption>엑셀저장</caption>
  198. <script type="javascript" ev:event="DOMActivate">
  199. <![CDATA[
  200. var selectValue1 = true;
  201. var selectValue2 = 1;
  202. var today = getCurrentDate();
  203. var fileName = window.fileDialog("save", ",", false, "진료대기시간(환자별)_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  204. if (fileName != ""){
  205. grd_ordwaitlist.saveExcel(fileName, "sheetname:sheet1");
  206. }
  207. ]]>
  208. </script>
  209. </button>
  210. </xhtml:body>
  211. </xhtml:html>