SPSTP02200_통합수납집계.xrw 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <init>
  10. <PK021>
  11. <worktype>
  12. <cdid/>
  13. <cdnm/>
  14. </worktype>
  15. </PK021>
  16. </init>
  17. <main>
  18. <gridlist>
  19. <gridinfo/>
  20. </gridlist>
  21. </main>
  22. <send>
  23. <fromdd/>
  24. <todd/>
  25. <srchflag/>
  26. <dayflag/>
  27. <worktype/>
  28. <brateflag>T</brateflag>
  29. <drflag/>
  30. <pamflag/>
  31. </send>
  32. <temp>
  33. <gridlist/>
  34. </temp>
  35. </root>
  36. </instance>
  37. <submission id="TRSTP02200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/PK021/worktype"/>
  38. <submission id="TRSTP02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  39. </model>
  40. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  43. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  44. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  45. <script type="javascript">
  46. <![CDATA[
  47. var FLAG = "";
  48. var FLAGNM = "";
  49. function fSetDynamicGrid(grd, ref, sid) {
  50. model.removeNode("/root/temp");
  51. model.makeNode("/root/temp");
  52. model.resetInstanceNode(ref + "/gridinfo");
  53. grd.refresh();
  54. var cols = grd.cols;
  55. for (var i = 0; i < cols; i++) {
  56. grd.removeColumn(false);
  57. }
  58. grd.refresh();
  59. model.removeNode("/root/temp");
  60. model.makeNode("/root/temp");
  61. if (!submit(sid, false)) {
  62. return;
  63. }
  64. var attr = model.getValue("/root/temp/header/attr");
  65. if (attr == null || attr.length < 1) {
  66. return;
  67. }
  68. var attrArr = attr.split("^");
  69. var width = model.getValue("/root/temp/header/width");
  70. var widthArr = width.split("^");
  71. var hIdx = grd.rowheader != "" ? 1 : 0;
  72. for (var i = 0; i < attrArr.length; i++) {
  73. grd.addColumn(attrArr[i], false);
  74. grd.colWidth(i + hIdx) = widthArr[i];
  75. }
  76. grd.caption = model.getValue("/root/temp/header/caption");
  77. model.copyNode(ref, "/root/temp/gridlist");
  78. grd.refresh();
  79. }
  80. ]]>
  81. </script>
  82. <script type="javascript" ev:event="xforms-ready">
  83. <![CDATA[
  84. model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-1).getDateFormat());
  85. model.setValue("/root/send/todd", getCurrentDate().toDate().getAddDate(-1).getDateFormat());
  86. ipt_fromdd.refresh();
  87. ipt_todd.refresh();
  88. FLAG = getScreenMenuParameter();
  89. model.setValue("/root/send/srchflag", FLAG);
  90. if (FLAG == "worktype") {
  91. FLAGNM = "업무구분별 수납자별 진료과별 수납 건수 조회";
  92. cap_worktype.visible = true;
  93. cmb_worktype.visible = true;
  94. submit("TRSTP02200");
  95. addComboItem("cmb_worktype", "전체", "T", "above");
  96. cmb_worktype.select(0);
  97. chk_dr.visible = true;
  98. chk_dr.attribute("left") = "550px";
  99. } else if (FLAG == "acpt") {
  100. FLAGNM = "수납자별 진료과별 수납 및 외래 접수 건수 조회";
  101. chk_pamflag.visible = true;
  102. chk_pamflag.attribute("top") = "32px";
  103. }
  104. cap_title.value = FLAGNM;
  105. ]]>
  106. </script>
  107. </xhtml:head>
  108. <xhtml:body style="background-color:transparent; border-color:transparent; margin-left:8; margin-top:0; margin-right:0; margin-bottom:0; ">
  109. <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; "/>
  110. <line id="line13" style="x1:1116px; y1:27px; x2:1116px; y2:54px; border-color:#FFD799; border-left-style:solid; "/>
  111. <caption id="caption21" class="search_name" style="left:15px; top:32px; width:86px; height:17px; ">조회기간 :</caption>
  112. <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; ">
  113. <caption>조회</caption>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. if (FLAG.length < 1) {
  117. return;
  118. }
  119. model.setValue("/root/send/dayflag", (model.getValue("/root/send/fromdd") == model.getValue("/root/send/todd")) ? "Y" : "N");
  120. fSetDynamicGrid(grd_main, "/root/main/gridlist", "TRSTP02201");
  121. var cnt = instance1.selectNodes("/root/main/gridlist/gridinfo").length;
  122. var color = "transparent";
  123. for (var i = 1; i <= cnt; i++) {
  124. var row = i + grd_main.fixedRows - 1;
  125. var sinfo = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/suminfo").split(",");
  126. var slv = sinfo[0];
  127. var scol = sinfo[1];
  128. if (slv > 0) {
  129. if (slv == 3) {
  130. color = "#ffffe6";
  131. } else if (slv == 2) {
  132. color = "#ffffc8";
  133. } else if (slv == 1) {
  134. color = "#ffffa0";
  135. }
  136. grd_main.rowStyle(row, "data", "background-color") = color;
  137. grd_main.cellStyle("font-weight", row, scol) = "bold";
  138. }
  139. }
  140. ]]>
  141. </script>
  142. </button>
  143. <button id="btn_excel" class="btn2_letter2" navindex="30" 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; ">
  144. <caption>엑셀</caption>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. var day = model.getValue("/root/send/fromdd") + "-" + model.getValue("/root/send/todd")
  148. var filename = window.fileDialog("save", ",", false, cap_title.value + "_" + day, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  149. grd_main.saveExcel(filename, "sheetname:" + FLAGNM + ";colhiddenextend:false;rowhiddenextend:false");
  150. messageBox("엑셀 저장이 완료되었습니다.", "I999");
  151. ]]>
  152. </script>
  153. </button>
  154. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:480px; height:14px; font-family:돋움; vertical-align:middle; ">수납 통계</caption>
  155. <caption id="caption6" style="left:209px; top:34px; width:15px; height:15px; ">~</caption>
  156. <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; "/>
  157. <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="1" inputtype="date" style="left:222px; top:31px; width:95px; height:19px; text-align:center; vertical-align:middle; "/>
  158. <caption id="caption1" class="tit_2" style="left:0px; top:70px; width:90px; height:14px; ">조회 결과</caption>
  159. <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1195x; y2:85px; "/>
  160. <datagrid id="grd_main" nodeset="/root/main/gridlist/gridinfo" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:90px; width:1195px; height:675px; "/>
  161. <caption id="cap_worktype" class="search_name" visibility="hidden" style="left:335px; top:32px; width:90px; height:17px; ">업무구분 :</caption>
  162. <select1 id="cmb_worktype" ref="/root/send/worktype" class="input_search" visibility="hidden" appearance="minimal" style="left:428px; top:31px; width:100px; height:19px; ">
  163. <choices>
  164. <itemset nodeset="/root/init/PK021/worktype">
  165. <label ref="cdnm"/>
  166. <value ref="cdid"/>
  167. </itemset>
  168. </choices>
  169. </select1>
  170. <caption id="cap_brate" class="search_name" visibility="hidden" style="left:550px; top:32px; width:95px; height:17px; ">입원/외래 :</caption>
  171. <select1 id="cmb_brate" ref="/root/send/brateflag" class="input_search" visibility="hidden" appearance="minimal" style="left:650px; top:31px; width:60px; height:19px; ">
  172. <choices>
  173. <item>
  174. <label>전체</label>
  175. <value>T</value>
  176. </item>
  177. <item>
  178. <label>입원</label>
  179. <value>I</value>
  180. </item>
  181. <item>
  182. <label>외래</label>
  183. <value>O</value>
  184. </item>
  185. </choices>
  186. </select1>
  187. <select id="chk_dr" ref="/root/send/drflag" visibility="hidden" overflow="visible" appearance="full" style="left:720px; top:33px; width:245px; height:15px; border-style:none; ">
  188. <choices>
  189. <item>
  190. <label>주치의별 수납 건수 (정형외과, 신경외과)</label>
  191. <value>Y</value>
  192. </item>
  193. </choices>
  194. <script type="javascript" ev:event="xforms-value-changed">
  195. <![CDATA[
  196. if (model.getValue("/root/send/drflag") == "Y") {
  197. FLAG = "dr";
  198. } else {
  199. FLAG = "worktype";
  200. }
  201. model.setValue("/root/send/srchflag", FLAG);
  202. ]]>
  203. </script>
  204. </select>
  205. <select id="chk_pamflag" ref="/root/send/pamflag" visibility="hidden" overflow="visible" appearance="full" style="left:335px; top:63px; width:100px; height:20px; border-style:none; ">
  206. <choices>
  207. <item>
  208. <label>무인수납 포함</label>
  209. <value>Y</value>
  210. </item>
  211. </choices>
  212. </select>
  213. </xhtml:body>
  214. </xhtml:html>