SMPAE00201_수납자별마감금액비교.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>수납자별 마감 금액 비교</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <complist>
  11. <compinfo>
  12. <enddd/>
  13. <compflag/>
  14. <cashflag/>
  15. <cash_out/>
  16. <cash_in/>
  17. <cash_hi/>
  18. <cash_sum/>
  19. <card_out/>
  20. <card_in/>
  21. <card_hi/>
  22. <card_sum/>
  23. <online_out/>
  24. <online_in/>
  25. <online_hi/>
  26. <online_sum/>
  27. <unco_out/>
  28. <unco_in/>
  29. <unco_hi/>
  30. <unco_sum/>
  31. <old_tot/>
  32. <rcptrid/>
  33. <rcptrnm/>
  34. <new_tot/>
  35. <cash_mgsm/>
  36. <card_mgsm/>
  37. <online_mgsm/>
  38. <unco_mgsm/>
  39. </compinfo>
  40. </complist>
  41. </main>
  42. <send>
  43. <fromdd/>
  44. <todd/>
  45. </send>
  46. <hidden>
  47. <compflag/>
  48. <cashflag/>
  49. </hidden>
  50. </root>
  51. </instance>
  52. <submission id="TRPAE00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/complist"/>
  53. </model>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. var fromdd = getCurrentDate().toDate().getAddDate(-1).getDateFormat();
  62. model.setValue("/root/send/fromdd", fromdd);
  63. model.setValue("/root/send/todd", fromdd);
  64. ipt_fromdd.refresh();
  65. ipt_todd.refresh();
  66. fSetColWidth("", false);
  67. ]]>
  68. </script>
  69. <script type="javascript">
  70. <![CDATA[
  71. function fSetColWidth(amt, expand) {
  72. var width = expand ? 90 : 0;
  73. if (amt == null || amt == "") {
  74. grd_comp.colWidth(grd_comp.colRef("cash_out")) = width;
  75. grd_comp.colWidth(grd_comp.colRef("cash_in")) = width;
  76. grd_comp.colWidth(grd_comp.colRef("cash_hi")) = width;
  77. grd_comp.colWidth(grd_comp.colRef("card_out")) = width;
  78. grd_comp.colWidth(grd_comp.colRef("card_in")) = width;
  79. grd_comp.colWidth(grd_comp.colRef("card_hi")) = width;
  80. grd_comp.colWidth(grd_comp.colRef("online_out")) = width;
  81. grd_comp.colWidth(grd_comp.colRef("online_in")) = width;;
  82. grd_comp.colWidth(grd_comp.colRef("online_hi")) = width;;
  83. grd_comp.colWidth(grd_comp.colRef("unco_out")) = width;;
  84. grd_comp.colWidth(grd_comp.colRef("unco_in")) = width;;
  85. grd_comp.colWidth(grd_comp.colRef("unco_hi")) = width;;
  86. } else {
  87. grd_comp.colWidth(grd_comp.colRef(amt + "_out")) = width;;
  88. grd_comp.colWidth(grd_comp.colRef(amt + "_in")) = width;;
  89. grd_comp.colWidth(grd_comp.colRef(amt + "_hi")) = width;;
  90. }
  91. }
  92. function fSetCompflag() {
  93. if (model.getValue("/root/hidden/cashflag") == "Y") {
  94. grd_comp.nodeset = "/root/main/complist/compinfo[cashflag = 'N']";
  95. } else if (model.getValue("/root/hidden/compflag") == "Y") {
  96. grd_comp.nodeset = "/root/main/complist/compinfo[compflag = 'N']";
  97. } else {
  98. grd_comp.nodeset = "/root/main/complist/compinfo";
  99. }
  100. var path = "/root/main/complist/compinfo";
  101. var cnt = instance1.selectNodes(path).length;
  102. for (var i = 1; i <= cnt; i++) {
  103. if (model.getValue(path + "[" + i + "]/compflag") != "Y") {
  104. var row = grd_comp.findRow(model.getValue(path + "[" + i + "]/seq"), 2, grd_comp.colRef("seq"), false, true);
  105. grd_comp.cellStyle("font-weight", row, grd_comp.colRef("rcptrnm")) = "bold";
  106. grd_comp.cellStyle("background-color", row, grd_comp.colRef("new_tot")) = "#ffffd2";
  107. grd_comp.cellStyle("color", row, grd_comp.colRef("new_tot")) = "#b40000";
  108. grd_comp.cellStyle("font-weight", row, grd_comp.colRef("new_tot")) = "bold";
  109. grd_comp.cellStyle("background-color", row, grd_comp.colRef("rcptrnm")) = "#ffffa0";
  110. grd_comp.cellStyle("font-weight", row, grd_comp.colRef("rcptrnm")) = "bold";
  111. grd_comp.cellStyle("background-color", row, grd_comp.colRef("old_tot")) = "#ffffd2";
  112. grd_comp.cellStyle("color", row, grd_comp.colRef("old_tot")) = "#b40000";
  113. grd_comp.cellStyle("font-weight", row, grd_comp.colRef("old_tot")) = "bold";
  114. if (model.getValue(path + "[" + i + "]/cash_mgsm") != model.getValue(path + "[" + i + "]/cash_sum")) {
  115. grd_comp.cellStyle("background-color", row, grd_comp.colRef("cash_mgsm")) = "#ffffa0";
  116. grd_comp.cellStyle("color", row, grd_comp.colRef("cash_mgsm")) = "red";
  117. grd_comp.cellStyle("font-weight", row, grd_comp.colRef("cash_mgsm")) = "bold";
  118. grd_comp.cellStyle("background-color", row, grd_comp.colRef("cash_sum")) = "#ffffa0";
  119. grd_comp.cellStyle("color", row, grd_comp.colRef("cash_sum")) = "red";
  120. grd_comp.cellStyle("font-weight", row, grd_comp.colRef("cash_sum")) = "bold";
  121. }
  122. if (model.getValue(path + "[" + i + "]/card_mgsm") != model.getValue(path + "[" + i + "]/card_sum")) {
  123. grd_comp.cellStyle("background-color", row, grd_comp.colRef("card_mgsm")) = "#ffffa0";
  124. grd_comp.cellStyle("color", row, grd_comp.colRef("card_mgsm")) = "red";
  125. grd_comp.cellStyle("font-weight", row, grd_comp.colRef("card_mgsm")) = "bold";
  126. grd_comp.cellStyle("background-color", row, grd_comp.colRef("card_sum")) = "#ffffa0";
  127. grd_comp.cellStyle("color", row, grd_comp.colRef("card_sum")) = "red";
  128. grd_comp.cellStyle("font-weight", row, grd_comp.colRef("card_sum")) = "bold";
  129. }
  130. if (model.getValue(path + "[" + i + "]/online_mgsm") != model.getValue(path + "[" + i + "]/online_sum")) {
  131. grd_comp.cellStyle("background-color", row, grd_comp.colRef("online_mgsm")) = "#ffffa0";
  132. grd_comp.cellStyle("color", row, grd_comp.colRef("online_mgsm")) = "red";
  133. grd_comp.cellStyle("font-weight", row, grd_comp.colRef("online_mgsm")) = "bold";
  134. grd_comp.cellStyle("background-color", row, grd_comp.colRef("online_sum")) = "#ffffa0";
  135. grd_comp.cellStyle("color", row, grd_comp.colRef("online_sum")) = "red";
  136. grd_comp.cellStyle("font-weight", row, grd_comp.colRef("online_sum")) = "bold";
  137. }
  138. if (model.getValue(path + "[" + i + "]/unco_mgsm") != model.getValue(path + "[" + i + "]/unco_sum")) {
  139. grd_comp.cellStyle("background-color", row, grd_comp.colRef("unco_mgsm")) = "#ffffa0";
  140. grd_comp.cellStyle("color", row, grd_comp.colRef("unco_mgsm")) = "red";
  141. grd_comp.cellStyle("font-weight", row, grd_comp.colRef("unco_mgsm")) = "bold";
  142. grd_comp.cellStyle("background-color", row, grd_comp.colRef("unco_sum")) = "#ffffa0";
  143. grd_comp.cellStyle("color", row, grd_comp.colRef("unco_sum")) = "red";
  144. grd_comp.cellStyle("font-weight", row, grd_comp.colRef("unco_sum")) = "bold";
  145. }
  146. }
  147. }
  148. }
  149. ]]>
  150. </script>
  151. </xhtml:head>
  152. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  153. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">수납자별 마감 금액 비교 (개편 vs 기존)</caption>
  154. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:20px; width:755px; height:40px; "/>
  155. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:335px; top:29px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  156. <caption>조회</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. grd_comp.rebuildStyle();
  160. submit("TRPAE00202");
  161. fSetCompflag();
  162. ]]>
  163. </script>
  164. </button>
  165. <caption id="caption35" class="search_name" style="left:5px; top:31px; width:90px; height:17px; ">마감일자 :</caption>
  166. <input id="ipt_fromdd" ref="/root/send/fromdd" navindex="1" inputtype="date" style="left:97px; top:30px; width:90px; height:19px; "/>
  167. <caption id="caption4" style="left:189px; top:34px; width:15px; height:15px; text-align:center; ">~</caption>
  168. <input id="ipt_todd" ref="/root/send/todd" navindex="2" inputtype="date" style="left:205px; top:30px; width:90px; height:19px; "/>
  169. <line id="line14" class="line_4" style="x1:315px; y1:28px; x2:315px; y2:53px; font-family:돋움체; border-color:#ffd799; "/>
  170. <caption id="caption77" class="tit_2" style="left:0px; top:70px; width:144px; height:13px; ">수납자별 마감내역</caption>
  171. <datagrid id="grd_comp" nodeset="/root/main/complist/compinfo" backcoloralternate="transparent" caption="seq^마감일^비교결과^비교결과(현금)^현금^카드^온라인^미수^합계^수납자ID^수납자^합계^현금^현금^현금^현금^카드^카드^카드^카드^온라인^온라인^온라인^온라인^미수^미수^미수^미수|seq^마감일^비교결과^비교결과(현금)^현금^카드^온라인^미수^합계^수납자ID^수납자^합계^외래^입원^건진^계^외래^입원^건진^계^외래^입원^건진^계^외래^입원^건진^계" colsep="^" colwidth="0,75,0,0,90,90,90,90,90,0,50,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90" frozencols="12" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:90px; width:1195px; height:690px; ">
  172. <col ref="seq"/>
  173. <col ref="enddd" format="yyyy-mm-dd" style="text-align:center; "/>
  174. <col ref="compflag"/>
  175. <col ref="cashflag"/>
  176. <col ref="cash_mgsm" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  177. <col ref="card_mgsm" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  178. <col ref="online_mgsm" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  179. <col ref="unco_mgsm" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  180. <col ref="new_tot" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  181. <col ref="rcptrid"/>
  182. <col ref="rcptrnm" style="text-align:center; "/>
  183. <col ref="old_tot" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  184. <col ref="cash_out" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  185. <col ref="cash_in" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  186. <col ref="cash_hi" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  187. <col ref="cash_sum" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  188. <col ref="card_out" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  189. <col ref="card_in" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  190. <col ref="card_hi" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  191. <col ref="card_sum" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  192. <col ref="online_out" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  193. <col ref="online_in" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  194. <col ref="online_hi" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  195. <col ref="online_sum" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  196. <col ref="unco_out" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  197. <col ref="unco_in" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  198. <col ref="unco_hi" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  199. <col ref="unco_sum" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  200. <script type="javascript" ev:event="ondblclick">
  201. <![CDATA[
  202. if (grd_comp.row < 2) {
  203. var amt = "";
  204. var expand = true;
  205. if (grd_comp.col >= grd_comp.colRef("cash_out") && grd_comp.col <= grd_comp.colRef("cash_sum")) {
  206. amt = "cash";
  207. expand = grd_comp.colWidth(grd_comp.colRef("cash_out")) > 0 ? false : true;
  208. } else if (grd_comp.col >= grd_comp.colRef("card_out") && grd_comp.col <= grd_comp.colRef("card_sum")) {
  209. amt = "card";
  210. expand = grd_comp.colWidth(grd_comp.colRef("card_out")) > 0 ? false : true;
  211. } else if (grd_comp.col >= grd_comp.colRef("online_out") && grd_comp.col <= grd_comp.colRef("online_sum")) {
  212. amt = "online";
  213. expand = grd_comp.colWidth(grd_comp.colRef("online_out")) > 0 ? false : true;
  214. } else if (grd_comp.col >= grd_comp.colRef("unco_out") && grd_comp.col <= grd_comp.colRef("unco_sum")) {
  215. amt = "unco";
  216. expand = grd_comp.colWidth(grd_comp.colRef("unco_out")) > 0 ? false : true;
  217. } else if (grd_comp.col == grd_comp.colRef("old_tot")) {
  218. if (grd_comp.colWidth(grd_comp.colRef("cash_out")) > 0 ||
  219. grd_comp.colWidth(grd_comp.colRef("card_out")) > 0 ||
  220. grd_comp.colWidth(grd_comp.colRef("online_out")) > 0 ||
  221. grd_comp.colWidth(grd_comp.colRef("unco_out")) > 0) {
  222. expand = false;
  223. } else {
  224. expand = true;
  225. }
  226. fSetColWidth("", expand);
  227. }
  228. if (amt != "") {
  229. fSetColWidth(amt, expand);
  230. }
  231. }
  232. ]]>
  233. </script>
  234. </datagrid>
  235. <button id="btn_xls" class="btn2_letter2" style="left:1153px; top:65px; width:42px; height:19px; ">
  236. <caption>엑셀</caption>
  237. <script type="javascript" ev:event="DOMActivate">
  238. <![CDATA[
  239. var file = window.fileDialog("save", "", "false", "수납자별 마감금액비교", "xls", "Excel Files(*.xls)|*.xls");
  240. grd_rcptlist.saveExcel(file);
  241. ]]>
  242. </script>
  243. </button>
  244. <line id="line_comp" class="line_1" style="x1:0px; y1:85px; x2:1195px; y2:85px; "/>
  245. <select id="chk_compflag" ref="/root/hidden/compflag" navindex="4" overflow="visible" appearance="full" style="left:415px; top:32px; width:155px; height:20px; border-style:none; ">
  246. <choices>
  247. <item>
  248. <label>금액이 다른 항목만 보기</label>
  249. <value>Y</value>
  250. </item>
  251. </choices>
  252. <script type="javascript" ev:event="xforms-value-changed">
  253. <![CDATA[
  254. grd_comp.rebuildStyle();
  255. fSetCompflag();
  256. ]]>
  257. </script>
  258. </select>
  259. <select id="chk_cashflag" ref="/root/hidden/cashflag" navindex="5" overflow="visible" appearance="full" style="left:580px; top:32px; width:155px; height:20px; border-style:none; ">
  260. <choices>
  261. <item>
  262. <label>현금이 다른 항목만 보기</label>
  263. <value>Y</value>
  264. </item>
  265. </choices>
  266. <script type="javascript" ev:event="xforms-value-changed">
  267. <![CDATA[
  268. grd_comp.rebuildStyle();
  269. fSetCompflag();
  270. ]]>
  271. </script>
  272. </select>
  273. <line id="line1" style="x1:575px; y1:67px; x2:575px; y2:82px; border-color:#b0b0b0; "/>
  274. <caption id="caption1" style="left:577px; top:67px; width:48px; height:15px; color:#787878; ">▶ 기존</caption>
  275. <line id="line2" style="x1:525px; y1:67px; x2:525px; y2:82px; border-color:#b0b0b0; "/>
  276. <caption id="caption2" style="left:482px; top:67px; width:42px; height:15px; color:#787878; text-align:right; ">개편 ◀</caption>
  277. <caption id="caption3" style="left:910px; top:33px; width:235px; height:50px; color:#787878; text-align:left; line-spacing:2; ">
  278. <![CDATA[※ 기존 금액의 칼럼 헤더를 더블 클릭하면
  279. 각 금액별로 확장 및 축소가 가능합니다.
  280. (합계 : 전체 확장 / 축소)]]>
  281. </caption>
  282. </xhtml:body>
  283. </xhtml:html>