SMPMI05000_전일당일퇴원예고.xrw 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMPM105001_전일당일퇴원예고.xrw
  4. * 설 명 : 퇴원예고별통계
  5. * 설 계 자 :
  6. * 작 성 자 : 김소영
  7. * 작 성 일 : 2009.09.08
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <?xml-stylesheet href="C:/CMCProject/application/webapps/com/commonweb/css/common.css" type="text/css" ?>
  13. <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">
  14. <xhtml:head>
  15. <xhtml:title>퇴원사유별통계</xhtml:title>
  16. <model id="model1">
  17. <instance id="instance1">
  18. <root xmlns="">
  19. <main>
  20. <gridlist>
  21. <grid>
  22. <col1/>
  23. <col2/>
  24. <col3/>
  25. <col4/>
  26. <col5/>
  27. <col6/>
  28. <col7/>
  29. <col8/>
  30. <col9/>
  31. <col10/>
  32. <col11/>
  33. <col12/>
  34. <col13/>
  35. <col14/>
  36. </grid>
  37. </gridlist>
  38. <cond>
  39. <dsch>1</dsch>
  40. <cond1>1</cond1>
  41. <fromdd/>
  42. <todd/>
  43. </cond>
  44. </main>
  45. <send>
  46. </send>
  47. <init/>
  48. <hidden>
  49. </hidden>
  50. </root>
  51. </instance>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. // fInitialize();
  55. //날자 입력 항목에 오늘 날자 세팅
  56. var curDate = getCurrentDate();
  57. ipt_fromdd.value =curDate;
  58. ipt_todd.value =curDate;
  59. model.setValue("/root/main/cond/fromdd", curDate);
  60. model.setValue("/root/main/cond/todd", curDate);
  61. ]]>
  62. </script>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  68. <script type="javascript">
  69. <![CDATA[
  70. function gridcnt(a){
  71. var b = grd_list.cols;
  72. var c = null;
  73. if (b >a) {
  74. for( i=0;b-i>a;i++ ){
  75. grd_list.removeColumn();
  76. }
  77. }
  78. else if (b <a) {
  79. for( i=0;b+i<a;i++){
  80. c = "ref:col"+(b+i+1)+";type:output";
  81. grd_list.addColumn(c);
  82. grd_list.colWidth(b+i) ="80" ;
  83. }
  84. }
  85. }
  86. function initgrid(){
  87. model.makeNode("/root/main/gridlist/grid");
  88. model.refresh();
  89. if (rdo_cond1.value != 3 && rdo_dsch.value ==1) {
  90. gridcnt(13);
  91. grd_list.caption ="구분^전체퇴원^당일퇴원전체^제외^순수당일퇴원^전일퇴원^평가소계^전일퇴원율^사망^탈원^자의퇴원^1일입원^전일퇴원해당" ;
  92. }
  93. else if (rdo_cond1.value == 3 && rdo_dsch.value ==1) {
  94. gridcnt(14);
  95. grd_list.caption ="구분^진료의^전체퇴원^당일퇴원전체^제외^순수당일퇴원^전일퇴원^평가소계^전일퇴원율^사망^탈원^자의퇴원^1일입원^전일퇴원해당";
  96. }
  97. else if (rdo_cond1.value != 3 && rdo_dsch.value ==2){
  98. gridcnt(11);
  99. grd_list.caption ="구분^당일퇴원전체^회진후퇴원^협진후^검사후^수술후^추가약처방후^추가서류후^추가처치후^약반납후^추가식사후";
  100. }
  101. else if (rdo_cond1.value == 3 && rdo_dsch.value ==2){
  102. gridcnt(12);
  103. grd_list.caption ="구분^진료의^당일퇴원전체^회진후퇴원^협진후^검사후^수술후^추가약처방후^추가서류후^추가처치후^약반납후^추가식사후";
  104. }
  105. }
  106. function fInitialize(){
  107. model.removeNodeset("/root/main/gridlist/grid");
  108. model.refresh();
  109. }
  110. ]]>
  111. </script>
  112. <submission id="TRPMI05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/gridlist"/>
  113. </model>
  114. </xhtml:head>
  115. <xhtml:body>
  116. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:25px; width:1194px; height:70px; "/>
  117. <caption id="caption3" class="tit_1" style="left:0px; top:5px; width:215px; height:13px; ">전일/당일 퇴원 사유별 통계</caption>
  118. <button id="button1" class="btn1_letter2" style="left:1040px; top:45px; width:56px; height:22px; ">
  119. <caption>조회</caption>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. var dsch = model.getValue("/root/main/cond/dsch");
  123. var cond1 = model.getValue("/root/main/cond/cond1");
  124. var fromdd = model.getValue("/root/main/cond/fromdd");
  125. var todd = model.getValue("/root/main/cond/todd");
  126. model.makeValue("/root/send/dsch",dsch);
  127. model.makeValue("/root/send/cond1",cond1);
  128. model.makeValue("/root/send/fromdd",fromdd);
  129. model.makeValue("/root/send/todd",todd);
  130. submit("TRPMI05001");
  131. grd_list.refresh();
  132. ]]>
  133. </script>
  134. </button>
  135. <caption id="caption1" class="search_name" style="left:460px; top:35px; width:85px; height:17px; ">조회기간</caption>
  136. <caption id="caption2" class="search_name" style="left:15px; top:35px; width:90px; height:17px; ">퇴원구분</caption>
  137. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" inputtype="date" style="left:555px; top:35px; width:100px; height:19px; "/>
  138. <input id="ipt_todd" ref="/root/main/cond/todd" inputtype="date" style="left:660px; top:35px; width:100px; height:19px; "/>
  139. <datagrid id="grd_list" nodeset="/root/main/gridlist/grid" autoresize="true" caption="구분^전체퇴원^당일퇴원전체^제외^순수당일퇴원^전일퇴원^평가소계^전일퇴원율^사망^탈원^자의퇴원^1일입원^전일퇴원해당^전일퇴원해당" colsep="^" colwidth="113, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:100px; width:1194px; height:640px; ">
  140. <col ref="col1"/>
  141. <col ref="col2"/>
  142. <col ref="col3"/>
  143. <col ref="col4"/>
  144. <col ref="col5"/>
  145. <col ref="col6"/>
  146. <col ref="col7"/>
  147. <col ref="col8"/>
  148. <col ref="col9"/>
  149. <col ref="col10"/>
  150. <col ref="col11"/>
  151. <col ref="col12"/>
  152. <col ref="col13"/>
  153. </datagrid>
  154. <select1 id="rdo_cond1" ref="/root/main/cond/cond1" overflow="visible" appearance="full" cellspacing="10" cols="3" style="left:135px; top:65px; width:225px; height:20px; border-style:none; ">
  155. <choices>
  156. <item>
  157. <label>진료과별</label>
  158. <value>1</value>
  159. </item>
  160. <item>
  161. <label>병동별</label>
  162. <value>2</value>
  163. </item>
  164. <item>
  165. <label>진료의별</label>
  166. <value>3</value>
  167. </item>
  168. </choices>
  169. <script type="javascript" ev:event="xforms-value-changed">
  170. <![CDATA[
  171. fInitialize();
  172. initgrid();
  173. ]]>
  174. </script>
  175. </select1>
  176. <select1 id="rdo_dsch" ref="/root/main/cond/dsch" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:135px; top:35px; width:170px; height:20px; border-style:none; ">
  177. <choices>
  178. <item>
  179. <label>전일퇴원</label>
  180. <value>1</value>
  181. </item>
  182. <item>
  183. <label>당일퇴원</label>
  184. <value>2</value>
  185. </item>
  186. </choices>
  187. <script type="javascript" ev:event="xforms-value-changed">
  188. <![CDATA[
  189. fInitialize();
  190. initgrid();
  191. ]]>
  192. </script>
  193. </select1>
  194. <button id="btn_excel" class="btn6_letter4" navindex="8" style="left:1100px; top:45px; width:80px; height:22px; ">
  195. <caption>엑셀저장</caption>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. var fileName = window.fileDialog("save", ",", false, "전일당일퇴원예고", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  199. var sheetName="전일당일퇴원예고";
  200. sheetName= rdo_dsch.label+rdo_cond1.label;
  201. if (fileName != "")
  202. {
  203. grd_list.rebuild();
  204. grd_list.saveExcel(fileName, sheetName, true, true, "", "");
  205. }
  206. window.exec(fileName);
  207. ]]>
  208. </script>
  209. </button>
  210. </xhtml:body>
  211. </xhtml:html>