SMPAS01280_신용카드수납일보.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. <?xml version="1.0" encoding="UTF-16"?>
  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. <creditcardsunablist>
  11. <creditcardsunabstats>
  12. <pid/>
  13. <hngnm/>
  14. <rrgstno/>
  15. <cdnm/>
  16. <cardno/>
  17. <aprvno/>
  18. <cardamt/>
  19. <carddepoamt/>
  20. <coms/>
  21. <inamt/>
  22. </creditcardsunabstats>
  23. </creditcardsunablist>
  24. <search>
  25. <fromdata/>
  26. <todata/>
  27. <datagubun>O</datagubun>
  28. <erdata>O</erdata>
  29. <dcgubun>1</dcgubun>
  30. </search>
  31. <creditcardsunabsumlist>
  32. <creditcardsunabsumstats>
  33. <pid>총계</pid>
  34. <hngnm/>
  35. <rrgstno/>
  36. <cdnm/>
  37. <cardno/>
  38. <aprvno/>
  39. <cardamt/>
  40. <carddepoamt/>
  41. <coms/>
  42. <inamt/>
  43. </creditcardsunabsumstats>
  44. </creditcardsunabsumlist>
  45. <userinfo>
  46. <info>
  47. <user/>
  48. </info>
  49. </userinfo>
  50. </main>
  51. <send>
  52. <fromdata/>
  53. <todata/>
  54. <datagubun/>
  55. <erdata/>
  56. <dcgubun/>
  57. </send>
  58. <documenttitle>
  59. <title/>
  60. </documenttitle>
  61. </root>
  62. </instance>
  63. <script type="javascript" ev:event="xforms-model-construct-done">
  64. <![CDATA[
  65. submit("TRPAS00001");
  66. var vToday = new Date();
  67. var tmpYear = vToday.getYear();
  68. var tmpMonth = vToday.getMonth()+1;
  69. var tmpDate = vToday.getDate();
  70. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  71. if(tmpDate<10){tmpDate ="0"+tmpDate;}
  72. model.setValue("/root/main/search/fromdata", tmpYear+""+tmpMonth+""+tmpDate);
  73. model.setValue("/root/main/search/todata", tmpYear+""+tmpMonth+""+tmpDate);
  74. //Rexport에 출력날자를 보여주기위한 데이터 저장
  75. model.makeNode("/root/main/tmp/print/date");
  76. model.copyNode("/root/main/tmp/print/date", "/root/main/search/fromdata");
  77. model.setValue("/root/main/tmp/print/date", model.getValue("/root/main/search/fromdata"));
  78. input7.refresh();
  79. input1.refresh();
  80. datagrid4.explorerbar = "sort";
  81. ]]>
  82. </script>
  83. <bind id="bind1" ref="/root/main/creditcardsunablist/creditcardsunabstats" calculate="now() + ."/>
  84. <bind id="bind2" ref="/root/main/creditcardsunabsumlist/creditcardsunabsumstats/cardamt" calculate="sum(/root/main/creditcardsunablist/creditcardsunabstats/cardamt);"/>
  85. <bind id="bind3" ref="/root/main/creditcardsunabsumlist/creditcardsunabsumstats/carddepoamt" calculate="sum(/root/main/creditcardsunablist/creditcardsunabstats/carddepoamt);"/>
  86. <bind id="bind4" ref="/root/main/creditcardsunabsumlist/creditcardsunabsumstats/coms" calculate="sum(/root/main/creditcardsunablist/creditcardsunabstats/coms);"/>
  87. <bind id="bind5" ref="/root/main/creditcardsunabsumlist/creditcardsunabsumstats/inamt" calculate="sum(/root/main/creditcardsunablist/creditcardsunabstats/inamt);"/>
  88. <submission id="TRPAS01281" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/data1"/>
  89. <submission id="TRPAS00001" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/userinfo/info/user"/>
  90. </model>
  91. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  97. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  98. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  99. </xhtml:head>
  100. <xhtml:body pagewidth="1211" pageheight="784">
  101. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  102. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:190px; height:14px; font-family:돋움; vertical-align:middle; ">신용카드수납일보/월보</caption>
  103. </group>
  104. <group id="group2" style="left:4px; top:22px; width:1203px; height:35px; ">
  105. <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; "/>
  106. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:198px; height:17px; ">기간 ~</caption>
  107. <line id="line2" class="line_4" style="x1:1130px; y1:7px; x2:1130px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  108. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  109. <caption>조회</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. var fromdata = model.getValue("/root/main/search/fromdata");
  113. var todata = model.getValue("/root/main/search/todata");
  114. if(fromdata==""||fromdata==null){
  115. messageBox("시작일을 입력","E007");
  116. model.setFocus("input7");
  117. return false;
  118. }
  119. if(todata==""|| todata==null){
  120. messageBox("끝일을 입력","E007");
  121. model.setFocus("input1");
  122. return false;
  123. }
  124. if(fromdata > todata){
  125. messageBox("시작일이 끝일자보다 클수 ", "C001")
  126. return false;
  127. }else{
  128. model.setValue("/root/send/fromdata",model.getValue("/root/main/search/fromdata"));
  129. model.setValue("/root/send/todata",model.getValue("/root/main/search/todata"));
  130. model.setValue("/root/send/datagubun",model.getValue("/root/main/search/datagubun"));
  131. model.setValue("/root/send/dcgubun",model.getValue("/root/main/search/dcgubun"));
  132. model.removeNodeset("/root/main/creditcardsunablist");
  133. submit("TRPAS01281");
  134. //로드값이 있을때 엑셀저장여부 버튼 생성여부
  135. var nodelist = bind1.nodeset;
  136. if(nodelist.length>0){
  137. line1.visible =true;
  138. button95.visible = true;
  139. }else{
  140. line1.visible =false;
  141. button95.visible = false;
  142. }
  143. copyNodesetType("/root/main/creditcardsunablist/creditcardsunabstats","/root/main/creditcardsunabsumlist/creditcardsunabsumstats","after");
  144. datagrid4.rebuild();
  145. var sumtotal = instance1.selectNodes("/root/main/creditcardsunablist/creditcardsunabstats").length + datagrid4.fixedRows - 1;
  146. if(sumtotal ==""||sumtotal==null || sumtotal=="1"){
  147. }else{
  148. datagrid4.mergeByFree(sumtotal,0,sumtotal,5);
  149. }
  150. }
  151. ]]>
  152. </script>
  153. </button>
  154. <input id="input7" ref="/root/main/search/fromdata" class="input_default" navindex="7" inputtype="date" style="left:70px; top:8px; width:120px; height:19px; text-align:center; ">
  155. <script type="javascript" ev:event="onkeydown">
  156. <![CDATA[
  157. if( event.keyCode == 13 ) {
  158. var pCurTargetObj = event.ptarget.parent;
  159. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  160. event.keyCode = 9;
  161. pCurTargetObj.dispatch("onkeydown");
  162. }
  163. else {
  164. event.keyCode = 9;
  165. }
  166. }
  167. event.stopPropagation();
  168. ]]>
  169. </script>
  170. </input>
  171. <input id="input1" ref="/root/main/search/todata" class="input_default" navindex="7" inputtype="date" style="left:215px; top:8px; width:120px; height:19px; text-align:center; ">
  172. <script type="javascript" ev:event="onkeydown">
  173. <![CDATA[
  174. if( event.keyCode == 13 ) {
  175. var pCurTargetObj = event.ptarget.parent;
  176. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  177. event.keyCode = 9;
  178. pCurTargetObj.dispatch("onkeydown");
  179. }
  180. else {
  181. event.keyCode = 9;
  182. }
  183. }
  184. event.stopPropagation();
  185. ]]>
  186. </script>
  187. </input>
  188. <select1 id="radio1" ref="/root/main/search/datagubun" appearance="full" cellspacing="8" cols="3" overflow="visible" style="left:515px; top:8px; width:160px; height:19px; border-style:none; ">
  189. <choices>
  190. <item>
  191. <label>외래</label>
  192. <value>O</value>
  193. </item>
  194. <item>
  195. <label>입원</label>
  196. <value>I</value>
  197. </item>
  198. <item>
  199. <label>건진</label>
  200. <value>E</value>
  201. </item>
  202. </choices>
  203. </select1>
  204. <caption id="caption5" style="left:360px; top:8px; width:35px; height:19px; font-weight:bold; ">구분</caption>
  205. <select1 id="combo1" ref="/root/main/search/dcgubun" appearance="minimal" style="left:395px; top:8px; width:100px; height:19px; ">
  206. <choices>
  207. <item>
  208. <label>일별</label>
  209. <value>1</value>
  210. </item>
  211. <item>
  212. <label>월별</label>
  213. <value>2</value>
  214. </item>
  215. <item>
  216. <label>누적</label>
  217. <value>3</value>
  218. </item>
  219. </choices>
  220. <script type="javascript" ev:event="xforms-value-changed">
  221. <![CDATA[
  222. var dcgubun = model.getValue("/root/main/search/dcgubun");
  223. if(dcgubun == "1"){
  224. var vToday = new Date();
  225. var tmpYear = vToday.getYear();
  226. var tmpMonth = vToday.getMonth()+1;
  227. var tmpDate = vToday.getDate();
  228. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  229. if(tmpDate<10){tmpDate ="0"+tmpDate;}
  230. model.setValue("/root/main/search/fromdata", tmpYear+""+tmpMonth+""+tmpDate-1);
  231. model.setValue("/root/main/search/todata", tmpYear+""+tmpMonth+""+tmpDate);
  232. input7.refresh();
  233. input1.refresh();
  234. }else if(dcgubun=="2"){
  235. var vToday = new Date();
  236. var tmpYear = vToday.getYear();
  237. var tmpMonth = vToday.getMonth()+1;
  238. var tmpDate = vToday.getDate();
  239. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  240. if(tmpDate<10){tmpDate ="0"+tmpDate;}
  241. model.setValue("/root/main/search/fromdata", tmpYear+""+tmpMonth+""+tmpDate-tmpDate+1);
  242. model.setValue("/root/main/search/todata", tmpYear+""+tmpMonth+""+tmpDate);
  243. input7.refresh();
  244. input1.refresh();
  245. }else if(dcgubun=="3"){
  246. var vToday = new Date();
  247. var tmpYear = vToday.getYear();
  248. var tmpMonth = vToday.getMonth()+1;
  249. var tmpDate = vToday.getDate();
  250. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  251. if(tmpDate<10){tmpDate ="0"+tmpDate;}
  252. model.setValue("/root/main/search/fromdata", tmpYear+""+tmpMonth+""+tmpDate-tmpDate+1);
  253. model.setValue("/root/main/search/todata", tmpYear+""+tmpMonth+""+tmpDate);
  254. input7.refresh();
  255. input1.refresh();
  256. }
  257. ]]>
  258. </script>
  259. </select1>
  260. <line id="line1" class="line_4" visibility="hidden" style="x1:1058px; y1:7px; x2:1058px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  261. <button id="btn_print" class="btn6_letter2" style="left:1070px; top:7px; width:56px; height:22px; ">
  262. <caption>출력</caption>
  263. <script type="javascript" ev:event="DOMActivate">
  264. <![CDATA[
  265. exeReportPreview("RPPAS01281", "XMLSTR", "","", "false","","","","","false");
  266. ]]>
  267. </script>
  268. </button>
  269. <button id="button95" class="btn6_letter4" visibility="visible" style="left:971px; top:7px; width:80px; height:22px; ">
  270. <caption>액셀저장</caption>
  271. <script type="javascript" ev:event="DOMActivate">
  272. <![CDATA[
  273. var vToday = new Date();
  274. var tmpYear = vToday.getYear();
  275. var tmpMonth = vToday.getMonth()+1;
  276. var tmpDate = vToday.getDate();
  277. // model.setValue("/root/documenttitle/title",document.title);
  278. // model.refresh();
  279. // var subjectTitle = model.getValue("/root/documenttitle/title");
  280. //엑셀저장 여부(타이틀별)
  281. var fileName = window.fileDialog("save", "", false, "신용카드수납일보_월보"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  282. if (fileName != "")
  283. {
  284. datagrid4.saveExcel(fileName, "신용카드수납일보_월보"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  285. }
  286. ]]>
  287. </script>
  288. </button>
  289. </group>
  290. <datagrid id="datagrid4" nodeset="/root/main/creditcardsunablist/creditcardsunabstats" caption="등록번호^환자명^주민번호^카드종류^카드번호^승인번호^카드승인액^입금액^수수료^잔액" colsep="^" colwidth="80, 80, 110, 80, 150, 110, 130, 130, 110, 115" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" rowsep="|" style="left:5px; top:60px; width:1198px; height:710px; ">
  291. <col ref="pid" style="text-align:center; "/>
  292. <col ref="hngnm" format="(-)#,###" style="text-align:center; "/>
  293. <col ref="rrgstno" style="text-align:center; "/>
  294. <col ref="cdnm" style="text-align:center; "/>
  295. <col ref="cardno" format="9999-9999-9999-9999" style="text-align:center; "/>
  296. <col ref="aprvno" style="text-align:center; "/>
  297. <col ref="cardamt" format="(-)#,###" style="text-align:right; "/>
  298. <col ref="carddepoamt" format="(-)#,###" style="text-align:right; "/>
  299. <col ref="coms" format="(-)#,###" style="text-align:right; "/>
  300. <col ref="inamt" format="(-)#,###" style="text-align:right; "/>
  301. </datagrid>
  302. </xhtml:body>
  303. </xhtml:html>