SSMNO00200_외래환자예약현황.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <cond>
  11. <srchdd/>
  12. <orddeptcd/>
  13. <orddrid/>
  14. </cond>
  15. <outpatinfo/>
  16. </main>
  17. <init>
  18. <orddeptlist/>
  19. <orddr/>
  20. </init>
  21. <send>
  22. <reqdata/>
  23. <outpatinfo/>
  24. </send>
  25. </root>
  26. </instance>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. //fInit();
  30. var menuParam = getScreenMenuParameter();
  31. var currDate = getCurrentDate();
  32. model.setValue("/root/main/cond/srchdd", currDate);
  33. var instcd = getUserInfo("dutplceinstcd");
  34. var rslt_ref = "/root/init/orddeptlist";
  35. //model.setValue("/root/main/cond/orddeptcd", "%");
  36. model.setValue("/root/main/cond/orddrid", "");
  37. var dt = model.getValue("/root/main/cond/srchdd");
  38. zsdfGetCareOutOrderDepartmentList(instcd, rslt_ref, dt);
  39. addComboItem("cmb_orddeptcd");
  40. addComboItem("cmb_orddrid");
  41. btn_srch.dispatch("DOMActivate");
  42. ]]>
  43. </script>
  44. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  45. <submission id="TRZSD00206" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  46. <submission id="TRSNO00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/outpatinfo"/>
  47. <submission id="TRMNO00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/orddr"/>
  48. </model>
  49. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  50. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  54. <script type="javascript">
  55. <![CDATA[
  56. ]]>
  57. </script>
  58. </xhtml:head>
  59. <xhtml:body pagewidth="1212" pageheight="800" guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  60. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  61. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:181px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">외래환자예약현황</caption>
  62. </group>
  63. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  64. <datagrid id="grd_outpatrsrv" nodeset="/root/main/outpatinfo/outpatlist" autoresize="true" caption="^초진^초진^초진^초진^초진^초진^초진^초진^초진^초진^초진^재진^재진^재진^재진^재진^재진^재진^재진^재진^재진^외래환자수^외래환자수^외래환자수^특진율^초진율^진료&#xA;예약^진료&#xA;반환^진료&#xA;과별&#xA;비율^caption1^caption3^caption2|^전화&#xA;예약^과예약^ 인터넷&#xA;예약^당일&#xA;접수^당일&#xA;예약^협력&#xA;예약^의뢰^기타^외래환자수^외래환자수^외래환자수^전화&#xA;예약^과예약^당일&#xA;접수^당일&#xA;예약^협력&#xA;예약^의뢰^기타^외래환자수^외래환자수^외래환자수^특진^일반^합계^특진율^초진율^진료&#xA;예약^진료&#xA;반환^진료&#xA;과별&#xA;비율^caption1^caption3^caption2|^전화&#xA;예약^과예약^ 인터넷&#xA;예약^당일&#xA;접수^당일&#xA;예약^협력&#xA;예약^의뢰^기타^특진^일반^합계^전화&#xA;예약^과예약^당일&#xA;접수^당일&#xA;예약^협력&#xA;예약^의뢰^기타^특진^일반^합계^특진^일반^합계^특진율^초진율^진료&#xA;예약^진료&#xA;반환^진료&#xA;과별&#xA;비율^caption1^caption3^caption2" colsep="^" colwidth="91, 45, 48, 48, 48, 48, 48, 48, 48, 40, 40, 45, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48" dataheight="25" explorerbar="sort" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:665px; ">
  65. <col ref="stsview"/>
  66. <col ref="fstelrsrv" style="text-align:right; "/>
  67. <col ref="fsdeptrsrv" style="text-align:right; "/>
  68. <col ref="fsitnrsrv" style="text-align:right; "/>
  69. <col ref="fstdyrsrv" style="text-align:right; "/>
  70. <col ref="fscurntrsrv" style="text-align:right; "/>
  71. <col ref="fscorsrv" style="text-align:right; "/>
  72. <col ref="fscnsltrsrv" style="text-align:right; "/>
  73. <col ref="fsetcrsrv" style="text-align:right; "/>
  74. <col ref="fssltdiagrsrv" style="text-align:right; "/>
  75. <col ref="fsgendiagrsrv" style="text-align:right; "/>
  76. <col ref="fsotpttot" style="text-align:right; "/>
  77. <col ref="sectelrsrv" style="text-align:right; "/>
  78. <col ref="secdeptrsrv" style="text-align:right; "/>
  79. <col ref="sectdyrsrv" style="text-align:right; "/>
  80. <col ref="seccurntrsrv" style="text-align:right; "/>
  81. <col ref="seccorsrv" style="text-align:right; "/>
  82. <col ref="seccnsltrsrv" style="text-align:right; "/>
  83. <col ref="secetcrsrv" style="text-align:right; "/>
  84. <col ref="secsltdiagrsrv" style="text-align:right; "/>
  85. <col ref="secgendiagrsrv" style="text-align:right; "/>
  86. <col ref="secotpttot" style="text-align:right; "/>
  87. <col ref="sltotpt" style="text-align:right; "/>
  88. <col ref="genotpt" style="text-align:right; "/>
  89. <col ref="otpttot" style="text-align:right; "/>
  90. <col ref="sltotptrate" format="##0.##%" style="text-align:right; "/>
  91. <col ref="genotptrate" format="##0.##%" style="text-align:right; "/>
  92. <col ref="totrsrv" style="text-align:right; "/>
  93. <col ref="cnclrsrv" style="text-align:right; "/>
  94. <col ref="deptrate" format="##0.##%" style="text-align:right; "/>
  95. </datagrid>
  96. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  97. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  98. <button id="btn_print" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  99. <caption>출력</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. var srchdd=model.getValue("/root/main/cond/srchdd");
  103. var currdt = getCurrentDate()+""+getCurrentTime();
  104. model.copyNode("/root/send/outpatinfo", "/root/main/outpatinfo"); // 추가20080915
  105. var fixedRowCnt = grd_outpatrsrv.fixedRows-1;
  106. for ( var idx = 1 ; idx <= getNodesetCount("/root/send/outpatinfo/outpatlist") ; idx++){
  107. model.setValue("/root/send/outpatinfo/outpatlist[" + idx + "]/deptrate", grd_outpatrsrv.labelMatrix(idx+fixedRowCnt, grd_outpatrsrv.colRef("deptrate")));
  108. model.setValue("/root/send/outpatinfo/outpatlist[" + idx + "]/sltotptrate", grd_outpatrsrv.labelMatrix(idx+fixedRowCnt, grd_outpatrsrv.colRef("sltotptrate")));
  109. model.setValue("/root/send/outpatinfo/outpatlist[" + idx + "]/genotptrate", grd_outpatrsrv.labelMatrix(idx+fixedRowCnt, grd_outpatrsrv.colRef("genotptrate")));
  110. }
  111. model.makeValue("/root/send/cond/srchdd", srchdd.substring(0,4)+"/"+srchdd.substring(4,6)+"/"+srchdd.substring(6));
  112. model.makeValue("/root/send/cond/orddeptnm", cmb_orddeptcd.label);
  113. model.makeValue("/root/send/cond/orddrnm", cmb_orddrid.label);
  114. model.makeValue("/root/send/cond/usernm", getUserName());
  115. model.makeValue("/root/send/cond/printdt",
  116. currdt.substring(0,4)+"/"+currdt.substring(4,6)+"/"+currdt.substring(6,8)+" "+
  117. currdt.substring(8,10)+":"+currdt.substring(10,12)+":"+currdt.substring(12)
  118. );
  119. exeReportPreview("RPSTO00101", "XMLSTR", "","", "true","","","","","true");
  120. ]]>
  121. </script>
  122. </button>
  123. <line id="line13" class="line_4" style="x1:997px; y1:7px; x2:997px; y2:29px; "/>
  124. <caption id="caption3" class="search_name" style="left:25px; top:10px; width:65px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">기간 :</caption>
  125. <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_search" appearance="minimal" style="left:554px; top:10px; width:106px; height:19px; ">
  126. <choices>
  127. <itemset nodeset="/root/init/orddr/orddr">
  128. <label ref="usernm"/>
  129. <value ref="userid"/>
  130. </itemset>
  131. </choices>
  132. </select1>
  133. <caption id="caption4" class="search_name" style="left:460px; top:10px; width:104px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">진료의별 :</caption>
  134. <caption id="caption8" class="search_name" style="left:215px; top:10px; width:104px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">진료과별 :</caption>
  135. <select1 id="cmb_orddeptcd" ref="/root/main/cond/orddeptcd" class="combo_search" appearance="minimal" style="left:309px; top:10px; width:116px; height:19px; ">
  136. <!--choices>
  137. <item>
  138. <label>전체</label>
  139. <value>%</value>
  140. </item>
  141. </choices-->
  142. <choices>
  143. <itemset nodeset="/root/init/orddeptlist/dept">
  144. <label ref="depthngnm"/>
  145. <value ref="deptcd"/>
  146. </itemset>
  147. </choices>
  148. <script type="javascript" ev:event="xforms-value-changed">
  149. <![CDATA[
  150. var sordclsdeptflag = model.getValue("/root/init/orddeptlist/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/ordclsdeptflag"); // 대표/분과/서브 구분
  151. var sorddeptkind = model.getValue("/root/init/orddeptlist/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/orddeptkind"); // 센터/대표 구분
  152. var ssupdeptcd = model.getValue("/root/init/orddeptlist/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/supdeptcd"); // 상위부서코드
  153. var sorddeptflag = "";
  154. if (sorddeptkind == "C") { // 센터이면
  155. sorddeptflag = "C";
  156. } else if (sorddeptkind != "C" && sordclsdeptflag == "A") { // 센터가 아니면서 분과이면
  157. sorddeptflag = "A";
  158. } else { // 그외에 기타과
  159. sorddeptflag = "etc";
  160. }
  161. model.makeValue("/root/send/reqdata/ordclsdeptflag", sorddeptflag);
  162. model.makeValue("/root/send/reqdata/supdeptcd", ssupdeptcd);
  163. model.makeValue("/root/send/reqdata/prcpspecflag", "Y");
  164. model.makeValue("/root/send/reqdata/orddd", model.getValue("/root/main/cond/srchdd"));
  165. model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/main/cond/orddeptcd"));
  166. submit("TRMNO00104"); // 의사리스트 조회
  167. addComboItem("cmb_orddrid");
  168. ]]>
  169. </script>
  170. </select1>
  171. <!--select1 id="radio1" appearance="full" cols="3" overflow="visible" style="left:95px; top:10px; width:165px; height:20px; border-style:none; ">
  172. <choices>
  173. <item>
  174. <label>일별</label>
  175. <value>radio1</value>
  176. </item>
  177. <item>
  178. <label>월별</label>
  179. <value/>
  180. </item>
  181. <item>
  182. <label>분기별</label>
  183. <value/>
  184. </item>
  185. </choices>
  186. </select1-->
  187. <input id="input1" ref="/root/main/cond/srchdd" class="input_s_essential" inputtype="date" style="left:90px; top:10px; width:95px; height:19px; "/>
  188. <button id="btn_srch" class="btn1_letter2" style="left:1007px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  189. <caption>조회</caption>
  190. <script type="javascript" ev:event="DOMActivate">
  191. <![CDATA[
  192. //messageBox("개발중","I009");
  193. if ( isNull(model.getValue("/root/main/cond/srchdd")) || model.getValue("/root/main/cond/srchdd") < getCurrentDate() ){
  194. //messageBox("기간","I003");//필수입력입니다
  195. messageBox("금일이후의 외래환자예약현황을 조회합니다.기간을 ","I007");
  196. return;
  197. }
  198. model.removeNode("/root/send/reqdata");
  199. model.makeValue("/root/send/reqdata/srchdd", model.getValue("/root/main/cond/srchdd") );
  200. model.makeValue("/root/send/reqdata/menu", "");
  201. if ( !isNull( model.getValue("/root/main/cond/orddeptcd") ) && model.getValue("/root/main/cond/orddeptcd") != "%") {
  202. model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/main/cond/orddeptcd"));
  203. }
  204. if ( !isNull( model.getValue("/root/main/cond/orddrid") ) && model.getValue("/root/main/cond/orddrid") != "%") {
  205. model.makeValue("/root/send/reqdata/orddrid", model.getValue("/root/main/cond/orddrid"));
  206. }
  207. submit("TRSNO00101");
  208. ]]>
  209. </script>
  210. </button>
  211. <button id="btn_excel" class="btn1_letter2" style="left:1065px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  212. <caption>엑셀</caption>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. var fileName ="";
  216. fileName = window.fileDialog("save", ",", false, "외래환자예약현황_"+ model.getValue("/root/main/cond/srchdd") , "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  217. if (fileName != "") {
  218. grd_outpatrsrv.saveExcel(fileName, "외래환자예약현황", true, true, "", "", true);
  219. }
  220. ]]>
  221. </script>
  222. </button>
  223. </group>
  224. </group>
  225. <caption id="caption1" class="tit_2" style="left:5px; top:71px; width:156px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">외래환자예약현황</caption>
  226. <line id="line1" class="line_1" style="x1:0px; y1:86px; x2:1194px; y2:86px; "/>
  227. <caption id="caption2" style="left:10px; top:760px; width:1184px; height:35px; font-weight:bold; ">
  228. <![CDATA[*** 기타: 물리치료, 인공신장실, 주사, F/U, 치료방사선
  229. *** 과예약: 외래, 병동, 응급, DSC, 특수주사실 포함한 예약건수]]>
  230. </caption>
  231. </xhtml:body>
  232. </xhtml:html>