SMPAS00175_신용카드수납환자별현황.xrw 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <cvaninfo>
  11. <pid/>
  12. <hngnm/>
  13. <aprvflag/>
  14. <aprvdd/>
  15. <aprvtm/>
  16. <aprvno/>
  17. <ordtype/>
  18. <keyinptflag/>
  19. <cdnm/>
  20. <cardno/>
  21. <valiterm/>
  22. <allotmm/>
  23. <cardamt/>
  24. <remfact/>
  25. <usernm/>
  26. <depoddyn/>
  27. <depodd/>
  28. <carddepoamt/>
  29. <coms/>
  30. <vandepoamt/>
  31. <vandepodd/>
  32. <vandepocoms/>
  33. <orgcoms/>
  34. </cvaninfo>
  35. <totalinfo>
  36. <aprvcntcard/>
  37. <aprvcntcheck/>
  38. <aprvcntcardos/>
  39. <aprvcnttotal/>
  40. <aprvamtcard/>
  41. <aprvamtcheck/>
  42. <aprvamtcardos/>
  43. <aprvamttotal/>
  44. <aprvcomscard/>
  45. <aprvcomscheck/>
  46. <aprvcomscardos/>
  47. <aprvcomstotal/>
  48. <cnclcntcard/>
  49. <cnclcntcheck/>
  50. <cnclcntcardos/>
  51. <cnclcnttotal/>
  52. <cnclamtcard/>
  53. <cnclamtcheck/>
  54. <cnclamtcardos/>
  55. <cnclamttotal/>
  56. <cnclcomscard/>
  57. <cnclcomscheck/>
  58. <cnclcomscardos/>
  59. <cnclcomstotal/>
  60. <depoamtcard/>
  61. <depoamtcheck/>
  62. <depoamtcardos/>
  63. <depoamttotal/>
  64. <difamtcard/>
  65. <difamtcheck/>
  66. <difamtcardos/>
  67. <difamttotal/>
  68. </totalinfo>
  69. </main>
  70. <send>
  71. <data1>
  72. <ddflag/>
  73. <fromdd/>
  74. <todd/>
  75. <ordtype/>
  76. <cardcmpycd/>
  77. <depoddyn/>
  78. </data1>
  79. <data2>
  80. <card/>
  81. </data2>
  82. </send>
  83. <init>
  84. <P0076list>
  85. <P0076/>
  86. </P0076list>
  87. <P0087list>
  88. <P0087/>
  89. </P0087list>
  90. </init>
  91. <hidden>
  92. <cardinfo>
  93. <cardinfolist/>
  94. </cardinfo>
  95. </hidden>
  96. </root>
  97. </instance>
  98. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  99. <submission id="TRPAS00175" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden"/>
  100. <submission id="TXPAS00175" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  101. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  102. <submission id="TRPAO00005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/magm/magminfo" resultref="/root/magm/aprvinfo"/>
  103. <submission id="TRPAO00006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/rcptuser/rcptuserinfosend" resultref="/root/rcptuser/rcptuserinfo"/>
  104. </model>
  105. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  109. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  111. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  112. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  113. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  114. <script type="javascript" ev:event="xforms-ready">
  115. <![CDATA[
  116. fGetUserInfosSampling();
  117. //공통코드
  118. zbcfGetCodeList( new Array("P0076"), new Array("/root/init/P0076list"));
  119. // 원무 공통코드
  120. pamfGetCodeList(new Array("P0087"), new Array("/root/init/P0087list"));
  121. addComboItem("cmb_cardcmpy","전체","","above");
  122. model.refresh();
  123. var SMPAS00175_PARM = opener.javascript.getParameter("SMPAS00175_PARM");
  124. var array_parm = SMPAS00175_PARM.split("▦");
  125. model.setValue("/root/send/data1/ddflag" , array_parm[0]); //기간조건
  126. model.setValue("/root/send/data1/fromdd" , array_parm[1]); //시작일자
  127. model.setValue("/root/send/data1/todd" , array_parm[2]); //종료일자
  128. model.setValue("/root/send/data1/ordtype" , array_parm[3]); //진료형태
  129. model.setValue("/root/send/data1/cardcmpycd" , array_parm[4]); //진료형태
  130. model.setValue("/root/send/data1/depoddyn" , "all"); //입금여부
  131. frdo_ddflag();
  132. //2017/11/30 화면 열리자 마자 조회 안되도록 수정
  133. //fSearch();
  134. //2017/11/30 화면 열리자 마자 조회 안되도록 수정
  135. ]]>
  136. </script>
  137. <script type="javascript">
  138. <![CDATA[
  139. var gFromdd, gTodd, gOrdtype, gCardCmpycd;
  140. //세션정보 추출하기
  141. function fGetUserInfosSampling(){
  142. var sUserInfosS = getUserInfos();
  143. sUserInfosS = sUserInfosS + "|";
  144. var UserInfosS_Array = sUserInfosS.split("|");
  145. var userid = UserInfosS_Array[0]; //사용자번호
  146. var usernm = UserInfosS_Array[1]; //사용자이름
  147. var posinstcd = UserInfosS_Array[2]; //소속기관코드
  148. var posinstnm = UserInfosS_Array[3]; //소속기관명
  149. var posdeptcd = UserInfosS_Array[4]; //소속부서코드
  150. var posdeptnm = UserInfosS_Array[5]; //소속부서명
  151. if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
  152. if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "012";
  153. model.makeValue("/root/hidden/session/sess_userid",userid);
  154. model.makeValue("/root/hidden/session/sess_usernm",usernm);
  155. model.makeValue("/root/hidden/session/sess_posinstcd",posinstcd);
  156. model.makeValue("/root/hidden/session/sess_posinstnm",posinstnm);
  157. model.makeValue("/root/hidden/session/sess_posdeptcd",posdeptcd);
  158. model.makeValue("/root/hidden/session/sess_posdeptnm",posdeptnm);
  159. model.refresh();
  160. }
  161. function fSearch() {
  162. model.resetInstanceNode("/root/main/cvaninfo");
  163. submit("TRPAS00175");
  164. copyNodesetType("/root/main/cvaninfo", "/root/hidden/cardinfo/cardinfolist", "replace");
  165. model.refresh();
  166. // 고운맘카드 배경색 설정
  167. grd_van.rebuildStyle();
  168. for(var i=1; i < grd_van.rows; i++) {
  169. // 고운맘카드 배경색 설정 할부개월수 : 38개월
  170. if (model.getValue("/root/main/cvaninfo[" + i + "]/allotmm") == "38") {
  171. grd_van.cellStyle("background-color" , i , grd_van.colRef("allotmm") , i , grd_van.colRef("allotmm")) = "#FF8888"; //빨강
  172. }
  173. }
  174. setTotalAmt();
  175. model.refresh();
  176. }
  177. function fAllCheck_true() {
  178. grd_van.clearStatus();
  179. for(var a=1; a< grd_van.rows; a++) {
  180. if(model.getValue("/root/main/cvaninfo[" + a + "]/depodd") == "") {
  181. grd_van.addStatus(a, "update");
  182. model.setValue("/root/main/cvaninfo[" + a + "]/depoddyn" , "true");
  183. }
  184. }
  185. // 금액 재계산
  186. setTotalAmt();
  187. grd_van.refresh();
  188. }
  189. function fAllCheck_false() {
  190. grd_van.clearStatus();
  191. for(var a=1; a< grd_van.rows; a++) {
  192. if(model.getValue("/root/main/cvaninfo[" + a + "]/depodd") != "") {
  193. grd_van.addStatus(a, "update");
  194. model.setValue("/root/main/cvaninfo[" + a + "]/depoddyn" , "false");
  195. }
  196. }
  197. grd_van.refresh();
  198. }
  199. function frdo_ddflag() {
  200. if(model.getValue("/root/send/data1/ddflag") == "depodd") {
  201. rdo_depoddyn.disabled = true;
  202. }
  203. if(model.getValue("/root/send/data1/ddflag") != "depodd") {
  204. rdo_depoddyn.disabled = false;
  205. }
  206. }
  207. // 합계정보 재설정
  208. function setTotalAmt() {
  209. var iAprvCardDomCnt = 0;
  210. var iAprvCheckCnt = 0;
  211. var iAprvCardIntCnt = 0;
  212. var iCnclCardDomCnt = 0;
  213. var iCnclCheckCnt = 0;
  214. var iCnclCardIntCnt = 0;
  215. var iAprvCardDomAmt = 0;
  216. var iAprvCheckAmt = 0;
  217. var iAprvCardIntAmt = 0;
  218. var iCnclCardDomAmt = 0;
  219. var iCnclCheckAmt = 0;
  220. var iCnclCardIntAmt = 0;
  221. var iAprvCardDomComs = 0;
  222. var iAprvCheckComs = 0;
  223. var iAprvCardIntComs = 0;
  224. var iCnclCardDomComs = 0;
  225. var iCnclCheckComs = 0;
  226. var iCnclCardIntComs = 0;
  227. for(var a=1; a < grd_van.rows; a++) {
  228. // 체크된 건만 재계산
  229. if (model.getValue("/root/main/cvaninfo[" + a + "]/depoddyn") == "true") {
  230. // 신용카드 (국내)
  231. if (model.getValue("/root/main/cvaninfo[" + a + "]/cardtype") == "1") {
  232. // 승인금액
  233. if (model.getValue("/root/main/cvaninfo[" + a + "]/aprvflag") == '12') {
  234. iAprvCardDomCnt = iAprvCardDomCnt + 1;
  235. iAprvCardDomAmt = iAprvCardDomAmt + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/cardamt"));
  236. iAprvCardDomComs = iAprvCardDomComs + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/coms"));
  237. // 취소금액
  238. } else if (model.getValue("/root/main/cvaninfo[" + a + "]/aprvflag") == '22') {
  239. iCnclCardDomCnt = iCnclCardDomCnt + 1;
  240. iCnclCardDomAmt = iCnclCardDomAmt + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/cardamt"));
  241. iCnclCardDomComs = iCnclCardDomComs + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/coms"));
  242. }
  243. // 체크카드
  244. } else if (model.getValue("/root/main/cvaninfo[" + a + "]/cardtype") == "2") {
  245. // 승인금액
  246. if (model.getValue("/root/main/cvaninfo[" + a + "]/aprvflag") == '12') {
  247. iAprvCheckCnt = iAprvCheckCnt + 1;
  248. iAprvCheckAmt = iAprvCheckAmt + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/cardamt"));
  249. iAprvCheckComs = iAprvCheckComs + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/coms"));
  250. // 취소금액
  251. } else if (model.getValue("/root/main/cvaninfo[" + a + "]/aprvflag") == '22') {
  252. iCnclCheckCnt = iCnclCheckCnt + 1;
  253. iCnclCheckAmt = iCnclCheckAmt + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/cardamt"));
  254. iCnclCheckComs = iCnclCheckComs + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/coms"));
  255. }
  256. // 신용카드 (해외)
  257. } else if (model.getValue("/root/main/cvaninfo[" + a + "]/cardtype") == "3") {
  258. // 승인금액
  259. if (model.getValue("/root/main/cvaninfo[" + a + "]/aprvflag") == '12') {
  260. iAprvCardIntCnt = iAprvCardIntCnt + 1;
  261. iAprvCardIntAmt = iAprvCardIntAmt + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/cardamt"));
  262. iAprvCardIntComs = iAprvCardIntComs + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/coms"));
  263. // 취소금액
  264. } else if (model.getValue("/root/main/cvaninfo[" + a + "]/aprvflag") == '22') {
  265. iCnclCardDomCnt= iCnclCardDomCnt + 1;
  266. iCnclCardIntAmt = iCnclCardIntAmt + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/cardamt"));
  267. iCnclCardIntComs = iCnclCardIntComs + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/coms"));
  268. }
  269. }
  270. }
  271. }
  272. // 승인정보 설정
  273. model.setValue("/root/main/totalinfo/aprvcntcard", iAprvCardDomCnt);
  274. model.setValue("/root/main/totalinfo/aprvcntcheck", iAprvCheckCnt);
  275. model.setValue("/root/main/totalinfo/aprvcntcardos", iAprvCardIntCnt);
  276. model.setValue("/root/main/totalinfo/aprvcnttotal", iAprvCardDomCnt + iAprvCheckCnt + iAprvCardIntCnt);
  277. model.setValue("/root/main/totalinfo/aprvamtcard", iAprvCardDomAmt);
  278. model.setValue("/root/main/totalinfo/aprvamtcheck", iAprvCheckAmt);
  279. model.setValue("/root/main/totalinfo/aprvamtcardos", iAprvCardIntAmt);
  280. model.setValue("/root/main/totalinfo/aprvamttotal", iAprvCardDomAmt + iAprvCheckAmt + iAprvCardIntAmt);
  281. model.setValue("/root/main/totalinfo/aprvcomscard", iAprvCardDomComs);
  282. model.setValue("/root/main/totalinfo/aprvcomscheck", iAprvCheckComs);
  283. model.setValue("/root/main/totalinfo/aprvcomscardos", iAprvCardIntComs);
  284. model.setValue("/root/main/totalinfo/aprvcomstotal", iAprvCardDomComs + iAprvCheckComs + iAprvCardIntComs);
  285. // 취소정보 설정
  286. model.setValue("/root/main/totalinfo/cnclcntcard", iCnclCardDomCnt);
  287. model.setValue("/root/main/totalinfo/cnclcntcheck", iCnclCheckCnt);
  288. model.setValue("/root/main/totalinfo/cnclcntcardos", iCnclCardIntCnt);
  289. model.setValue("/root/main/totalinfo/cnclcnttotal", iCnclCardDomCnt + iCnclCheckCnt + iCnclCardIntCnt);
  290. model.setValue("/root/main/totalinfo/cnclamtcard", iCnclCardDomAmt);
  291. model.setValue("/root/main/totalinfo/cnclamtcheck", iCnclCheckAmt);
  292. model.setValue("/root/main/totalinfo/cnclamtcardos", iCnclCardIntAmt);
  293. model.setValue("/root/main/totalinfo/cnclamttotal", iCnclCardDomAmt + iCnclCheckAmt + iCnclCardIntAmt);
  294. model.setValue("/root/main/totalinfo/cnclcomscard", iCnclCardDomComs);
  295. model.setValue("/root/main/totalinfo/cnclcomscheck", iCnclCheckComs);
  296. model.setValue("/root/main/totalinfo/cnclcomscardos", iCnclCardIntComs);
  297. model.setValue("/root/main/totalinfo/cnclcomstotal", iCnclCardDomComs + iCnclCheckComs + iCnclCardIntComs);
  298. // 차액소계(승인금액 - 취소금액)
  299. model.setValue("/root/main/totalinfo/difamtcard", iAprvCardDomAmt - iCnclCardDomAmt);
  300. model.setValue("/root/main/totalinfo/difamtcheck", iAprvCheckAmt - iCnclCheckAmt);
  301. model.setValue("/root/main/totalinfo/difamtcardos", iAprvCardIntAmt - iCnclCardIntAmt);
  302. model.setValue("/root/main/totalinfo/difamttotal", (iAprvCardDomAmt - iCnclCardDomAmt) + (iAprvCheckAmt - iCnclCheckAmt) + (iAprvCardIntAmt - iCnclCardIntAmt));
  303. // 입금액 설정
  304. // 입금액 = (승인금액 - 승인수수료) - (취소금액 - 취소수수료)
  305. model.setValue("/root/main/totalinfo/depoamtcard", (iAprvCardDomAmt - iAprvCardDomComs) - (iCnclCardDomAmt - iCnclCardDomComs));
  306. model.setValue("/root/main/totalinfo/depoamtcheck", (iAprvCheckAmt - iAprvCheckComs) - (iCnclCheckAmt - iCnclCheckComs));
  307. model.setValue("/root/main/totalinfo/depoamtcardos", (iAprvCardIntAmt - iAprvCardIntComs) - (iCnclCardIntAmt - iCnclCardIntComs));
  308. model.setValue("/root/main/totalinfo/depoamttotal", (
  309. (iAprvCardDomAmt + iAprvCheckAmt + iAprvCardIntAmt)
  310. - (iAprvCardDomComs + iAprvCheckComs + iAprvCardIntComs)
  311. ) - (
  312. (iCnclCardDomAmt + iCnclCheckAmt + iCnclCardIntAmt)
  313. - (iCnclCardDomComs + iCnclCheckComs + iCnclCardIntComs)
  314. ));
  315. model.refresh();
  316. }
  317. ]]>
  318. </script>
  319. <!--<script type="javascript" src="D:\CMCProject\application\webapps\com\hismainweb\js\DocTitle.js"/>-->
  320. </xhtml:head>
  321. <xhtml:body scroll="auto" pagewidth="1250" pageheight="800" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  322. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1230px; height:765px; ">
  323. <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:1227; y2:62px; "/>
  324. <shape id="rec_keyinptflag" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1228px; height:32px; "/>
  325. <caption id="caption6" class="tit_2" style="left:5px; top:44px; width:160px; height:13px; ">신용카드수납환자별현황</caption>
  326. <caption id="caption2" class="search_name" style="left:5px; top:7px; width:61px; height:17px; ">기간 :</caption>
  327. <input id="opt_emplnm" ref="/root/send/data1/fromdd" class="input_default" navindex="7" autonext="true" imemode="hangul" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:271px; top:6px; width:90px; height:19px; text-align:center; ">
  328. <script type="javascript" ev:event="onkeypress">
  329. <![CDATA[
  330. if( event.keyCode == 13 ){
  331. btn_search.dispatch("DOMActivate");
  332. }
  333. ]]>
  334. </script>
  335. </input>
  336. <line id="line2" style="x1:977px; y1:5px; x2:977px; y2:25px; border-color:#ffe4bb; border-left-style:solid; "/>
  337. <button id="btn_search" class="btn1_letter2" navindex="5" style="left:1057px; top:5px; width:56px; height:22px; ">
  338. <caption>조회</caption>
  339. <script type="javascript" ev:event="DOMActivate">
  340. <![CDATA[
  341. fSearch();
  342. ]]>
  343. </script>
  344. </button>
  345. <input id="input1" ref="/root/send/data1/todd" class="input_default" navindex="7" imemode="hangul" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:380px; top:6px; width:90px; height:19px; text-align:center; ">
  346. <script type="javascript" ev:event="onkeypress">
  347. <![CDATA[
  348. // if( event.keyCode == 13 ){
  349. // btn_search.dispatch("DOMActivate");
  350. // }
  351. ]]>
  352. </script>
  353. </input>
  354. <caption id="caption1" class="search_name" style="left:645px; top:7px; width:86px; height:17px; ">진료형태 :</caption>
  355. <caption id="caption3" class="search_name" style="left:810px; top:7px; width:75px; height:17px; ">카드사 :</caption>
  356. <select1 id="combo1" ref="/root/send/data1/ordtype" appearance="minimal" style="left:735px; top:6px; width:65px; height:19px; ">
  357. <choices>
  358. <item>
  359. <label>전체</label>
  360. <value/>
  361. </item>
  362. <item>
  363. <label>외래</label>
  364. <value>외래</value>
  365. </item>
  366. <item>
  367. <label>입원</label>
  368. <value>입원</value>
  369. </item>
  370. <item>
  371. <label>건진</label>
  372. <value>건진</value>
  373. </item>
  374. </choices>
  375. </select1>
  376. <select1 id="cmb_cardcmpy" ref="/root/send/data1/cardcmpycd" class="combo_default" appearance="minimal" style="left:888px; top:6px; width:80px; height:19px; ">
  377. <choices>
  378. <itemset nodeset="/root/init/P0076list/P0076">
  379. <label ref="cdnm"/>
  380. <value ref="cdid"/>
  381. </itemset>
  382. </choices>
  383. </select1>
  384. <button id="button1" class="btn6_letter3" navindex="5" style="left:987px; top:5px; width:68px; height:22px; ">
  385. <caption>Excel</caption>
  386. <script type="javascript" ev:event="DOMActivate">
  387. <![CDATA[
  388. var fileName = window.fileDialog("save", ",", false, "신용카드수납환자별현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  389. if (fileName != "")
  390. {
  391. grd_van.saveExcel(fileName, "신용카드수납환자별현황", true, true, "", "", true);
  392. }
  393. ]]>
  394. </script>
  395. </button>
  396. <button id="button2" class="btn4_letter6" style="left:1115px; top:5px; width:104px; height:22px; ">
  397. <caption>입금여부저장</caption>
  398. <script type="javascript" ev:event="DOMActivate">
  399. <![CDATA[
  400. // 수납자 마감여부 체크하여 처리
  401. if (isMagmAprv()) {
  402. return false; // 마감결제 완료되어있으므로 더이상 진행하지 않음
  403. }
  404. /*
  405. var iSelRow = 0;
  406. for (var iRow = 1; iRow<= grd_van.rows ; iRow++) {
  407. if (model.getValue("/root/main/cvaninfo["+iRow+"]/depoddyn")=="true") {
  408. copyNodeListType("/root/send/data2","/root/main/cvaninfo["+iRow+"]","before");
  409. iSelRow++;
  410. }
  411. }
  412. if (iSelRow == 0) {
  413. messageBox("선택된 내역이","I004");//I004=없습니다
  414. return;
  415. }
  416. */
  417. //alert(grd_van.getUpdateData("insert")) ;
  418. var updateData = getGridUpdateData(grd_van);
  419. model.setValue("/root/send/data2/card", updateData);
  420. model.resetInstanceNode("/root/main/cvaninfo");
  421. if(submit("TXPAS00175")) {
  422. model.setValue("/root/send/data1/ddflag", "depodd");
  423. model.setValue("/root/send/data1/fromdd", getCurrentDate());
  424. model.setValue("/root/send/data1/todd", getCurrentDate());
  425. submit("TRPAS00175");
  426. }
  427. copyNodesetType("/root/main/cvaninfo", "/root/hidden/cardinfo/cardinfolist", "replace");
  428. model.refresh();
  429. ]]>
  430. </script>
  431. </button>
  432. <datagrid id="grd_van" nodeset="/root/main/cvaninfo" caption="등록번호^환자명^승인^승인일자^승인시간^승인번호^카드사^카드번호^할부^결제금액^입금^입금일자^입금액^구분^수수료^ⓥ입금일자^ⓥ입금액^ⓥ수수료^원수수료^진료^S/K^유효^비고^수납자" colsep="^" colwidth="58, 56, 35, 76, 60, 70, 80, 110, 36, 70, 37, 90, 80, 42, 60, 90, 80, 60, 60, 40, 30, 50, 180, 60" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:65px; width:1230px; height:580px; color:#000000; text-align:center; ">
  433. <col ref="pid" style="text-align:center; "/>
  434. <col ref="hngnm" style="text-align:center; "/>
  435. <col disabled="true" ref="aprvflag" type="combo" style="text-align:center; ">
  436. <choices>
  437. <item>
  438. <label>승인</label>
  439. <value>12</value>
  440. </item>
  441. <item>
  442. <label>취소</label>
  443. <value>22</value>
  444. </item>
  445. <item>
  446. <label>-</label>
  447. <value>-</value>
  448. </item>
  449. </choices>
  450. </col>
  451. <col ref="aprvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  452. <col ref="aprvtm" format="hh:nn:ss" style="text-align:center; "/>
  453. <col ref="aprvno" style="text-align:center; "/>
  454. <col disabled="true" ref="cdid" type="combo" style="text-align:center; ">
  455. <choices>
  456. <itemset nodeset="/root/init/P0076list/P0076">
  457. <label ref="cdnm"/>
  458. <value ref="cdid"/>
  459. </itemset>
  460. </choices>
  461. </col>
  462. <col ref="cardno" style="text-align:center; "/>
  463. <col ref="allotmm" style="text-align:center; "/>
  464. <col ref="cardamt" format="(-)#,###" style="text-align:right; "/>
  465. <col ref="depoddyn" type="checkbox" validateformat="Y,N"/>
  466. <col ref="depodd" type="inputdate" format="yyyy-mm-dd"/>
  467. <col ref="carddepoamt" type="input" format="(-)#,###" style="text-align:right; "/>
  468. <col ref="cardtype" type="combo">
  469. <choices>
  470. <item>
  471. <label>신용</label>
  472. <value>1</value>
  473. </item>
  474. <item>
  475. <label>체크</label>
  476. <value>2</value>
  477. </item>
  478. <item>
  479. <label>해외</label>
  480. <value>3</value>
  481. </item>
  482. </choices>
  483. </col>
  484. <col ref="coms" type="input" format="(-)#,###" style="text-align:right; "/>
  485. <col ref="vandepodd" format="yyyy-mm-dd"/>
  486. <col ref="vandepoamt" format="(-)#,###" style="text-align:right; "/>
  487. <col ref="vandepocoms" format="(-)#,###" style="text-align:right; "/>
  488. <col ref="orgcoms" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
  489. <col ref="ordtype" style="text-align:center; "/>
  490. <col disabled="true" ref="keyinptflag" type="combo" style="text-align:center; ">
  491. <choices>
  492. <item>
  493. <label>S</label>
  494. <value>Swipe</value>
  495. </item>
  496. <item>
  497. <label>K</label>
  498. <value>Key-in</value>
  499. </item>
  500. </choices>
  501. </col>
  502. <col ref="valiterm" style="text-align:center; "/>
  503. <col ref="remfact" style="text-align:center; "/>
  504. <col ref="usernm" style="text-align:center; "/>
  505. <script type="javascript" ev:event="onaftersort">
  506. <![CDATA[
  507. //sorting 시 인스턴스 구조를 재구성
  508. grd_van.gridToInstance();
  509. // 고운맘카드 배경색 설정
  510. grd_van.rebuildStyle();
  511. for(var i=1; i < grd_van.rows; i++) {
  512. // 고운맘카드 배경색 설정 할부개월수 : 38개월
  513. if (model.getValue("/root/main/cvaninfo[" + i + "]/allotmm") == "38") {
  514. grd_van.cellStyle("background-color" , i , grd_van.colRef("allotmm") , i , grd_van.colRef("allotmm")) = "#FF8888"; //빨강
  515. }
  516. }
  517. ]]>
  518. </script>
  519. <script type="javascript" ev:event="xforms-value-changed">
  520. <![CDATA[
  521. // 체크선택 해제 / 카드구분 변경시에만 재계산
  522. if (grd_van.col == grd_van.colRef("cardtype") || grd_van.col == grd_van.colRef("depoddyn")) {
  523. // VAN사에서 입금예정정보를 업데이트 하지 않은 경우에만 사용
  524. // 카드사별 / 카드구분별 수수료를 취득하기 위한 코드 (카드사 + 카드구분)
  525. if (model.getValue("/root/main/cvaninfo[" + grd_van.row + "]/vandepocoms") == null
  526. || model.getValue("/root/main/cvaninfo[" + grd_van.row + "]/vandepocoms") == "") {
  527. var cardCompComs = model.getValue("/root/main/cvaninfo[" + grd_van.row + "]/cdid")
  528. + model.getValue("/root/main/cvaninfo[" + grd_van.row + "]/cardtype");
  529. var comsRate = parseFloat(model.getValue("/root/init/P0087list/P0087[cdid='" + cardCompComs + "']/detl"));
  530. var cardAmt = model.getValue("/root/main/cvaninfo[" + grd_van.row + "]/cardamt");
  531. // 변경된 카드에 해당하는 수수료를 계산하여 재설정
  532. model.setValue("/root/main/cvaninfo[" + grd_van.row + "]/coms", Math.round(cardAmt * comsRate));
  533. model.setValue("/root/main/cvaninfo[" + grd_van.row + "]/carddepoamt", cardAmt - Math.round(cardAmt * comsRate));
  534. }
  535. // 합계정보 산출
  536. setTotalAmt();
  537. }
  538. ]]>
  539. </script>
  540. </datagrid>
  541. <button id="button3" class="btn2_letter2" style="left:1141px; top:39px; width:42px; height:19px; ">
  542. <caption>선택</caption>
  543. <script type="javascript" ev:event="DOMActivate">
  544. <![CDATA[
  545. fAllCheck_true();
  546. ]]>
  547. </script>
  548. </button>
  549. <button id="button4" class="btn2_letter2" style="left:1185px; top:39px; width:42px; height:19px; ">
  550. <caption>해제</caption>
  551. <script type="javascript" ev:event="DOMActivate">
  552. <![CDATA[
  553. fAllCheck_false();
  554. ]]>
  555. </script>
  556. </button>
  557. <caption id="caption4" style="left:1087px; top:42px; width:50px; height:15px; ">입금여부</caption>
  558. <select1 id="rdo_depoddyn" ref="/root/send/data1/depoddyn" appearance="full" cols="3" overflow="visible" style="left:490px; top:8px; width:145px; height:18px; border-style:none; ">
  559. <choices>
  560. <item>
  561. <label>전체</label>
  562. <value>all</value>
  563. </item>
  564. <item>
  565. <label>입금</label>
  566. <value>Y</value>
  567. </item>
  568. <item>
  569. <label>미입금</label>
  570. <value>N</value>
  571. </item>
  572. </choices>
  573. </select1>
  574. <select1 id="rdo_ddflag" ref="/root/send/data1/ddflag" appearance="full" cols="3" overflow="visible" style="left:70px; top:8px; width:195px; height:15px; border-style:none; ">
  575. <choices>
  576. <item>
  577. <label>승인일</label>
  578. <value>aprvdd</value>
  579. </item>
  580. <item>
  581. <label>입금일</label>
  582. <value>depodd</value>
  583. </item>
  584. <item>
  585. <label>입금예정일</label>
  586. <value>vandepodd</value>
  587. </item>
  588. </choices>
  589. <script type="javascript" ev:event="xforms-select">
  590. <![CDATA[
  591. frdo_ddflag();
  592. ]]>
  593. </script>
  594. </select1>
  595. <caption id="caption7" class="cell_1" style="left:0px; top:680px; width:155px; height:20px; text-align:center; ">신용카드</caption>
  596. <caption id="caption8" class="cell_1" style="left:0px; top:701px; width:155px; height:20px; text-align:center; ">체크카드</caption>
  597. <caption id="caption9" class="cell_1" style="left:0px; top:722px; width:155px; height:20px; text-align:center; ">해외카드</caption>
  598. <caption id="caption10" class="cell_1" style="left:0px; top:743px; width:155px; height:20px; text-align:center; ">전 체</caption>
  599. <caption id="caption12" class="cell_1" style="left:156px; top:659px; width:70px; height:20px; text-align:center; ">승인건수</caption>
  600. <caption id="caption15" class="cell_1" style="left:227px; top:659px; width:150px; height:20px; text-align:center; ">승인금액</caption>
  601. <caption id="caption16" class="cell_1" style="left:378px; top:659px; width:150px; height:20px; text-align:center; ">승인수수료</caption>
  602. <caption id="caption17" class="cell_1" style="left:1073px; top:659px; width:150px; height:20px; text-align:center; ">입금액</caption>
  603. <input id="input91" ref="/root/main/totalinfo/aprvcntcard" disabled="true" format="#,###" style="left:156px; top:680px; width:70px; height:19px; text-align:right; padding-right:5; "/>
  604. <input id="input92" ref="/root/main/totalinfo/aprvcntcheck" disabled="true" format="#,###" style="left:156px; top:701px; width:70px; height:19px; text-align:right; padding-right:5; "/>
  605. <input id="input93" ref="/root/main/totalinfo/aprvcntcardos" disabled="true" format="#,###" style="left:156px; top:722px; width:70px; height:19px; text-align:right; padding-right:5; "/>
  606. <input id="input94" ref="/root/main/totalinfo/aprvcnttotal" disabled="true" format="#,###" style="left:156px; top:743px; width:70px; height:19px; text-align:right; padding-right:5; "/>
  607. <input id="input95" ref="/root/main/totalinfo/aprvamttotal" disabled="true" format="#,###" style="left:227px; top:743px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  608. <input id="input96" ref="/root/main/totalinfo/aprvamtcard" disabled="true" format="#,###" style="left:227px; top:680px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  609. <input id="input97" ref="/root/main/totalinfo/aprvamtcheck" disabled="true" format="#,###" style="left:227px; top:701px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  610. <input id="input98" ref="/root/main/totalinfo/aprvamtcardos" disabled="true" format="#,###" style="left:227px; top:722px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  611. <input id="input99" ref="/root/main/totalinfo/aprvcomstotal" disabled="true" format="#,###" style="left:378px; top:743px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  612. <input id="input100" ref="/root/main/totalinfo/aprvcomscard" disabled="true" format="#,###" style="left:378px; top:680px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  613. <input id="input101" ref="/root/main/totalinfo/aprvcomscheck" disabled="true" format="#,###" style="left:378px; top:701px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  614. <input id="input102" ref="/root/main/totalinfo/aprvcomscardos" disabled="true" format="#,###" style="left:378px; top:722px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  615. <input id="input103" ref="/root/main/totalinfo/depoamtcard" disabled="true" format="(-)#,###" style="left:1073px; top:680px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  616. <input id="input104" ref="/root/main/totalinfo/depoamtcheck" disabled="true" format="(-)#,###" style="left:1073px; top:701px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  617. <input id="input105" ref="/root/main/totalinfo/depoamtcardos" disabled="true" format="(-)#,###" style="left:1073px; top:722px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  618. <input id="input106" ref="/root/main/totalinfo/depoamttotal" disabled="true" format="(-)#,###" style="left:1073px; top:743px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  619. <line id="line4" class="line_1" style="x1:0px; y1:654px; x2:1223px; y2:654px; "/>
  620. <caption id="caption11" class="cell_1" style="left:0px; top:659px; width:155px; height:20px; text-align:left; "/>
  621. <input id="input2" ref="/root/main/totalinfo/cnclcntcardos" disabled="true" format="#,###" style="left:536px; top:722px; width:70px; height:19px; text-align:right; padding-right:5; "/>
  622. <input id="input3" ref="/root/main/totalinfo/cnclcnttotal" disabled="true" format="#,###" style="left:536px; top:743px; width:70px; height:19px; text-align:right; padding-right:5; "/>
  623. <input id="input4" ref="/root/main/totalinfo/cnclamttotal" disabled="true" format="#,###" style="left:607px; top:743px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  624. <input id="input5" ref="/root/main/totalinfo/cnclamtcard" disabled="true" format="#,###" style="left:607px; top:680px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  625. <input id="input6" ref="/root/main/totalinfo/cnclamtcheck" disabled="true" format="#,###" style="left:607px; top:701px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  626. <input id="input7" ref="/root/main/totalinfo/cnclamtcardos" disabled="true" format="#,###" style="left:607px; top:722px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  627. <input id="input8" ref="/root/main/totalinfo/cnclcomstotal" disabled="true" format="#,###" style="left:758px; top:743px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  628. <input id="input9" ref="/root/main/totalinfo/cnclcomscard" disabled="true" format="#,###" style="left:758px; top:680px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  629. <input id="input10" ref="/root/main/totalinfo/cnclcomscheck" disabled="true" format="#,###" style="left:758px; top:701px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  630. <input id="input11" ref="/root/main/totalinfo/cnclcomscardos" disabled="true" format="#,###" style="left:758px; top:722px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  631. <caption id="caption13" class="cell_1" style="left:536px; top:659px; width:70px; height:20px; text-align:center; ">취소건수</caption>
  632. <caption id="caption14" class="cell_1" style="left:607px; top:659px; width:150px; height:20px; text-align:center; ">취소금액</caption>
  633. <caption id="caption18" class="cell_1" style="left:758px; top:659px; width:150px; height:20px; text-align:center; ">취소수수료</caption>
  634. <input id="input12" ref="/root/main/totalinfo/cnclcntcard" disabled="true" format="#,###" style="left:536px; top:680px; width:70px; height:19px; text-align:right; padding-right:5; "/>
  635. <input id="input13" ref="/root/main/totalinfo/cnclcntcheck" disabled="true" format="#,###" style="left:536px; top:701px; width:70px; height:19px; text-align:right; padding-right:5; "/>
  636. <input id="input14" ref="/root/main/totalinfo/difamttotal" disabled="true" format="(-)#,###" style="left:916px; top:743px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  637. <input id="input15" ref="/root/main/totalinfo/difamtcard" disabled="true" format="(-)#,###" style="left:916px; top:680px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  638. <input id="input16" ref="/root/main/totalinfo/difamtcheck" disabled="true" format="(-)#,###" style="left:916px; top:701px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  639. <input id="input17" ref="/root/main/totalinfo/difamtcardos" disabled="true" format="(-)#,###" style="left:916px; top:722px; width:150px; height:19px; text-align:right; padding-right:5; "/>
  640. <caption id="caption19" class="cell_1" style="left:916px; top:659px; width:150px; height:20px; text-align:center; ">차액소계(승인-취소)</caption>
  641. <caption id="caption20" style="left:365px; top:8px; width:15px; height:20px; ">~</caption>
  642. <shape id="rectangle1" appearance="rectangle" style="left:190px; top:44px; width:15px; height:15px; background-color:#FF8888; "/>
  643. <caption id="caption21" style="left:208px; top:42px; width:160px; height:20px; ">고운맘 카드(할부개월수 : 38)</caption>
  644. </group>
  645. <group id="group1" scroll="auto" style="left:0px; top:770px; width:1230px; height:27px; ">
  646. <button id="btn_cancel" class="btn4_letter2" navindex="8" style="left:1154px; top:3px; width:56px; height:22px; ">
  647. <caption>확인</caption>
  648. <script type="javascript" ev:event="DOMActivate">
  649. <![CDATA[
  650. // opener.model.makeNode("/root/main/popupendflag");
  651. // opener.model.setValue("/root/main/popupendflag", "cancel");
  652. window.close();
  653. ]]>
  654. </script>
  655. </button>
  656. <caption id="caption5" style="left:5px; top:7px; width:245px; height:15px; color:#ff0000; ">※ 입금취소는 입금 당일만 가능합니다.</caption>
  657. </group>
  658. <line id="line3" style="x1:480px; y1:5px; x2:480px; y2:25px; border-color:#ffe4bb; border-left-style:solid; "/>
  659. </xhtml:body>
  660. </xhtml:html>