SMAES04800_검사통합예약현황(예약기준).xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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. <list>
  11. <item>
  12. <testnm/>
  13. <testroom/>
  14. <outprcpcnt/>
  15. <rcptcnt/>
  16. <unrcptcnt/>
  17. <unrsrvcnt/>
  18. <telrsrvcnt/>
  19. <sytsrsrvcnt/>
  20. <itslfcnt/>
  21. <inrsrvcnt/>
  22. <totrsrvcnt/>
  23. <outrsrvcnt/>
  24. </item>
  25. </list>
  26. </main>
  27. <send>
  28. <execfromdd/>
  29. <exectodd/>
  30. <orddeptcd/>
  31. <orddrid/>
  32. <excuroomgrpcdid/>
  33. <excuroomcd/>
  34. <globalinstance>
  35. <instance1/>
  36. </globalinstance>
  37. <rsrvdeptcd/>
  38. <grupcdid/>
  39. </send>
  40. <init>
  41. <dept_info>
  42. <initprcpexecdeptcd/>
  43. </dept_info>
  44. </init>
  45. <hidden/>
  46. </root>
  47. </instance>
  48. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  52. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  53. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  54. <script type="javascript" ev:event="xforms-ready">
  55. <![CDATA[
  56. aezfSetSuppDeptcd();
  57. // 진료과/진료의 조회
  58. submit("TRPMOCOM01", false);
  59. // 지원부서/* */검사실 조회
  60. submit("TRAEA01301", false);
  61. model.removenode("/root/main/list/item");
  62. // 수행부서 코드 가져오기
  63. submit("TRAEB00205", false);
  64. // // 진료지원 공통 코드 조회 : 심전도 검사에 대한 검사실 위치 정보 조회
  65. // var instance1 = model.getValue("/root/send/globalinstance/instance1");
  66. // model.setValue("/root/send/grupcdid","A0001");
  67. // if (submit("TRAEB00010", false)) {
  68. //
  69. // var nodeCnt = getNodesetCount("/root/main/codelist/item");
  70. //
  71. // if (nodeCnt > 1) {
  72. // addComboItem("cmb_rsrvid","--전체--","","above");
  73. // }
  74. // }
  75. addComboItem("cmb_orddept","--전체--","","above");
  76. var nodecnt = getNodesetCount("/root/init/orddrid");
  77. model.makeValue("/root/init/orddrid["+ nodecnt +"]/dp","");
  78. model.makeValue("/root/init/orddrid["+ nodecnt +"]/cd","");
  79. model.makeValue("/root/init/orddrid["+ nodecnt +"]/nm","--전체--");
  80. addComboItem("cmb_deptcd","--전체--","","above");
  81. addComboItem("cmb_excuroom","--전체--","","above");
  82. addComboItem("cmb_rsrvdeptcd","--전체--","","above");
  83. model.setValue("/root/send/execfromdd", getCurrentDate().toDate().getAddDate(-1, "D").getDateFormat("YYYYMMDD"));
  84. model.setValue("/root/send/exectodd", getCurrentDate().toDate().getAddDate(-1, "D").getDateFormat("YYYYMMDD"));
  85. model.refresh();
  86. ]]>
  87. </script>
  88. <submission id="TRAES04801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  89. <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
  90. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  91. <submission id="TRAES04802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/excuroomcdlist"/>
  92. <submission id="TRAEB00010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/codelist"/>
  93. <submission id="TRAEB00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/dept_info"/>
  94. </model>
  95. </xhtml:head>
  96. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  97. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  98. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">검사통합예약현황</caption>
  99. </group>
  100. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  101. <caption id="caption1" class="tit_2" style="left:5px; top:75px; width:200px; height:13px; ">예약기준</caption>
  102. <line id="line1" class="line_1" style="x1:0px; y1:90px; x2:1195px; y2:90px; "/>
  103. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:55px; vertical-align:top; ">
  104. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
  105. <caption id="caption2" class="search_name" style="left:15px; top:17px; width:86px; height:17px; ">조회기간 :</caption>
  106. <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:47px; "/>
  107. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1120px; top:17px; width:56px; height:22px; ">
  108. <caption>조회</caption>
  109. <script type="javascript" ev:event="DOMActivate">
  110. <![CDATA[
  111. model.removenode("/root/main/list");
  112. if (submit("TRAES04801")) {
  113. var cnt = getNodesetCount("/root/main/list/item");
  114. if (cnt > 1) {
  115. for ( i = 1; i <= (cnt+1); i++ ) {
  116. grd_list.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
  117. grd_list.rowstyle( i , "data" , "color" ) = "#000000";
  118. }
  119. grd_list.colSort(0) = "asc";
  120. grd_list.sort(0, 0, grd_list.rows, grd_list.cols) = "usersort";
  121. for(i=3; i<14; i++) {
  122. grd_list.subtotal("sum", 1, i, "#,###", "background-color:#FFFFCC; color:#0000ff; font-weight:bold; ", 2, "소계");
  123. grd_list.subtotal("sum", -1, i, "#,###", "background-color:#CCFFCC; color:#0000ff; font-weight:bold; ", 1, "총계");
  124. }
  125. grd_list.mergeByFree(grd_list.rows-1, 1 , grd_list.rows-1, 2);
  126. model.refresh();
  127. }
  128. }
  129. ]]>
  130. </script>
  131. </button>
  132. <input id="ipt_fromdd" ref="/root/send/execfromdd" class="input_default" navindex="1" inputtype="date" style="left:104px; top:16px; width:108px; height:19px; text-align:center; "/>
  133. <input id="ipt_todd" ref="/root/send/exectodd" class="input_default" navindex="2" inputtype="date" style="left:232px; top:16px; width:108px; height:19px; text-align:center; "/>
  134. <caption id="caption5" class="search_no_b" style="left:217px; top:16px; width:12px; height:17px; ">~</caption>
  135. <select1 id="cmb_orddept" ref="/root/send/orddeptcd" appearance="minimal" editmode="search" style="left:500px; top:5px; width:152px; height:19px; ">
  136. <choices>
  137. <itemset nodeset="/root/init/orddeptcd">
  138. <label ref="nm"/>
  139. <value ref="cd"/>
  140. </itemset>
  141. </choices>
  142. <script type="javascript" ev:event="xforms-value-changed">
  143. <![CDATA[
  144. var orddeptcd = model.getValue("/root/send/orddeptcd");
  145. cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp='"+ orddeptcd + "' or dp = '']";
  146. model.refresh();
  147. ]]>
  148. </script>
  149. </select1>
  150. <select1 id="cmb_orddr" ref="/root/send/orddrid" appearance="minimal" editmode="search" style="left:655px; top:5px; width:152px; height:19px; ">
  151. <choices>
  152. <itemset nodeset="/root/init/orddrid">
  153. <label ref="nm"/>
  154. <value ref="cd"/>
  155. </itemset>
  156. </choices>
  157. </select1>
  158. <caption id="caption3" class="search_name" style="left:365px; top:7px; width:134px; height:17px; ">처방과 / 처방의 :</caption>
  159. <select1 id="cmb_excuroom" ref="/root/send/excuroomcd" class="combo_default" navindex="1" appearance="minimal" editmode="search" style="left:655px; top:30px; width:152px; height:19px; ">
  160. <choices>
  161. <itemset nodeset="/root/init/cmb_info/excuroomcdlist/excuroom">
  162. <label ref="basecdflagdesc"/>
  163. <value ref="basecd"/>
  164. </itemset>
  165. </choices>
  166. <script type="javascript" ev:event="xforms-value-changed">
  167. <![CDATA[
  168. btn_sea.dispatch("DOMActivate");
  169. ]]>
  170. </script>
  171. </select1>
  172. <caption id="caption4" class="search_name" style="left:365px; top:32px; width:132px; height:17px; ">지원부서/검사실 :</caption>
  173. <select1 id="cmb_deptcd" ref="/root/send/excuroomgrpcdid" appearance="minimal" editmode="search" style="left:500px; top:30px; width:152px; height:19px; ">
  174. <choices>
  175. <itemset nodeset="/root/init/cmb_info/suppdept">
  176. <label ref="depthngnm"/>
  177. <value ref="suppdeptcd"/>
  178. </itemset>
  179. </choices>
  180. <script type="javascript" ev:event="xforms-value-changed">
  181. <![CDATA[
  182. // model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/send/suppdeptcd"));
  183. model.setValue("/root/send/excuroomcd", "");
  184. submit("TRAES04802",false);
  185. addComboItem("cmb_excuroom","--전체--","","above");
  186. model.refresh();
  187. ]]>
  188. </script>
  189. </select1>
  190. <caption id="caption7" class="search_name" style="left:830px; top:17px; width:86px; height:17px; ">예약부서 :</caption>
  191. <select1 id="cmb_rsrvdeptcd" ref="/root/send/rsrvdeptcd" appearance="minimal" editmode="search" style="left:920px; top:16px; width:175px; height:19px; ">
  192. <choices>
  193. <itemset nodeset="/root/init/dept_info/initprcpexecdeptcd">
  194. <label ref="prcpexecdeptcdnm"/>
  195. <value ref="prcpexecdeptcdid"/>
  196. </itemset>
  197. </choices>
  198. </select1>
  199. </group>
  200. <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:70px; width:64px; height:19px; ">
  201. <caption>엑셀저장</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  205. if (fileName != "") {
  206. grd_list.saveExcel(fileName);
  207. }
  208. ]]>
  209. </script>
  210. </button>
  211. <datagrid id="grd_list" nodeset="/root/main/list/item" caption="지원부서^검사실명^통합예약건수^통합예약건수^전화예약건수^전화예약건수^예약변경건수^예약변경건수|지원부서^검사실명^미수납^수납^미수납^수납^변경^취소" colsep="^" colwidth="210, 210, 120, 120, 120, 120, 120, 120" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" style="left:0px; top:95px; width:1195px; height:645px; ">
  212. <col ref="systkey1" style="text-align:center; "/>
  213. <col ref="systkey2"/>
  214. <col ref="sytsrsrvunrcptcnt" style="text-align:right; "/>
  215. <col ref="sytsrsrvrcptcnt" style="text-align:right; "/>
  216. <col ref="untelrsrvcnt" style="text-align:right; "/>
  217. <col ref="telrsrvcnt" style="text-align:right; "/>
  218. <col ref="sytsrsrupdtvcnt" style="text-align:right; "/>
  219. <col ref="sytsrsrcnclvcnt" style="text-align:right; "/>
  220. </datagrid>
  221. </group>
  222. </xhtml:body>
  223. </xhtml:html>