SMPMS02120_병상이용 현황.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. <search>
  11. <fromdata/>
  12. <todata/>
  13. </search>
  14. <gridlist>
  15. <pamstats/>
  16. </gridlist>
  17. </main>
  18. <send>
  19. <fromdata/>
  20. <todata/>
  21. <data1>
  22. <rmspecref>1</rmspecref>
  23. <rmspecrefnm/>
  24. <sendflag/>
  25. <prestdd/>
  26. </data1>
  27. <sess_posinstcd>012</sess_posinstcd>
  28. </send>
  29. <init>
  30. <P0025list>
  31. <P0025>
  32. <cdid/>
  33. <cdnm/>
  34. </P0025>
  35. </P0025list>
  36. <P0026list>
  37. <P0026>
  38. <cdid/>
  39. <cdnm/>
  40. </P0026>
  41. </P0026list>
  42. </init>
  43. </root>
  44. </instance>
  45. <script type="javascript" ev:event="xforms-model-construct-done">
  46. <![CDATA[
  47. var vToday = new Date();
  48. var tmpYear = vToday.getYear();
  49. var tmpMonth = vToday.getMonth()+1;
  50. var tmpDate = vToday.getDate();
  51. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  52. if (tmpDate < 10) { tmpDate = "0"+tmpDate; }
  53. model.setValue("/root/main/search/fromdata", tmpYear+""+tmpMonth+""+tmpDate);
  54. model.setValue("/root/main/search/todata", tmpYear+""+tmpMonth+""+tmpDate);
  55. zbcfGetCodeList(new Array("P0025","P0026"), new Array("/root/init/P0025list","/root/init/P0026list"));
  56. submit("TRPMI00106");
  57. // btn_search.dispatch("DOMActivate");
  58. model.refresh();
  59. ]]>
  60. </script>
  61. <bind id="bind1" ref="/root/main/leavpatilist/leavpatistats" calculate="now() + ."/>
  62. <bind id="bind2" ref="/root/main/leavsumlist/leavsumstats/allamt" calculate="sum(/root/main/leavpatilist/leavpatistats/allamt);"/>
  63. <bind id="bind3" ref="/root/main/leavsumlist/leavsumstats/ownbamt" calculate="sum(/root/main/leavpatilist/leavpatistats/ownbamt);"/>
  64. <bind id="bind4" ref="/root/main/leavsumlist/leavsumstats/insubamt" calculate="sum(/root/main/leavpatilist/leavpatistats/insubamt);"/>
  65. <bind id="bind5" ref="/root/main/leavsumlist/leavsumstats/ordsunsuamt" calculate="sum(/root/main/leavpatilist/leavpatistats/ordsunsuamt);"/>
  66. <bind id="bind6" ref="/root/main/leavsumlist/leavsumstats/ordoutsunsu" calculate="sum(/root/main/leavpatilist/leavpatistats/ordoutsunsu);"/>
  67. <bind id="bind7" ref="/root/main/leavsumlist/leavsumstats/outuncoamt" calculate="sum(/root/main/leavpatilist/leavpatistats/outuncoamt);"/>
  68. <bind id="bind8" ref="/root/main/leavsumlist/leavsumstats/inuncoalt" calculate="sum(/root/main/leavpatilist/leavpatistats/inuncoalt);"/>
  69. <bind id="bind9" ref="/root/main/leavsumlist/leavsumstats/insunsualt" calculate="sum(/root/main/leavpatilist/leavpatistats/insunsualt);"/>
  70. <bind id="bind10" ref="/root/main/leavsumlist/leavsumstats/uncoenuri" calculate="sum(/root/main/leavpatilist/leavpatistats/uncoenuri);"/>
  71. <bind id="bind11" ref="/root/main/leavsumlist/leavsumstats/restamt" calculate="sum(/root/main/leavpatilist/leavpatistats/restamt);"/>
  72. <bind id="bind12" ref="/root/main/leavsumlist/leavsumstats/jasunamt" calculate="sum(/root/main/leavpatilist/leavpatistats/jasunamt);"/>
  73. <bind id="bind13" ref="/root/main/leavsumlist/leavsumstats/uncoredu" calculate="sum(/root/main/leavpatilist/leavpatistats/uncoredu);"/>
  74. <bind id="bind14" ref="/root/main/leavsumlist/leavsumstats/uncoblod" calculate="sum(/root/main/leavpatilist/leavpatistats/uncoblod);"/>
  75. <bind id="bind15" ref="/root/main/leavsumlist/leavsumstats/uncocard" calculate="sum(/root/main/leavpatilist/leavpatistats/uncocard);"/>
  76. <submission id="TRPMS02121" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/gridlist"/>
  77. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  78. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
  79. </model>
  80. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  86. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  87. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  88. </xhtml:head>
  89. <xhtml:body pagewidth="1211" pageheight="784">
  90. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  91. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">병상이용 현황</caption>
  92. </group>
  93. <group id="group2" style="left:4px; top:22px; width:1196px; height:35px; ">
  94. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:-29px; top:0px; width:1224px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  95. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:198px; height:17px; ">조회일</caption>
  96. <line id="line2" class="line_4" style="x1:1112px; y1:7px; x2:1112px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  97. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  98. <caption>조회</caption>
  99. <script type="javascript" ev:event="DOMActivate">
  100. <![CDATA[
  101. var fromdata = model.getValue("/root/main/search/fromdata");
  102. if(fromdata==""||fromdata==null){
  103. messageBox("조회일을 입력","E007");
  104. model.setFocus("srchfromdd");
  105. return false;
  106. }
  107. model.setValue("/root/send/fromdata",model.getValue("/root/main/search/fromdata"));
  108. submit("TRPMS02121");
  109. ]]>
  110. </script>
  111. </button>
  112. <button id="button95" class="btn6_letter4" style="left:936px; top:7px; width:80px; height:22px; ">
  113. <caption>액셀저장</caption>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. var vToday = new Date();
  117. var tmpYear = vToday.getYear();
  118. var tmpMonth = vToday.getMonth()+1;
  119. var tmpDate = vToday.getDate();
  120. // model.setValue("/root/documenttitle/title",document.title);
  121. // model.refresh();
  122. // var subjectTitle = model.getValue("/root/documenttitle/title");
  123. //엑셀저장 여부(타이틀별)
  124. var fileName = window.fileDialog("save", "", false, "병상이용현황"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  125. if (fileName != "")
  126. {
  127. grd_list.saveExcel(fileName, "병상이용현황"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  128. }
  129. ]]>
  130. </script>
  131. </button>
  132. <line id="line1" class="line_4" style="x1:1030px; y1:7px; x2:1030px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  133. <input id="srchfromdd" ref="/root/main/search/fromdata" class="input_default" navindex="7" inputtype="date" style="left:90px; top:8px; width:120px; height:19px; ">
  134. <script type="javascript" ev:event="xforms-value-changed">
  135. <![CDATA[
  136. btn_search.dispatch("DOMActivate");
  137. ]]>
  138. </script>
  139. </input>
  140. </group>
  141. <datagrid id="grd_list" nodeset="/root/main/gridlist/pamstats" autosizemouse="true" caption="병동^병실^병실형태^병실등급^총가동병상^점유병상^빈병상^가동율" colsep="^" colwidth="169, 100, 165, 194, 135, 120, 132, 127" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" rowheader="seq" rowsep="|" style="left:5px; top:65px; width:1195px; height:691px; ">
  142. <col ref="wardnm" type="input" format="(-)#,###" style="text-align:right; "/>
  143. <col ref="roomcd" style="text-align:right; "/>
  144. <col ref="roomtypecd" type="combo" format="(-)#,###" style="text-align:center; ">
  145. <choices>
  146. <itemset nodeset="/root/init/P0026list/P0026">
  147. <label ref="cdnm"/>
  148. <value ref="cdid"/>
  149. </itemset>
  150. </choices>
  151. </col>
  152. <col ref="roomgrdecd" type="combo" format="(-)#,###" style="text-align:center; ">
  153. <choices>
  154. <itemset nodeset="/root/init/P0025list/P0025">
  155. <label ref="cdnm"/>
  156. <value ref="cdid"/>
  157. </itemset>
  158. </choices>
  159. </col>
  160. <col ref="allbedcnt" format="(-)#,###" style="text-align:right; "/>
  161. <col ref="inpatcnt" format="(-)#,###" style="text-align:right; "/>
  162. <col ref="emptbedcnt" format="(-)#,###" style="text-align:right; "/>
  163. <col ref="usebedrate" style="text-align:right; "/>
  164. </datagrid>
  165. <button id="btn_print" class="btn6_letter2" style="left:1048px; top:29px; width:56px; height:22px; ">
  166. <caption>출력</caption>
  167. <script type="javascript" ev:event="DOMActivate">
  168. <![CDATA[
  169. exeReportPreview("RPPMS02121", "XMLSTR", "","", "false","","","","","false");
  170. ]]>
  171. </script>
  172. </button>
  173. </xhtml:body>
  174. </xhtml:html>