SMPMI06500_퇴원예고율조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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>입원/퇴원/재원조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <fromdd/>
  11. <todd/>
  12. <srchflag/>
  13. <deptcd/>
  14. <todaydschflag>Y</todaydschflag>
  15. </send>
  16. <main>
  17. <dschspeclist>
  18. <dschspec/>
  19. </dschspeclist>
  20. <dschrate>
  21. <dschratedeptlist>
  22. <dschratedept/>
  23. </dschratedeptlist>
  24. <dschratewardlist>
  25. <dschrateward/>
  26. </dschratewardlist>
  27. </dschrate>
  28. </main>
  29. <init/>
  30. <newElement/>
  31. <newElement/>
  32. </root>
  33. </instance>
  34. <script type="javascript" ev:event="xforms-ready">
  35. <![CDATA[
  36. fInitialize();
  37. ]]>
  38. </script>
  39. <submission id="TRPMI06501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dschrate"/>
  40. <submission id="TRPMI06502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dschspeclist"/>
  41. </model>
  42. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  46. </xhtml:head>
  47. <script type="javascript">
  48. <![CDATA[
  49. function fInitialize() {
  50. model.resetInstanceNode("/root/main/dschspeclist/dschspec");
  51. model.resetInstanceNode("/root/main/dschrate/dschratedeptlist/dschratedept");
  52. model.resetInstanceNode("/root/main/dschrate/dschratewardlist/dschrateward");
  53. model.setValue("/root/send/fromdd", getCurrentDate());
  54. model.setValue("/root/send/todd", getCurrentDate());
  55. caption7.value = "-";
  56. model.setValue("/root/send/todaydschflag", "Y");
  57. model.refresh();
  58. grd_ratedept.refresh();
  59. grd_rateward.refresh();
  60. grd_dschspec.refresh();
  61. grd_dschspec.rebuildStyle();
  62. }
  63. function fGetDschSpecList(srchflag, deptcd, deptnm) {
  64. caption7.value = deptnm;
  65. model.setValue("/root/send/srchflag", srchflag);
  66. model.setValue("/root/send/deptcd", deptcd);
  67. submit("TRPMI06502");
  68. grd_dschspec.rebuildStyle();
  69. setRowStyle( "grd_dschspec" , "11", "Y" , "rate15yn" , "equal" ); //e5f3c2
  70. setRowStyle( "grd_dschspec" , "1", "Y" , "rate20yn" , "equal" ); //ffe79d
  71. }
  72. function fGetDschRateList() {
  73. var fromdd = model.getValue("/root/send/fromdd");
  74. var todd = model.getValue("/root/send/todd");
  75. if (isNull(fromdd) || isNull(todd)) {
  76. messageBox("시작일자 및 종료일자는 반드시 입력하십시오.", "E");
  77. return;
  78. }
  79. var minusrslt = getDateInterval(fromdd,todd);
  80. if (minusrslt > 31) {
  81. messageBox("최대 31일까지 조회가능합니다.", "E");
  82. return;
  83. }
  84. submit("TRPMI06501");
  85. grd_ratedept.rebuildStyle();
  86. grd_rateward.rebuildStyle();
  87. setRowStyle( "grd_ratedept" , "13", "합계" , "deptnm" , "equal" );
  88. setRowStyle( "grd_rateward" , "13", "합계" , "deptnm" , "equal" );
  89. }
  90. ]]>
  91. </script>
  92. <xhtml:body guideline="1,1193;1,1195;1,-3;2,783;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  93. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  94. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:15px; ">퇴원예고율조회</caption>
  95. </group>
  96. <group id="group3" style="left:0px; top:13px; width:1195px; height:770px; ">
  97. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
  98. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  99. <button id="button1" class="btn1_letter2" navindex="3" style="left:1123px; top:7px; width:56px; height:22px; ">
  100. <caption>조회</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. fGetDschRateList();
  104. ]]>
  105. </script>
  106. </button>
  107. <line id="line2" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  108. <caption id="caption17" class="search_name" style="left:10px; top:10px; width:86px; height:17px; ">퇴원일자 :</caption>
  109. <caption id="caption20" class="search_no_b" style="left:202px; top:10px; width:12px; height:17px; ">~</caption>
  110. <input id="ipt_infromdd" ref="/root/send/fromdd" class="input_search" navindex="1" inputtype="date" style="left:99px; top:9px; width:100px; height:19px; "/>
  111. <input id="ipt_intodd" ref="/root/send/todd" class="input_search" navindex="2" inputtype="date" style="left:217px; top:9px; width:100px; height:19px; "/>
  112. <caption id="caption8" class="search_name" style="left:360px; top:10px; width:145px; height:17px; ">입원당일퇴원 제외 :</caption>
  113. <select id="checkbox1" ref="/root/send/todaydschflag" overflow="visible" appearance="full" style="left:504px; top:11px; width:15px; height:15px; border-style:none; ">
  114. <choices>
  115. <item>
  116. <label/>
  117. <value>Y</value>
  118. </item>
  119. </choices>
  120. </select>
  121. </group>
  122. <caption id="caption2" class="tit_2" style="left:5px; top:58px; width:183px; height:13px; font-family:돋움; vertical-align:middle; ">진료과별 퇴원예고율</caption>
  123. <line id="line1" class="line_1" style="x1:0px; y1:73px; x2:430px; y2:73px; "/>
  124. <button id="button3" class="btn2_letter4" style="left:1120px; top:53px; width:64px; height:19px; ">
  125. <caption>엑셀저장</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. var fileName = window.fileDialog("save", ",", false, "퇴원환자 세부내역_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  129. if (fileName != "")
  130. {
  131. grd_dschspec.saveExcel(fileName, "SheetName", false, false, "", "", false);
  132. }
  133. ]]>
  134. </script>
  135. </button>
  136. <datagrid id="grd_ratedept" nodeset="/root/main/dschrate/dschratedeptlist/dschratedept" class="datagrid2" caption="부서명^15시&#xA;예고수^20시&#xA;예고수^퇴원&#xA;환자수^15시&#xA;예고율^20시&#xA;예고율^caption4" colsep="^" colwidth="110, 60, 60, 60, 60, 60, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:78px; width:430px; height:660px; ">
  137. <col ref="deptnm"/>
  138. <col ref="rate15cnt" format="#,###" style="text-align:right; padding-right:5; "/>
  139. <col ref="rate20cnt" format="#,###" style="text-align:right; padding-right:5; "/>
  140. <col ref="totcnt" format="#,###" style="text-align:right; padding-right:5; "/>
  141. <col ref="rate15" style="text-align:right; padding-right:5; "/>
  142. <col ref="rate20" style="text-align:right; padding-right:5; "/>
  143. <col ref="deptcd" visibility="hidden"/>
  144. <script type="javascript" ev:event="ondblclick">
  145. <![CDATA[
  146. var sRow = grd_ratedept.row;
  147. // 첫행과 마지막행 제외
  148. if (sRow > 0 && sRow != grd_ratedept.rows) {
  149. var deptcd = model.getValue("/root/main/dschrate/dschratedeptlist/dschratedept[" + sRow + "]/deptcd");
  150. var deptnm = model.getValue("/root/main/dschrate/dschratedeptlist/dschratedept[" + sRow + "]/deptnm");
  151. fGetDschSpecList("D", deptcd, deptnm);
  152. }
  153. ]]>
  154. </script>
  155. </datagrid>
  156. <datagrid id="grd_rateward" nodeset="/root/main/dschrate/dschratewardlist/dschrateward" class="datagrid2" caption="부서명^15시&#xA;예고수^20시&#xA;예고수^퇴원&#xA;환자수^15시&#xA;예고율^20시&#xA;예고율^caption7" colsep="^" colwidth="110, 60, 60, 60, 60, 60, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:435px; top:78px; width:430px; height:660px; ">
  157. <col ref="deptnm"/>
  158. <col ref="rate15cnt" format="#,###" style="text-align:right; padding-right:5; "/>
  159. <col ref="rate20cnt" format="#,###" style="text-align:right; padding-right:5; "/>
  160. <col ref="totcnt" format="#,###" style="text-align:right; padding-right:5; "/>
  161. <col ref="rate15" style="text-align:right; padding-right:5; "/>
  162. <col ref="rate20" style="text-align:right; padding-right:5; "/>
  163. <col ref="deptcd" visibility="hidden"/>
  164. <script type="javascript" ev:event="ondblclick">
  165. <![CDATA[
  166. var sRow = grd_rateward.row;
  167. // 첫행과 마지막행 제외
  168. if (sRow > 0 && sRow != grd_rateward.rows) {
  169. var deptcd = model.getValue("/root/main/dschrate/dschratewardlist/dschrateward[" + sRow + "]/deptcd");
  170. var deptnm = model.getValue("/root/main/dschrate/dschratewardlist/dschrateward[" + sRow + "]/deptnm");
  171. fGetDschSpecList("W", deptcd, deptnm);
  172. }
  173. ]]>
  174. </script>
  175. </datagrid>
  176. <datagrid id="grd_dschspec" nodeset="/root/main/dschspeclist/dschspec" class="datagrid2" caption="입원일자^퇴원일자^퇴원예고&#xA;등록일시^퇴원예고&#xA;등록자^진료과^병동^병실^등록번호^성명^caption1^caption2" colsep="^" colwidth="80, 80, 120, 80, 100, 110, 60, 60, 70, 10, 10" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:880px; top:78px; width:314px; height:660px; ">
  177. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  178. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  179. <col ref="dschdclrtrgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  180. <col ref="dschdclrtrgstnm" style="text-align:center; "/>
  181. <col ref="orddeptnm"/>
  182. <col ref="wardnm"/>
  183. <col ref="roomcd" style="text-align:center; "/>
  184. <col ref="pid" style="text-align:center; "/>
  185. <col ref="hngnm" style="text-align:center; "/>
  186. <col ref="rate15yn" visibility="hidden"/>
  187. <col ref="rate20yn" visibility="hidden"/>
  188. </datagrid>
  189. <line id="line3" class="line_1" style="x1:880px; y1:73px; x2:1194px; y2:73px; "/>
  190. <caption id="caption1" class="tit_2" style="left:880px; top:58px; width:81px; height:14px; font-family:돋움; vertical-align:middle; ">세부내역 :</caption>
  191. <button id="button4" class="btn2_letter4" style="left:790px; top:53px; width:64px; height:19px; ">
  192. <caption>엑셀저장</caption>
  193. <script type="javascript" ev:event="DOMActivate">
  194. <![CDATA[
  195. var fileName = window.fileDialog("save", ",", false, "병동별 퇴원예고율_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  196. if (fileName != "")
  197. {
  198. grd_rateward.saveExcel(fileName, "SheetName", false, false, "", "", false);
  199. }
  200. ]]>
  201. </script>
  202. </button>
  203. <button id="button5" class="btn2_letter4" style="left:355px; top:53px; width:64px; height:19px; ">
  204. <caption>엑셀저장</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. var fileName = window.fileDialog("save", ",", false, "진료과별 퇴원예고율_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  208. if (fileName != "")
  209. {
  210. grd_ratedept.saveExcel(fileName, "SheetName", false, false, "", "", false);
  211. }
  212. ]]>
  213. </script>
  214. </button>
  215. <caption id="caption3" class="tit_2" style="left:435px; top:58px; width:183px; height:13px; font-family:돋움; vertical-align:middle; ">병동별 퇴원예고율</caption>
  216. <line id="line4" class="line_1" style="x1:435px; y1:73px; x2:865px; y2:73px; "/>
  217. <shape id="rectangle1" appearance="rectangle" style="left:890px; top:743px; width:15px; height:15px; background-color:#e5f3c2; "/>
  218. <caption id="caption4" style="left:909px; top:741px; width:56px; height:20px; ">15시이전</caption>
  219. <shape id="rectangle2" appearance="rectangle" style="left:975px; top:743px; width:15px; height:15px; background-color:#ffe79d; "/>
  220. <caption id="caption5" style="left:994px; top:741px; width:56px; height:20px; ">20시이전</caption>
  221. <caption id="caption7" style="left:960px; top:55px; width:160px; height:20px; font-weight:bold; color:#0000ff; text-align:left; ">-</caption>
  222. </group>
  223. <button id="button2" class="btn4_letter3" style="left:1120px; top:756px; width:68px; height:22px; ">
  224. <caption>초기화</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. fInitialize();
  228. ]]>
  229. </script>
  230. </button>
  231. </xhtml:body>
  232. </xhtml:html>