SMPMI05201_전체병상전용병상가동률.xrw 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <bedinfo>
  11. <bedlist/>
  12. </bedinfo>
  13. </main>
  14. <send>
  15. <fromdd/>
  16. <todd/>
  17. <termflag/>
  18. </send>
  19. </root>
  20. </instance>
  21. <submission id="TRPMI05211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bedinfo"/>
  22. </model>
  23. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  24. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  25. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  26. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  27. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  28. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  29. <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
  30. <script type="javascript" ev:event="xforms-ready">
  31. <![CDATA[
  32. rdo_termflag.value = "D";
  33. rdo_termflag.dispatch("xforms-value-changed");
  34. ipt_fromdd.value = getCurrentDate();
  35. ipt_todd.value = getCurrentDate();
  36. // zbcfGetCodeList(new Array("P0008","P0025","P0037"),new Array("/root/init1/P0008list","/root/init1/P0025list","/root/init/P0037list"));
  37. ]]>
  38. </script>
  39. </xhtml:head>
  40. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  41. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  42. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:204px; height:15px; ">전용병상 가동률 현황</caption>
  43. </group>
  44. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1193px; height:720px; ">
  45. <line id="line5" class="line_1" style="x1:0px; y1:25px; x2:1175px; y2:25px; "/>
  46. <caption id="caption7" class="tit_2" style="left:5px; top:6px; width:239px; height:14px; ">진료과별 병동별 병상가동현황 - 과별</caption>
  47. <button id="btn_print5" class="btn2_letter2" visibility="hidden" style="left:1050px; top:3px; width:42px; height:19px; ">
  48. <caption>출력</caption>
  49. <script type="javascript" ev:event="DOMActivate">
  50. <![CDATA[
  51. exeReportPreview("RPPMI05250", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  52. ]]>
  53. </script>
  54. </button>
  55. <datagrid id="grd_bedlist" nodeset="/root/main/bedinfo/bedlist" class="datagrid" caption="진료과^기본병상수^총병상수^환자수^가동율^진료과별(주진료과)^진료과별(주진료과)^진료과별(주진료과)^진료과별(주.부진료과)^진료과별(주.부진료과)^진료과별(주.부진료과)|진료과^기본병상수^총병상수^환자수^가동율^환자수^가동률^전체가동률대비병상^환자수^가동률^전체가동률대비병상" colsep="^" colwidth="120, 80, 90, 80, 80, 100, 125, 120, 100, 126, 120" mergecellsfixedrows="bycolrec" rowsep="|" ref="/root/main/bedinfo/bedlist" style="left:0px; top:60px; width:1170px; height:640px; text-align:center; ">
  56. <col disabled="true" ref="orddeptnm" type="output"/>
  57. <col ref="wardcnt"/>
  58. <col ref="bedcnt"/>
  59. <col ref="allinpatcnt"/>
  60. <col ref="allorddrate"/>
  61. <col ref="maininpatcnt"/>
  62. <col ref="mainorddrate"/>
  63. <col ref="mainpoint"/>
  64. <col ref="bothinpatcnt"/>
  65. <col ref="bothorddrate"/>
  66. <col ref="bothpoint"/>
  67. </datagrid>
  68. <group id="group5" style="left:0px; top:5px; width:1172px; height:35px; vertical-align:top; ">
  69. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1172px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  70. <line id="line13" class="line_4" style="x1:1100px; y1:7px; x2:1100px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  71. <button id="btn_search2" class="btn1_letter2" style="left:1111px; top:7px; width:56px; height:22px; ">
  72. <caption>조회</caption>
  73. <script type="javascript" ev:event="DOMActivate">
  74. <![CDATA[
  75. submit("TRPMI05211");
  76. var totalmainrate = grd_bedlist.valueMatrix(grd_bedlist.rows-1, grd_bedlist.colRef("mainorddrate") );
  77. var totalbothrate = grd_bedlist.valueMatrix(grd_bedlist.rows-1, grd_bedlist.colRef("bothorddrate") );
  78. for ( i = grd_bedlist.fixedrows; i < grd_bedlist.rows -1 ; i++) {
  79. var wardcnt = grd_bedlist.valueMatrix( i, grd_bedlist.colRef("wardcnt") );
  80. var bedcnt = grd_bedlist.valueMatrix(i, grd_bedlist.colRef("bedcnt") );
  81. var mainorddrate = grd_bedlist.valueMatrix( i, grd_bedlist.colRef("mainorddrate") );
  82. var bothorddrate = grd_bedlist.valueMatrix( i, grd_bedlist.colRef("bothorddrate") );
  83. if ( rdo_termflag.value == "D") {
  84. var mainpoint = (mainorddrate - totalmainrate)/100*wardcnt;
  85. var bothpoint = (bothorddrate - totalbothrate)/100*wardcnt;
  86. grd_bedlist.valueMatrix(i, grd_bedlist.colRef("mainpoint") ) = Math.floor(mainpoint);
  87. grd_bedlist.valueMatrix(i, grd_bedlist.colRef("bothpoint") ) = Math.floor(bothpoint);
  88. } else if ( rdo_termflag.value == "T") {
  89. var mainpoint = (mainorddrate - totalmainrate)/100*wardcnt;
  90. var bothpoint = (bothorddrate - totalbothrate)/100*wardcnt;
  91. grd_bedlist.valueMatrix(i, grd_bedlist.colRef("mainpoint") ) = Math.floor(mainpoint);
  92. grd_bedlist.valueMatrix(i, grd_bedlist.colRef("bothpoint") ) = Math.floor(bothpoint);
  93. }
  94. }
  95. ]]>
  96. </script>
  97. </button>
  98. <button id="btn_saveexcel5" class="btn3_letter4" visibility="visible" style="left:1014px; top:7px; width:80px; height:22px; ">
  99. <caption>엑셀저장</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  103. if (fileName != "")
  104. {
  105. if ( rdo_termflag.value == "T") {
  106. grd_bedlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  107. } else {
  108. grd_bedlist.saveExcel(fileName, "SheetName", false, false, "", "", true);
  109. }
  110. }
  111. ]]>
  112. </script>
  113. </button>
  114. <caption id="caption39" class="search_name" style="left:21px; top:9px; width:87px; height:17px; ">조회기간 :</caption>
  115. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_essential" inputtype="date" style="left:110px; top:10px; width:90px; height:20px; "/>
  116. <input id="ipt_todd" ref="/root/send/todd" class="input_essential" inputtype="date" style="left:225px; top:10px; width:90px; height:19px; "/>
  117. <caption id="caption1" style="left:205px; top:10px; width:15px; height:20px; ">~</caption>
  118. <caption id="caption2" class="search_name" style="left:338px; top:9px; width:87px; height:17px; ">검색조건 :</caption>
  119. <select1 id="rdo_termflag" ref="/root/send/termflag" appearance="full" cols="2" overflow="visible" style="left:430px; top:11px; width:185px; height:20px; border-style:none; ">
  120. <choices>
  121. <item>
  122. <label>당일</label>
  123. <value>D</value>
  124. </item>
  125. <item>
  126. <label>기간별</label>
  127. <value>T</value>
  128. </item>
  129. </choices>
  130. <script type="javascript" ev:event="xforms-value-changed">
  131. <![CDATA[
  132. model.removeNodeset("/root/main/bedinfo/bedlist");
  133. if ( rdo_termflag.value == "D" ) {
  134. ipt_fromdd.disabled = true;
  135. ipt_todd.disabled = true;
  136. grd_bedlist.colHidden(grd_bedlist.colRef("bedcnt")) = true;
  137. } else if ( rdo_termflag.value == "T") {
  138. ipt_fromdd.disabled = false;
  139. ipt_todd.disabled = false;
  140. grd_bedlist.colHidden(grd_bedlist.colRef("bedcnt")) = false;
  141. }
  142. ]]>
  143. </script>
  144. </select1>
  145. </group>
  146. </group>
  147. </xhtml:body>
  148. </xhtml:html>