SMMNW18100_입퇴원라운지통계.xrw 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. <script type="javascript">
  5. <![CDATA[
  6. function fInitialize()
  7. {
  8. model.removeNodeset("/root/main/inlvstatinfo/inlvstatlist");
  9. model.resetInstanceNode("/root/send");
  10. model.setValue("/root/main/cond/fromdd",getCurrentDate());
  11. model.setValue("/root/main/cond/todd",getCurrentDate());
  12. model.refresh();
  13. }
  14. function fSearch()
  15. {
  16. var fromdd = model.getValue("/root/main/cond/fromdd");
  17. var todd = model.getValue("/root/main/cond/todd");
  18. if(getDateInterval(fromdd, todd) > 31){
  19. messageBox("조회기간은 한달이상을 넘을 수", "I004");
  20. model.setFocus("ipt_todd");
  21. return;
  22. }
  23. model.removeNodeset("/root/main/inlvstatinfo/inlvstatlist");
  24. model.copyNode("/root/send","/root/main/cond");
  25. submit("TRMNW18100");
  26. if(model.getValue("/root/main/cond/srchflag") == "1"){
  27. grd_inlvstatlist.colHidden(grd_inlvstatlist.colRef("telvcnt")) = true;
  28. grd_inlvstatlist.colHidden(grd_inlvstatlist.colRef("mdlvcnt")) = true;
  29. }else{
  30. grd_inlvstatlist.colHidden(grd_inlvstatlist.colRef("telvcnt")) = false;
  31. grd_inlvstatlist.colHidden(grd_inlvstatlist.colRef("mdlvcnt")) = false;
  32. }
  33. grd_inlvstatlist.subtotalPosition="below";
  34. grd_inlvstatlist.subtotal("sum", -1,1, "#,###.##", "background-color:#99ff99", 0, "");
  35. grd_inlvstatlist.subtotal("sum", -1,2, "#,###.##", "background-color:#99ff99", 0, "");
  36. grd_inlvstatlist.subtotal("sum", -1,3, "#,###.##", "background-color:#99ff99", 0, "");
  37. grd_inlvstatlist.subtotal("sum", -1,4, "#,###.##", "background-color:#99ff99", 0, "");
  38. grd_inlvstatlist.subtotal("sum", -1,5, "#,###.##", "background-color:#99ff99", 0, "");
  39. grd_inlvstatlist.subtotal("sum", -1,6, "#,###.##", "background-color:#99ff99", 0, "");
  40. grd_inlvstatlist.subtotal("average", -1, 7, "#,###", "background-color:#99ff99", 8, "%");
  41. grd_inlvstatlist.subtotal("sum", -1,9, "#,###.##", "background-color:#99ff99", 0, "");
  42. grd_inlvstatlist.subtotal("sum", -1,10, "#,###.##", "background-color:#99ff99", 0, "");
  43. }
  44. ]]>
  45. </script>
  46. <xhtml:head>
  47. <xhtml:title>입퇴원라운지통계</xhtml:title>
  48. <model id="model1">
  49. <instance id="instance1">
  50. <root xmlns="">
  51. <main>
  52. <cond>
  53. <srchflag>1</srchflag>
  54. <fromdd/>
  55. <todd/>
  56. </cond>
  57. <inlvstatinfo/>
  58. </main>
  59. <send/>
  60. </root>
  61. </instance>
  62. <submission id="TRMNW18100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inlvstatinfo/inlvstatlist"/>
  63. </model>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" ev:event="xforms-ready">
  69. <![CDATA[
  70. fInitialize();
  71. ]]>
  72. </script>
  73. </xhtml:head>
  74. <xhtml:body pagewidth="630" pageheight="700" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  75. <group id="group1" style="left:0px; top:0px; width:610px; height:13px; ">
  76. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:15px; ">입퇴원라운지통계</caption>
  77. </group>
  78. <group id="group3" style="left:0px; top:13px; width:610px; height:677px; ">
  79. <group id="group2" style="left:0px; top:10px; width:610px; height:35px; ">
  80. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:610px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  81. <line id="line2" class="line_4" style="x1:478px; y1:7px; x2:478px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  82. <caption id="caption17" class="search_name" style="left:14px; top:8px; width:95px; height:17px; ">업무일자 :</caption>
  83. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_search" editable="false" inputtype="date" format="yyyy-mm-dd" style="left:107px; top:8px; width:98px; height:19px; "/>
  84. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_search" editable="false" inputtype="date" style="left:227px; top:8px; width:98px; height:19px; "/>
  85. <caption id="cpt_line" class="search_no_b" style="left:210px; top:8px; width:12px; height:17px; ">~</caption>
  86. <button id="btn_search" class="btn1_letter2" style="left:488px; top:7px; width:56px; height:22px; ">
  87. <caption>조회</caption>
  88. <script type="javascript" ev:event="DOMActivate">
  89. <![CDATA[
  90. fSearch();
  91. ]]>
  92. </script>
  93. </button>
  94. <select1 id="rdo_srchflag" ref="/root/main/cond/srchflag" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:340px; top:8px; width:110px; height:20px; border-style:none; ">
  95. <choices>
  96. <item>
  97. <label>병동</label>
  98. <value>1</value>
  99. </item>
  100. <item>
  101. <label>진료과</label>
  102. <value>2</value>
  103. </item>
  104. </choices>
  105. <script type="javascript" ev:event="xforms-value-changed">
  106. <![CDATA[
  107. fSearch();
  108. ]]>
  109. </script>
  110. </select1>
  111. <button id="button1" class="btn1_letter2" style="left:545px; top:7px; width:56px; height:22px; ">
  112. <caption>엑셀</caption>
  113. <script type="javascript" ev:event="DOMActivate">
  114. <![CDATA[
  115. var fName = "";
  116. if(model.getValue("/root/main/cond/srchflag") == "1"){
  117. fName = "입퇴원라운지통계(병동)_";
  118. }else if(model.getValue("/root/main/cond/srchflag") == "2"){
  119. fName = "입퇴원라운지통계(진료과)_";
  120. }
  121. var fileName = window.fileDialog("save", ",", false, fName + getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  122. if (fileName != ""){
  123. grd_inlvstatlist.saveExcel(fileName, "SheetName;colhiddenextend:false", true, true, "", "", false);
  124. }
  125. ]]>
  126. </script>
  127. </button>
  128. </group>
  129. <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:300px; height:14px; font-family:돋움; vertical-align:middle; ">입퇴원라운지현황</caption>
  130. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:610px; y2:70px; "/>
  131. <datagrid id="grd_inlvstatlist" nodeset="/root/main/inlvstatinfo/inlvstatlist" class="datagrid2" caption="부서^평균&#xA;병상수^입원^입원&#xA;방문^입실&#xA;저장^퇴원^퇴원&#xA;방문^전일&#xA;퇴원예고율^전일&#xA;퇴원예고율^검사대기&#xA;방문^진료대기&#xA;방문" colsep="^" colwidth="105, 50, 50, 50, 50, 50, 50, 50, 20, 55, 55" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:75px; width:610px; height:600px; ">
  132. <col ref="orddeptnm"/>
  133. <col ref="roomcnt" style="text-align:right; "/>
  134. <col ref="inptcnt" style="text-align:right; "/>
  135. <col ref="idlvcnt" style="text-align:right; "/>
  136. <col ref="careinrmcnt" style="text-align:right; "/>
  137. <col ref="dschcnt" style="text-align:right; "/>
  138. <col ref="dhlvcnt" style="text-align:right; "/>
  139. <col ref="dschrate" style="text-align:right; "/>
  140. <col ref="dschrateper"/>
  141. <col ref="telvcnt" visibility="hidden" style="text-align:right; "/>
  142. <col ref="mdlvcnt" visibility="hidden" style="text-align:right; "/>
  143. <script type="javascript" ev:event="onaftersort">
  144. <![CDATA[
  145. grd_inlvstatlist.gridToInstance();
  146. ]]>
  147. </script>
  148. </datagrid>
  149. </group>
  150. </xhtml:body>
  151. </xhtml:html>