SSMNO00100_외래환자수.xrw 15 KB

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