SMPAS00164_예약통계.xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <?xml version="1.0" encoding="UTF-16"?>
  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>예약통계</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <outhist>
  11. <outhistlist/>
  12. </outhist>
  13. </main>
  14. <send>
  15. <histstat/>
  16. <fromdd/>
  17. <todd/>
  18. <rsrvflag/>
  19. <orddeptcd/>
  20. <orddrid/>
  21. </send>
  22. <init>
  23. <orddeptcd/>
  24. <orddrid/>
  25. </init>
  26. <hidden/>
  27. <tmp/>
  28. </root>
  29. </instance>
  30. <script type="javascript" ev:event="xforms-model-construct-done">
  31. <![CDATA[
  32. // 기간 초기화
  33. var vToday = new Date();
  34. var tmpYear = vToday.getYear();
  35. var tmpMonth = vToday.getMonth()+1;
  36. var tmpDate = vToday.getDate();
  37. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  38. if (tmpDate < 10) {tmpDate = "0"+tmpDate; }
  39. model.setValue("/root/send/fromdd", tmpYear+""+tmpMonth+""+tmpDate);
  40. model.setValue("/root/send/todd", tmpYear+""+tmpMonth+""+tmpDate);
  41. // 선택 초기화
  42. model.setValue("/root/send/histstat", "R");
  43. model.refresh();
  44. // 그리드 초기화
  45. grd_sel1.visible = true;
  46. grd_sel2.visible = false;
  47. // 진료과, 의사 코드 초기화
  48. submit("TRPAM00101");
  49. model.copyNode("root/init/orddeptcd", "root/tmp/orddeptcd");
  50. model.copyNode("root/init/orddrid", "root/tmp/orddrid");
  51. model.removeNodeset("root/tmp");
  52. cmb_orddrid.disabled = true;
  53. model.refresh();
  54. ]]>
  55. </script>
  56. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/tmp"/>
  57. <submission id="TRPAS00164" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  58. </model>
  59. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  65. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  66. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  67. <script type="javascript">
  68. <![CDATA[
  69. // 출력
  70. function fPrintView() {
  71. var sel = model.getValue("/root/send/histstat");
  72. switch (sel) {
  73. case "1" :
  74. exeReportPreview("RPPID20701", "XML", "/root/send/prntinfo","", "false","","","","","false"); // 예약통계
  75. break;
  76. case "2" :
  77. exeReportPreview("RPPID20701", "XML", "/root/send/prntinfo","", "false","","","","","false"); // 변경통계
  78. break;
  79. case "3" :
  80. exeReportPreview("RPPID20700", "XML", "/root/send/prntinfo","", "false","","","","","false"); // 취소통계
  81. break;
  82. case "4" :
  83. exeReportPreview("RPPID20700", "XML", "/root/send/prntinfo","", "false","","","","","false"); // 부도자통계
  84. break;
  85. default :
  86. }
  87. }
  88. ]]>
  89. </script>
  90. </xhtml:head>
  91. <xhtml:body pagewidth="1211" pageheight="784" guideline="2,770;">
  92. <datagrid id="grd_sel2" nodeset="/root/main/outhist/outhistlist" caption="진료과^초진부도자^초진부도율^재진부도자^재진부도율^합계^부도율" colsep="^" colwidth="300, 150, 140, 150, 140, 150, 140" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:75px; width:1200px; height:695px; ">
  93. <col ref="orddeptnm"/>
  94. <col ref="fstexamcnt"/>
  95. <col ref="fstexamrate"/>
  96. <col ref="reexamcnt"/>
  97. <col ref="reexamrate"/>
  98. <col ref="sumcnt"/>
  99. <col ref="sumrate"/>
  100. </datagrid>
  101. <datagrid id="grd_sel1" nodeset="/root/main/outhist/outhistlist" caption="진료과^초진^재진^합계" colsep="^" colwidth="300, 290, 290, 290" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:120px; width:1200px; height:695px; ">
  102. <col ref="orddeptnm"/>
  103. <col ref="fstexamcnt"/>
  104. <col ref="reexamcnt"/>
  105. <col ref="sumcnt"/>
  106. </datagrid>
  107. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  108. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; font-family:돋움; vertical-align:middle; ">예약통계</caption>
  109. </group>
  110. <group id="group2" style="left:4px; top:22px; width:1203px; height:35px; ">
  111. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  112. <caption id="caption2" class="search_name" style="left:295px; top:9px; width:210px; height:17px; ">기간 ~</caption>
  113. <line id="line2" class="line_4" style="x1:1130px; y1:7px; x2:1130px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  114. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  115. <caption>조회</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. var fromdd = model.getValue("/root/send/fromdd");
  119. var todd = model.getValue("/root/send/todd");
  120. if (fromdd == "" || fromdd == null){
  121. messageBox("시작일을 입력","E007");
  122. model.setFocus("ipt_fromdd");
  123. return false;
  124. }
  125. if (todd == "" || todd == null){
  126. messageBox("종료일을 입력","E007");
  127. model.setFocus("ipt_todd");
  128. return false;
  129. }
  130. if(fromdd > todd){
  131. messageBox("시작일이 종료일보다 클수 ", "C001")
  132. return false;
  133. }else{
  134. model.removeNodeset("/root/main/outhist/outhistlist");
  135. submit("TRPAS00164");
  136. var sel = model.getValue("/root/send/histstat");
  137. if (sel == "T") {
  138. // 부도자
  139. grd_sel1.visible = false;
  140. grd_sel2.visible = true;
  141. } else {
  142. grd_sel1.visible = true;
  143. grd_sel2.visible = false;
  144. }
  145. }
  146. model.refresh();
  147. ]]>
  148. </script>
  149. </button>
  150. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_default" navindex="7" inputtype="date" style="left:350px; top:9px; width:90px; height:19px; "/>
  151. <input id="ipt_todd" ref="/root/send/todd" class="input_default" navindex="7" inputtype="date" style="left:460px; top:9px; width:90px; height:19px; "/>
  152. <select1 id="cmb_rsrvflag" ref="/root/send/rsrvflag" class="combo_search" navindex="14" appearance="minimal" style="left:632px; top:9px; width:95px; height:19px; ">
  153. <choices>
  154. <item>
  155. <label/>
  156. <value>0</value>
  157. </item>
  158. <item>
  159. <label>전화예약</label>
  160. <value>1</value>
  161. </item>
  162. <item>
  163. <label>인터넷예약</label>
  164. <value>2</value>
  165. </item>
  166. </choices>
  167. </select1>
  168. <caption id="caption7" class="search_name" style="left:577px; top:9px; width:65px; height:17px; font-weight:bold; ">예약</caption>
  169. <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_search" navindex="14" appearance="minimal" style="left:820px; top:9px; width:95px; height:19px; ">
  170. <choices>
  171. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  172. <label ref="nm"/>
  173. <value ref="cd"/>
  174. </itemset>
  175. </choices>
  176. <script type="javascript" ev:event="xforms-select">
  177. <![CDATA[
  178. var orddeptcd = model.getValue("/root/send/orddeptcd");
  179. if (orddeptcd) {
  180. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp='" + orddeptcd + "']";
  181. cmb_orddrid.disabled = false;
  182. } else {
  183. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist";
  184. cmb_orddrid.disabled = true;
  185. }
  186. model.resetInstanceNode("/root/send/orddrid"); // 주치의 선택을 초기화한다.
  187. model.refresh();
  188. ]]>
  189. </script>
  190. </select1>
  191. <caption id="caption1" class="search_name" style="left:751px; top:9px; width:65px; height:17px; font-weight:bold; ">진료과</caption>
  192. <caption id="caption3" class="search_name" style="left:937px; top:9px; width:80px; height:17px; font-weight:bold; ">의사</caption>
  193. <select1 id="cmb_orddrid" ref="/root/send/orddrid" class="combo_search" navindex="14" appearance="minimal" style="left:993px; top:9px; width:95px; height:19px; ">
  194. <choices>
  195. <itemset nodeset="/root/init/orddrid/orddridlist">
  196. <label ref="nm"/>
  197. <value ref="cd"/>
  198. </itemset>
  199. </choices>
  200. </select1>
  201. <caption id="caption4" class="search_name" style="left:10px; top:9px; width:65px; height:17px; font-weight:bold; ">선택</caption>
  202. </group>
  203. <select1 id="rdo_histstat" ref="/root/send/histstat" class="radio_search" navindex="11" appearance="full" cols="4" overflow="visible" style="left:73px; top:32px; width:202px; height:19px; ">
  204. <choices>
  205. <item>
  206. <label>예약</label>
  207. <value>R</value>
  208. </item>
  209. <item>
  210. <label>변경</label>
  211. <value>C</value>
  212. </item>
  213. <item>
  214. <label>취소</label>
  215. <value>X</value>
  216. </item>
  217. <item>
  218. <label>부도자</label>
  219. <value>T</value>
  220. </item>
  221. </choices>
  222. <script type="javascript" ev:event="xforms-select">
  223. <![CDATA[
  224. var sel = model.getValue("/root/send/histstat");
  225. if (sel == "T") {
  226. // 부도자
  227. grd_sel1.visible = false;
  228. grd_sel2.visible = true;
  229. } else {
  230. grd_sel1.visible = true;
  231. grd_sel2.visible = false;
  232. }
  233. ]]>
  234. </script>
  235. </select1>
  236. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:762px; width:56px; height:22px; ">
  237. <caption>출력</caption>
  238. <script type="javascript" ev:event="DOMActivate">
  239. <![CDATA[
  240. fPrintView();
  241. ]]>
  242. </script>
  243. </button>
  244. </xhtml:body>
  245. </xhtml:html>