123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023 |
- <?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>
- <cmpylst>
- <item>
- <sel/>
- <cmpynm/>
- <claminwon/>
- <clamdd/>
- <clamamt/>
- <lastpaydd/>
- <cmpypayamt/>
- <ownpayamt/>
- <restamt/>
- <discamt/>
- <uncoamt/>
- <cmpycd/>
- <cmpyno/>
- <fromdd/>
- <todd/>
- <clamdd/>
- <condflag/>
- </item>
- </cmpylst>
- <cmpydetllst>
- <item>
- <sel/>
- <instnm/>
- <pid/>
- <rsrvdd/>
- <rsrvno/>
- <cmpynm/>
- <clntempid/>
- <hngnm/>
- <hopedd/>
- <rrgstno/>
- <contype/>
- <contamt/>
- <addexamamt/>
- <ownbamt/>
- <clntdeptnm/>
- <famyrelanm/>
- <remcnts/>
- <cmpyamt/>
- <incomeamt/>
- <discamt/>
- <chngamt/>
- <ownincomeamt/>
- </item>
- <incmlst>
- <sel/>
- <incomedd/>
- <cashcardflag/>
- <incomeamt/>
- <discamt/>
- <chngamt/>
- <incomestat/>
- <clamtrgtcd/>
- <remfact/>
- <bankid/>
- <lastupdtrid/>
- <lastupdtdt/>
- <incomeflag/>
- <clamseqno/>
- <incomeseqno/>
- <allotmm/>
- <aprvdd/>
- <aprvflag/>
- <aprvtm/>
- <aprvno/>
- <cardcmpycd/>
- <cardcashno/>
- <valiterm/>
- <vangb/>
- <keyinptflag/>
- </incmlst>
- </cmpydetllst>
- <prnt>
- <clamdetl>
- <item/>
- </clamdetl>
- <ownbill>
- <item/>
- </ownbill>
- </prnt>
- </main>
- <send>
- <srchinfo>
- <cmpycd/>
- <cmpynm/>
- <pkgcd/>
- <pkgnm/>
- <fromdd/>
- <todd/>
- <condflag>H</condflag>
- <clamend/>
- </srchinfo>
- <srchdetl>
- <cmpydata/>
- </srchdetl>
- <save>
- <clam/>
- <clamdetl/>
- <cnclinfo/>
- <card/>
- </save>
- <cardcashdata>
- <aprv>
- <depoAmt/>
- <cashcardflag>C</cashcardflag>
- <indinstflag/>
- <cardcashno/>
- <valiterm/>
- <allotmm/>
- <keyinptflag>S</keyinptflag>
- <qualcnfmflag>
- </qualcnfmflag>
- <swipedata/>
- </aprv>
- </cardcashdata>
- </send>
- <sendincm>
- <cashcardflag/>
- <clam/>
- <clamdetl/>
- <cardcash/>
- </sendincm>
- <init>
- <baseinfo>
- <initaddrinfo/>
- <P0032list/>
- </baseinfo>
- <session/>
- <send>
- <inputitem>
- <incomeamt/>
- <ownincomeamt/>
- <chngamt/>
- <discamt/>
- </inputitem>
- </send>
- </init>
- <tmp>
- <appvanif/>
- </tmp>
- <hidden/>
- </root>
- </instance>
- <submission id="TRAHA00001"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXPAC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp"/>
- <submission id="TRAHA02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" resultref="/root/main/cmpylst"/>
- <submission id="TRAHA02902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdetl" resultref="/root/main/cmpydetllst"/>
- <submission id="TXAHA02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/hidden"/>
- <submission id="TXAHA02902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/sendincm" resultref="/hidden"/>
- <submission id="TXAHA02903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/sendincm" resultref="/hidden"/>
- <submission id="TXAHA02304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/hidden"/>
- <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"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" src="../../../ast/healexamrcptweb/js/SMAHA02200.js"/>
- <script type="javascript" src="../../../ast/healexamreqweb/js/SMAHA02900.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetBaseInfo();
- fInitUnco();
- pamfGetCodeList(new Array("P0032"), new Array("/root/init/baseinfo/P0032list"));
- model.refresh();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <caption id="caption8" class="cell_1" style="left:740px; top:269px; width:73px; height:20px; text-align:center; vertical-align:middle; ">할인액</caption>
- <button id="btn_set" class="btn2_letter4" style="left:905px; top:269px; width:64px; height:19px; ">
- <caption>일괄적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vincomeamt = model.getValue("/root/init/send/inputitem/incomeamt");
- var vownincomeamt = model.getValue("/root/init/send/inputitem/ownincomeamt");
- var vchngamt = model.getValue("/root/init/send/inputitem/chngamt");
- var vdiscamt = model.getValue("/root/init/send/inputitem/discamt");
- for(var i =1; i < grd_cmpydetllst.rows; i++) {
- if (vincomeamt != "0") {
- grd_cmpydetllst.valueMatrix( i , grd_cmpydetllst.colRef("incomeamt")) = vincomeamt;
- }
- if (vownincomeamt != "0") {
- grd_cmpydetllst.valueMatrix( i , grd_cmpydetllst.colRef("ownincomeamt")) = vownincomeamt;
- }
- if (vchngamt != "0") {
- grd_cmpydetllst.valueMatrix( i , grd_cmpydetllst.colRef("chngamt")) = vchngamt;
- }
- if (vdiscamt != "0") {
- grd_cmpydetllst.valueMatrix( i , grd_cmpydetllst.colRef("discamt")) = vdiscamt;
- }
- }
- fSetRcptSum(); //총계 및 입금대상금액 설정
- ]]>
- </script>
- </button>
- <caption id="caption7" class="cell_1" style="left:580px; top:269px; width:73px; height:20px; text-align:center; vertical-align:middle; ">삭감액</caption>
- <input id="ipt_ownincomeamt" ref="/root/init/send/inputitem/ownincomeamt" class="input_search" format="(-,+)#,###" style="left:495px; top:269px; width:80px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13){
- model.setFocus("ipt_chngamt");
- }
- ]]>
- </script>
- </input>
- <caption id="caption6" class="cell_1" style="left:420px; top:269px; width:73px; height:20px; text-align:center; vertical-align:middle; ">개인입금액</caption>
- <input id="ipt_chngamt" ref="/root/init/send/inputitem/chngamt" class="input_search" format="(-,+)#,###" style="left:655px; top:269px; width:80px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13){
- model.setFocus("ipt_discamt");
- }
- ]]>
- </script>
- </input>
- <caption id="caption4" class="cell_1" style="left:260px; top:269px; width:73px; height:20px; text-align:center; vertical-align:middle; ">단체입금액</caption>
- <input id="ipt_discamt" ref="/root/init/send/inputitem/discamt" class="input_search" format="(-,+)#,###" style="left:815px; top:269px; width:80px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13){
- model.setFocus("btn_set");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_incomeamt" ref="/root/init/send/inputitem/incomeamt" class="input_search" format="(-,+)#,###" style="left:335px; top:269px; width:80px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13){
- model.setFocus("ipt_ownincomeamt");
- }
- ]]>
- </script>
- </input>
- <button id="btn_dsamll" class="icon_bottom" style="left:1169px; top:268px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetGrdSize(false,"D");
- ]]>
- </script>
- </button>
- <button id="btn_usmall" class="icon_top" visibility="hidden" style="left:1169px; top:67px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetGrdSize(false,"U");
- ]]>
- </script>
- </button>
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:22px; width:1194px; height:38px; "/>
- <line id="line8" class="line_4" style="x1:1110px; y1:29px; x2:1110px; y2:54px; "/>
- <button id="btn_selcmpy" class="icon_search" style="left:175px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetComnCd("SMAHA02300", "08" , "nm", ipt_cmpycd.currentText ,ipt_cmpycd.attribute("ref"),opt_cmpynm.attribute("ref"));
- ]]>
- </script>
- </button>
- <output id="opt_cmpynm" ref="/root/send/srchinfo/cmpynm" class="output_fix" style="left:195px; top:32px; width:150px; height:19px; "/>
- <button id="btn_srchtrgtman" class="btn1_letter2" style="left:1125px; top:32px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/cardcashdata/aprv");
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" , "S");
- model.setValue("/root/send/cardcashdata/aprv/cashcardflag" , "C"); //R-카드, S-현금영수증, C-현금
- rdo_cashcardflag.dispatch("xforms-value-changed");
-
- model.removeNodeset("/root/main/cmpydetllst/item");
- model.removeNodeset("/root/main/cmpydetllst/incmlst");
- model.setValue("/root/init/send/inputitem/incomeamt" , "0");
- model.setValue("/root/init/send/inputitem/ownincomeamt" , "0");
- model.setValue("/root/init/send/inputitem/chngamt" , "0");
- model.setValue("/root/init/send/inputitem/discamt" , "0");
-
- //H-건진일, C-청구일, I-입금일
- if(model.getValue("/root/send/srchinfo/condflag") == "H"){
- btn_examseqprnt.disabled = true;
- btn_prntcustspec.disabled = true;
- btn_prntpsnspec.disabled = true;
- btn_rsrvprnt.disabled = false;
- btn_delclam.disabled = true;
- }else if(model.getValue("/root/send/srchinfo/condflag") == "C" || model.getValue("/root/send/srchinfo/condflag") == "I" ){
- btn_examseqprnt.disabled = false;
- btn_prntcustspec.disabled = false;
- btn_prntpsnspec.disabled = false;
- btn_rsrvprnt.disabled = true;
- btn_delclam.disabled = false;
- }
- submit("TRAHA02901");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption42" class="search_name" style="left:10px; top:32px; width:99px; height:17px; ">사업체 :</caption>
- <input id="ipt_cmpycd" ref="/root/send/srchinfo/cmpycd" class="input_search" style="left:89px; top:32px; width:81px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_selcmpy", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:355px; top:32px; width:100px; height:17px; ">시작일자 :</caption>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">단체미수관리</caption>
- </group>
- <caption id="caption3" class="search_name" style="left:710px; top:32px; width:117px; height:17px; ">조회구분 :</caption>
- <input id="ipt_fromdate" ref="/root/send/srchinfo/fromdd" class="input_s_essential" inputtype="date" style="left:445px; top:32px; width:115px; height:19px; "/>
- <input id="ipt_todate" ref="/root/send/srchinfo/todd" class="input_s_essential" inputtype="date" style="left:585px; top:32px; width:115px; height:19px; "/>
- <group id="group1" style="left:0px; top:734px; width:1200px; height:27px; ">
- <button id="btn_prntpsnspec" class="btn6_letter8" visibility="hidden" style="left:120px; top:3px; width:128px; height:22px; ">
- <caption>개인별영수증출력</caption>
- </button>
- <button id="btn_prntcustspec" class="btn6_letter7" style="left:0px; top:3px; width:116px; height:22px; ">
- <caption>청구내역서출력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- exeReportPreview("RPAHA02305","XMLSTR");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter3" style="left:816px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/cardcashdata/aprv");
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" , "S");
- model.setValue("/root/send/cardcashdata/aprv/cashcardflag" , "C"); //R-카드, S-현금영수증, C-현금
- rdo_cashcardflag.dispatch("xforms-value-changed");
-
- model.removeNodeset("/root/main/cmpylst/item");
- model.removeNodeset("/root/main/cmpydetllst/item");
- model.setValue("/root/init/send/inputitem/incomeamt" , "0");
- model.setValue("/root/init/send/inputitem/ownincomeamt" , "0");
- model.setValue("/root/init/send/inputitem/chngamt" , "0");
- model.setValue("/root/init/send/inputitem/discamt" , "0");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_examseqprnt" class="btn4_letter5" style="left:888px; top:3px; width:92px; height:22px; ">
- <caption>수금액저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isMagmAprv()){
- return false; //마감결제 완료되어있으므로 더이상 진행하지 않음 - PAM.js
- }
-
- if(fSaveClamAmt()){
- btn_srchtrgtman.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="btn_rsrvprnt" class="btn4_letter6" style="left:984px; top:3px; width:104px; height:22px; ">
- <caption>청구내역생성</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isMagmAprv()){
- return false; //마감결제 완료되어있으므로 더이상 진행하지 않음 - PAM.js
- }
-
- fCretClam();
- btn_srchtrgtman.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_delclam" class="btn4_letter6" style="left:1092px; top:3px; width:104px; height:22px; ">
- <caption>청구내역삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isMagmAprv()){
- return false; //마감결제 완료되어있으므로 더이상 진행하지 않음 - PAM.js
- }
-
- var srcCardCashFlag = "";
- var cardamt = 0;
- var cashamt = 0;
-
- if(grd_incm.rows > 1){
- messageBox("입금내역이 존재하는 청구내역은 삭제", "E001");
- return;
- }
-
- for(var i=0; i<=grd_incm.rows; i++){
- srcCardCashFlag = grd_incm.valueMatrix(i, grd_incm.colRef("cashcardflag"));
- if(srcCardCashFlag == "R"){
- cardamt = cardamt + parseInt(grd_incm.valueMatrix(i , grd_incm.colRef("incomeamt")));
- }else if(srcCardCashFlag == "S"){
- cashamt = cashamt + parseInt(grd_incm.valueMatrix(i , grd_incm.colRef("incomeamt")));
- }
- }
- if(cardamt != 0){
- messageBox("카드 승인취소 후 청구내역 삭제", "C003");
- return;
- }
- if(cashamt != 0){
- messageBox("현금영수증 승인취소 후 청구내역 삭제", "C003");
- return;
- }
-
- if(fDelClam()){
- btn_srchtrgtman.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </group>
- <select1 id="combo1" ref="/root/send/srchinfo/condflag" class="combo_search" appearance="minimal" style="left:800px; top:32px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>건진일</label>
- <value>H</value>
- </item>
- <item>
- <label>청구일</label>
- <value>C</value>
- </item>
- <item>
- <label>입금일</label>
- <value>I</value>
- </item>
- </choices>
- </select1>
- <caption id="caption93" class="search_n_b" style="left:567px; top:32px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <datagrid id="grd_cmpylst" nodeset="/root/main/cmpylst/item" caption="^계약처명^계약명^실시시작일^실시종료일^청구인원^청구일^청구금액^최종입급일^입금액^삭감액^할인액^미수금액^cmpycd^cmpyno^contype^fromdd^todd^condflag^clamseqno^cmpyamt^ownincomeamt^condflag" colsep="^" colwidth="30, 203, 100, 80, 80, 70, 80, 100, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:90px; width:1195px; height:169px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="cmpynm"/>
- <col ref="contnm"/>
- <col ref="clamfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="clamtodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="claminwon" format="(-,+)#,###" style="text-align:center; "/>
- <col ref="clamdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="clamamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="lastpaydd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="incomeamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="chngamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="discamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="uncoamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="cmpycd" visibility="hidden"/>
- <col ref="cmpyno" visibility="hidden"/>
- <col ref="contype" visibility="hidden"/>
- <col ref="clamfromdd" visibility="hidden"/>
- <col ref="clamtodd" visibility="hidden"/>
- <col ref="condflag" visibility="hidden"/>
- <col ref="clamseqno" visibility="hidden"/>
- <col ref="cmpyamt" visibility="hidden"/>
- <col ref="ownincomeamt" visibility="hidden"/>
- <col ref="condflag" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_cmpylst.isCell(event.target) && grd_cmpylst.mouseRow >= grd_cmpylst.fixedrows){
- fGetCmpyDetlList();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cmpylst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="cam_clam" class="tit_2" style="left:5px; top:72px; width:108px; height:13px; ">계약처내역</caption>
- <button id="btn_dlarge" class="icon_top" style="left:1169px; top:267px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetGrdSize(true, "D");
- ]]>
- </script>
- </button>
- <button id="btn_ularge" class="icon_bottom" style="left:1169px; top:67px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetGrdSize(true, "U");
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:290px; width:1195px; height:360px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true">
- <datagrid id="grd_cmpydetllst" nodeset="/root/main/cmpydetllst/item" caption="^기관명^등록번호^성명^주민번호^건진일^계약종류^계약금액^추가검사금액^개인선납금^단체청구금액^단체입금액^개인입금액^삭감액^할인액^cmpycd" colsep="^" colwidth="30, 120, 80, 90, 100, 100, 90, 90, 90, 90, 90, 90, 90, 90, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" style="left:0px; top:25px; width:1190px; height:330px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox" style="text-align:center; "/>
- <col ref="instnm" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="rrgstno" format="999999-999" style="text-align:center; "/>
- <col ref="hopedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="contnm" style="text-align:center; "/>
- <col ref="contamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="addexamamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="ownbamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="cmpyamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="incomeamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="ownincomeamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="chngamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="discamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="cmpycd" visibility="hidden"/>
- <col ref="cmpynm" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="condflag" visibility="hidden"/>
- <col ref="clamseqno" visibility="hidden"/>
- <col ref="pkgnm" visibility="hidden"/>
- <col ref="totamt" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //H-건진일, C-청구일, I-입금일
- var condflag = grd_cmpylst.valueMatrix(grd_cmpylst.row, grd_cmpylst.colRef("condflag"));
- if(condflag == "H"){
- return;
- }
-
- var chk = "";
- if(grd_cmpydetllst.col == grd_cmpydetllst.colRef("sel")){
- chk = grd_cmpydetllst.valueMatrix(grd_cmpydetllst.row, grd_cmpydetllst.colRef("sel"));
- if(chk == "Y"){
- model.setValue("/root/main/cmpydetllst/item[" + grd_cmpydetllst.row + "]/incomeamt", model.getValue("/root/main/cmpydetllst/item[" + grd_cmpydetllst.row + "]/cmpyamt"));
- }else if(chk == "N"){
- model.setValue("/root/main/cmpydetllst/item[" + grd_cmpydetllst.row + "]/incomeamt", 0);
- }
- }
- fSetRcptSum(); //총계 및 입금대상금액 설정
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var condflag = grd_cmpylst.valueMatrix(grd_cmpylst.row, grd_cmpylst.colRef("condflag"));
- if(condflag == "H"){
- return;
- }
-
- var chk = "";
- if(grd_cmpydetllst.row == 0 && grd_cmpydetllst. fixedcellischeck(grd_cmpydetllst.row, grd_cmpydetllst.colRef("sel"))){
- for(var i=1; i<grd_cmpydetllst.rows; i++){
- chk = grd_cmpydetllst.valueMatrix(i, grd_cmpydetllst.colRef("sel"));
- if(chk == "Y"){
- model.setValue("/root/main/cmpydetllst/item[" + i + "]/incomeamt", model.getValue("/root/main/cmpydetllst/item[" + i + "]/cmpyamt"));
- }else if(chk == "N"){
- model.setValue("/root/main/cmpydetllst/item[" + i + "]/incomeamt", 0);
- }
- }
- fSetRcptSum(); //총계 및 입금대상금액 설정
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- var condflag = grd_cmpylst.valueMatrix(grd_cmpylst.row, grd_cmpylst.colRef("condflag"));
- if(condflag == "H"){
- return;
- }
-
- var chk = "";
- if(grd_cmpydetllst.row == 0 && grd_cmpydetllst. fixedcellischeck(grd_cmpydetllst.row, grd_cmpydetllst.colRef("sel")) == false){
- for(var i=1; i<grd_cmpydetllst.rows; i++){
- chk = grd_cmpydetllst.valueMatrix(i, grd_cmpydetllst.colRef("sel"));
- if(chk == "Y"){
- model.setValue("/root/main/cmpydetllst/item[" + i + "]/incomeamt", model.getValue("/root/main/cmpydetllst/item[" + i + "]/cmpyamt"));
- }else if(chk == "N"){
- model.setValue("/root/main/cmpydetllst/item[" + i + "]/incomeamt", 0);
- }
- }
- fSetRcptSum(); //총계 및 입금대상금액 설정
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbeforesort">
- <![CDATA[
- grd_cmpydetllst.subtotal("clear", 0, 12)
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- fSetRcptSum(); //총계 및 입금대상금액 설정
- grd_cmpydetllst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:22px; x2:1190px; y2:22px; "/>
- <caption id="caption9" class="tit_2" style="left:5px; top:5px; width:108px; height:15px; ">청구내역</caption>
- </case>
- <case id="case2">
- <datagrid id="grd_incm" nodeset="/root/main/cmpydetllst/incmlst" caption="선택^입금일^현금/카드^입금액^할인액^대체액^입금상태^청구처코드^비고사항^은행코드^입력자^입력일^입금구분^청구번호^입금번호^할부개월^승인일자^승인구분^승인시간^승인번호^카드회사^카드번호^유효일자^Van사^입력구분" colsep="^" colwidth="40, 80, 100, 100, 100, 100, 100, 100, 155, 84, 90, 120, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:25px; width:1190px; height:330px; ">
- <col checkvalue="Y,N" ref="sel" type="radio"/>
- <col ref="incomedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="cashcardflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>카드</label>
- <value>R</value>
- </item>
- <item>
- <label>현금영수증</label>
- <value>S</value>
- </item>
- <item>
- <label>현금</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col ref="incomeamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="discamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="chngamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="incomestat" visibility="hidden" style="text-align:center; "/>
- <col ref="clamtrgtcd" visibility="hidden" style="text-align:center; "/>
- <col ref="remfact" style="text-align:left; "/>
- <col ref="bankid" visibility="hidden" style="text-align:right; "/>
- <col ref="lastupdtrid" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="incomeflag" visibility="hidden"/>
- <col ref="clamseqno" visibility="hidden"/>
- <col ref="incomeseqno" visibility="hidden"/>
- <col ref="allotmm" visibility="hidden"/>
- <col ref="aprvdd" visibility="hidden"/>
- <col ref="aprvflag" visibility="hidden"/>
- <col ref="aprvtm" visibility="hidden"/>
- <col ref="aprvno" visibility="hidden"/>
- <col ref="cardcmpycd" visibility="hidden"/>
- <col ref="cardcashno" visibility="hidden"/>
- <col ref="valiterm" visibility="hidden"/>
- <col ref="vangb" visibility="hidden"/>
- <col ref="keyinptflag" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_incm.isCell(event.target) && grd_incm.mouseRow >= grd_incm.fixedrows){
- for(var i=1; i<grd_incm.rows; i++){
- model.setValue("/root/main/cmpydetllst/incmlst[" + i + "]/sel", "N");
- }
- model.setValue("/root/main/cmpydetllst/incmlst[" + grd_incm.row + "]/sel", "Y");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:108px; height:14px; ">입금내역</caption>
- <line id="line12" class="line_1" x0="5px" style="x1:0px; y1:22px; x2:1190px; y2:22px; "/>
- <button id="button2" class="btn5_letter4" style="left:1126px; top:3px; width:64px; height:19px; ">
- <caption>승인취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/sendincm");
- var cashcardflag = grd_incm.valueMatrix(grd_incm.row , grd_incm.colRef("cashcardflag"));
-
- if(cashcardflag=="R"){
- if(!fCardReceipt("D")){
- return;
- }
- }else if(cashcardflag=="S"){
- if(!fCashReceipt("D")){
- return;
- }
- }
- /* 2017/10/20 카드 및 현금영수증 일원화작업
- var idx = grd_incm.row;
- var cashcardflag = grd_incm.valueMatrix(idx , grd_incm.colRef("cashcardflag"));
- var vangb = grd_incm.valueMatrix(idx , grd_incm.colRef("vangb"));
- var gPid = "3134314"; //기관미수 환자
- var keyinptflag = grd_incm.valueMatrix(idx , grd_incm.colRef("keyinptflag"));
- var sdata10 = "";
- var sdata11 = "";
- var cardcashno = grd_incm.valueMatrix(idx , grd_incm.colRef("cardcashno"));
- var valiterm = grd_incm.valueMatrix(idx , grd_incm.colRef("valiterm"));
- var allotmm = grd_incm.valueMatrix(idx , grd_incm.colRef("allotmm"));
- var aprvflag = grd_incm.valueMatrix(idx , grd_incm.colRef("aprvflag"));
- var depoAmt = grd_incm.valueMatrix(idx , grd_incm.colRef("incomeamt"));
-
- //R-카드, S-현금영수증, C-현금
- if("R" == cashcardflag){
- //승인 취소 내역 존재 체크
- if(aprvflag == "11" || aprvflag == "12"){
- if(keyinptflag == "S"){
- sdata10 = cardcashno;
- sdata11 = cardcashno.split('=');
- sdata11 = sdata11[0];
- }else{
- sdata10 = "";
- sdata11 = cardcashno;
- }
- fAppCardVanData(vangb //data1 //vangb van사구분
- ,"21" //data2 //ordergb 거래구분
- ,getCurrentDate() //data3 //mdate 회계일자
- ,gPid //data4 //pano 등록번호
- ,"H" //data5 //iogb 입외구분
- ,"" //data6 //deptcode 진료과코드
- ,"" //data7 //diagdate 진료일자
- ,model.getValue("/root/init/session/userid") //data8 //clientid 수납자
- ,keyinptflag //data9 //entrymode 입력구분
- ,sdata10 //data10 //track2data 트랙data
- ,sdata11 //data11 //cardnumber 카드번호
- ,valiterm //data12 //cardperiod 유효기간/자격확인구분(valiterm/qualcnfmflag)
- ,allotmm //data13 //carddivide 할부개월수/개인법인구분(allotmm/indinstflag)
- ,depoAmt //data14 //netamt 금액
- ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvdd")) //data15 //oldappdate 원거래승인일자(취소시)
- ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvtm")) //data16 //oldapptime 원거래승인시간(취소시)
- ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvno")) //data17 //oldappno 원거래승인번호(취소시)
- );
-
- if(model.getValue("/root/tmp/appvanif/replystat") != "0000" ){
- messageBox("카드승인취소실패 => "+ model.getValue("/root/tmp/appvanif/cardname") ,"E999","");
- return;
- }else{
- copyNodesetType("/root/sendincm/cardcash" , "/root/tmp/appvanif", "replace");
- model.makeValue("/root/sendincm/cardcash/vangb" , vangb);
- model.makeValue("/root/sendincm/cardcash/incomeamt" , depoAmt);
- model.makeValue("/root/sendincm/cardcash/keyinptflag" , keyinptflag);
- model.makeValue("/root/sendincm/cardcash/valiterm" , valiterm);
- model.makeValue("/root/sendincm/cardcash/allotmm" , allotmm);
- if(keyinptflag == "S"){
- model.makeValue("/root/sendincm/cardcash/cardcashno" , sdata10);
- }else{
- model.makeValue("/root/sendincm/cardcash/cardcashno" , sdata11);
- }
-
- //전자서명 처리
- var parm = gPid + "▦" + //PID
- grd_incm.valueMatrix(idx , grd_incm.colRef("incomeamt")) + "▦" + //수납대상금액
- "22" + "▦" + //승인구분
- model.getValue("/root/tmp/appvanif/approvaldate") + "▦" + //승인일자
- model.getValue("/root/tmp/appvanif/approvaltime") + "▦" + //승인시간
- model.getValue("/root/tmp/appvanif/approvalno") + "▦" + //승인번호
- model.getValue("/root/init/session/posinstcd") + "▦"; //기관코드
- setParameter("SPPAO02101_PARM", parm);
- modal("../../../pam/pamcomnweb/xrw/SPPAO02101", "1","400", "400", "SPPAO02101", "", "");
- }
- }else{
- messageBox("선택된 입금내역은 이미 카드 취소가 완료된 내역", "I009");
- return;
- }
- }else if("S" == cashcardflag){
- //승인 취소 내역 존재 체크
- if(aprvflag == "41" || aprvflag == "42"){
- if(keyinptflag == "S"){
- sdata10 = cardcashno;
- sdata11 = cardcashno.split('=');
- sdata11 = sdata11[0];
- }else{
- var sdata10 = "";
- var sdata11 = cardcashno;
- }
-
- fAppCardVanData(vangb //data1 //vangb van사구분
- ,"51" //data2 //ordergb 거래구분
- ,getCurrentDate() //data3 //mdate 회계일자
- ,gPid //data4 //pano 등록번호
- ,"H" //data5 //iogb 입외구분
- ,"" //data6 //deptcode 진료과코드
- ,"" //data7 //diagdate 진료일자
- ,model.getValue("/root/init/session/userid") //data8 //clientid 수납자
- ,keyinptflag //data9 //entrymode 입력구분
- ,sdata10 //data10 //track2data 트랙data
- ,sdata11 //data11 //qualcnfmno 자격확인번호
- ,valiterm //data12 //cardperiod 유효기간/자격확인구분(valiterm/qualcnfmflag)
- ,allotmm //data13 //carddivide 할부개월수/개인법인구분(allotmm/indinstflag)
- ,depoAmt //data14 //netamt 금액
- ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvdd")) //data15 //oldappdate 원거래승인일자(취소시)
- ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvtm")) //data16 //oldapptime 원거래승인시간(취소시)
- ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvno")) //data17 //oldappno 원거래승인번호(취소시)
- );
- if (model.getValue("/root/tmp/appvanif/replystat") != "0000" ) {
- messageBox("현금영수증승인실패 => "+ model.getValue("/root/send/updatedata/bogj/bogj_cardno") ,"E999","");
- return;
- }else{
- copyNodesetType("/root/sendincm/cardcash" , "/root/tmp/appvanif", "replace");
- model.makeValue("/root/sendincm/cardcash/vangb" , vangb);
- model.makeValue("/root/sendincm/cardcash/incomeamt" , depoAmt);
- model.makeValue("/root/sendincm/cardcash/keyinptflag" , keyinptflag);
- model.makeValue("/root/sendincm/cardcash/valiterm" , valiterm);
- model.makeValue("/root/sendincm/cardcash/allotmm" , allotmm);
- if(keyinptflag == "S"){
- model.makeValue("/root/sendincm/cardcash/cardcashno" , sdata10);
- }else{
- model.makeValue("/root/sendincm/cardcash/cardcashno" , sdata11);
- }
- }
- }else{
- messageBox("선택된 입금내역은 이미 현금영수증 취소가 완료된 내역", "I009");
- return;
- }
- }else if("C" == cashcardflag){
- return;
- }
- */
-
- grd_cmpylst.clearStatus();
- grd_cmpylst.addStatus(grd_cmpylst.row, "update");
- model.makeValue("/root/sendincm/clam", getGridUpdateData(grd_cmpylst));
- model.setValue("/root/sendincm/cashcardflag", cashcardflag);
- if(submit("TXAHA02903")){
- btn_srchtrgtman.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_clam" class="btn_sw" group="sub_tab" selected="true" style="left:0px; top:269px; width:70px; height:22px; ">
- <caption>청구내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- ]]>
- </script>
- </button>
- <button id="btn_incm" class="btn_sw" group="sub_tab" style="left:70px; top:269px; width:70px; height:22px; ">
- <caption>입금내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- ]]>
- </script>
- </button>
- <button id="btn_cmpyexcel" class="btn6_letter10" style="left:1013px; top:66px; width:156px; height:22px; ">
- <caption>계약처내역 엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if(fileName != "") grd_cmpylst.saveExcel(fileName, "SheetName", false, false, "", "", false);
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/send/srchinfo/clamend" overflow="visible" appearance="full" style="left:925px; top:34px; width:120px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>입금완료건 포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="btn_detlexcel" class="btn6_letter9" style="left:1024px; top:266px; width:140px; height:22px; ">
- <caption>상세내역 엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if(fileName != "") grd_cmpydetllst.saveExcel(fileName, "SheetName", false, false, "", "", false);
- ]]>
- </script>
- </button>
- <group id="group5" style="left:0px; top:655px; width:1195px; height:80px; ">
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <caption id="caption10" class="tit_2" style="left:5px; top:10px; width:162px; height:14px; ">입금정보</caption>
- <output id="output3" ref="/root/send/cardcashdata/aprv/depoAmt" class="output_fix" format="(-,+)#,###" appearance="output" style="left:88px; top:32px; width:122px; height:19px; text-align:right; "/>
- <line id="line27" class="line_2" style="x1:0px; y1:53px; x2:1194px; y2:53px; "/>
- <caption id="caption14" class="cell_1" style="left:0px; top:30px; width:85px; height:23px; vertical-align:middle; ">입금대상금액</caption>
- <caption id="caption15" class="cell_1" style="left:215px; top:31px; width:60px; height:23px; vertical-align:middle; ">수납방법</caption>
- <caption id="caption16" class="cell_1" style="left:695px; top:30px; width:89px; height:23px; vertical-align:middle; ">카드/현금 번호</caption>
- <caption id="caption17" class="cell_1" style="left:455px; top:30px; width:65px; height:23px; vertical-align:middle; ">개인/법인</caption>
- <caption id="caption18" class="cell_1" style="left:920px; top:30px; width:90px; height:23px; vertical-align:middle; ">유효기간/힐부</caption>
- <caption id="caption20" style="left:1067px; top:32px; width:51px; height:20px; ">(YYMM)</caption>
- <caption id="caption21" style="left:1160px; top:32px; width:31px; height:20px; ">(NN)</caption>
- <input id="ipt_cardno" ref="/root/send/cardcashdata/aprv/cardcashno" navindex="10" style="left:788px; top:31px; width:127px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- //R-카드, S-현금영수증, C-현금
- if(rdo_cashcardflag.value == "R"){
- fAfterChangeCardNo();
- }else if(rdo_cashcardflag.value == "S"){
- fAfterChangeCashNo();
- }
- }
- ]]>
- </script>
- </input>
- <select1 id="rdo_cashcardflag" ref="/root/send/cardcashdata/aprv/cashcardflag" appearance="full" cols="3" overflow="visible" style="left:280px; top:34px; width:172px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>카드</label>
- <value>R</value>
- </item>
- <item>
- <label>현금영수증</label>
- <value>S</value>
- </item>
- <item>
- <label>현금</label>
- <value>C</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //R-카드, S-현금영수증, C-현금
- if(rdo_cashcardflag.value == "R"){
- model.setValue("/root/send/cardcashdata/aprv/indinstflag" ,"00"); //00-개인, 01-법인
- model.setValue("/root/send/cardcashdata/aprv/cardcashno" ,"");
- model.setValue("/root/send/cardcashdata/aprv/valiterm" ,"");
- model.setValue("/root/send/cardcashdata/aprv/allotmm" ,"");
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" ,"S");
- model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" ,"");
-
- cmb_qualcnfmflag.disabled = true;
- ipt_cardno.disabled = false;
- ipt_valiterm.disabled = false;
- ipt_allotmm.disabled = false;
- }else if(rdo_cashcardflag.value == "S"){
- var cmpyno = model.getValue("/root/main/cmpylst/item[" + grd_cmpylst.row + "]/cmpyno");
- model.setValue("/root/send/cardcashdata/aprv/indinstflag" ,"01"); //00-개인, 01-법인
- model.setValue("/root/send/cardcashdata/aprv/cardcashno" ,cmpyno);
- model.setValue("/root/send/cardcashdata/aprv/valiterm" ,"");
- model.setValue("/root/send/cardcashdata/aprv/allotmm" ,"");
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" ,"K");
- model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" ,"4");
-
- cmb_qualcnfmflag.disabled = false;
- ipt_cardno.disabled = false;
- ipt_valiterm.disabled = true;
- ipt_allotmm.disabled = true;
-
- }else if(rdo_cashcardflag.value == "C"){
- model.setValue("/root/send/cardcashdata/aprv/indinstflag" ,"00"); //00-개인, 01-법인
- model.setValue("/root/send/cardcashdata/aprv/cardcashno" ,"");
- model.setValue("/root/send/cardcashdata/aprv/valiterm" ,"");
- model.setValue("/root/send/cardcashdata/aprv/allotmm" ,"");
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" ,"K");
- model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" ,"");
- cmb_qualcnfmflag.disabled = true;
- ipt_cardno.disabled = true;
- ipt_valiterm.disabled = true;
- ipt_allotmm.disabled = true;
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_indyn" ref="/root/send/cardcashdata/aprv/indinstflag" appearance="full" cols="3" overflow="visible" style="left:523px; top:34px; width:87px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>개인</label>
- <value>00</value>
- </item>
- <item>
- <label>법인</label>
- <value>01</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var cashcardflag = model.getValue("/root/send/cardcashdata/aprv/cashcardflag");
- if(cashcardflag == 'R'){
- model.setValue("/root/send/cardcashdata/aprv/cardcashno", "");
- }else if(cashcardflag == 'S'){
- if(model.getValue("/root/send/cardcashdata/aprv/indinstflag")=='00'){
- model.setValue("/root/send/cardcashdata/aprv/cardcashno", "");
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag", "K");
- model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag", "1");
- }else if(model.getValue("/root/send/cardcashdata/aprv/indinstflag")=='01'){
- model.setValue("/root/send/cardcashdata/aprv/cardcashno", model.getValue("/root/main/cmpylst/item[" + grd_cmpylst.row + "]/cmpyno"));
- model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag", "4");
- }
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_allotmm" ref="/root/send/cardcashdata/aprv/allotmm" navindex="12" maxlength="2" style="left:1125px; top:32px; width:34px; height:19px; "/>
- <input id="ipt_valiterm" ref="/root/send/cardcashdata/aprv/valiterm" navindex="11" maxlength="4" style="left:1016px; top:32px; width:49px; height:19px; "/>
- <button id="button8" class="btn2_letter5" style="left:615px; top:32px; width:75px; height:19px; ">
- <caption>국세청코드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/cardcashdata/aprv/cashcardflag" , "S"); //현금영수증
- rdo_cashcardflag.dispatch("xforms-value-changed");
- model.setValue("/root/send/cardcashdata/aprv/indinstflag" , "01"); //법인
- model.setValue("/root/send/cardcashdata/aprv/cardcashno" , "0100001234"); //차후 공통코드에 내용으로 대체
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" , "K");
- model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" , "4"); //사업자번호
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="cell_1" style="left:215px; top:55px; width:85px; height:19px; text-align:center; vertical-align:middle; ">자격확인구분</caption>
- <select1 id="cmb_qualcnfmflag" ref="/root/send/cardcashdata/aprv/qualcnfmflag" appearance="minimal" style="left:302px; top:54px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/P0073">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption12" class="cell_1" style="left:0px; top:55px; width:85px; height:19px; text-align:center; vertical-align:middle; ">입력구분</caption>
- <select1 id="rdo_keyinptflag" ref="/root/send/cardcashdata/aprv/keyinptflag" navindex="16" appearance="full" cellspacing="7" cols="2" overflow="visible" style="left:88px; top:54px; width:122px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Swipe</label>
- <value>S</value>
- </item>
- <item>
- <label>Key in</label>
- <value>K</value>
- </item>
- </choices>
- </select1>
- <line id="line16" class="line_3" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|