SPSTP02100_통합환자집계.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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. <main>
  10. <gridlist>
  11. <gridinfo/>
  12. </gridlist>
  13. </main>
  14. <send>
  15. <fromdd/>
  16. <todd/>
  17. <srchflag/>
  18. <dayflag/>
  19. <brateflag>T</brateflag>
  20. <accflag>N</accflag>
  21. <genrflag>G</genrflag>
  22. <batchflag>P</batchflag>
  23. <ordflag>I O S</ordflag>
  24. </send>
  25. <temp>
  26. <gridlist/>
  27. </temp>
  28. </root>
  29. </instance>
  30. <submission id="TRSTP02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  31. <submission id="TXSTP01804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  32. </model>
  33. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  36. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  37. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  38. <script type="javascript">
  39. <![CDATA[
  40. var FLAG = "";
  41. var FLAGNM = "";
  42. function fSetDynamicGrid(grd, ref, sid) {
  43. model.removeNode("/root/temp");
  44. model.makeNode("/root/temp");
  45. model.resetInstanceNode(ref + "/gridinfo");
  46. grd.refresh();
  47. var cols = grd.cols;
  48. for (var i = 0; i < cols; i++) {
  49. grd.removeColumn(false);
  50. }
  51. grd.refresh();
  52. model.removeNode("/root/temp");
  53. model.makeNode("/root/temp");
  54. if (!submit(sid, false)) {
  55. return;
  56. }
  57. var attr = model.getValue("/root/temp/header/attr");
  58. if (attr == null || attr.length < 1) {
  59. return;
  60. }
  61. var attrArr = attr.split("^");
  62. var width = model.getValue("/root/temp/header/width");
  63. var widthArr = width.split("^");
  64. var hIdx = grd.rowheader != "" ? 1 : 0;
  65. for (var i = 0; i < attrArr.length; i++) {
  66. grd.addColumn(attrArr[i], false);
  67. grd.colWidth(i + hIdx) = widthArr[i];
  68. }
  69. grd.caption = model.getValue("/root/temp/header/caption");
  70. model.copyNode(ref, "/root/temp/gridlist");
  71. grd.refresh();
  72. }
  73. ]]>
  74. </script>
  75. <script type="javascript" ev:event="xforms-ready">
  76. <![CDATA[
  77. model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-1).getDateFormat());
  78. model.setValue("/root/send/todd", getCurrentDate().toDate().getAddDate(-1).getDateFormat());
  79. ipt_fromdd.refresh();
  80. ipt_todd.refresh();
  81. FLAG = getScreenMenuParameter();
  82. model.setValue("/root/send/srchflag", FLAG);
  83. if (FLAG == "00") {
  84. FLAGNM = "과별 환자수 및 수익 집계";
  85. } else if (FLAG == "030101_O") {
  86. FLAGNM = "외래 처방 선수금 환자 집계";
  87. } else if (FLAG == "030101_I") {
  88. FLAGNM = "입원 선수금 환자 집계";
  89. } else if (FLAG == "030102_O") {
  90. FLAGNM = "외래 선수금 환자 집계";
  91. } else if (FLAG == "030102_I") {
  92. FLAGNM = "보관 퇴원금 환자 집계";
  93. } else if (FLAG == "040101") {
  94. FLAGNM = "감면 내역 환자 집계";
  95. cap_ordflag.attribute("top") = "32px";
  96. chk_ordflag.attribute("top") = "32px";
  97. cap_ordflag.visible = true;
  98. chk_ordflag.visible = true;
  99. } else if (FLAG == "0201_0203") {
  100. FLAGNM = "본인 부담 미수 환자 집계";
  101. cap_brate.visible = true;
  102. cmb_brate.visible = true;
  103. } else if (FLAG == "recalc") {
  104. FLAGNM = "환불 재정산 대상 환자 조회";
  105. cap_genrflag.attribute("top") = "32px";
  106. rdo_genrflag.attribute("top") = "32px";
  107. cap_genrflag.visible = true;
  108. rdo_genrflag.visible = true;
  109. } else if (FLAG == "fore") {
  110. FLAGNM = "외국인 환자 수납 내역 조회";
  111. cap_ordflag.attribute("top") = "32px";
  112. chk_ordflag.attribute("top") = "32px";
  113. cap_ordflag.visible = true;
  114. chk_ordflag.visible = true;
  115. } else if (FLAG == "tax") {
  116. FLAGNM = "부가세 내역 조회";
  117. }
  118. cap_title.value = FLAGNM;
  119. ]]>
  120. </script>
  121. </xhtml:head>
  122. <xhtml:body style="background-color:transparent; border-color:transparent; margin-left:8; margin-top:0; margin-right:0; margin-bottom:0; ">
  123. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1195px; height:41px; background-color:#fffbf2; border-color:#ffd799; "/>
  124. <line id="line13" style="x1:1116px; y1:27px; x2:1116px; y2:54px; border-color:#FFD799; border-left-style:solid; "/>
  125. <caption id="caption21" class="search_name" style="left:15px; top:32px; width:86px; height:17px; ">조회기간 :</caption>
  126. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:1130px; top:30px; width:56px; height:20px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  127. <caption>조회</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. if (FLAG.length < 1) {
  131. return;
  132. }
  133. if (chk_ordflag.visible && model.getValue("/root/send/ordflag") == "") {
  134. messageBox("진료구분은 적어도 하나 이상 선택해야 합니다.", "E999");
  135. return;
  136. }
  137. model.setValue("/root/send/dayflag", (model.getValue("/root/send/fromdd") == model.getValue("/root/send/todd")) ? "Y" : "N");
  138. fSetDynamicGrid(grd_main, "/root/main/gridlist", "TRSTP02101");
  139. var cnt = instance1.selectNodes("/root/main/gridlist/gridinfo").length;
  140. var color = "transparent";
  141. for (var i = 1; i <= cnt; i++) {
  142. var row = i + grd_main.fixedRows - 1;
  143. var sflag = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/sumflag");
  144. if (sflag == "S") {
  145. color = "#ffffc8";
  146. grd_main.rowStyle(row, "data", "background-color") = color;
  147. grd_main.rowStyle(row, "data", "font-weight") = "bold";
  148. } else if (sflag == "T") {
  149. color = "#ffffa0";
  150. grd_main.rowStyle(row, "data", "background-color") = color;
  151. grd_main.rowStyle(row, "data", "font-weight") = "bold";
  152. }
  153. }
  154. ]]>
  155. </script>
  156. </button>
  157. <button id="btn_excel" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1153px; top:65px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  158. <caption>엑셀</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. var day = model.getValue("/root/send/fromdd") + "-" + model.getValue("/root/send/todd")
  162. var filename = window.fileDialog("save", ",", false, cap_title.value + "_" + day, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  163. grd_main.saveExcel(filename, "sheetname:" + FLAGNM + ";colhiddenextend:false;rowhiddenextend:false");
  164. messageBox("엑셀 저장이 완료되었습니다.", "I999");
  165. ]]>
  166. </script>
  167. </button>
  168. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:480px; height:14px; font-family:돋움; vertical-align:middle; ">환자집계</caption>
  169. <caption id="caption6" style="left:209px; top:34px; width:15px; height:15px; ">~</caption>
  170. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="1" inputtype="date" style="left:110px; top:31px; width:95px; height:19px; text-align:center; vertical-align:middle; "/>
  171. <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="2" inputtype="date" style="left:222px; top:31px; width:95px; height:19px; text-align:center; vertical-align:middle; "/>
  172. <caption id="caption1" class="tit_2" style="left:0px; top:70px; width:90px; height:14px; ">조회 결과</caption>
  173. <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1195x; y2:85px; "/>
  174. <datagrid id="grd_main" nodeset="/root/main/gridlist/gridinfo" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:90px; width:1195px; height:675px; "/>
  175. <select id="chk_sumflag" ref="/root/send/accflag" visibility="hidden" overflow="visible" appearance="full" style="left:535px; top:32px; width:85px; height:20px; border-style:none; ">
  176. <choices>
  177. <item>
  178. <label>누적값 조회</label>
  179. <value>Y</value>
  180. </item>
  181. </choices>
  182. </select>
  183. <caption id="cap_genrflag" class="search_name" visibility="hidden" style="left:345px; top:60px; width:95px; height:17px; ">일자기준 :</caption>
  184. <select1 id="rdo_genrflag" ref="/root/send/genrflag" visibility="hidden" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:435px; top:60px; width:150px; height:15px; border-style:none; ">
  185. <choices>
  186. <item>
  187. <label>정산요청일</label>
  188. <value>G</value>
  189. </item>
  190. <item>
  191. <label>진료일</label>
  192. <value>O</value>
  193. </item>
  194. </choices>
  195. </select1>
  196. <caption id="cap_brate" class="search_name" visibility="hidden" style="left:345px; top:32px; width:95px; height:17px; ">입원/외래 :</caption>
  197. <select1 id="cmb_brate" ref="/root/send/brateflag" class="input_search" visibility="hidden" appearance="minimal" style="left:445px; top:31px; width:60px; height:19px; ">
  198. <choices>
  199. <item>
  200. <label>전체</label>
  201. <value>T</value>
  202. </item>
  203. <item>
  204. <label>입원</label>
  205. <value>I</value>
  206. </item>
  207. <item>
  208. <label>외래</label>
  209. <value>O</value>
  210. </item>
  211. </choices>
  212. </select1>
  213. <button id="btn_file" class="btn4_letter4" style="left:940px; top:30px; width:80px; height:22px; ">
  214. <caption>파일생성</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. model.setValue("/root/send/dayflag", (model.getValue("/root/send/fromdd") == model.getValue("/root/send/todd")) ? "Y" : "N");
  218. submit("TXSTP01804");
  219. btn_log.dispatch("DOMActivate");
  220. ]]>
  221. </script>
  222. </button>
  223. <button id="btn_log" class="btn4_letter4" style="left:1025px; top:30px; width:80px; height:22px; ">
  224. <caption>생성로그</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. var todd = getCurrentDate();
  228. todd = todd.toDate().getAddDate(1, 'D');
  229. zsbfOpenBatchLogPopup("stspammngtmgr.StsPamFileBatch", getCurrentDate(), todd.getDateFormat());
  230. ]]>
  231. </script>
  232. </button>
  233. <caption id="cap_ordflag" class="search_name" visibility="hidden" style="left:345px; top:95px; width:86px; height:17px; ">진료구분 :</caption>
  234. <select id="chk_ordflag" ref="/root/send/ordflag" visibility="hidden" overflow="visible" appearance="full" cellspacing="5" cols="4" style="left:435px; top:95px; width:145px; height:20px; border-style:none; ">
  235. <choices>
  236. <item>
  237. <label>입원</label>
  238. <value>I</value>
  239. </item>
  240. <item>
  241. <label>외래</label>
  242. <value>O</value>
  243. </item>
  244. <item>
  245. <label>건진</label>
  246. <value>S</value>
  247. </item>
  248. </choices>
  249. </select>
  250. </xhtml:body>
  251. </xhtml:html>