SMPAS00170_신용카드수납현황.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  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. <conficardamtlist>
  11. <conficardamtstats>
  12. <cdnm/>
  13. <cardcmpycode/>
  14. <cardamt/>
  15. <coms/>
  16. <carddepoamt/>
  17. <banhwan/>
  18. <cardcmpycd/>
  19. </conficardamtstats>
  20. </conficardamtlist>
  21. <search>
  22. <fromdata/>
  23. <todata/>
  24. <datagubun>ALL</datagubun>
  25. <erdata>1</erdata>
  26. <dcgubun>D</dcgubun>
  27. <noperchk/>
  28. </search>
  29. <confisumamtlist>
  30. <confisumamtstats>
  31. <cdnm>합 계</cdnm>
  32. <cardcmpycode/>
  33. <cardamt/>
  34. <coms/>
  35. <carddepoamt/>
  36. <banhwan/>
  37. <cardcmpycd/>
  38. </confisumamtstats>
  39. </confisumamtlist>
  40. <tmpinfo>
  41. <info>
  42. <user/>
  43. </info>
  44. </tmpinfo>
  45. </main>
  46. <send>
  47. <fromdata/>
  48. <todata/>
  49. <datagubun/>
  50. <erdata/>
  51. <dcgubun/>
  52. <datalabel/>
  53. <noperchk/>
  54. </send>
  55. <hidden>
  56. <session/>
  57. </hidden>
  58. <init>
  59. <PAM>
  60. <P0008list>
  61. <P0008>
  62. <cdnm/>
  63. <cdid/>
  64. <detl/>
  65. </P0008>
  66. </P0008list>
  67. </PAM>
  68. </init>
  69. </root>
  70. </instance>
  71. <script type="javascript" ev:event="xforms-model-construct-done">
  72. <![CDATA[
  73. pamfGetCodeList(new Array("P0008"), new Array("/root/init/PAM/P0008list"));
  74. submit("TRPAS00001");
  75. var vToday = new Date();
  76. var tmpYear = vToday.getYear();
  77. var tmpMonth = vToday.getMonth()+1;
  78. var tmpDate = vToday.getDate();
  79. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  80. if(tmpDate<10){tmpDate ="0"+tmpDate;}
  81. model.setValue("/root/main/search/fromdata", tmpYear+""+tmpMonth+""+tmpDate);
  82. model.setValue("/root/main/search/todata", tmpYear+""+tmpMonth+""+tmpDate);
  83. //Rexport에 출력날자를 보여주기위한 데이터 저장
  84. model.makeNode("/root/main/tmp/print/date");
  85. model.copyNode("/root/main/tmp/print/date", "/root/main/search/fromdata");
  86. model.setValue("/root/main/tmp/print/date", model.getValue("/root/main/search/fromdata"));
  87. input7.refresh();
  88. input1.refresh();
  89. datagrid4.explorerbar = "sort";
  90. ]]>
  91. </script>
  92. <submission id="TRPAS00161" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/data1"/>
  93. <bind id="bind1" ref="/root/main/conficardamtlist/conficardamtstats" calculate="now() + ."/>
  94. <bind id="bind2" ref="/root/main/confisumamtlist/confisumamtstats/cardamt" calculate="sum(/root/main/conficardamtlist/conficardamtstats/cardamt);"/>
  95. <bind id="bind3" ref="/root/main/confisumamtlist/confisumamtstats/coms" calculate="sum(/root/main/conficardamtlist/conficardamtstats/coms);"/>
  96. <bind id="bind4" ref="/root/main/confisumamtlist/confisumamtstats/carddepoamt" calculate="sum(/root/main/conficardamtlist/conficardamtstats/carddepoamt);"/>
  97. <bind id="bind5" ref="/root/main/sunsusumamtlist/sunsusumamtstats/retrnamt" calculate="sum(/root/main/sunsuamtlist/sunsuamtstats/retrnamt);"/>
  98. <bind id="bind6" ref="/root/main/confisumamtlist/confisumamtstats/cardcmpycode" calculate="sum(/root/main/conficardamtlist/conficardamtstats/cardcmpycode);"/>
  99. <submission id="TRPAS00001" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/tmpinfo/info/user"/>
  100. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  101. </model>
  102. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  108. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  109. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  110. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  111. </xhtml:head>
  112. <xhtml:body pagewidth="1211" pageheight="784">
  113. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  114. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">신용카드수납현황</caption>
  115. </group>
  116. <group id="group2" style="left:4px; top:22px; width:1203px; height:35px; ">
  117. <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; "/>
  118. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:198px; height:17px; ">기간 ~</caption>
  119. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  120. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  121. <caption>조회</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. var fromdata = model.getValue("/root/main/search/fromdata");
  125. var todata = model.getValue("/root/main/search/todata");
  126. if(fromdata==""||fromdata==null){
  127. messageBox("시작일을 입력","E007");
  128. model.setFocus("input7");
  129. return false;
  130. }
  131. if(todata==""|| todata==null){
  132. messageBox("끝일을 입력","E007");
  133. model.setFocus("input1");
  134. return false;
  135. }
  136. if(fromdata > todata){
  137. messageBox("시작일이 끝일자보다 클수 ", "C001")
  138. return false;
  139. }else{
  140. model.setValue("/root/send/fromdata",model.getValue("/root/main/search/fromdata"));
  141. model.setValue("/root/send/todata",model.getValue("/root/main/search/todata"));
  142. model.setValue("/root/send/datagubun",model.getValue("/root/main/search/datagubun"));
  143. model.removeNodeset("/root/main/conficardamtlist");
  144. submit("TRPAS00161");
  145. //로드값이 있을때 엑셀저장여부 버튼 생성여부
  146. var nodelist = bind1.nodeset;
  147. if(nodelist.length>0){
  148. line1.visible =true;
  149. button95.visible = true;
  150. }else{
  151. line1.visible =false;
  152. button95.visible = false;
  153. }
  154. copyNodesetType("/root/main/conficardamtlist/conficardamtstats","/root/main/confisumamtlist/confisumamtstats","after");
  155. datagrid4.rebuild();
  156. }
  157. ]]>
  158. </script>
  159. </button>
  160. <input id="input7" ref="/root/main/search/fromdata" class="input_default" navindex="7" inputtype="date" style="left:70px; top:8px; width:120px; height:19px; ">
  161. <script type="javascript" ev:event="onkeydown">
  162. <![CDATA[
  163. if( event.keyCode == 13 ) {
  164. var pCurTargetObj = event.ptarget.parent;
  165. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  166. event.keyCode = 9;
  167. pCurTargetObj.dispatch("onkeydown");
  168. }
  169. else {
  170. event.keyCode = 9;
  171. }
  172. }
  173. event.stopPropagation();
  174. ]]>
  175. </script>
  176. </input>
  177. <input id="input1" ref="/root/main/search/todata" class="input_default" navindex="7" inputtype="date" style="left:215px; top:8px; width:120px; height:19px; ">
  178. <script type="javascript" ev:event="onkeydown">
  179. <![CDATA[
  180. if( event.keyCode == 13 ) {
  181. var pCurTargetObj = event.ptarget.parent;
  182. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  183. event.keyCode = 9;
  184. pCurTargetObj.dispatch("onkeydown");
  185. }
  186. else {
  187. event.keyCode = 9;
  188. }
  189. }
  190. event.stopPropagation();
  191. ]]>
  192. </script>
  193. </input>
  194. <!-- 수정이력 : 20100106 JHP 원무공통코드 P0008 추가 각 병원 다름... 무인수납하고 외래, 입원 동시적용위해 체크박스도 추가함. -->
  195. <!-- 수정이력 : 20100525 JHP 원무공통코드 P0008 추가 변경에 따른 내용 변경 기존무인을 외래무인, 입원무인으로 나눔
  196. 기존 : 무인_무인수납전체(K), 무인/입원_무인전체+입원(KI), 무인/외래_무인전체+외래(KO)
  197. 변경 : 무인_외래무인+입원무인(KS), 무인/외래_외래무인+외래(KO), 무인/입원_입원무인+입원(SI)
  198. 20100528 강신문샘 추가변경 전체, 입원, 외래, 외래무인, 입원무인, 무인, 건진, 외래+외래무인, 입원+입원무인, 강제카드
  199. ALL, I, O, K, S, KS, H, KO, SI, -
  200. -->
  201. <select1 id="combo1" ref="/root/main/search/datagubun" appearance="minimal" style="left:350px; top:8px; width:120px; height:19px; ">
  202. <choices>
  203. <item>
  204. <label>전체</label>
  205. <value>ALL</value>
  206. </item>
  207. <item>
  208. <label>입원</label>
  209. <value>I</value>
  210. </item>
  211. <item>
  212. <label>외래</label>
  213. <value>O</value>
  214. </item>
  215. <item>
  216. <label>외래무인</label>
  217. <value>K</value>
  218. </item>
  219. <item>
  220. <label>입원무인</label>
  221. <value>S</value>
  222. </item>
  223. <item>
  224. <label>무인</label>
  225. <value>KS</value>
  226. </item>
  227. <item>
  228. <label>건진</label>
  229. <value>H</value>
  230. </item>
  231. <item>
  232. <label>외래+외래무인</label>
  233. <value>KO</value>
  234. </item>
  235. <item>
  236. <label>입원+입원무인</label>
  237. <value>SI</value>
  238. </item>
  239. <item>
  240. <label>강제카드</label>
  241. <value>-</value>
  242. </item>
  243. </choices>
  244. <!--<choices>
  245. <itemset nodeset="/root/init/PAM/P0008list/P0008">
  246. <label ref="detl"/>
  247. <value ref="cdid"/>
  248. </itemset>
  249. </choices>-->
  250. </select1>
  251. <button id="button95" class="btn6_letter4" visibility="hidden" style="left:971px; top:7px; width:80px; height:22px; ">
  252. <caption>액셀저장</caption>
  253. <script type="javascript" ev:event="DOMActivate">
  254. <![CDATA[
  255. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  256. if (fileName != "")
  257. {
  258. datagrid1.saveExcel(fileName, "신용카드수납현황", true, true, "", "", true);
  259. }
  260. ]]>
  261. </script>
  262. </button>
  263. <line id="line1" class="line_4" visibility="hidden" style="x1:1058px; y1:7px; x2:1058px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  264. <button id="btn_print" class="btn6_letter2" style="left:1066px; top:7px; width:56px; height:22px; ">
  265. <caption>출력</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. exeReportPreview("RPPAS00161", "XMLSTR", "","", "false","","","","","false");
  269. ]]>
  270. </script>
  271. </button>
  272. <!-- 수정이력 : 20100106 JHP 원무공통코드 P0008 추가 각 병원 다름... 무인수납하고 외래, 입원 동시적용위해 체크박스도 추가함. -->
  273. </group>
  274. <datagrid id="datagrid4" nodeset="/root/main/conficardamtlist/conficardamtstats" caption="카드사^건수^결제액^수수료^실수령액" colsep="^" colwidth="230, 230, 230, 230, 230" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" rowsep="|" style="left:3px; top:69px; width:1203px; height:696px; ">
  275. <col ref="cdnm" style="text-align:center; "/>
  276. <col ref="cardcmpycode" format="(-)#,###" style="text-align:center; "/>
  277. <col ref="cardamt" format="(-)#,###;" style="text-align:right; "/>
  278. <col ref="coms" format="(-)#,###" style="text-align:right; "/>
  279. <col ref="carddepoamt" format="(-)#,###" style="text-align:right; "/>
  280. <script type="javascript" ev:event="ondblclick">
  281. <![CDATA[
  282. var row = datagrid4.row;
  283. var datagubun
  284. if ( model.getValue("/root/main/search/datagubun") == "ALL" ) {
  285. datagubun = "%";
  286. } else {
  287. datagubun = model.getValue("/root/main/search/datagubun");
  288. }
  289. var parm = model.getValue("/root/main/search/fromdata") + "▦" + //시작일자
  290. model.getValue("/root/main/search/todata") + "▦" + //종료일자
  291. datagubun + "▦" + //진료형태
  292. model.getValue("/root/main/conficardamtlist/conficardamtstats[" + row + "]/cardcmpycd") + "▦";
  293. setParameter("SPPAS00170_PARM", parm);
  294. modal("../../../pam/rcptteamstatsweb/xrw/SPPAS00170", "1", "350", "350", "SPPAS00170", "", "");
  295. ]]>
  296. </script>
  297. <script type="javascript" ev:event="onaftersort">
  298. <![CDATA[
  299. //sorting 시 인스턴스 구조를 재구성
  300. datagrid4.gridToInstance();
  301. ]]>
  302. </script>
  303. </datagrid>
  304. </xhtml:body>
  305. </xhtml:html>