SMPAS00171_카드미수관리.xrw 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  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. <case1>
  11. <conficardamtlist>
  12. <conficardamtstats>
  13. <ordtype/>
  14. <cdnm/>
  15. <cardcmpycode/>
  16. <cardamt/>
  17. <coms/>
  18. <carddepoamt/>
  19. <banhwan/>
  20. <cardcmpycd/>
  21. </conficardamtstats>
  22. </conficardamtlist>
  23. </case1>
  24. <case2>
  25. <h_card>
  26. <card>
  27. <card_title/>
  28. <card_cardcmpycd/>
  29. <card_cnt_y/>
  30. <card_cardamt_y/>
  31. <card_cnt_c/>
  32. <card_cardamt_c/>
  33. </card>
  34. </h_card>
  35. </case2>
  36. <case3>
  37. <h_card>
  38. <card>
  39. <ordtype/>
  40. <carrymisu/>
  41. <cnt/>
  42. <cardamt/>
  43. <carddepoamt/>
  44. <coms/>
  45. <rsrtmisu/>
  46. </card>
  47. </h_card>
  48. </case3>
  49. <case4>
  50. <conficardamtlist>
  51. <conficardamtstats>
  52. <ordtype/>
  53. <cdnm/>
  54. <cardcmpycode/>
  55. <cardamt/>
  56. <coms/>
  57. <carddepoamt/>
  58. <banhwan/>
  59. <cardcmpycd/>
  60. </conficardamtstats>
  61. </conficardamtlist>
  62. </case4>
  63. </main>
  64. <send>
  65. <case1>
  66. <ddflag/>
  67. <fromdata/>
  68. <todata/>
  69. <datagubun/>
  70. </case1>
  71. <case2>
  72. <data1>
  73. <fromdd/>
  74. <tm_from/>
  75. <tm_to/>
  76. <rcpt_id/>
  77. <ordtype/>
  78. <sempty/>
  79. </data1>
  80. </case2>
  81. <case3>
  82. <fromdd/>
  83. <todd/>
  84. </case3>
  85. <case4>
  86. <ddflag/>
  87. <fromdata/>
  88. <todata/>
  89. <datagubun/>
  90. <ddflag/>
  91. </case4>
  92. </send>
  93. <hidden>
  94. <session/>
  95. </hidden>
  96. <init>
  97. <PAM>
  98. <P0008list>
  99. <P0008>
  100. <cdnm/>
  101. <cdid/>
  102. <detl/>
  103. </P0008>
  104. </P0008list>
  105. </PAM>
  106. </init>
  107. </root>
  108. </instance>
  109. <submission id="TRPAS00171" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/case1" replace="instance" resultref="/root/main/case1"/>
  110. <submission id="TRPAS00172" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/case2/data1" resultref="/root/main/case2"/>
  111. <submission id="TRPAS00173" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/case3" resultref="/root/main/case3"/>
  112. <submission id="TRPAS00174" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/case4" replace="instance" resultref="/root/main/case4"/>
  113. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  114. </model>
  115. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  119. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  121. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  122. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  123. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  124. <script type="javascript" ev:event="xforms-ready">
  125. <![CDATA[
  126. fGetUserInfo2();
  127. fReady_case1();
  128. fReady_case2();
  129. fReady_case3();
  130. btn_case1.selected = "true";
  131. model.toggle("case1");
  132. ]]>
  133. </script>
  134. <script type="javascript">
  135. <![CDATA[
  136. //로그인한 사용자 정보조회
  137. function fGetUserInfo2(){
  138. var sUserInfosS = getUserInfos();
  139. sUserInfosS = sUserInfosS + "|";
  140. var UserInfosS_Array = sUserInfosS.split("|");
  141. var userid = UserInfosS_Array[0]; //사용자번호
  142. var usernm = UserInfosS_Array[1]; //사용자이름
  143. var posinstcd = UserInfosS_Array[2]; //소속기관코드
  144. var posinstnm = UserInfosS_Array[3]; //소속기관명
  145. var dutplcecd = UserInfosS_Array[4]; //근무지부서코드
  146. var dutplcenm = UserInfosS_Array[5]; //근무지부서명
  147. var dutinstnm = UserInfosS_Array[7]; //근무지기관명
  148. model.makeValue("/root/hidden/session/userid",userid);
  149. model.makeValue("/root/hidden/session/usernm",usernm);
  150. model.makeValue("/root/hidden/session/dutinstnm",dutinstnm);
  151. }
  152. function fReady_case1(){
  153. pamfGetCodeList(new Array("P0008"), new Array("/root/init/PAM/P0008list"));
  154. var vToday = new Date();
  155. var tmpYear = vToday.getYear();
  156. var tmpMonth = vToday.getMonth()+1;
  157. var tmpDate = vToday.getDate();
  158. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  159. if(tmpDate<10){tmpDate ="0"+tmpDate;}
  160. model.setValue("/root/send/case1/fromdata", tmpYear+""+tmpMonth+""+tmpDate);
  161. model.setValue("/root/send/case1/todata", tmpYear+""+tmpMonth+""+tmpDate);
  162. model.setValue("/root/send/case4/fromdata", tmpYear+""+tmpMonth+""+tmpDate);
  163. model.setValue("/root/send/case4/todata", tmpYear+""+tmpMonth+""+tmpDate);
  164. model.setValue("/root/send/case1/datagubun" , "ALL");
  165. model.setValue("/root/send/case4/datagubun" , "ALL");
  166. model.setValue("/root/send/case4/ddflag" , "depodd");
  167. ipt_case1_fromdd.refresh();
  168. ipt_case1_todd.refresh();
  169. cmb_case1.refresh();
  170. grd_case1.explorerbar = "sort";
  171. ipt_case4_fromdd.refresh();
  172. ipt_case4_todd.refresh();
  173. cmb_case4.refresh();
  174. grd_case4.explorerbar = "sort";
  175. }
  176. function fReady_case2(){
  177. model.removenodeset("/root/main/case2/h_card/card");
  178. model.setValue("/root/send/case2/data1/fromdd", getCurrentDate()); // common.js에서 제공하는 함수를 사용하여 오늘 날짜를 구한다.
  179. model.setValue("/root/send/case2/data1/tm_from", "0000");
  180. model.setValue("/root/send/case2/data1/tm_to", "2400");
  181. model.setValue("/root/send/case2/data1/rcpt_id", "");
  182. model.setValue("/root/send/case2/data1/ordtype", "%");
  183. model.refresh();
  184. }
  185. function fReady_case3(){
  186. model.setValue("/root/send/case3/fromdd", getCurrentDate());
  187. model.setValue("/root/send/case3/todd", getCurrentDate());
  188. model.refresh();
  189. }
  190. ]]>
  191. </script>
  192. <script type="javascript" ev:event="xforms-model-construct-done">
  193. <![CDATA[
  194. ]]>
  195. </script>
  196. </xhtml:head>
  197. <xhtml:body scroll="auto" pagewidth="1211" pageheight="784">
  198. <switch id="switch1" style="left:0px; top:47px; width:1210; height:725px; ">
  199. <case id="case1" selected="true">
  200. <group id="group2" style="left:0; top:12px; width:1203px; height:35px; ">
  201. <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; "/>
  202. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:65px; height:17px; ">기간 :</caption>
  203. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  204. <line id="line1" class="line_4" visibility="hidden" style="x1:1058px; y1:7px; x2:1058px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  205. <button id="btn_case1_excel" class="btn6_letter4" visibility="hidden" style="left:971px; top:7px; width:80px; height:22px; ">
  206. <caption>액셀저장</caption>
  207. <script type="javascript" ev:event="DOMActivate">
  208. <![CDATA[
  209. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  210. if (fileName != "")
  211. {
  212. grd_case1.saveExcel(fileName, "신용카드수납현황", true, true, "", "", true);
  213. }
  214. ]]>
  215. </script>
  216. </button>
  217. <button id="btn_case1_print" class="btn6_letter2" style="left:1066px; top:7px; width:56px; height:22px; ">
  218. <caption>출력</caption>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. exeReportPreview("RPPAS00170", "XMLSTR", "","", "false","","","","","false");
  222. ]]>
  223. </script>
  224. </button>
  225. <button id="btn_case1_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  226. <caption>조회</caption>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. var fromdata = model.getValue("/root/send/case1/fromdata");
  230. var todata = model.getValue("/root/send/case1/todata");
  231. if(fromdata==""||fromdata==null){
  232. messageBox("시작일을 입력","E007");
  233. model.setFocus("input7");
  234. return false;
  235. }
  236. if(todata==""|| todata==null){
  237. messageBox("끝일을 입력","E007");
  238. model.setFocus("input1");
  239. return false;
  240. }
  241. if(fromdata > todata){
  242. messageBox("시작일이 끝일자보다 클수 ", "C001")
  243. return false;
  244. }else{
  245. submit("TRPAS00171");
  246. grd_case1.refresh();
  247. grd_case1.rebuildStyle();
  248. setRowStyle("grd_case1" , "2" , "소계" , "cdnm" , "equal");
  249. setRowStyle("grd_case1" , "2" , "계" , "cdnm" , "equal");
  250. }
  251. ]]>
  252. </script>
  253. </button>
  254. <input id="ipt_case1_fromdd" ref="/root/send/case1/fromdata" class="input_default" navindex="7" inputtype="date" style="left:80px; top:8px; width:90px; height:19px; ">
  255. <script type="javascript" ev:event="onkeydown">
  256. <![CDATA[
  257. if( event.keyCode == 13 ) {
  258. var pCurTargetObj = event.ptarget.parent;
  259. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  260. event.keyCode = 9;
  261. pCurTargetObj.dispatch("onkeydown");
  262. }
  263. else {
  264. event.keyCode = 9;
  265. }
  266. }
  267. event.stopPropagation();
  268. ]]>
  269. </script>
  270. </input>
  271. <input id="ipt_case1_todd" ref="/root/send/case1/todata" class="input_default" navindex="7" inputtype="date" style="left:191px; top:8px; width:90px; height:19px; ">
  272. <script type="javascript" ev:event="onkeydown">
  273. <![CDATA[
  274. if( event.keyCode == 13 ) {
  275. var pCurTargetObj = event.ptarget.parent;
  276. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  277. event.keyCode = 9;
  278. pCurTargetObj.dispatch("onkeydown");
  279. }
  280. else {
  281. event.keyCode = 9;
  282. }
  283. }
  284. event.stopPropagation();
  285. ]]>
  286. </script>
  287. </input>
  288. <select1 id="cmb_case1" ref="/root/send/case1/datagubun" appearance="minimal" style="left:295px; top:8px; width:120px; height:19px; ">
  289. <choices>
  290. <item>
  291. <label>전체</label>
  292. <value>ALL</value>
  293. </item>
  294. <item>
  295. <label>항목별</label>
  296. <value>DIV</value>
  297. </item>
  298. </choices>
  299. </select1>
  300. <caption id="caption3" style="left:172px; top:10px; width:20px; height:15px; text-align:center; ">~</caption>
  301. </group>
  302. <datagrid id="grd_case1" nodeset="/root/main/case1/conficardamtlist/conficardamtstats" caption="구분^카드사^카드구분^카드미수액(A)^수수료(B)^수입액(A-B)^건수" colsep="^" colwidth="100, 188, 100, 230, 230, 230, 100" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" rowsep="|" style="left:0px; top:70px; width:1203px; height:615px; ">
  303. <col ref="ordtype" type="output" style="text-align:center; "/>
  304. <col ref="cdnm" style="text-align:center; "/>
  305. <col ref="cardtype" type="output" style="text-align:center; "/>
  306. <col ref="cardamt" format="(-)#,###;" style="text-align:right; "/>
  307. <col ref="coms" format="(-)#,###" style="text-align:right; "/>
  308. <col ref="carddepoamt" format="(-)#,###" style="text-align:right; "/>
  309. <col ref="cardcmpycode" format="(-)#,###" style="text-align:right; "/>
  310. <script type="javascript" ev:event="ondblclick">
  311. <![CDATA[
  312. var row = grd_case1.row;
  313. var cardcmpycd = model.getValue("/root/main/case1/conficardamtlist/conficardamtstats[" + row + "]/cardcmpycd");
  314. if(cardcmpycd == "소계") cardcmpycd = "전체";
  315. if(cardcmpycd == "계") cardcmpycd = "전체";
  316. model.setValue("/root/send/case1/ddflag" , "aprvdd");
  317. var parm = model.getValue("/root/send/case1/ddflag") + "▦" + //기간조건
  318. model.getValue("/root/send/case1/fromdata") + "▦" + //시작일자
  319. model.getValue("/root/send/case1/todata") + "▦" + //종료일자
  320. model.getValue("/root/main/case1/conficardamtlist/conficardamtstats[" + row + "]/ordtype") + "▦" + //진료형태
  321. model.getValue("/root/main/case1/conficardamtlist/conficardamtstats[" + row + "]/cardcmpycd") + "▦";
  322. setParameter("SMPAS00175_PARM", parm);
  323. open("../../../pam/rcptteamstatsweb/xrw/SMPAS00175", "1", "310", "310", "SPPAS00170", "", "");
  324. ]]>
  325. </script>
  326. <script type="javascript" ev:event="onaftersort">
  327. <![CDATA[
  328. grd_case1.gridToInstance();
  329. ]]>
  330. </script>
  331. </datagrid>
  332. <line id="line8" class="line_1" style="x1:0px; y1:65px; x2:1203; y2:65px; "/>
  333. </case>
  334. <case id="case2">
  335. <group id="group1" style="left:0px; top:12; width:1198px; height:35px; ">
  336. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1197px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  337. <caption id="caption4" class="search_name" style="left:15px; top:9px; width:60px; height:17px; ">일자 :</caption>
  338. <line id="line3" class="line_4" style="x1:1127px; y1:7px; x2:1127px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  339. <line id="line4" class="line_4" visibility="hidden" style="x1:1058px; y1:7px; x2:1058px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  340. <select1 id="radio1" ref="/root/send/case2/data1/ordtype" appearance="full" cols="6" rows="1" overflow="visible" style="left:530px; top:10px; width:275px; height:20px; text-align:center; vertical-align:middle; border-style:none; ">
  341. <choices>
  342. <item>
  343. <label>전체</label>
  344. <value>%</value>
  345. </item>
  346. <item>
  347. <label>외래</label>
  348. <value>O</value>
  349. </item>
  350. <item>
  351. <label>입원</label>
  352. <value>I</value>
  353. </item>
  354. <item>
  355. <label>응급</label>
  356. <value>E</value>
  357. </item>
  358. <item>
  359. <label>건진</label>
  360. <value>H</value>
  361. </item>
  362. <item>
  363. <label>DSC</label>
  364. <value>D</value>
  365. </item>
  366. </choices>
  367. </select1>
  368. <caption id="caption5" style="left:227px; top:10px; width:15px; height:20px; ">~</caption>
  369. <caption id="caption6" class="search_name" style="left:320px; top:9px; width:91px; height:17px; ">수납자 ID :</caption>
  370. <select id="checkbox1" ref="/root/send/case2/data1/sempty" overflow="visible" appearance="full" style="left:811px; top:10px; width:100px; height:20px; border-style:none; ">
  371. <choices>
  372. <item>
  373. <label>건진제외</label>
  374. <value>1</value>
  375. </item>
  376. </choices>
  377. </select>
  378. <button id="btn_case2_excel" class="btn6_letter4" style="left:971px; top:7px; width:80px; height:22px; ">
  379. <caption>액셀저장</caption>
  380. <script type="javascript" ev:event="DOMActivate">
  381. <![CDATA[
  382. var vToday = new Date();
  383. var tmpYear = vToday.getYear();
  384. var tmpMonth = vToday.getMonth()+1;
  385. var tmpDate = vToday.getDate();
  386. //엑셀저장 여부(타이틀별)
  387. var fileName = window.fileDialog("save", "", false, "카드집계현황"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  388. if (fileName != "")
  389. {
  390. grd_case2_card.saveExcel(fileName, "카드집계현황"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  391. }
  392. ]]>
  393. </script>
  394. </button>
  395. <button id="btn_case2_print" class="btn6_letter2" style="left:1065px; top:7px; width:56px; height:22px; ">
  396. <caption>출력</caption>
  397. <script type="javascript" ev:event="DOMActivate">
  398. <![CDATA[
  399. exeReportPreview("RPPAS00172", "XMLSTR", "", "", "true", "", "", "", "", "","", "", "", "", "", "1", "");
  400. ]]>
  401. </script>
  402. </button>
  403. <button id="btn_case2_search" class="btn1_letter2" style="left:1134px; top:7px; width:56px; height:22px; ">
  404. <caption>조회</caption>
  405. <script type="javascript" ev:event="DOMActivate">
  406. <![CDATA[
  407. submit("TRPAS00172");
  408. grd_case2_card.subtotalPosition = "below";
  409. grd_case2_card.subtotal("sum", -1, 2, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계", false);
  410. grd_case2_card.subtotal("sum", -1, 3, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계", false);
  411. grd_case2_card.subtotal("sum", -1, 4, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계", false);
  412. grd_case2_card.subtotal("sum", -1, 5, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계", false);
  413. model.refresh();
  414. ]]>
  415. </script>
  416. </button>
  417. <input id="ipt_case2_searchdd" ref="/root/send/case2/data1/fromdd" class="input_default" navindex="7" autonext="false" inputtype="date" style="left:80px; top:8px; width:85px; height:19px; text-align:center; "/>
  418. <input id="ipt_case2_tm_from" ref="/root/send/case2/data1/tm_from" autonext="false" format="hh:nn" style="left:175px; top:8px; width:49px; height:19px; text-align:center; "/>
  419. <input id="ipt_case2_tm_to" ref="/root/send/case2/data1/tm_to" autonext="false" format="hh:nn" style="left:243px; top:8px; width:49px; height:19px; text-align:center; "/>
  420. <input id="ipt_case2_rcpt_id" ref="/root/send/case2/data1/rcpt_id" autonext="false" style="left:419px; top:8px; width:86px; height:19px; "/>
  421. </group>
  422. <line id="line5" class="line_1" style="x1:0px; y1:65px; x2:1197px; y2:65px; "/>
  423. <datagrid id="grd_case2_card" nodeset="/root/main/case2/h_card/card" caption="구분^카드종류^수납건수^수납금액^취소건수^취소금액" colsep="^" colwidth="134, 150, 140, 200, 139, 200" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:70px; width:1197px; height:625px; ">
  424. <col ref="card_title"/>
  425. <col ref="card_cardcmpycd" style="text-align:center; "/>
  426. <col ref="card_cnt_y" format="#,###" style="text-align:right; "/>
  427. <col ref="card_cardamt_y" format="#,###" style="text-align:right; "/>
  428. <col ref="card_cnt_c" format="#,###" style="text-align:right; "/>
  429. <col ref="card_cardamt_c" format="#,###" style="text-align:right; "/>
  430. </datagrid>
  431. </case>
  432. <case id="case3">
  433. <group id="group3" style="left:0; top:12px; width:1203px; height:35px; ">
  434. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  435. <caption id="caption8" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">기준일자 :</caption>
  436. <line id="line6" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  437. <line id="line7" class="line_4" visibility="hidden" style="x1:1058px; y1:7px; x2:1058px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  438. <input id="input1" ref="/root/send/case3/fromdd" class="input_default" navindex="7" inputtype="date" format="yyyy-mm-dd" style="left:105px; top:8px; width:85; height:19px; ">
  439. <script type="javascript" ev:event="onkeydown">
  440. <![CDATA[
  441. if( event.keyCode == 13 ) {
  442. var pCurTargetObj = event.ptarget.parent;
  443. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  444. event.keyCode = 9;
  445. pCurTargetObj.dispatch("onkeydown");
  446. }
  447. else {
  448. event.keyCode = 9;
  449. }
  450. }
  451. event.stopPropagation();
  452. ]]>
  453. </script>
  454. </input>
  455. <button id="btn_case3_excel" class="btn6_letter4" visibility="hidden" style="left:971px; top:7px; width:80px; height:22px; ">
  456. <caption>액셀저장</caption>
  457. <script type="javascript" ev:event="DOMActivate">
  458. <![CDATA[
  459. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  460. if (fileName != "")
  461. {
  462. grd_case1.saveExcel(fileName, "신용카드수납현황", true, true, "", "", true);
  463. }
  464. ]]>
  465. </script>
  466. </button>
  467. <button id="btn_case3_print" class="btn6_letter2" style="left:1066px; top:7px; width:56px; height:22px; ">
  468. <caption>출력</caption>
  469. <script type="javascript" ev:event="DOMActivate">
  470. <![CDATA[
  471. exeReportPreview("RPPAS00171", "XMLSTR", "","", "false","","","","","false");
  472. ]]>
  473. </script>
  474. </button>
  475. <button id="btn_case3_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  476. <caption>조회</caption>
  477. <script type="javascript" ev:event="DOMActivate">
  478. <![CDATA[
  479. submit("TRPAS00173");
  480. grd_case3.refresh();
  481. grd_case3.rebuildStyle();
  482. setRowStyle("grd_case3" , "2" , "계" , "ordtype" , "equal");
  483. ]]>
  484. </script>
  485. </button>
  486. <input id="input2" ref="/root/send/case3/todd" inputtype="date" format="yyyy-mm-dd" style="left:212px; top:8px; width:85px; height:19px; "/>
  487. <caption id="caption7" style="left:190px; top:10px; width:20px; height:15px; text-align:center; ">~</caption>
  488. </group>
  489. <line id="line9" class="line_1" style="x1:0px; y1:65px; x2:1197px; y2:65px; "/>
  490. <datagrid id="grd_case3" nodeset="/root/main/case3/h_card/card" caption="구분^카드이월미수&#xA;(A)^카드미수발생액^카드미수발생액^카드미수&#xA;입금액(C)^카드수수료(D)^카드미수누계&#xA;(A+B-C-D)|구분^카드이월미수&#xA;(A)^인원^금액(B)^카드미수&#xA;입금액(C)^카드수수료(D)^카드미수누계&#xA;(A+B-C-D)" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:70px; width:705px; height:620px; ">
  491. <col ref="ordtype"/>
  492. <col ref="carrymisu" format="(-)#,###" style="text-align:right; "/>
  493. <col ref="cnt" format="(-)#,###" style="text-align:right; "/>
  494. <col ref="cardamt" format="(-)#,###" style="text-align:right; "/>
  495. <col ref="carddepoamt" format="(-)#,###" style="text-align:right; "/>
  496. <col ref="coms" format="(-)#,###" style="text-align:right; "/>
  497. <col ref="rsrtmisu" format="(-)#,###" style="text-align:right; "/>
  498. </datagrid>
  499. </case>
  500. <case id="case4">
  501. <line id="line10" class="line_1" style="x1:0px; y1:65px; x2:1203; y2:65px; "/>
  502. <group id="group4" style="left:0; top:12px; width:1203px; height:35px; ">
  503. <shape id="roundrect4" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  504. <caption id="caption11" class="search_name" style="left:160px; top:9px; width:65px; height:17px; ">기간 :</caption>
  505. <line id="line13" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  506. <line id="line14" class="line_4" visibility="hidden" style="x1:1058px; y1:7px; x2:1058px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  507. <caption id="caption12" style="left:317px; top:10px; width:20px; height:15px; text-align:center; ">~</caption>
  508. <button id="btn_case4_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  509. <caption>조회</caption>
  510. <script type="javascript" ev:event="DOMActivate">
  511. <![CDATA[
  512. var fromdata = model.getValue("/root/send/case4/fromdata");
  513. var todata = model.getValue("/root/send/case4/todata");
  514. if(fromdata==""||fromdata==null){
  515. messageBox("시작일을 입력","E007");
  516. model.setFocus("input7");
  517. return false;
  518. }
  519. if(todata==""|| todata==null){
  520. messageBox("끝일을 입력","E007");
  521. model.setFocus("input1");
  522. return false;
  523. }
  524. if(fromdata > todata){
  525. messageBox("시작일이 끝일자보다 클수 ", "C001")
  526. return false;
  527. }else{
  528. submit("TRPAS00174");
  529. grd_case4.refresh();
  530. grd_case4.rebuildStyle();
  531. setRowStyle("grd_case4" , "2" , "소계" , "cdnm" , "equal");
  532. setRowStyle("grd_case4" , "2" , "계" , "cdnm" , "equal");
  533. }
  534. ]]>
  535. </script>
  536. </button>
  537. <button id="btn_case4_print" class="btn6_letter2" style="left:1066px; top:7px; width:56px; height:22px; ">
  538. <caption>출력</caption>
  539. <script type="javascript" ev:event="DOMActivate">
  540. <![CDATA[
  541. exeReportPreview("RPPAS00171", "XMLSTR", "","", "false","","","","","false");
  542. ]]>
  543. </script>
  544. </button>
  545. <button id="btn_case4_excel" class="btn6_letter4" visibility="hidden" style="left:971px; top:7px; width:80px; height:22px; ">
  546. <caption>액셀저장</caption>
  547. <script type="javascript" ev:event="DOMActivate">
  548. <![CDATA[
  549. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  550. if (fileName != "")
  551. {
  552. grd_case1.saveExcel(fileName, "신용카드수납현황", true, true, "", "", true);
  553. }
  554. ]]>
  555. </script>
  556. </button>
  557. <input id="ipt_case4_fromdd" ref="/root/send/case4/fromdata" class="input_default" navindex="7" inputtype="date" style="left:225px; top:8px; width:90px; height:19px; ">
  558. <script type="javascript" ev:event="onkeydown">
  559. <![CDATA[
  560. if( event.keyCode == 13 ) {
  561. var pCurTargetObj = event.ptarget.parent;
  562. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  563. event.keyCode = 9;
  564. pCurTargetObj.dispatch("onkeydown");
  565. }
  566. else {
  567. event.keyCode = 9;
  568. }
  569. }
  570. event.stopPropagation();
  571. ]]>
  572. </script>
  573. </input>
  574. <input id="ipt_case4_todd" ref="/root/send/case4/todata" class="input_default" navindex="7" inputtype="date" style="left:336px; top:8px; width:90px; height:19px; ">
  575. <script type="javascript" ev:event="onkeydown">
  576. <![CDATA[
  577. if( event.keyCode == 13 ) {
  578. var pCurTargetObj = event.ptarget.parent;
  579. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  580. event.keyCode = 9;
  581. pCurTargetObj.dispatch("onkeydown");
  582. }
  583. else {
  584. event.keyCode = 9;
  585. }
  586. }
  587. event.stopPropagation();
  588. ]]>
  589. </script>
  590. </input>
  591. <select1 id="cmb_case4" ref="/root/send/case4/datagubun" appearance="minimal" style="left:440px; top:8px; width:120px; height:19px; ">
  592. <choices>
  593. <item>
  594. <label>전체</label>
  595. <value>ALL</value>
  596. </item>
  597. <item>
  598. <label>항목별</label>
  599. <value>DIV</value>
  600. </item>
  601. </choices>
  602. </select1>
  603. <select1 id="radio2" ref="/root/send/case4/ddflag" appearance="full" cols="2" overflow="visible" style="left:25px; top:10px; width:120px; height:15px; border-style:none; ">
  604. <choices>
  605. <item>
  606. <label>발생일</label>
  607. <value>aprvdd</value>
  608. </item>
  609. <item>
  610. <label>입금일</label>
  611. <value>depodd</value>
  612. </item>
  613. </choices>
  614. </select1>
  615. </group>
  616. <datagrid id="grd_case4" nodeset="/root/main/case4/conficardamtlist/conficardamtstats" caption="구분^카드사^카드구분^청구금액^미수입금액^수수료^건수" colsep="^" colwidth="100, 153, 100, 230, 230, 230, 100" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" rowsep="|" style="left:0px; top:70px; width:1203px; height:615px; ">
  617. <col ref="ordtype" type="output" style="text-align:center; "/>
  618. <col ref="cdnm" style="text-align:center; "/>
  619. <col ref="cardtype" style="text-align:center; "/>
  620. <col ref="cardamt" format="(-)#,###;" style="text-align:right; "/>
  621. <col ref="carddepoamt" format="(-)#,###" style="text-align:right; "/>
  622. <col ref="coms" format="(-)#,###" style="text-align:right; "/>
  623. <col ref="cardcmpycode" format="(-)#,###" style="text-align:right; "/>
  624. <script type="javascript" ev:event="ondblclick">
  625. <![CDATA[
  626. var row = grd_case4.row;
  627. var cardcmpycd = model.getValue("/root/main/case4/conficardamtlist/conficardamtstats[" + row + "]/cardcmpycd");
  628. if(cardcmpycd == "소계") cardcmpycd = "전체";
  629. if(cardcmpycd == "계") cardcmpycd = "전체";
  630. var parm = model.getValue("/root/send/case4/ddflag") + "▦" + //조회조건
  631. model.getValue("/root/send/case4/fromdata") + "▦" + //시작일자
  632. model.getValue("/root/send/case4/todata") + "▦" + //종료일자
  633. model.getValue("/root/main/case4/conficardamtlist/conficardamtstats[" + row + "]/ordtype") + "▦" + //진료형태
  634. model.getValue("/root/main/case4/conficardamtlist/conficardamtstats[" + row + "]/cardcmpycd") + "▦";
  635. setParameter("SMPAS00175_PARM", parm);
  636. open("../../../pam/rcptteamstatsweb/xrw/SMPAS00175", "1", "350", "350", "SPPAS00170", "", "");
  637. ]]>
  638. </script>
  639. <script type="javascript" ev:event="onaftersort">
  640. <![CDATA[
  641. grd_case1.gridToInstance();
  642. ]]>
  643. </script>
  644. </datagrid>
  645. </case>
  646. </switch>
  647. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:120px; height:13px; ">카드미수관리</caption>
  648. <button id="btn_case1" class="btn_sw" group="tab" style="left:0px; top:26px; width:90px; height:22px; ">
  649. <caption>카드미수현황</caption>
  650. <toggle case="case1" ev:event="onclick"/>
  651. <script type="javascript" ev:event="DOMActivate">
  652. <![CDATA[
  653. ]]>
  654. </script>
  655. </button>
  656. <button id="btn_case2" class="btn_sw" group="tab" style="left:190px; top:26px; width:90px; height:22px; ">
  657. <caption>승인취소현황</caption>
  658. <toggle case="case2" ev:event="onclick"/>
  659. <script type="javascript" ev:event="DOMActivate">
  660. <![CDATA[
  661. ]]>
  662. </script>
  663. </button>
  664. <button id="btn_case3" class="btn_sw" group="tab" style="left:280px; top:26px; width:120px; height:22px; ">
  665. <caption>카드발생및입금내역</caption>
  666. <toggle case="case3" ev:event="onclick"/>
  667. <script type="javascript" ev:event="DOMActivate">
  668. <![CDATA[
  669. ]]>
  670. </script>
  671. </button>
  672. <button id="button1" class="btn_sw" group="tab" style="left:90px; top:26px; width:100px; height:22px; ">
  673. <caption>카드입금현황</caption>
  674. <toggle case="case4" ev:event="onclick"/>
  675. </button>
  676. </xhtml:body>
  677. </xhtml:html>