SPMNE14000_응급실체류시간(입원결정이후).xrw 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. <xhtml:head>
  5. <xhtml:title>응급실 입원결정 이후 체류 현황</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <durinfo>
  11. <durlist/>
  12. <durlist_sum/>
  13. </durinfo>
  14. </main>
  15. <cond>
  16. <sdate/>
  17. <edate/>
  18. <gbn>1</gbn>
  19. </cond>
  20. </root>
  21. </instance>
  22. <script type="javascript">
  23. <![CDATA[
  24. function fSearch(){
  25. model.removeNodeset("/root/main/durinfo/durlist");
  26. model.removeNodeset("/root/main/durinfo/durlist_sum");
  27. model.removeNodeset("/root/send");
  28. model.makeValue("/root/send/gbn", model.getValue("/root/cond/gbn"));
  29. model.makeValue("/root/send/sdate", model.getValue("/root/cond/sdate"));
  30. model.makeValue("/root/send/edate", model.getValue("/root/cond/edate"));
  31. submit("TRMNE14001");
  32. datagrid1.refresh();
  33. datagrid2.refresh();
  34. datagrid2.rebuild();
  35. }
  36. ]]>
  37. </script>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. model.makeValue("/root/cond/sdate", getCurrentDate());
  41. model.makeValue("/root/cond/edate", getCurrentDate());
  42. model.toggle("case1");
  43. btn_pat.selected = true;
  44. datagrid1.refresh();
  45. datagrid2.refresh();
  46. ]]>
  47. </script>
  48. <submission id="TRMNE14001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/durinfo/durlist"/>
  49. </model>
  50. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  54. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  55. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  56. </xhtml:head>
  57. <xhtml:body overflow="visible" scroll="autovscroll" pagewidth="1015" pageheight="800" style="font-family:굴림; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  58. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:320px; height:14px; font-family:굴림; ">입원결정 이후 체류현황</caption>
  59. <group id="group1" style="left:0px; top:20px; width:995px; height:35px; ">
  60. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:995px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  61. <line id="line13" style="x1:795px; y1:5px; x2:795px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  62. <caption id="caption33" class="search_name" style="left:243px; top:8px; width:96px; height:17px; ">기 간:</caption>
  63. <button id="btn_search" class="btn1_letter2" style="left:806px; top:7px; width:56px; height:22px; ">
  64. <caption>조회</caption>
  65. <script type="javascript" ev:event="DOMActivate">
  66. <![CDATA[
  67. fSearch();
  68. ]]>
  69. </script>
  70. </button>
  71. <input id="ipt_srhto" ref="/root/cond/edate" class="input_s_essential" disabled="true" inputtype="date" style="left:438px; top:8px; width:92px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  72. <caption id="caption8" style="left:423px; top:9px; width:15px; height:18px; font-weight:bold; ">~</caption>
  73. <input id="ipt_srhfrom" ref="/root/cond/sdate" class="input_s_essential" disabled="true" inputtype="date" style="left:324px; top:8px; width:92px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  74. <button id="button1" class="btn1_letter2" style="left:920px; top:7px; width:56px; height:22px; ">
  75. <caption>출력</caption>
  76. <script type="javascript" ev:event="DOMActivate">
  77. <![CDATA[
  78. if (switch1.selectedIndex == 1) {
  79. exeReportPreview("RPMNE14001","XMLSTR","");
  80. } else {
  81. exeReportPreview("RPMNE14000","XMLSTR","");
  82. }
  83. ]]>
  84. </script>
  85. </button>
  86. <select1 id="radio1" ref="/root/cond/gbn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:20px; top:9px; width:225px; height:20px; font-weight:bold; border-style:none; ">
  87. <choices>
  88. <item>
  89. <label>재원환자 기준</label>
  90. <value>1</value>
  91. </item>
  92. <item>
  93. <label>내원일 기준</label>
  94. <value>2</value>
  95. </item>
  96. </choices>
  97. <script type="javascript" ev:event="xforms-value-changed">
  98. <![CDATA[
  99. if (model.getValue("/root/cond/gbn") == "1") {
  100. ipt_srhfrom.disabled = true;
  101. ipt_srhto.disabled = true;
  102. } else {
  103. ipt_srhfrom.disabled = false;
  104. ipt_srhto.disabled = false;
  105. }
  106. ]]>
  107. </script>
  108. </select1>
  109. <caption id="caption1" style="left:234px; top:7px; width:10px; height:20px; font-weight:bold; ">(</caption>
  110. <caption id="caption2" style="left:535px; top:7px; width:10px; height:20px; font-weight:bold; ">)</caption>
  111. <button id="button2" class="btn1_letter2" style="left:863px; top:7px; width:56px; height:22px; ">
  112. <caption>Excel</caption>
  113. <script type="javascript" ev:event="DOMActivate">
  114. <![CDATA[
  115. if (switch1.selectedIndex == 1) {
  116. var fileName2 = window.fileDialog("save", ",", false, getCurrentDate() + "_과별체류현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  117. datagrid2.saveExcel(fileName2, "sheetname:sheet1;colhiddenextend:false;", true, true, "", "", true);
  118. } else {
  119. var fileName = window.fileDialog("save", ",", false, getCurrentDate() + "_환자별체류현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  120. datagrid1.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false;", true, true, "", "", true);
  121. }
  122. ]]>
  123. </script>
  124. </button>
  125. </group>
  126. <switch id="switch1" style="left:0px; top:80px; width:997px; height:690px; ">
  127. <case id="case1">
  128. <line id="line2" class="line_1" style="x1:0px; y1:0px; x2:995px; y2:0px; "/>
  129. <datagrid id="datagrid1" nodeset="/root/main/durinfo/durlist" class="datagrid2" caption="환자번호^이름^성별/나이^입원일^입실일시^입실일시^재방문&#xA;횟수^진료과^진료의^입원결정일시^입원장 발급일시^체류시간&#xA;(분)^퇴실일시^퇴실일시" colsep="^" colwidth="70, 65, 60, 75, 75, 40, 50, 100, 65, 100, 100, 60, 75, 40" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:6px; width:995px; height:681px; ">
  130. <col ref="pid"/>
  131. <col ref="hngnm"/>
  132. <col ref="sa" style="text-align:center; "/>
  133. <col ref="indd" format="yyyy-mm-dd"/>
  134. <col ref="chosdd" format="yyyy-mm-dd"/>
  135. <col ref="chostm" format="hh:nn"/>
  136. <col ref="visitno" style="text-align:center; "/>
  137. <col ref="juorddeptcd"/>
  138. <col ref="juorddrid"/>
  139. <col ref="decndt" format="yyyy-mm-dd hh:nn"/>
  140. <col ref="rsrvdt" format="yyyy-mm-dd hh:nn"/>
  141. <col ref="durtime" format="#,###" style="text-align:right; "/>
  142. <col ref="outrmdd" format="yyyy-mm-dd"/>
  143. <col ref="outrmtm" format="hh:nn"/>
  144. </datagrid>
  145. </case>
  146. <case id="case2" selected="true">
  147. <line id="line1" class="line_1" style="x1:0px; y1:0px; x2:995px; y2:0px; "/>
  148. <datagrid id="datagrid2" nodeset="/root/main/durinfo/durlist_sum" caption="진료과^총 체류시간 (분)^총 체류시간 (일)^환자수^평균 체류시간 (분)^평균 체류시간 (일)" colsep="^" colwidth="150, 120, 120, 100, 120, 120" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:6px; width:995px; height:681px; ">
  149. <col ref="juorddeptcd"/>
  150. <col ref="sum_durtime" format="#,###" style="text-align:right; "/>
  151. <col ref="sum_durtime_d" format="#,###" style="text-align:right; "/>
  152. <col ref="cnt" format="#,###" style="text-align:right; "/>
  153. <col ref="avg_durtime" format="#,###" style="text-align:right; "/>
  154. <col ref="avg_durtime_d" format="#,###" style="text-align:right; "/>
  155. </datagrid>
  156. </case>
  157. </switch>
  158. <button id="btn_dept" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:101px; top:56px; width:103px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  159. <caption>과별 통계</caption>
  160. <toggle case="case3" ev:event="onclick"/>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. model.toggle("case2");
  164. ]]>
  165. </script>
  166. </button>
  167. <button id="btn_pat" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:1px; top:56px; width:100px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  168. <caption>환자현황</caption>
  169. <toggle case="case1" ev:event="onclick"/>
  170. <setfocus ev:event="xforms-valid"/>
  171. <script type="javascript" ev:event="DOMActivate">
  172. <![CDATA[
  173. model.toggle("case1");
  174. ]]>
  175. </script>
  176. </button>
  177. <caption id="caption3" style="left:950px; top:775px; width:45px; height:20px; text-align:right; ">[표]</caption>
  178. </xhtml:body>
  179. </xhtml:html>