SMPAS01400_퇴원환자현황.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <?xml version="1.0" encoding="UTF-16"?>
  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. <leavpatilist>
  11. <leavpatistats>
  12. <depthngnm/>
  13. <insukind/>
  14. <pid/>
  15. <hangnm/>
  16. <allamt/>
  17. <ownbamt/>
  18. <insubamt/>
  19. <ordsunsuamt/>
  20. <ordoutsunsu/>
  21. <outuncoamt/>
  22. <inuncoalt/>
  23. <insunsualt/>
  24. <uncoenuri/>
  25. <restamt/>
  26. <jasunamt/>
  27. <uncoredu/>
  28. <uncoblod/>
  29. <uncocard/>
  30. </leavpatistats>
  31. </leavpatilist>
  32. <search>
  33. <fromdata/>
  34. <todata/>
  35. <datagubun>1</datagubun>
  36. <erdata>1</erdata>
  37. <dcgubun>D</dcgubun>
  38. </search>
  39. <leavsumlist>
  40. <leavsumstats>
  41. <depthngnm>총계</depthngnm>
  42. <insukind>총계</insukind>
  43. <pid>총계</pid>
  44. <hangnm>총계</hangnm>
  45. <allamt/>
  46. <ownbamt/>
  47. <insubamt/>
  48. <ordsunsuamt/>
  49. <ordoutsunsu/>
  50. <outuncoamt/>
  51. <inuncoalt/>
  52. <insunsualt/>
  53. <uncoenuri/>
  54. <restamt/>
  55. <jasunamt/>
  56. <uncoredu/>
  57. <uncoblod/>
  58. <uncocard/>
  59. </leavsumstats>
  60. </leavsumlist>
  61. <userinfo>
  62. <info>
  63. <user/>
  64. </info>
  65. </userinfo>
  66. </main>
  67. <send>
  68. <fromdata/>
  69. <todata/>
  70. <datagubun/>
  71. <erdata/>
  72. <dcgubun/>
  73. </send>
  74. <documenttitle>
  75. <title/>
  76. </documenttitle>
  77. </root>
  78. </instance>
  79. <script type="javascript" ev:event="xforms-model-construct-done">
  80. <![CDATA[
  81. // submit("TRPAS00001");
  82. var vToday = new Date();
  83. var tmpYear = vToday.getYear();
  84. var tmpMonth = vToday.getMonth()+1;
  85. var tmpDate = vToday.getDate();
  86. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  87. if (tmpDate < 10) { tmpDate = "0"+tmpDate; }
  88. model.setValue("/root/main/search/fromdata", tmpYear+""+tmpMonth+""+tmpDate);
  89. model.setValue("/root/main/search/todata", tmpYear+""+tmpMonth+""+tmpDate);
  90. //Rexport에 출력날자를 보여주기위한 데이터 저장
  91. model.makeNode("/root/main/tmp/print/date");
  92. model.copyNode("/root/main/tmp/print/date", "/root/main/search/fromdata");
  93. model.setValue("/root/main/tmp/print/date", model.getValue("/root/main/search/fromdata"));
  94. input7.refresh();
  95. input1.refresh();
  96. datagrid1.explorerbar = "sort";
  97. ]]>
  98. </script>
  99. <bind id="bind1" ref="/root/main/leavpatilist/leavpatistats" calculate="now() + ."/>
  100. <bind id="bind2" ref="/root/main/leavsumlist/leavsumstats/allamt" calculate="sum(/root/main/leavpatilist/leavpatistats/allamt);"/>
  101. <bind id="bind3" ref="/root/main/leavsumlist/leavsumstats/ownbamt" calculate="sum(/root/main/leavpatilist/leavpatistats/ownbamt);"/>
  102. <bind id="bind4" ref="/root/main/leavsumlist/leavsumstats/insubamt" calculate="sum(/root/main/leavpatilist/leavpatistats/insubamt);"/>
  103. <bind id="bind5" ref="/root/main/leavsumlist/leavsumstats/ordsunsuamt" calculate="sum(/root/main/leavpatilist/leavpatistats/ordsunsuamt);"/>
  104. <bind id="bind6" ref="/root/main/leavsumlist/leavsumstats/ordoutsunsu" calculate="sum(/root/main/leavpatilist/leavpatistats/ordoutsunsu);"/>
  105. <bind id="bind7" ref="/root/main/leavsumlist/leavsumstats/outuncoamt" calculate="sum(/root/main/leavpatilist/leavpatistats/outuncoamt);"/>
  106. <bind id="bind8" ref="/root/main/leavsumlist/leavsumstats/inuncoalt" calculate="sum(/root/main/leavpatilist/leavpatistats/inuncoalt);"/>
  107. <bind id="bind9" ref="/root/main/leavsumlist/leavsumstats/insunsualt" calculate="sum(/root/main/leavpatilist/leavpatistats/insunsualt);"/>
  108. <bind id="bind10" ref="/root/main/leavsumlist/leavsumstats/uncoenuri" calculate="sum(/root/main/leavpatilist/leavpatistats/uncoenuri);"/>
  109. <bind id="bind11" ref="/root/main/leavsumlist/leavsumstats/restamt" calculate="sum(/root/main/leavpatilist/leavpatistats/restamt);"/>
  110. <bind id="bind12" ref="/root/main/leavsumlist/leavsumstats/jasunamt" calculate="sum(/root/main/leavpatilist/leavpatistats/jasunamt);"/>
  111. <bind id="bind13" ref="/root/main/leavsumlist/leavsumstats/uncoredu" calculate="sum(/root/main/leavpatilist/leavpatistats/uncoredu);"/>
  112. <bind id="bind14" ref="/root/main/leavsumlist/leavsumstats/uncoblod" calculate="sum(/root/main/leavpatilist/leavpatistats/uncoblod);"/>
  113. <bind id="bind15" ref="/root/main/leavsumlist/leavsumstats/uncocard" calculate="sum(/root/main/leavpatilist/leavpatistats/uncocard);"/>
  114. <submission id="TRPAS01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/data1"/>
  115. <submission id="TRPAS00001" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/userinfo/info/user"/>
  116. </model>
  117. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  119. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  121. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  122. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  123. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  124. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  125. </xhtml:head>
  126. <xhtml:body pagewidth="1211" pageheight="784">
  127. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  128. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">퇴원환자현황</caption>
  129. </group>
  130. <group id="group2" style="left:4px; top:22px; width:1203px; height:35px; ">
  131. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  132. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:198px; height:17px; ">기간 ~</caption>
  133. <line id="line2" class="line_4" style="x1:1130px; y1:7px; x2:1130px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  134. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  135. <caption>조회</caption>
  136. <script type="javascript" ev:event="DOMActivate">
  137. <![CDATA[
  138. var fromdata = model.getValue("/root/main/search/fromdata");
  139. var todata = model.getValue("/root/main/search/todata");
  140. if(fromdata==""||fromdata==null){
  141. messageBox("시작일을 입력","E007");
  142. model.setFocus("input7");
  143. return false;
  144. }
  145. if(todata==""|| todata==null){
  146. messageBox("끝일을 입력","E007");
  147. model.setFocus("input1");
  148. return false;
  149. }
  150. if(fromdata > todata){
  151. messageBox("시작일이 끝일자보다 클수 ", "C001")
  152. return false;
  153. }else{
  154. model.setValue("/root/send/fromdata",model.getValue("/root/main/search/fromdata"));
  155. model.setValue("/root/send/todata",model.getValue("/root/main/search/todata"));
  156. model.setValue("/root/send/datagubun",model.getValue("/root/main/search/datagubun"));
  157. model.removeNodeset("/root/main/leavpatilist");
  158. submit("TRPAS01401");
  159. //로드값이 있을때 엑셀저장여부 버튼 생성여부
  160. var nodelist = bind1.nodeset;
  161. if(nodelist.length>0){
  162. line1.visible =true;
  163. button95.visible = true;
  164. }else{
  165. line1.visible =false;
  166. button95.visible = false;
  167. }
  168. copyNodesetType("/root/main/leavpatilist/leavpatistats","/root/main/leavsumlist/leavsumstats","after");
  169. datagrid1.rebuild();
  170. var sumtotal = instance1.selectNodes("/root/main/leavpatilist/leavpatistats").length + datagrid1.fixedRows - 1;
  171. if(sumtotal ==""||sumtotal==null || sumtotal=="1"){
  172. }else{
  173. datagrid1.mergeByFree(sumtotal,1,sumtotal,4);
  174. }
  175. }
  176. ]]>
  177. </script>
  178. </button>
  179. <input id="input7" ref="/root/main/search/fromdata" class="input_default" navindex="7" inputtype="date" style="left:70px; top:8px; width:120px; height:19px; ">
  180. <script type="javascript" ev:event="onkeydown">
  181. <![CDATA[
  182. if( event.keyCode == 13 ) {
  183. var pCurTargetObj = event.ptarget.parent;
  184. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  185. event.keyCode = 9;
  186. pCurTargetObj.dispatch("onkeydown");
  187. }
  188. else {
  189. event.keyCode = 9;
  190. }
  191. }
  192. event.stopPropagation();
  193. ]]>
  194. </script>
  195. </input>
  196. <input id="input1" ref="/root/main/search/todata" class="input_default" navindex="7" inputtype="date" style="left:215px; top:8px; width:120px; height:19px; ">
  197. <script type="javascript" ev:event="onkeydown">
  198. <![CDATA[
  199. if( event.keyCode == 13 ) {
  200. var pCurTargetObj = event.ptarget.parent;
  201. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  202. event.keyCode = 9;
  203. pCurTargetObj.dispatch("onkeydown");
  204. }
  205. else {
  206. event.keyCode = 9;
  207. }
  208. }
  209. event.stopPropagation();
  210. ]]>
  211. </script>
  212. </input>
  213. <button id="button95" class="btn6_letter4" visibility="hidden" style="left:971px; top:7px; width:80px; height:22px; ">
  214. <caption>액셀저장</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. var vToday = new Date();
  218. var tmpYear = vToday.getYear();
  219. var tmpMonth = vToday.getMonth()+1;
  220. var tmpDate = vToday.getDate();
  221. // model.setValue("/root/documenttitle/title",document.title);
  222. // model.refresh();
  223. // var subjectTitle = model.getValue("/root/documenttitle/title");
  224. //엑셀저장 여부(타이틀별)
  225. var fileName = window.fileDialog("save", "", false, "퇴원환자현황"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  226. if (fileName != "")
  227. {
  228. datagrid1.saveExcel(fileName, "퇴원환자현황"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  229. }
  230. ]]>
  231. </script>
  232. </button>
  233. <line id="line1" class="line_4" visibility="hidden" style="x1:1058px; y1:7px; x2:1058px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  234. </group>
  235. <datagrid id="datagrid1" nodeset="/root/main/leavpatilist/leavpatistats" caption="진료과^유형^등록번호^환자명^시행처리(당일까지의 재원미수)^시행처리(당일까지의 재원미수)^시행처리(당일까지의 재원미수)^입원선수금^보관퇴원^의료미수입금^미수발생(대체)^처방선수금(대체)^매출에누리^절사차액^자선진료비^매출할인^혈액미수금^카드미수금|진료과^유형^등록번호^환자명^총진료비^본인부담금^기관청구액^입원선수금^보관퇴원^의료미수입금^미수발생(대체)^처방선수금(대체)^매출에누리^절사차액^자선진료비^매출할인^혈액미수금^카드미수금" colsep="^" colwidth="144, 38, 80, 90, 110, 100, 100, 100, 100, 100, 118, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" rowheader="seq" rowsep="|" style="left:5px; top:65px; width:1198px; height:691px; ">
  236. <col ref="depthngnm" style="text-align:left; "/>
  237. <col ref="insukind" style="text-align:center; "/>
  238. <col ref="pid" style="text-align:center; "/>
  239. <col ref="hangnm" style="text-align:left; "/>
  240. <col ref="allamt" format="(-)#,###" style="text-align:right; "/>
  241. <col ref="ownbamt" format="(-)#,###" style="text-align:right; "/>
  242. <col ref="insubamt" format="(-)#,###" style="text-align:right; "/>
  243. <col ref="ordsunsuamt" format="(-)#,###" style="text-align:right; "/>
  244. <col ref="ordoutsunsu" format="(-)#,###" style="text-align:right; "/>
  245. <col ref="outuncoamt" format="(-)#,###" style="text-align:right; "/>
  246. <col ref="inuncoalt" format="(-)#,###" style="text-align:right; "/>
  247. <col ref="insunsualt" format="(-)#,###" style="text-align:right; "/>
  248. <col ref="uncoenuri" format="(-)#,###" style="text-align:right; "/>
  249. <col ref="restamt" format="(-)#,###" style="text-align:right; "/>
  250. <col ref="jasunamt" format="(-)#,###" style="text-align:right; "/>
  251. <col ref="uncoredu" format="(-)#,###" style="text-align:right; "/>
  252. <col ref="uncoblod" format="(-)#,###" style="text-align:right; "/>
  253. <col ref="uncocard" format="(-)#,###" style="text-align:right; "/>
  254. </datagrid>
  255. <button id="btn_print" class="btn6_letter2" style="left:1070px; top:29px; width:56px; height:22px; ">
  256. <caption>출력</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. exeReportPreview("RPPAS01401", "XMLSTR", "","", "false","","","","","false");
  260. ]]>
  261. </script>
  262. </button>
  263. </xhtml:body>
  264. </xhtml:html>