SMPMI03910_준공용병상가용현황.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>준공용 병상 가용 현황</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <exavlist>
  11. <exavinfo>
  12. <orddeptcd/>
  13. <deptnm/>
  14. <exbed/>
  15. <deptpat/>
  16. <bedpat/>
  17. <deptrate/>
  18. <bedrate/>
  19. <exavcnt_dept/>
  20. <exavcnt_bed/>
  21. <exavcnt_rslt/>
  22. </exavinfo>
  23. </exavlist>
  24. <inpatlist>
  25. <inpatinfo>
  26. <orddeptnm/>
  27. <wardnm/>
  28. <roomcd/>
  29. <bednm/>
  30. <bedorddeptnm/>
  31. <hngnm/>
  32. <pid/>
  33. <indschacptstat/>
  34. <remfact/>
  35. </inpatinfo>
  36. </inpatlist>
  37. </main>
  38. <send>
  39. <fromdd/>
  40. <todd/>
  41. <orddeptcd/>
  42. <bedorddeptcd/>
  43. <exptyn/>
  44. </send>
  45. <init>
  46. <PAM>
  47. <PK074list>
  48. <PK074>
  49. <cdnm/>
  50. <cdid/>
  51. <detl/>
  52. </PK074>
  53. </PK074list>
  54. </PAM>
  55. </init>
  56. </root>
  57. </instance>
  58. <submission id="TRPMI03901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/exavlist/exavinfo"/>
  59. <submission id="TRPMI03902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inpatlist/inpatinfo"/>
  60. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  61. </model>
  62. <script type="javascript">
  63. <![CDATA[
  64. //미수데이터 서브토탈
  65. function fSubTotalData() {
  66. grd_exav.gridToInstance();
  67. grd_exav.refresh();
  68. grd_exav.deleteRow(grd_exav.findRow("* Total *", 0, 1), true);
  69. grd_exav.subtotalPosition = "below";
  70. grd_exav.subtotal("clear", -1, 2);
  71. grd_exav.subtotal("clear", -1, 3);
  72. grd_exav.subtotal("clear", -1, 4);
  73. grd_exav.subtotal("clear", -1, 5);
  74. grd_exav.subtotal("clear", -1, 6);
  75. grd_exav.subtotal("clear", -1, 7);
  76. grd_exav.subtotal("clear", -1, 11);
  77. grd_exav.subtotal("clear", -1, 12);
  78. grd_exav.subtotal("clear", -1, 13);
  79. grd_exav.subtotal("sum", -1, 2, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
  80. grd_exav.subtotal("sum", -1, 3, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
  81. grd_exav.subtotal("sum", -1, 4, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
  82. grd_exav.subtotal("sum", -1, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
  83. grd_exav.subtotal("sum", -1, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
  84. grd_exav.subtotal("sum", -1, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
  85. grd_exav.subtotal("sum", -1, 11, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
  86. grd_exav.subtotal("sum", -1, 12, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
  87. grd_exav.subtotal("sum", -1, 13, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
  88. }
  89. ]]>
  90. </script>
  91. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  94. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  95. <script type="javascript" ev:event="xforms-ready">
  96. <![CDATA[
  97. pamfGetCodeList(new Array("PK074"), new Array("/root/init/PAM/PK074list"));
  98. var sWard = "";
  99. for (i = 1; i <= getNodesetCount("/root/init/PAM/PK074list/PK074"); i++) {
  100. var ward = model.getValue("/root/init/PAM/PK074list/PK074[" + i + "]/remark");
  101. if (!isNull(ward)) {
  102. sWard = sWard + ward + "\r\n";
  103. }
  104. }
  105. caption18.value = sWard;
  106. model.setValue("/root/send/fromdd", getCurrentDate());
  107. model.setValue("/root/send/todd", getCurrentDate());
  108. btn_search.dispatch("DOMActivate");
  109. ]]>
  110. </script>
  111. </xhtml:head>
  112. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  113. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:152px; height:14px; font-family:돋움; vertical-align:middle; ">준공용 병상 가용 현황</caption>
  114. <caption id="caption7" class="tit_2" style="left:0px; top:70px; width:85px; height:13px; font-weight:bold; ">조회 내역</caption>
  115. <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1195px; y2:85px; "/>
  116. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1195px; height:41px; background-color:#fffbf2; border-color:#ffd799; "/>
  117. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1130px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  118. <caption>조회</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. submit("TRPMI03901");
  122. fSubTotalData();
  123. ]]>
  124. </script>
  125. </button>
  126. <line id="line13" style="x1:1120px; y1:30px; x2:1120px; y2:57px; border-color:#FFD799; border-left-style:solid; "/>
  127. <button id="btn_excel" class="btn2_letter4" style="left:958px; top:65px; width:64px; height:19px; ">
  128. <caption>엑셀저장</caption>
  129. <script type="javascript" ev:event="DOMActivate">
  130. <![CDATA[
  131. var filename = window.fileDialog("save", ",", false, "준공용 병상 가용 현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  132. grd_exav.saveExcel(filename, "sheetname:준공용 병상 가용 현황;colhiddenextend:true;rowhiddenextend:false;");
  133. messageBox("엑셀 저장이 완료되었습니다.", "I999");
  134. ]]>
  135. </script>
  136. </button>
  137. <datagrid id="grd_exav" nodeset="/root/main/exavlist/exavinfo" class="datagrid2" caption="진료과^전용병상수^진료과&#xA;환자수^전용병상&#xA;환자수^입원결정수&#xA;(외래/응급/특수)^입원결정수&#xA;(외래/응급/특수)^입원결정수&#xA;(외래/응급/특수)^진료과&#xA;가동률^전용병상&#xA;가동률^입원결정률^가용병상수&#xA;(진료과)^가용병상수&#xA;(전용병상)^가용병상수&#xA;(적용)^caption1" colsep="^" colwidth="140, 80, 80, 80, 40, 40, 40, 80, 80, 80, 80, 80, 80, 50" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:90px; width:1022px; height:650px; text-align:center; ">
  138. <col ref="deptnm" style="text-align:left; padding-left:10; "/>
  139. <col ref="exbed" style="text-align:right; padding-right:10; "/>
  140. <col ref="deptpat" style="text-align:right; padding-right:10; "/>
  141. <col ref="bedpat" style="text-align:right; padding-right:10; "/>
  142. <col ref="adrvipat" style="text-align:right; padding-right:5; "/>
  143. <col ref="adrvepat" style="text-align:right; padding-right:5; "/>
  144. <col ref="adrvdpat" style="text-align:right; padding-right:5; "/>
  145. <col ref="deptrate" style="text-align:right; padding-right:10; "/>
  146. <col ref="bedrate" style="text-align:right; padding-right:10; "/>
  147. <col ref="adrvrate" style="text-align:right; padding-right:10; "/>
  148. <col ref="exavcnt_dept" style="text-align:right; padding-right:10; "/>
  149. <col ref="exavcnt_bed" style="text-align:right; padding-right:10; "/>
  150. <col ref="exavcnt_rslt" style="font-weight:bold; text-align:right; padding-right:10; "/>
  151. <col ref="orddeptcd" visibility="hidden"/>
  152. <script type="javascript" ev:event="ondblclick">
  153. <![CDATA[
  154. var sRow = grd_exav.row;
  155. if (sRow > 0) {
  156. btn_left.dispatch("DOMActivate");
  157. // 자격조회 호출
  158. if (grd_exav.col == grd_exav.colRef("bedpat")) {
  159. model.setValue("/root/send/orddeptcd", "");
  160. model.setValue("/root/send/bedorddeptcd", model.getValue("/root/main/exavlist/exavinfo[" + sRow + "]/orddeptcd"));
  161. } else {
  162. model.setValue("/root/send/orddeptcd", model.getValue("/root/main/exavlist/exavinfo[" + sRow + "]/orddeptcd"));
  163. model.setValue("/root/send/bedorddeptcd", "");
  164. }
  165. submit("TRPMI03902");
  166. grd_inpatinfo.rebuildStyle();
  167. setRowStyle( "grd_inpatinfo" , "11" , "퇴원예고" , "indschacptstat" , "equal" ); // 삭제대상 처리
  168. setRowStyle( "grd_inpatinfo" , "0" , "입원결정" , "indschacptstat" , "equal" ); // 삭제대상 처리
  169. grd_inpatinfo.refresh();
  170. }
  171. ]]>
  172. </script>
  173. <script type="javascript" ev:event="onaftersort">
  174. <![CDATA[
  175. fSubTotalData();
  176. ]]>
  177. </script>
  178. </datagrid>
  179. <caption id="caption1" style="left:10px; top:34px; width:290px; height:15px; font-weight:bold; ">※ 가용병상수 : 전용병상수 * ( 90% - 가동률 ) / 100</caption>
  180. <caption id="caption2" style="left:300px; top:34px; width:156px; height:15px; ">(☞ 소수점은 내림으로 계산)</caption>
  181. <!-- group id="grp_info" visibility="hidden" style="left:520px; top:55px; width:520px; height:270px; border-color:#999999; border-style:solid; " -->
  182. <button id="btn_info" class="btn2_letter4" style="left:475px; top:31px; width:64px; height:19px; ">
  183. <caption>항목설명</caption>
  184. <script type="javascript" ev:event="DOMActivate">
  185. <![CDATA[
  186. grp_info.visible = btn_infoclose.visible = !grp_info.visible;
  187. ]]>
  188. </script>
  189. </button>
  190. <caption id="caption14" style="left:75px; top:67px; width:622px; height:20px; ">※ 진료과 더블클릭 시 재원과 기준, 전용병상환자수 더블클릭 시 병상배정과 기준으로 환자세부정보가 표시됩니다.</caption>
  191. <datagrid id="grd_inpatinfo" nodeset="/root/main/inpatlist/inpatinfo" class="datagrid2" caption="진료과^병동^병실^병상^병상배정과^환자^환자^상태^비고" colsep="^" colwidth="100, 100, 45, 60, 100, 66, 70, 60, 287" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:1025px; top:90px; width:170px; height:650px; ">
  192. <col ref="orddeptnm" style="padding-left:5; "/>
  193. <col ref="wardnm" style="padding-left:5; "/>
  194. <col ref="roomcd" style="text-align:center; "/>
  195. <col ref="bednm" style="text-align:center; "/>
  196. <col ref="bedorddeptnm" style="padding-left:5; "/>
  197. <col ref="pid" style="text-align:center; "/>
  198. <col ref="hngnm" style="text-align:center; "/>
  199. <col ref="indschacptstat" style="text-align:center; "/>
  200. <col ref="remfact"/>
  201. </datagrid>
  202. <button id="btn_left" class="icon_left" style="left:1142px; top:65px; width:26px; height:19px; ">
  203. <caption/>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. grd_exav.attribute("width") = "622"; // 1022
  207. grd_inpatinfo.attribute("left") = "625"; // 1025
  208. grd_inpatinfo.attribute("width") = "570"; // 170
  209. ]]>
  210. </script>
  211. </button>
  212. <button id="btn_right" class="icon_right" style="left:1169px; top:65px; width:26px; height:19px; ">
  213. <caption/>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. grd_exav.attribute("width") = "1022"; // 1022
  217. grd_inpatinfo.attribute("left") = "1025"; // 1025
  218. grd_inpatinfo.attribute("width") = "170"; // 170
  219. ]]>
  220. </script>
  221. </button>
  222. <group id="grp_info" visibility="hidden" style="left:475px; top:55px; width:520px; height:325px; border-color:#999999; border-style:solid; ">
  223. <table id="table1" cellspacing="-1" style="left:10px; top:10px; width:500px; height:260px; vertical-align:middle; border-style:none; ">
  224. <tr>
  225. <td style="width:150px; height:30px; text-align:left; ">
  226. <caption id="caption3" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">전용병상수</caption>
  227. </td>
  228. <td style="width:350px; height:30px; ">해당과가 보유하고 있는 전용 병상의 개수</td>
  229. </tr>
  230. <tr>
  231. <td style="width:150px; height:30px; ">
  232. <caption id="caption4" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">진료과환자수</caption>
  233. </td>
  234. <td style="width:350px; height:30px; ">해당과 진료 환자 중 전용 병상에 있는 환자수 (타과 병상 포함)</td>
  235. </tr>
  236. <tr>
  237. <td style="width:150px; height:30px; ">
  238. <caption id="caption5" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">전용병상환자수</caption>
  239. </td>
  240. <td style="width:350px; height:30px; ">해당과 소속 병상에 있는 모든 환자수 (타과 환자 포함)</td>
  241. </tr>
  242. <tr>
  243. <td style="width:150px; height:30px; ">
  244. <caption id="caption6" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">입원결정수</caption>
  245. </td>
  246. <td style="width:350px; height:30px; ">해당진료과로 결정한 환자 수</td>
  247. </tr>
  248. <tr>
  249. <td style="width:150px; height:10px; "/>
  250. <td style="width:350px; height:10px; "/>
  251. </tr>
  252. <tr>
  253. <td style="width:150px; height:30px; ">
  254. <caption id="caption8" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">진료과가동률</caption>
  255. </td>
  256. <td style="width:350px; height:30px; ">진료과 환자수 / 전용병상수 * 100</td>
  257. </tr>
  258. <tr>
  259. <td style="width:150px; height:30px; ">
  260. <caption id="caption9" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">전용병상가동률</caption>
  261. </td>
  262. <td style="width:350px; height:30px; ">전용 병상 환자수 / 전용 병상수 * 100</td>
  263. </tr>
  264. <tr>
  265. <td style="width:150px; height:30px; ">
  266. <caption id="caption10" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">입원결정률</caption>
  267. </td>
  268. <td style="width:350px; height:30px; ">전용병상수 / 입원결정수 * 100</td>
  269. </tr>
  270. <tr>
  271. <td style="width:150px; height:10px; "/>
  272. <td style="width:350px; height:10px; "/>
  273. </tr>
  274. <tr>
  275. <td style="width:150px; height:30px; ">
  276. <caption id="caption11" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">가용병상수(진료과)</caption>
  277. </td>
  278. <td style="width:350px; height:30px; ">진료과 가동률 기준 가용 병상수</td>
  279. </tr>
  280. <tr>
  281. <td style="width:150px; height:30px; ">
  282. <caption id="caption12" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">가용병상수(전용병상)</caption>
  283. </td>
  284. <td style="width:350px; height:30px; ">전용 병상 가동률 기준 가용 병상수</td>
  285. </tr>
  286. <tr>
  287. <td style="width:150px; height:30px; ">
  288. <caption id="caption13" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">가용병상수(적용)</caption>
  289. </td>
  290. <td style="width:350px; height:30px; ">두 가용 병상 중 적은 수의 가용 병상 수</td>
  291. </tr>
  292. </table>
  293. </group>
  294. <button id="btn_infoclose" class="btn2_letter2" visibility="hidden" style="left:941px; top:65px; width:42px; height:19px; ">
  295. <caption>닫기</caption>
  296. <script type="javascript" ev:event="DOMActivate">
  297. <![CDATA[
  298. grp_info.visible = btn_infoclose.visible = false;
  299. ]]>
  300. </script>
  301. </button>
  302. <caption id="caption15" style="left:1140px; top:740px; width:54px; height:20px; ">입원결정</caption>
  303. <caption id="caption16" style="left:1060px; top:740px; width:55px; height:20px; ">퇴원예고</caption>
  304. <shape id="rectangle1" appearance="rectangle" style="left:1042px; top:742px; width:15px; height:15px; background-color:#e5f3c2; border-color:#99cc00; "/>
  305. <shape id="rectangle2" appearance="rectangle" style="left:1122px; top:742px; width:15px; height:15px; background-color:#fcd2c1; border-color:#ff99cc; "/>
  306. <select id="checkbox1" ref="/root/send/exptyn" visibility="hidden" overflow="visible" appearance="full" style="left:715px; top:34px; width:16px; height:15px; border-style:none; ">
  307. <choices>
  308. <item>
  309. <label/>
  310. <value>Y</value>
  311. </item>
  312. </choices>
  313. </select>
  314. <caption id="caption17" class="search_name" visibility="hidden" style="left:605px; top:32px; width:110px; height:17px; ">특수병상 포함</caption>
  315. <button id="button1" class="btn2_letter8" style="left:745px; top:31px; width:103px; height:19px; ">
  316. <caption>특수병상제외내역</caption>
  317. <script type="javascript" ev:event="DOMActivate">
  318. <![CDATA[
  319. grp_bedinfo.visible = btn_bedinfoclose.visible = !grp_bedinfo.visible;
  320. ]]>
  321. </script>
  322. <hint>
  323. <![CDATA[PK074]]>
  324. </hint>
  325. </button>
  326. <group id="grp_bedinfo" visibility="hidden" style="left:745px; top:55px; width:225px; height:470px; ">
  327. <shape id="rectangle3" appearance="rectangle" style="left:0px; top:0px; width:225px; height:470px; border-color:#999999; "/>
  328. <caption id="caption18" style="left:5px; top:5px; width:215px; height:460px; vertical-align:top; line-spacing:4; "/>
  329. <button id="btn_bedinfoclose" class="btn2_letter2" style="left:178px; top:5px; width:42px; height:19px; ">
  330. <caption>닫기</caption>
  331. <script type="javascript" ev:event="DOMActivate">
  332. <![CDATA[
  333. grp_bedinfo.visible = false;
  334. ]]>
  335. </script>
  336. </button>
  337. </group>
  338. </xhtml:body>
  339. </xhtml:html>