123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>신용카드수납환자별현황</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cvaninfo>
- <pid/>
- <hngnm/>
- <aprvflag/>
- <aprvdd/>
- <aprvtm/>
- <aprvno/>
- <ordtype/>
- <keyinptflag/>
- <cdnm/>
- <cardno/>
- <valiterm/>
- <allotmm/>
- <cardamt/>
- <remfact/>
- <usernm/>
- <depoddyn/>
- <depodd/>
- <carddepoamt/>
- <coms/>
- <vandepoamt/>
- <vandepodd/>
- <vandepocoms/>
- <orgcoms/>
- </cvaninfo>
- <totalinfo>
- <aprvcntcard/>
- <aprvcntcheck/>
- <aprvcntcardos/>
- <aprvcnttotal/>
- <aprvamtcard/>
- <aprvamtcheck/>
- <aprvamtcardos/>
- <aprvamttotal/>
- <aprvcomscard/>
- <aprvcomscheck/>
- <aprvcomscardos/>
- <aprvcomstotal/>
- <cnclcntcard/>
- <cnclcntcheck/>
- <cnclcntcardos/>
- <cnclcnttotal/>
- <cnclamtcard/>
- <cnclamtcheck/>
- <cnclamtcardos/>
- <cnclamttotal/>
- <cnclcomscard/>
- <cnclcomscheck/>
- <cnclcomscardos/>
- <cnclcomstotal/>
- <depoamtcard/>
- <depoamtcheck/>
- <depoamtcardos/>
- <depoamttotal/>
- <difamtcard/>
- <difamtcheck/>
- <difamtcardos/>
- <difamttotal/>
- </totalinfo>
- </main>
- <send>
- <data1>
- <ddflag/>
- <fromdd/>
- <todd/>
- <ordtype/>
- <cardcmpycd/>
- <depoddyn/>
- </data1>
- <data2>
- <card/>
- </data2>
- </send>
- <init>
- <P0076list>
- <P0076/>
- </P0076list>
- <P0087list>
- <P0087/>
- </P0087list>
- </init>
- <hidden>
- <cardinfo>
- <cardinfolist/>
- </cardinfo>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPAS00175" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden"/>
- <submission id="TXPAS00175" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPAO00005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/magm/magminfo" resultref="/root/magm/aprvinfo"/>
- <submission id="TRPAO00006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/rcptuser/rcptuserinfosend" resultref="/root/rcptuser/rcptuserinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetUserInfosSampling();
-
- //공통코드
- zbcfGetCodeList( new Array("P0076"), new Array("/root/init/P0076list"));
-
- // 원무 공통코드
- pamfGetCodeList(new Array("P0087"), new Array("/root/init/P0087list"));
-
- addComboItem("cmb_cardcmpy","전체","","above");
-
- model.refresh();
-
- var SMPAS00175_PARM = opener.javascript.getParameter("SMPAS00175_PARM");
- var array_parm = SMPAS00175_PARM.split("▦");
-
- model.setValue("/root/send/data1/ddflag" , array_parm[0]); //기간조건
- model.setValue("/root/send/data1/fromdd" , array_parm[1]); //시작일자
- model.setValue("/root/send/data1/todd" , array_parm[2]); //종료일자
- model.setValue("/root/send/data1/ordtype" , array_parm[3]); //진료형태
- model.setValue("/root/send/data1/cardcmpycd" , array_parm[4]); //진료형태
- model.setValue("/root/send/data1/depoddyn" , "all"); //입금여부
-
- frdo_ddflag();
-
- //2017/11/30 화면 열리자 마자 조회 안되도록 수정
- //fSearch();
- //2017/11/30 화면 열리자 마자 조회 안되도록 수정
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var gFromdd, gTodd, gOrdtype, gCardCmpycd;
-
- //세션정보 추출하기
- function fGetUserInfosSampling(){
- var sUserInfosS = getUserInfos();
-
- sUserInfosS = sUserInfosS + "|";
-
- var UserInfosS_Array = sUserInfosS.split("|");
-
- var userid = UserInfosS_Array[0]; //사용자번호
- var usernm = UserInfosS_Array[1]; //사용자이름
- var posinstcd = UserInfosS_Array[2]; //소속기관코드
- var posinstnm = UserInfosS_Array[3]; //소속기관명
- var posdeptcd = UserInfosS_Array[4]; //소속부서코드
- var posdeptnm = UserInfosS_Array[5]; //소속부서명
-
- if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
- if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "012";
-
- model.makeValue("/root/hidden/session/sess_userid",userid);
- model.makeValue("/root/hidden/session/sess_usernm",usernm);
- model.makeValue("/root/hidden/session/sess_posinstcd",posinstcd);
- model.makeValue("/root/hidden/session/sess_posinstnm",posinstnm);
- model.makeValue("/root/hidden/session/sess_posdeptcd",posdeptcd);
- model.makeValue("/root/hidden/session/sess_posdeptnm",posdeptnm);
-
- model.refresh();
- }
-
- function fSearch() {
- model.resetInstanceNode("/root/main/cvaninfo");
-
- submit("TRPAS00175");
-
- copyNodesetType("/root/main/cvaninfo", "/root/hidden/cardinfo/cardinfolist", "replace");
-
- model.refresh();
-
- // 고운맘카드 배경색 설정
- grd_van.rebuildStyle();
-
- for(var i=1; i < grd_van.rows; i++) {
-
- // 고운맘카드 배경색 설정 할부개월수 : 38개월
- if (model.getValue("/root/main/cvaninfo[" + i + "]/allotmm") == "38") {
-
- grd_van.cellStyle("background-color" , i , grd_van.colRef("allotmm") , i , grd_van.colRef("allotmm")) = "#FF8888"; //빨강
- }
- }
-
- setTotalAmt();
-
- model.refresh();
- }
-
-
- function fAllCheck_true() {
-
- grd_van.clearStatus();
-
- for(var a=1; a< grd_van.rows; a++) {
- if(model.getValue("/root/main/cvaninfo[" + a + "]/depodd") == "") {
- grd_van.addStatus(a, "update");
- model.setValue("/root/main/cvaninfo[" + a + "]/depoddyn" , "true");
- }
- }
-
- // 금액 재계산
- setTotalAmt();
-
- grd_van.refresh();
- }
-
- function fAllCheck_false() {
-
- grd_van.clearStatus();
-
- for(var a=1; a< grd_van.rows; a++) {
- if(model.getValue("/root/main/cvaninfo[" + a + "]/depodd") != "") {
- grd_van.addStatus(a, "update");
- model.setValue("/root/main/cvaninfo[" + a + "]/depoddyn" , "false");
- }
- }
-
- grd_van.refresh();
- }
-
-
- function frdo_ddflag() {
-
- if(model.getValue("/root/send/data1/ddflag") == "depodd") {
- rdo_depoddyn.disabled = true;
- }
- if(model.getValue("/root/send/data1/ddflag") != "depodd") {
- rdo_depoddyn.disabled = false;
- }
- }
-
- // 합계정보 재설정
- function setTotalAmt() {
-
- var iAprvCardDomCnt = 0;
- var iAprvCheckCnt = 0;
- var iAprvCardIntCnt = 0;
-
- var iCnclCardDomCnt = 0;
- var iCnclCheckCnt = 0;
- var iCnclCardIntCnt = 0;
-
- var iAprvCardDomAmt = 0;
- var iAprvCheckAmt = 0;
- var iAprvCardIntAmt = 0;
-
- var iCnclCardDomAmt = 0;
- var iCnclCheckAmt = 0;
- var iCnclCardIntAmt = 0;
-
- var iAprvCardDomComs = 0;
- var iAprvCheckComs = 0;
- var iAprvCardIntComs = 0;
-
- var iCnclCardDomComs = 0;
- var iCnclCheckComs = 0;
- var iCnclCardIntComs = 0;
-
- for(var a=1; a < grd_van.rows; a++) {
-
- // 체크된 건만 재계산
- if (model.getValue("/root/main/cvaninfo[" + a + "]/depoddyn") == "true") {
-
- // 신용카드 (국내)
- if (model.getValue("/root/main/cvaninfo[" + a + "]/cardtype") == "1") {
-
- // 승인금액
- if (model.getValue("/root/main/cvaninfo[" + a + "]/aprvflag") == '12') {
- iAprvCardDomCnt = iAprvCardDomCnt + 1;
- iAprvCardDomAmt = iAprvCardDomAmt + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/cardamt"));
- iAprvCardDomComs = iAprvCardDomComs + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/coms"));
-
- // 취소금액
- } else if (model.getValue("/root/main/cvaninfo[" + a + "]/aprvflag") == '22') {
- iCnclCardDomCnt = iCnclCardDomCnt + 1;
- iCnclCardDomAmt = iCnclCardDomAmt + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/cardamt"));
- iCnclCardDomComs = iCnclCardDomComs + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/coms"));
- }
-
- // 체크카드
- } else if (model.getValue("/root/main/cvaninfo[" + a + "]/cardtype") == "2") {
-
- // 승인금액
- if (model.getValue("/root/main/cvaninfo[" + a + "]/aprvflag") == '12') {
- iAprvCheckCnt = iAprvCheckCnt + 1;
- iAprvCheckAmt = iAprvCheckAmt + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/cardamt"));
- iAprvCheckComs = iAprvCheckComs + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/coms"));
-
- // 취소금액
- } else if (model.getValue("/root/main/cvaninfo[" + a + "]/aprvflag") == '22') {
- iCnclCheckCnt = iCnclCheckCnt + 1;
- iCnclCheckAmt = iCnclCheckAmt + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/cardamt"));
- iCnclCheckComs = iCnclCheckComs + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/coms"));
- }
-
- // 신용카드 (해외)
- } else if (model.getValue("/root/main/cvaninfo[" + a + "]/cardtype") == "3") {
-
- // 승인금액
- if (model.getValue("/root/main/cvaninfo[" + a + "]/aprvflag") == '12') {
- iAprvCardIntCnt = iAprvCardIntCnt + 1;
- iAprvCardIntAmt = iAprvCardIntAmt + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/cardamt"));
- iAprvCardIntComs = iAprvCardIntComs + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/coms"));
-
- // 취소금액
- } else if (model.getValue("/root/main/cvaninfo[" + a + "]/aprvflag") == '22') {
- iCnclCardDomCnt= iCnclCardDomCnt + 1;
- iCnclCardIntAmt = iCnclCardIntAmt + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/cardamt"));
- iCnclCardIntComs = iCnclCardIntComs + parseInt(model.getValue("/root/main/cvaninfo[" + a + "]/coms"));
- }
- }
- }
- }
-
- // 승인정보 설정
- model.setValue("/root/main/totalinfo/aprvcntcard", iAprvCardDomCnt);
- model.setValue("/root/main/totalinfo/aprvcntcheck", iAprvCheckCnt);
- model.setValue("/root/main/totalinfo/aprvcntcardos", iAprvCardIntCnt);
- model.setValue("/root/main/totalinfo/aprvcnttotal", iAprvCardDomCnt + iAprvCheckCnt + iAprvCardIntCnt);
-
- model.setValue("/root/main/totalinfo/aprvamtcard", iAprvCardDomAmt);
- model.setValue("/root/main/totalinfo/aprvamtcheck", iAprvCheckAmt);
- model.setValue("/root/main/totalinfo/aprvamtcardos", iAprvCardIntAmt);
- model.setValue("/root/main/totalinfo/aprvamttotal", iAprvCardDomAmt + iAprvCheckAmt + iAprvCardIntAmt);
-
- model.setValue("/root/main/totalinfo/aprvcomscard", iAprvCardDomComs);
- model.setValue("/root/main/totalinfo/aprvcomscheck", iAprvCheckComs);
- model.setValue("/root/main/totalinfo/aprvcomscardos", iAprvCardIntComs);
- model.setValue("/root/main/totalinfo/aprvcomstotal", iAprvCardDomComs + iAprvCheckComs + iAprvCardIntComs);
-
- // 취소정보 설정
- model.setValue("/root/main/totalinfo/cnclcntcard", iCnclCardDomCnt);
- model.setValue("/root/main/totalinfo/cnclcntcheck", iCnclCheckCnt);
- model.setValue("/root/main/totalinfo/cnclcntcardos", iCnclCardIntCnt);
- model.setValue("/root/main/totalinfo/cnclcnttotal", iCnclCardDomCnt + iCnclCheckCnt + iCnclCardIntCnt);
-
- model.setValue("/root/main/totalinfo/cnclamtcard", iCnclCardDomAmt);
- model.setValue("/root/main/totalinfo/cnclamtcheck", iCnclCheckAmt);
- model.setValue("/root/main/totalinfo/cnclamtcardos", iCnclCardIntAmt);
- model.setValue("/root/main/totalinfo/cnclamttotal", iCnclCardDomAmt + iCnclCheckAmt + iCnclCardIntAmt);
-
- model.setValue("/root/main/totalinfo/cnclcomscard", iCnclCardDomComs);
- model.setValue("/root/main/totalinfo/cnclcomscheck", iCnclCheckComs);
- model.setValue("/root/main/totalinfo/cnclcomscardos", iCnclCardIntComs);
- model.setValue("/root/main/totalinfo/cnclcomstotal", iCnclCardDomComs + iCnclCheckComs + iCnclCardIntComs);
-
- // 차액소계(승인금액 - 취소금액)
- model.setValue("/root/main/totalinfo/difamtcard", iAprvCardDomAmt - iCnclCardDomAmt);
- model.setValue("/root/main/totalinfo/difamtcheck", iAprvCheckAmt - iCnclCheckAmt);
- model.setValue("/root/main/totalinfo/difamtcardos", iAprvCardIntAmt - iCnclCardIntAmt);
- model.setValue("/root/main/totalinfo/difamttotal", (iAprvCardDomAmt - iCnclCardDomAmt) + (iAprvCheckAmt - iCnclCheckAmt) + (iAprvCardIntAmt - iCnclCardIntAmt));
-
- // 입금액 설정
- // 입금액 = (승인금액 - 승인수수료) - (취소금액 - 취소수수료)
- model.setValue("/root/main/totalinfo/depoamtcard", (iAprvCardDomAmt - iAprvCardDomComs) - (iCnclCardDomAmt - iCnclCardDomComs));
- model.setValue("/root/main/totalinfo/depoamtcheck", (iAprvCheckAmt - iAprvCheckComs) - (iCnclCheckAmt - iCnclCheckComs));
- model.setValue("/root/main/totalinfo/depoamtcardos", (iAprvCardIntAmt - iAprvCardIntComs) - (iCnclCardIntAmt - iCnclCardIntComs));
- model.setValue("/root/main/totalinfo/depoamttotal", (
- (iAprvCardDomAmt + iAprvCheckAmt + iAprvCardIntAmt)
- - (iAprvCardDomComs + iAprvCheckComs + iAprvCardIntComs)
- ) - (
- (iCnclCardDomAmt + iCnclCheckAmt + iCnclCardIntAmt)
- - (iCnclCardDomComs + iCnclCheckComs + iCnclCardIntComs)
- ));
-
- model.refresh();
- }
-
- ]]>
- </script>
- <!--<script type="javascript" src="D:\CMCProject\application\webapps\com\hismainweb\js\DocTitle.js"/>-->
- </xhtml:head>
- <xhtml:body scroll="auto" pagewidth="1250" pageheight="800" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1230px; height:765px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:1227; y2:62px; "/>
- <shape id="rec_keyinptflag" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1228px; height:32px; "/>
- <caption id="caption6" class="tit_2" style="left:5px; top:44px; width:160px; height:13px; ">신용카드수납환자별현황</caption>
- <caption id="caption2" class="search_name" style="left:5px; top:7px; width:61px; height:17px; ">기간 :</caption>
- <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; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if( event.keyCode == 13 ){
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <line id="line2" style="x1:977px; y1:5px; x2:977px; y2:25px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="5" style="left:1057px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <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; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- // if( event.keyCode == 13 ){
- // btn_search.dispatch("DOMActivate");
- // }
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:645px; top:7px; width:86px; height:17px; ">진료형태 :</caption>
- <caption id="caption3" class="search_name" style="left:810px; top:7px; width:75px; height:17px; ">카드사 :</caption>
- <select1 id="combo1" ref="/root/send/data1/ordtype" appearance="minimal" style="left:735px; top:6px; width:65px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>외래</label>
- <value>외래</value>
- </item>
- <item>
- <label>입원</label>
- <value>입원</value>
- </item>
- <item>
- <label>건진</label>
- <value>건진</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_cardcmpy" ref="/root/send/data1/cardcmpycd" class="combo_default" appearance="minimal" style="left:888px; top:6px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0076list/P0076">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="button1" class="btn6_letter3" navindex="5" style="left:987px; top:5px; width:68px; height:22px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "신용카드수납환자별현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_van.saveExcel(fileName, "신용카드수납환자별현황", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter6" style="left:1115px; top:5px; width:104px; height:22px; ">
- <caption>입금여부저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 수납자 마감여부 체크하여 처리
- if (isMagmAprv()) {
- return false; // 마감결제 완료되어있으므로 더이상 진행하지 않음
- }
-
- /*
- var iSelRow = 0;
- for (var iRow = 1; iRow<= grd_van.rows ; iRow++) {
- if (model.getValue("/root/main/cvaninfo["+iRow+"]/depoddyn")=="true") {
- copyNodeListType("/root/send/data2","/root/main/cvaninfo["+iRow+"]","before");
- iSelRow++;
- }
- }
-
- if (iSelRow == 0) {
- messageBox("선택된 내역이","I004");//I004=없습니다
- return;
- }
- */
-
- //alert(grd_van.getUpdateData("insert")) ;
-
- var updateData = getGridUpdateData(grd_van);
-
- model.setValue("/root/send/data2/card", updateData);
-
- model.resetInstanceNode("/root/main/cvaninfo");
-
- if(submit("TXPAS00175")) {
- model.setValue("/root/send/data1/ddflag", "depodd");
- model.setValue("/root/send/data1/fromdd", getCurrentDate());
- model.setValue("/root/send/data1/todd", getCurrentDate());
-
- submit("TRPAS00175");
- }
-
- copyNodesetType("/root/main/cvaninfo", "/root/hidden/cardinfo/cardinfolist", "replace");
- model.refresh();
- ]]>
- </script>
- </button>
- <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; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col disabled="true" ref="aprvflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>승인</label>
- <value>12</value>
- </item>
- <item>
- <label>취소</label>
- <value>22</value>
- </item>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- </choices>
- </col>
- <col ref="aprvdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="aprvtm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="aprvno" style="text-align:center; "/>
- <col disabled="true" ref="cdid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0076list/P0076">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cardno" style="text-align:center; "/>
- <col ref="allotmm" style="text-align:center; "/>
- <col ref="cardamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="depoddyn" type="checkbox" validateformat="Y,N"/>
- <col ref="depodd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="carddepoamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="cardtype" type="combo">
- <choices>
- <item>
- <label>신용</label>
- <value>1</value>
- </item>
- <item>
- <label>체크</label>
- <value>2</value>
- </item>
- <item>
- <label>해외</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="coms" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="vandepodd" format="yyyy-mm-dd"/>
- <col ref="vandepoamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="vandepocoms" format="(-)#,###" style="text-align:right; "/>
- <col ref="orgcoms" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
- <col ref="ordtype" style="text-align:center; "/>
- <col disabled="true" ref="keyinptflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>S</label>
- <value>Swipe</value>
- </item>
- <item>
- <label>K</label>
- <value>Key-in</value>
- </item>
- </choices>
- </col>
- <col ref="valiterm" style="text-align:center; "/>
- <col ref="remfact" style="text-align:center; "/>
- <col ref="usernm" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- //sorting 시 인스턴스 구조를 재구성
- grd_van.gridToInstance();
-
- // 고운맘카드 배경색 설정
- grd_van.rebuildStyle();
-
- for(var i=1; i < grd_van.rows; i++) {
-
- // 고운맘카드 배경색 설정 할부개월수 : 38개월
- if (model.getValue("/root/main/cvaninfo[" + i + "]/allotmm") == "38") {
-
- grd_van.cellStyle("background-color" , i , grd_van.colRef("allotmm") , i , grd_van.colRef("allotmm")) = "#FF8888"; //빨강
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- // 체크선택 해제 / 카드구분 변경시에만 재계산
- if (grd_van.col == grd_van.colRef("cardtype") || grd_van.col == grd_van.colRef("depoddyn")) {
-
- // VAN사에서 입금예정정보를 업데이트 하지 않은 경우에만 사용
- // 카드사별 / 카드구분별 수수료를 취득하기 위한 코드 (카드사 + 카드구분)
- if (model.getValue("/root/main/cvaninfo[" + grd_van.row + "]/vandepocoms") == null
- || model.getValue("/root/main/cvaninfo[" + grd_van.row + "]/vandepocoms") == "") {
-
- var cardCompComs = model.getValue("/root/main/cvaninfo[" + grd_van.row + "]/cdid")
- + model.getValue("/root/main/cvaninfo[" + grd_van.row + "]/cardtype");
-
- var comsRate = parseFloat(model.getValue("/root/init/P0087list/P0087[cdid='" + cardCompComs + "']/detl"));
-
- var cardAmt = model.getValue("/root/main/cvaninfo[" + grd_van.row + "]/cardamt");
-
- // 변경된 카드에 해당하는 수수료를 계산하여 재설정
- model.setValue("/root/main/cvaninfo[" + grd_van.row + "]/coms", Math.round(cardAmt * comsRate));
- model.setValue("/root/main/cvaninfo[" + grd_van.row + "]/carddepoamt", cardAmt - Math.round(cardAmt * comsRate));
- }
-
- // 합계정보 산출
- setTotalAmt();
- }
- ]]>
- </script>
- </datagrid>
- <button id="button3" class="btn2_letter2" style="left:1141px; top:39px; width:42px; height:19px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAllCheck_true();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter2" style="left:1185px; top:39px; width:42px; height:19px; ">
- <caption>해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAllCheck_false();
- ]]>
- </script>
- </button>
- <caption id="caption4" style="left:1087px; top:42px; width:50px; height:15px; ">입금여부</caption>
- <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; ">
- <choices>
- <item>
- <label>전체</label>
- <value>all</value>
- </item>
- <item>
- <label>입금</label>
- <value>Y</value>
- </item>
- <item>
- <label>미입금</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>승인일</label>
- <value>aprvdd</value>
- </item>
- <item>
- <label>입금일</label>
- <value>depodd</value>
- </item>
- <item>
- <label>입금예정일</label>
- <value>vandepodd</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- frdo_ddflag();
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="cell_1" style="left:0px; top:680px; width:155px; height:20px; text-align:center; ">신용카드</caption>
- <caption id="caption8" class="cell_1" style="left:0px; top:701px; width:155px; height:20px; text-align:center; ">체크카드</caption>
- <caption id="caption9" class="cell_1" style="left:0px; top:722px; width:155px; height:20px; text-align:center; ">해외카드</caption>
- <caption id="caption10" class="cell_1" style="left:0px; top:743px; width:155px; height:20px; text-align:center; ">전 체</caption>
- <caption id="caption12" class="cell_1" style="left:156px; top:659px; width:70px; height:20px; text-align:center; ">승인건수</caption>
- <caption id="caption15" class="cell_1" style="left:227px; top:659px; width:150px; height:20px; text-align:center; ">승인금액</caption>
- <caption id="caption16" class="cell_1" style="left:378px; top:659px; width:150px; height:20px; text-align:center; ">승인수수료</caption>
- <caption id="caption17" class="cell_1" style="left:1073px; top:659px; width:150px; height:20px; text-align:center; ">입금액</caption>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <line id="line4" class="line_1" style="x1:0px; y1:654px; x2:1223px; y2:654px; "/>
- <caption id="caption11" class="cell_1" style="left:0px; top:659px; width:155px; height:20px; text-align:left; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <caption id="caption13" class="cell_1" style="left:536px; top:659px; width:70px; height:20px; text-align:center; ">취소건수</caption>
- <caption id="caption14" class="cell_1" style="left:607px; top:659px; width:150px; height:20px; text-align:center; ">취소금액</caption>
- <caption id="caption18" class="cell_1" style="left:758px; top:659px; width:150px; height:20px; text-align:center; ">취소수수료</caption>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <caption id="caption19" class="cell_1" style="left:916px; top:659px; width:150px; height:20px; text-align:center; ">차액소계(승인-취소)</caption>
- <caption id="caption20" style="left:365px; top:8px; width:15px; height:20px; ">~</caption>
- <shape id="rectangle1" appearance="rectangle" style="left:190px; top:44px; width:15px; height:15px; background-color:#FF8888; "/>
- <caption id="caption21" style="left:208px; top:42px; width:160px; height:20px; ">고운맘 카드(할부개월수 : 38)</caption>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:770px; width:1230px; height:27px; ">
- <button id="btn_cancel" class="btn4_letter2" navindex="8" style="left:1154px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // opener.model.makeNode("/root/main/popupendflag");
- // opener.model.setValue("/root/main/popupendflag", "cancel");
- window.close();
- ]]>
- </script>
- </button>
- <caption id="caption5" style="left:5px; top:7px; width:245px; height:15px; color:#ff0000; ">※ 입금취소는 입금 당일만 가능합니다.</caption>
- </group>
- <line id="line3" style="x1:480px; y1:5px; x2:480px; y2:25px; border-color:#ffe4bb; border-left-style:solid; "/>
- </xhtml:body>
- </xhtml:html>
|