SMMND04500_구역별환자배정.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>HD Scheduling</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <rsrvdd/>
  12. </cond>
  13. <dialareapatinfo>
  14. <dialpatlist1>
  15. <dialseatflag/>
  16. <hngnm1/>
  17. <hngnm2/>
  18. <hngnm3/>
  19. <dialareaflag/>
  20. <instcd/>
  21. </dialpatlist1>
  22. <dialpatlist2>
  23. <dialseatflag/>
  24. <hngnm1/>
  25. <hngnm2/>
  26. <hngnm3/>
  27. <dialareaflag/>
  28. <instcd/>
  29. </dialpatlist2>
  30. <dialpatlist3>
  31. <dialseatflag/>
  32. <hngnm1/>
  33. <hngnm2/>
  34. <hngnm3/>
  35. <dialareaflag/>
  36. <instcd/>
  37. </dialpatlist3>
  38. <dialpatlist4>
  39. <dialseatflag/>
  40. <hngnm1/>
  41. <hngnm2/>
  42. <hngnm3/>
  43. <dialareaflag/>
  44. <instcd/>
  45. </dialpatlist4>
  46. <dialpatlist5>
  47. <dialseatflag/>
  48. <hngnm1/>
  49. <hngnm2/>
  50. <hngnm3/>
  51. <dialareaflag/>
  52. <instcd/>
  53. </dialpatlist5>
  54. </dialareapatinfo>
  55. <dutyinfo>
  56. <dutylist>
  57. <dutycd/>
  58. <emplnm/>
  59. <emplno/>
  60. </dutylist>
  61. </dutyinfo>
  62. <areadutyinfo>
  63. <areadutylist>
  64. <dutycd/>
  65. <emplno/>
  66. <emplnm/>
  67. <instcd/>
  68. <dialseatflag/>
  69. <dialareaflag/>
  70. <hngnm1/>
  71. <hngnm2/>
  72. <hngnm3/>
  73. <hngnm1_1/>
  74. <hngnm1_2/>
  75. <hngnm1_3/>
  76. <dialseatflag_1/>
  77. <dialareaflag_1/>
  78. </areadutylist>
  79. </areadutyinfo>
  80. </main>
  81. <send>
  82. <reqdata>
  83. <rsrvdd/>
  84. </reqdata>
  85. </send>
  86. <init>
  87. </init>
  88. <hidden>
  89. </hidden>
  90. <temp>
  91. </temp>
  92. </root>
  93. </instance>
  94. <script type="javascript" ev:event="xforms-ready">
  95. <![CDATA[
  96. model.setValue(ipt_rsrvdd.attribute("ref"), getCurrentDate() );
  97. ipt_rsrvdd.refresh();
  98. fSearch();
  99. fSearchDutyInfo();
  100. ]]>
  101. </script>
  102. <submission id="TRMND04501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dialareapatinfo"/>
  103. <submission id="TRMND04502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dutyinfo"/>
  104. <submission id="TRMND04503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/areadutyinfo"/>
  105. </model>
  106. <script type="javascript">
  107. <![CDATA[
  108. function fSearch() {
  109. model.setValue("/root/send/reqdata/rsrvdd", model.getValue(ipt_rsrvdd.attribute("ref")) );
  110. submit("TRMND04501");
  111. }
  112. function fSearchDutyInfo() {
  113. model.makeValue("/root/send/reqdata/workym", model.getValue(ipt_rsrvdd.attribute("ref")).substr(0, 6) );
  114. model.makeValue("/root/send/reqdata/workdd", model.getValue(ipt_rsrvdd.attribute("ref")));
  115. model.makeValue("/root/send/reqdata/appscheexecflag", "3");
  116. submit("TRMND04502");
  117. }
  118. function fPrint(flag) {
  119. var PATH = "/root/tmp/tempinfo/arealist";
  120. var dd = model.getValue(ipt_rsrvdd.attribute("ref"));
  121. var dt = new Date(dd.substr(0,4), Number(dd.substr(4,2)) -1, dd.substr(6,2));
  122. var week = dt.getDayOfWeek("K");
  123. model.makeNode(PATH);
  124. model.makeNode("/root/send/printdata");
  125. model.makeNode("/root/send/printdata/dutylist");
  126. copyNodesetType(PATH , "/root/main/dialareapatinfo/dialpatlist1");
  127. copyNodesetType(PATH, "/root/main/dialareapatinfo/dialpatlist2", "after");
  128. copyNodesetType(PATH, "/root/main/dialareapatinfo/dialpatlist3", "after");
  129. copyNodesetType(PATH, "/root/main/dialareapatinfo/dialpatlist4", "after");
  130. copyNodesetType(PATH, "/root/main/dialareapatinfo/dialpatlist5", "after");
  131. if(flag == "1") {
  132. } else if(flag =="2") {
  133. model.makeValue("/root/send/reqdata/workdd", model.getValue(ipt_rsrvdd.attribute("ref")) );
  134. model.makeValue("/root/send/reqdata/workym", model.getValue(ipt_rsrvdd.attribute("ref")).substr(0, 6) );
  135. submit("TRMND04503");
  136. }
  137. if(flag == "1") {
  138. model.copynode("/root/send/printdata", "/root/tmp/tempinfo");
  139. model.makeValue("/root/send/printdata/rsrvdd", model.getValue(ipt_rsrvdd.attribute("ref")));
  140. model.makeValue("/root/send/printdata/week", week);
  141. exeReportPreview("RPMND04501", "XMLSTR", "", "", "", "", "", "", "");
  142. } else if(flag == "2") {
  143. model.copyNode("/root/send/printdata", "/root/main/areadutyinfo");
  144. model.makeValue("/root/send/printdata/rsrvdd", model.getValue(ipt_rsrvdd.attribute("ref")));
  145. model.makeValue("/root/send/printdata/week", week);
  146. exeReportPreview("RPMND04502", "XMLSTR", "", "", "", "", "", "", "");
  147. }
  148. }
  149. ]]>
  150. </script>
  151. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  153. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  154. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  155. </xhtml:head>
  156. <xhtml:body guideline="1,1211;1,1195;2,756;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  157. <datagrid id="grd_dialpatlist1" nodeset="/root/main/dialareapatinfo/dialpatlist1" class="datagrid2" caption="자리^Shift1^Shift2^shift3^구역^기관코드" colsep="^" colwidth="28, 55, 55, 55, 33, 36" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:80px; width:211px; height:676px; ">
  158. <col ref="dialseatflag"/>
  159. <col ref="hngnm1"/>
  160. <col ref="hngnm2"/>
  161. <col ref="hngnm3"/>
  162. <col ref="dialareaflag" visibility="hidden"/>
  163. <col ref="instcd" visibility="hidden"/>
  164. </datagrid>
  165. <datagrid id="datagrid6" nodeset="/root/main/dutyinfo/dutylist" caption="구역^간호사" colsep="^" colwidth="35, 60" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1082px; top:80px; width:113px; height:676px; ">
  166. <col ref="dutycd"/>
  167. <col ref="emplnm"/>
  168. </datagrid>
  169. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:211px; y2:75px; "/>
  170. <caption id="caption1" class="tit_2" style="left:5px; top:61px; width:60px; height:13px; ">A구역</caption>
  171. <caption id="caption2" class="tit_2" style="left:220px; top:60px; width:60px; height:13px; ">B구역</caption>
  172. <caption id="caption3" class="tit_2" style="left:435px; top:60px; width:60px; height:13px; ">C구역</caption>
  173. <caption id="caption4" class="tit_2" style="left:650px; top:60px; width:60px; height:13px; ">D구역</caption>
  174. <caption id="caption5" class="tit_2" style="left:865px; top:60px; width:60px; height:13px; ">E구역</caption>
  175. <line id="line2" class="line_1" style="x1:1082px; y1:75px; x2:1195px; y2:75px; "/>
  176. <caption id="caption6" class="tit_2" style="left:1087px; top:61px; width:82px; height:13px; ">간호사배정</caption>
  177. <line id="line3" class="line_1" style="x1:215px; y1:75px; x2:426px; y2:75px; "/>
  178. <line id="line4" class="line_1" style="x1:430px; y1:75px; x2:641px; y2:75px; "/>
  179. <line id="line5" class="line_1" style="x1:645px; y1:75px; x2:856px; y2:75px; "/>
  180. <line id="line6" class="line_1" style="x1:860px; y1:75px; x2:1071px; y2:75px; "/>
  181. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  182. <caption id="cpt_HDTitle" class="tit_1" style="left:0px; top:0px; width:195px; height:14px; ">구역별환자배정</caption>
  183. </group>
  184. <group id="group2" style="left:0px; top:18px; width:1193px; height:35px; vertical-align:top; ">
  185. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  186. <caption id="caption7" class="search_name" style="left:16px; top:9px; width:89px; height:17px; ">예약일자 :</caption>
  187. <button id="btn_srchhdpatinfo" class="btn1_letter2" style="left:1116px; top:7px; width:56px; height:22px; ">
  188. <caption>조회</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. fSearch();
  192. fSearchDutyInfo();
  193. ]]>
  194. </script>
  195. </button>
  196. <input id="ipt_rsrvdd" ref="/root/main/cond/rsrvdd" class="input_s_essential" inputtype="date" style="left:105px; top:8px; width:95px; height:19px; ">
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. fSearch();
  200. fSearchDutyInfo();
  201. ]]>
  202. </script>
  203. </input>
  204. <line id="line7" class="line_4" style="x1:955px; y1:9px; x2:955px; y2:26px; border-color:#ffe4bb; border-left-style:solid; "/>
  205. <button id="button1" class="btn1_letter3" style="left:974px; top:7px; width:68px; height:22px; ">
  206. <caption>출력1</caption>
  207. <script type="javascript" ev:event="DOMActivate">
  208. <![CDATA[
  209. fPrint("1");
  210. ]]>
  211. </script>
  212. </button>
  213. <button id="button2" class="btn1_letter3" style="left:1045px; top:7px; width:68px; height:22px; ">
  214. <caption>출력2</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. fPrint("2");
  218. ]]>
  219. </script>
  220. </button>
  221. </group>
  222. <datagrid id="grd_dialpatlist2" nodeset="/root/main/dialareapatinfo/dialpatlist2" class="datagrid2" caption="자리^Shift1^Shift2^shift3^구역^기관코드" colsep="^" colwidth="28, 55, 55, 55, 33, 36" mergecellsfixedrows="bycolrec" rowsep="|" style="left:215px; top:80px; width:211px; height:676px; ">
  223. <col ref="dialseatflag"/>
  224. <col ref="hngnm1"/>
  225. <col ref="hngnm2"/>
  226. <col ref="hngnm3"/>
  227. <col ref="dialareaflag" visibility="hidden"/>
  228. <col ref="instcd" visibility="hidden"/>
  229. </datagrid>
  230. <datagrid id="grd_dialpatlist3" nodeset="/root/main/dialareapatinfo/dialpatlist3" class="datagrid2" caption="자리^Shift1^Shift2^shift3^구역^기관코드" colsep="^" colwidth="28, 55, 55, 55, 33, 36" mergecellsfixedrows="bycolrec" rowsep="|" style="left:430px; top:80px; width:211px; height:676px; ">
  231. <col ref="dialseatflag"/>
  232. <col ref="hngnm1"/>
  233. <col ref="hngnm2"/>
  234. <col ref="hngnm3"/>
  235. <col ref="dialareaflag" visibility="hidden"/>
  236. <col ref="instcd" visibility="hidden"/>
  237. </datagrid>
  238. <datagrid id="grd_dialpatlist4" nodeset="/root/main/dialareapatinfo/dialpatlist4" class="datagrid2" caption="자리^Shift1^Shift2^shift3^구역^기관코드" colsep="^" colwidth="28, 55, 55, 55, 33, 36" mergecellsfixedrows="bycolrec" rowsep="|" style="left:645px; top:80px; width:211px; height:676px; ">
  239. <col ref="dialseatflag"/>
  240. <col ref="hngnm1"/>
  241. <col ref="hngnm2"/>
  242. <col ref="hngnm3"/>
  243. <col ref="dialareaflag" visibility="hidden"/>
  244. <col ref="instcd" visibility="hidden"/>
  245. </datagrid>
  246. <datagrid id="grd_dialpatlist5" nodeset="/root/main/dialareapatinfo/dialpatlist5" class="datagrid2" caption="자리^Shift1^Shift2^shift3^구역^기관코드" colsep="^" colwidth="28, 55, 55, 55, 33, 36" mergecellsfixedrows="bycolrec" rowsep="|" style="left:860px; top:80px; width:211px; height:676px; ">
  247. <col ref="dialseatflag"/>
  248. <col ref="hngnm1"/>
  249. <col ref="hngnm2"/>
  250. <col ref="hngnm3"/>
  251. <col ref="dialareaflag" visibility="hidden"/>
  252. <col ref="instcd" visibility="hidden"/>
  253. </datagrid>
  254. </xhtml:body>
  255. </xhtml:html>