SPMNE11000_EICU 응급입원실 입실현황.xrw 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>EICU/응급입원실 입실현황</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <gubun>01</gubun>
  12. <fromdd/>
  13. <todd/>
  14. </cond>
  15. <inroominfo>
  16. <inroomnmlist>
  17. <pid/>
  18. <hngnm/>
  19. <sex/>
  20. <age/>
  21. <indd/>
  22. <inroomdt/>
  23. </inroomnmlist>
  24. <deptcntlist>
  25. <deptcntym/>
  26. <inorddeptnm/>
  27. <patcnt/>
  28. </deptcntlist>
  29. <avgkeepcntlist>
  30. <avgkeepcntym/>
  31. <avgkeepcnt/>
  32. </avgkeepcntlist>
  33. </inroominfo>
  34. </main>
  35. <send>
  36. <reqdata/>
  37. </send>
  38. </root>
  39. </instance>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. var dt = getCurrentDate();
  43. //var dat = ((dt.toDate("YYYYMMDD")).getAddDate(-3, "D")).getDateFormat("YYYYMMDD") ;
  44. model.setValue(ipt_fromdd.attribute("ref"), dt);
  45. model.setValue(ipt_todd.attribute("ref"), dt);
  46. ipt_fromdd.refresh();
  47. ipt_todd.refresh();
  48. model.toggle("case_inroomnm");
  49. fSearch() ;
  50. ]]>
  51. </script>
  52. <submission id="TRMNE10600" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/inroominfo"/>
  53. </model>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript">
  58. <![CDATA[
  59. var flag="1";
  60. function fSearch() {
  61. model.copyNode("/root/send/reqdata", "/root/main/cond");
  62. submit("TRMNE10600");
  63. }
  64. ]]>
  65. </script>
  66. </xhtml:head>
  67. <xhtml:body style="font-family:굴림, Arial; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  68. <group id="group3" style="left:0px; top:0px; width:1195px; height:776px; font-family:굴림; vertical-align:middle; ">
  69. <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:210px; height:14px; font-family:굴림; vertical-align:middle; ">EICU/응급입원실 입실현황</caption>
  70. <group id="grp_sea" style="left:10px; top:20px; width:1170px; height:40px; font-family:굴림; vertical-align:top; ">
  71. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1170px; height:40px; font-family:굴림; "/>
  72. <caption id="caption3" class="search_name" style="left:25px; top:9px; width:69px; height:17px; font-family:굴림; ">기 간 :</caption>
  73. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:100px; top:8px; width:95px; height:19px; font-family:굴림; "/>
  74. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" navindex="2" inputtype="date" style="left:215px; top:8px; width:95px; height:19px; font-family:굴림; "/>
  75. <caption id="caption4" style="left:193px; top:10px; width:20px; height:15px; font-family:굴림; text-align:center; ">~</caption>
  76. <select1 id="radio1" ref="/root/main/cond/gubun" appearance="full" cellspacing="30" cols="3" overflow="visible" style="left:405px; top:10px; width:305px; height:20px; border-style:none; ">
  77. <choices>
  78. <item>
  79. <label>EICU</label>
  80. <value>01</value>
  81. </item>
  82. <item>
  83. <label>응급입원실</label>
  84. <value>02</value>
  85. </item>
  86. <item>
  87. <label>508응급병동</label>
  88. <value>03</value>
  89. </item>
  90. </choices>
  91. </select1>
  92. </group>
  93. <caption id="caption25" class="search_name" style="left:390px; top:30px; width:20px; height:17px; font-family:굴림; "/>
  94. <button id="button1" class="btn1_letter2" navindex="7" style="left:1100px; top:30px; width:56px; height:22px; font-family:굴림; ">
  95. <caption>엑셀</caption>
  96. <script type="javascript" ev:event="DOMActivate">
  97. <![CDATA[
  98. if(flag=="1") {
  99. var fileName = window.fileDialog("save", ",", false, radio1.label + "입실환자명단", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  100. grd_inroomnmlist.saveExcel(fileName , "sheetname:sheet1;colhiddenextend:false;", true, true, "", "", true);
  101. } else if(flag=="2"){
  102. var fileName = window.fileDialog("save", ",", false, radio1.label + "기간별 월별 과별 환자수", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  103. grd_deptcntlist.saveExcel(fileName , "sheetname:sheet1;colhiddenextend:false;", true, true, "", "", true);
  104. } else if(flag=="3") {
  105. var fileName = window.fileDialog("save", ",", false, radio1.label + "기간내 월별 평균 재원일수", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  106. grd_avgkeepcntlist.saveExcel(fileName , "sheetname:sheet1;colhiddenextend:false;", true, true, "", "", true);
  107. }
  108. ]]>
  109. </script>
  110. </button>
  111. <switch id="switch1" style="left:10px; top:95px; width:1170px; height:655px; ">
  112. <case id="case_inroomnm" selected="true">
  113. <datagrid id="grd_inroomnmlist" nodeset="/root/main/inroominfo/inroomnmlist" visibility="visible" caption="환자번호^이름^성별^나이^내원일^응급실입실일시^EICU/응급병동 입실일시" colsep="^" colwidth="100, 100, 70, 70, 110, 145, 145" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:10px; width:1155px; height:635px; ">
  114. <col ref="pid" style="text-align:center; "/>
  115. <col ref="hngnm" style="text-align:center; "/>
  116. <col ref="sex" style="text-align:center; "/>
  117. <col ref="age" style="text-align:center; "/>
  118. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  119. <col ref="chosdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  120. <col ref="inroomdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  121. </datagrid>
  122. <line id="line4" class="line_1" style="x1:5px; y1:5px; x2:1160px; y2:5px; font-family:굴림; "/>
  123. </case>
  124. <case id="case_deptcnt">
  125. <datagrid id="grd_deptcntlist" nodeset="/root/main/inroominfo/deptcntlist" caption="구분(월)^진료과^환자수" colsep="^" colwidth="100, 134, 89" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:10px; width:1155px; height:635px; font-family:굴림; ">
  126. <col ref="deptcntym" style="font-family:굴림; text-align:center; "/>
  127. <col ref="inorddeptnm" style="font-family:굴림; text-align:center; "/>
  128. <col ref="patcnt" style="font-family:굴림; text-align:center; "/>
  129. </datagrid>
  130. <line id="line2" class="line_1" style="x1:5px; y1:5px; x2:1160px; y2:5px; font-family:굴림; "/>
  131. </case>
  132. <case id="case_avgkeepcnt">
  133. <datagrid id="grd_avgkeepcntlist" nodeset="/root/main/inroominfo/avgkeepcntlist" caption="구분(월)^평균재원일수(일)" colsep="^" colwidth="100, 133" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:10px; width:1155px; height:635px; font-family:굴림; ">
  134. <col ref="avgkeepcntym" style="font-family:굴림; text-align:center; "/>
  135. <col ref="avgkeepcnt" style="font-family:굴림; text-align:center; "/>
  136. </datagrid>
  137. <line id="line1" class="line_1" style="x1:5px; y1:5px; x2:1160px; y2:5px; font-family:굴림; "/>
  138. </case>
  139. </switch>
  140. <button id="button2" class="btn_sw" group="tab" selected="true" style="left:10px; top:75px; width:110px; height:22px; font-family:굴림; ">
  141. <caption>입실 환자 명단</caption>
  142. <script type="javascript" ev:event="DOMActivate">
  143. <![CDATA[
  144. flag="1";
  145. model.toggle("case_inroomnm");
  146. ]]>
  147. </script>
  148. </button>
  149. <button id="button3" class="btn_sw" group="tab" style="left:120px; top:75px; width:155px; height:22px; font-family:굴림; ">
  150. <caption>기간내 월별 과별 환자수</caption>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. flag="2";
  154. model.toggle("case_deptcnt");
  155. ]]>
  156. </script>
  157. </button>
  158. <button id="button4" class="btn_sw" group="tab" style="left:275px; top:75px; width:160px; height:22px; font-family:굴림; ">
  159. <caption>기간내 월별 평균 재원일수</caption>
  160. <script type="javascript" ev:event="DOMActivate">
  161. <![CDATA[
  162. flag="3";
  163. model.toggle("case_avgkeepcnt");
  164. ]]>
  165. </script>
  166. </button>
  167. <button id="button5" class="btn1_letter2" navindex="7" style="left:1040px; top:30px; width:56px; height:22px; font-family:굴림; ">
  168. <caption>조회</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. fSearch() ;
  172. ]]>
  173. </script>
  174. </button>
  175. </group>
  176. </xhtml:body>
  177. </xhtml:html>