123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836 |
- <?xml version="1.0" encoding="UTF-16"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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="">
- <send>
- <pid/>
- <rcptdd/>
- <cashamt/>
- <cardamt/>
- <onlineamt/>
- <uncoflag/>
- <uncorcptflag/>
- <seqno/>
- <rcptno/>
- <endyn/>
- <ordtype/>
- <orddd/>
- <cretno/>
- <insukind/>
- <suppkind/>
- <intrrate/>
- <intrfromdd/>
- <intrtodd/>
- <rcptamt/>
- <debtamt/>
- <remfact/>
- <uncoamt/>
- <uncocd/>
- </send>
- <main>
- <unco>
- <unco_pid/>
- <unco_rcptdd/>
- <unco_rcptno/>
- <unco_rcptseqno/>
- <unco_seqno/>
- <unco_instcd/>
- <unco_rcptstat/>
- <unco_ordtype/>
- <unco_orddd/>
- <unco_orddeptcd/>
- <unco_orddrid/>
- <unco_dschdd/>
- <unco_insukind/>
- <unco_suppkind/>
- <unco_uncorcptflag/>
- <unco_uncocls/>
- <unco_uncocd/>
- <unco_uncoamt/>
- <unco_rcptamt/>
- <unco_debtamt/>
- <unco_endyn/>
- <unco_clincstdyno/>
- <unco_empid/>
- <unco_rcptexecdd/>
- <unco_rcpttm/>
- <unco_rcptrid/>
- <unco_apprsn/>
- <unco_remfact/>
- <unco_fstrgstrid/>
- <unco_fstrgstdt/>
- <unco_lastupdtrid/>
- <unco_lastupdtdt/>
- <unco_realrcptamt/>
- </unco>
- <h_unco>
- <unco/>
- </h_unco>
- <patinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <engnm/>
- <chinm/>
- <rrgstno1/>
- <rrgstno2/>
- <brthdd/>
- <sex/>
- <age/>
- <bindpid/>
- <hometel/>
- <mpphontel/>
- <etctel1/>
- <etctel2/>
- <smsaprvyn/>
- <email/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <addr/>
- <detladdr/>
- <recmyn/>
- <recmerid/>
- <recmerrela/>
- <vipyn/>
- <viprem/>
- <forgeryn/>
- </patinfolist>
- </patinfo>
- <rcpt>
- <rcptdetail>
- </rcptdetail>
- </rcpt>
- <h_cash/>
- <h_card/>
- </main>
- <init>
- <orddeptcd>
- <nm/>
- <cd/>
- </orddeptcd>
- <orddrid>
- <nm/>
- <cd/>
- <dutplcecd/>
- <specordyn/>
- </orddrid>
- <uncocd>
- <nm/>
- <cd/>
- <cls/>
- </uncocd>
- <subjno>
- <cd/>
- <nm/>
- <orddrid/>
- <orddeptcd/>
- </subjno>
- </init>
- <hidden>
- <session/>
- <con>
- <uncocls/>
- <uncocd/>
- <fromdd/>
- <todd/>
- <pid/>
- <ordtype/>
- <uncorcptflag/>
- <uncoendyn/>
- <orddeptcd/>
- <orddrid/>
- <clincstdyno/>
- <srchcond/>
- <uncocls2/>
- <uncocd2/>
- <occrrcptpapr/>
- <termappyn/>
- <printyn/>
- <refund_flag/>
- </con>
- <aprv>
- <con>
- <cardcashflag/>
- <cash_indinstflag/>
- <card_cardno/>
- <card_valiterm/>
- <card_allotmm/>
- <swipedata/>
- <keyinptflag/>
- <qualcnfmflag/>
- <smflag/>
- </con>
- </aprv>
- <source>
- <pid/>
- <cash/>
- </source>
- </hidden>
- <source>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </source>
- <temp>
- <receipt/>
- <selacpt>cash</selacpt>
- <ordtype/>
- </temp>
- <result/>
- </root>
- </instance>
- <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source" resultref="/root/main/patinfo"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/init"/>
- <submission id="TRPAM00200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/h_unco"/>
- <submission id="TRPAM00210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rcpt"/>
- <submission id="TRPAM00220" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/result"/>
- <submission id="TRPAM00230" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/result"/>
- <submission id="TXPAM00230" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/result"/>
- </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/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/outordamtmngtweb/js/SMPAO00100.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //초기화
- fInitialize();
-
- if (checkOpener())
- {
- //..추후 요청이 있을 경우 환자번호로 자동조회
- //SMPAM00100_PID_PARM
- var SMPAM00100_PID_PARM = opener.javascript.getParameter("SMPAM00100_PID_PARM");
- opener.javascript.setParameter("SMPAM00100_PID_PARM","");
-
-
- if (SMPAM00100_PID_PARM != null && SMPAM00100_PID_PARM != "" && SMPAM00100_PID_PARM != " " && SMPAM00100_PID_PARM != "-")
- {
- model.setValue("/root/main/patinfo/patinfolist/pid",SMPAM00100_PID_PARM);
- model.refresh();
-
- model.removeNodeset("/root/main/h_unco/unco");
- grd_uncodetail.rebuild();
- //환자번호 조건으로 인적정보 조회
- model.setValue("/root/source/srchcond", "1");
- model.setValue("/root/source/pid", SMPAM00100_PID_PARM);
-
- //환자기본정보 node clear
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- //환자등록번호 체크
- if(submit("TRPMC02500")){
- var vcheck_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
-
- if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
- //조회내역 체크
- messageBox("존재하지 않는 등록번호","E008");//E008=입니다
- fInitialize();
- return;
- }
- }
- }
- }
- model.setValue("/root/send/pid" , model.getValue("/root/main/patinfo/patinfolist/pid"));
- var row = grd_uncodetail.row;
- var uncorem = model.getValue("/root/main/h_unco/unco[" + row + "]/uncorem");
-
- submit("TRPAM00200");
- model.setValue("/root/send/cardamt" , "0");
- model.setValue("/root/send/cashamt" , "0");
- model.setValue("/root/send/onlineamt" , "0");
- model.refresh();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="740px" pageheight="590px">
- <group id="group2" style="left:0px; top:23px; width:740px; height:42px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:0px; width:730px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:670px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRPAM00200");
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" visibility="visible" style="x1:655px; y1:10px; x2:655px; y2:33px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption3" class="search_name" style="left:10px; top:10px; width:91px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/main/patinfo/patinfolist/pid" style="left:103px; top:10px; width:82px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- vcheck_pid = ipt_pid.currentText;
-
- fInitialize();
- //fRcptInfoInit();
- //fComCDValSet();
-
- if (instance1.selectSingleNode("/root/main/patinfo/patinfolist/pid") == null){
- model.makeNode("/root/main/patinfo/patinfolist/pid");
- }
-
- model.setValue("/root/main/patinfo/patinfolist/pid",vcheck_pid);
- model.refresh();
-
- /*
- model.removeNodeset("/root/main/h_unco/unco");
- model.removeNodeset("/root/main/h_card/card");
- model.removeNodeset("/root/main/h_cash/cash");
- model.removeNodeset("/root/main/h_card2/card");
- model.removeNodeset("/root/main/h_cash2/cash");
- model.removeNodeset("/root/main/h_onln/onln");
- model.removeNodeset("/root/main/m_unco/unco");
- grd_uncodetail.rebuild();
- grd_uncosum.rebuild();
- grd_munco.rebuild();
- */
-
- //환자번호 null체크
- if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
- model.setValue("/root/main/patinfo/patinfolist/pid","");
- model.setValue("/root/main/patinfo/patinfolist/hngnm","");
- model.setValue("/root/main/patinfo/patinfolist/rrgstno1","");
- model.setValue("/root/main/patinfo/patinfolist/rrgstno2","");
- model.refresh();
-
- fSearch();
-
- messageBox("환자등록번호가 입력되지","E007");
- return;
- }
- //환자번호 조건으로 인적정보 조회
- model.setValue("/root/source/srchcond", "1");
- model.setValue("/root/source/pid", ipt_pid.currentText);
-
- //환자기본정보 node clear
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
-
- //환자등록번호 체크
- if(submit("TRPMC02500")){
- var vcheck_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
- //조회내역 체크
- messageBox("존재하지 않는 등록번호","E008");//E008=입니다
- fInitialize();
- return;
- }
-
- //재원환자 체크(계산진행 못하게 할 것인지는 추후 수납확인필요)
- var vcheck_inhospyn = model.getValue("/root/main/patinfo/patinfolist/inhospyn");
- if (vcheck_inhospyn == 'Y') {
- messageBox("["+model.getValue("/root/main/patinfo/patinfolist/hngnm")+"] 환자는 재원 중인 환자","E008");//E008=입니다
- }
- btn_search.dispatch("DOMActivate");
- }//End if(event.keyCode == "13") {
- }
- model.resetInstanceNode("/root/send");
- ]]>
- </script>
- </input>
- <output id="output1" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:188px; top:10px; width:60px; height:19px; "/>
- <output id="output2" ref="/root/main/patinfo/patinfolist/rrgstno1" class="output_fix" style="left:251px; top:10px; width:45px; height:19px; "/>
- <output id="output3" ref="/root/main/patinfo/patinfolist/rrgstno2" class="output_fix" style="left:299px; top:10px; width:55px; height:19px; "/>
- <button id="button1" class="icon_search" style="left:358px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_pid.currentText.length==0)
- {
- model.resetInstanceNode("/root/source");
- model.resetInstanceNode("/root/send");
- }
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" style="left:0px; top:0px; width:740px; height:13px; ">
- <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">미수 수납</caption>
- </group>
- <caption id="caption2" class="tit_2" style="left:10px; top:71px; width:140px; height:13px; ">미수현황</caption>
- <datagrid id="grd_uncodetail" nodeset="/root/main/h_unco/unco" visibility="visible" caption="선택^종결여부^수납상태^수납구분^발생일자^총액^수납금액^잔액^seqno^rcptno^ordtype^orddd^cretno^insukind^suppkind^intrrate^intrfromdd^intrtodd^uncoamt^rcptamt^debtamt^remfact^uncocd" colsep="^" colwidth="31, 61, 55, 100, 99, 99, 89, 89, 31, 30, 38, 39, 34, 29, 36, 34, 37, 30, 36, 33, 34, 34, 37" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" style="left:5px; top:90px; width:725px; height:280px; text-align:center; ">
- <col checkvalue="Y,N" ref="unco_chck" type="checkbox"/>
- <col disabled="true" ref="unco_endyn" type="combo">
- <choices>
- <item>
- <label>종결</label>
- <value>Y</value>
- </item>
- <item>
- <label>미결</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="rcptstat" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>완료</label>
- <value>Y</value>
- </item>
- <item>
- <label>취소</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="unco_uncoflag" type="combo">
- <choices>
- <item>
- <label>이자</label>
- <value>10</value>
- </item>
- <item>
- <label>소송</label>
- <value>20</value>
- </item>
- <item>
- <label>가압류</label>
- <value>30</value>
- </item>
- <item>
- <label>강제집행</label>
- <value>40</value>
- </item>
- <item>
- <label>재산관계명시</label>
- <value>50</value>
- </item>
- <item>
- <label>기타</label>
- <value>60</value>
- </item>
- </choices>
- </col>
- <col ref="unco_rcptdd" visibility="visible" format="yyyy-mm-dd"/>
- <col ref="unco_uncoamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="uncorem" format="(-)#,###" style="text-align:right; "/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="rcptno" visibility="hidden"/>
- <col ref="ordtype" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="insukind" visibility="hidden"/>
- <col ref="suppkind" visibility="hidden"/>
- <col ref="intrrate" visibility="hidden"/>
- <col ref="intrfromdd" visibility="hidden"/>
- <col ref="intrtodd" visibility="hidden"/>
- <col ref="uncoamt" visibility="hidden"/>
- <col ref="rcptamt" visibility="hidden"/>
- <col ref="debtamt" visibility="hidden"/>
- <col ref="remfact" visibility="hidden"/>
- <col ref="uncocd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_uncodetail.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var row = grd_uncodetail.row;
- var check = model.getValue("/root/main/h_unco/unco["+ row +"]/unco_chck");
- var uncorem = model.getValue("/root/main/h_unco/unco[" + row + "]/uncorem");
- var rowcnt = getNodesetCount("/root/main/h_unco/unco");
- if(check == "Y") {
- model.setValue("root/send/uncoflag" ,model.getValue("/root/main/h_unco/unco[" + row + "]/unco_uncoflag"));
- submit("TRPAM00210");
- for(var i = 1; i <=rowcnt; i++) {
- if(model.getValue("/root/main/h_unco/unco[" + i + "]/unco_chck") == "Y") {
- var money = parseInt(money) + parseInt(model.getValue("/root/main/h_unco/unco[" + i + "]/uncorem"));
-
- }
- model.setValue("/root/main/h_unco/unco[" + i + "]/unco_chck" , "N");
- }
- model.setValue("/root/main/h_unco/unco[" + row + "]/unco_chck" , "Y");
-
- if(model.getValue("/root/temp/selacpt") == "cash"){
- model.setValue("/root/send/cardamt","0");
- model.setValue("/root/send/onlineamt","0");
- model.setValue("/root/send/cashamt" , parseInt(uncorem));
- }else if(model.getValue("/root/temp/selacpt") == "card") {
- model.setValue("/root/send/cashamt" ,"0");
- model.setValue("/root/send/onlineamt","0");
- model.setValue("/root/send/cardamt" , parseInt(uncorem));
- }else if(model.getValue("/root/temp/selacpt") == "online") {
- model.setValue("/root/send/cashamt" ,"0");
- model.setValue("/root/send/cardamt","0");
- model.setValue("/root/send/onlineamt" , parseInt(uncorem));
- }
-
- model.setValue("/root/temp/ordtype", model.getValue("/root/main/h_unco/unco[" + row + "]/ordtype"));
-
- //2017/10/31 이정택
- var cnt = getNodesetCount("/root/main/h_unco/unco[unco_chck='Y' and unco_uncoflag='10']");
- if(cnt>0){
- btn_cardpopup.disabled="true";
- btn_cashpopup.disabled="true";
- }else{
- btn_cardpopup.disabled="false";
- btn_cashpopup.disabled="false";
- }
- //2017/10/31 이정택
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="cell_1" visibility="visible" style="left:520px; top:510px; width:70px; height:20px; text-align:left; ">현금수납</caption>
- <input id="card" ref="/root/send/cardamt" visibility="hidden" format="(-)#,###" style="left:595px; top:510px; width:125px; height:19px; text-align:right; "/>
- <input id="cash" ref="/root/send/cashamt" visibility="visible" format="(-)#,###" style="left:595px; top:510px; width:125px; height:19px; text-align:right; "/>
- <button id="btn_ok" class="btn4_letter4" style="left:560px; top:540px; width:80px; height:22px; ">
- <caption>수납승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //2017/10/31 이정택
- var cnt = getNodesetCount("/root/main/h_unco/unco[unco_chck='Y' and unco_uncoflag='10']");
- if(cnt>0 && rdo_acpt.value == "card" ){
- messageBox("이자 입금의 경우에는 카드 수납이 불가능합니다.", "E");
- rdo_acpt.value = "cash";
- rdo_acpt.dispatch("xforms-select");
- return;
- }
- //2017/10/31 이정택
-
- var row = grd_uncodetail.row;
- var uncorem = model.getValue("/root/main/h_unco/unco[" + row + "]/uncorem");
- model.setValue("/root/send/rcptdd" , model.getValue("/root/main/h_unco/unco[" + row + "]/unco_rcptdd"));
- model.setValue("/root/send/endyn" , model.getValue("/root/main/h_unco/unco[" + row + "]/unco_endyn"));
- model.setValue("/root/send/uncorcptflag" , "2");
- model.setValue("/root/send/uncoflag" , model.getValue("/root/main/h_unco/unco[" + row + "]/unco_uncoflag"));
- model.setValue("/root/send/rcptno" , model.getValue("/root/main/h_unco/unco[" + row + "]/rcptno"));
- model.setValue("/root/send/ordtype" , model.getValue("/root/main/h_unco/unco[" + row + "]/ordtype"));
- model.setValue("/root/send/orddd" , model.getValue("/root/main/h_unco/unco[" + row + "]/orddd"));
- model.setValue("/root/send/seqno" , model.getValue("/root/main/h_unco/unco[" + row + "]/seqno"));
- model.setValue("/root/send/cretno" , model.getValue("/root/main/h_unco/unco[" + row + "]/cretno"));
- model.setValue("/root/send/insukind" , model.getValue("/root/main/h_unco/unco[" + row + "]/insukind"));
- model.setValue("/root/send/suppkind" , model.getValue("/root/main/h_unco/unco[" + row + "]/suppkind"));
- model.setValue("/root/send/intrrate" , model.getValue("/root/main/h_unco/unco[" + row + "]/intrrate"));
- model.setValue("/root/send/intrfromdd" , model.getValue("/root/main/h_unco/unco[" + row + "]/intrfromdd"));
- model.setValue("/root/send/intrtodd" , model.getValue("/root/main/h_unco/unco[" + row + "]/intrtodd"));
- model.setValue("/root/send/uncoamt" , "0");
- model.setValue("/root/send/rcptamt" , "0");
- model.setValue("/root/send/debtamt" , "0");
- model.setValue("/root/send/remfact" , model.getValue("/root/main/h_unco/unco[" + row + "]/remfact"));
- model.setValue("/root/send/uncocd" , model.getValue("/root/main/h_unco/unco[" + row + "]/uncocd"));
-
- if(cnt==0){ // 이자를 선택한 경우는 해당 내용 안뜨도록 수정(2017/11/01)
- if( model.getValue("/root/temp/selacpt") == "card" ){
-
- var retVal = messageBox("카드입금을 선택하셨습니다. 신용카드 승인을 하시겠습니까?"
- + "\n[YES : 신용카드 팝업 호출, NO : 수납]", "Q999", "");
- if( retVal == '6' ) btn_cardpopup.dispatch("DOMActivate");
-
- }else{
-
- var retVal = messageBox("현금/온라인 입금을 선택하셨습니다. 현금영수증 승인을 하시겠습니까?"
- + "\n[YES : 현금영수증 팝업 호출, NO : 수납]", "Q999", "");
- if( retVal == '6' ) btn_cashpopup.dispatch("DOMActivate");
- }
- }
-
- submit("TRPAM00230");
-
- // 이자 수납시 영수증 출력되도록 프로그램 수정(2017/10/31)
- if(cnt>0){
- model.removeNodeset("/root/temp/receipt");
- model.makevalue("/root/temp/receipt/pid", model.getValue("/root/send/pid"));
- model.makevalue("/root/temp/receipt/orddd", model.getValue("/root/send/orddd"));
- model.makevalue("/root/temp/receipt/cretno", model.getValue("/root/send/cretno"));
- model.makevalue("/root/temp/receipt/uncoflag", model.getValue("/root/send/uncoflag"));
- model.makevalue("/root/temp/receipt/seqno", model.getValue("/root/send/seqno"));
- model.makevalue("/root/temp/receipt/uncocd", model.getValue("/root/send/uncocd"));
- model.makevalue("/root/temp/receipt/rcptdd", model.getValue("/root/send/rcptdd"));
- model.makevalue("/root/temp/receipt/rcptno", model.getValue("/root/send/rcptno"));
- model.makevalue("/root/temp/receipt/ordtype", "독촉미수이자영수증");
- modal("SPPAO01900", "1", "200", "200", "SPPAO01900", "", "");
- }
- // 수납시 영수증 출력되도록 프로그램 수정(2017/10/31)
-
- model.refresh();
- submit("TRPAM00200");
-
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:5px; y1:85px; x2:730px; y2:85px; "/>
- <datagrid id="grd_rcptdet" nodeset="/root/main/rcpt/rcptdetail" caption="수납구분^수납시간^수납시간^현금금액^카드금액^온라인금액^수납자" colsep="^" colwidth="100, 80, 74, 80, 80, 80, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:375px; width:725px; height:125px; text-align:center; ">
- <col disabled="true" ref="uncoflag" type="combo">
- <choices>
- <item>
- <label>이자</label>
- <value>10</value>
- </item>
- <item>
- <label>소송</label>
- <value>20</value>
- </item>
- <item>
- <label>가압류</label>
- <value>30</value>
- </item>
- <item>
- <label>강제집행</label>
- <value>40</value>
- </item>
- <item>
- <label>기타</label>
- <value>50</value>
- </item>
- </choices>
- </col>
- <col ref="rcptexecdd" format="yyyy-mm-dd"/>
- <col ref="rcpttm" format="hh:nn:ss"/>
- <col ref="cashamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="cardamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="onlineamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcptrid"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_rcptdet.row;
- if(isDataCell()){
- if(model.getValue("/root/main/rcpt/rcptdetail["+row+"]/cashamt") > "0"){
- model.setValue("/root/temp/selacpt" ,"cash");
- caption1.text = "현금수납";
- cash.visible = true;
- card.visible = false;
- online.visible = false;
- model.setValue("/root/send/cardamt" , "0");
- model.setValue("/root/send/cashamt" , "0");
- model.setValue("/root/send/onlineamt" , "0");
- model.setValue("/root/send/cashamt" , model.getValue("/root/main/rcpt/rcptdetail["+row+"]/cashamt"));
- }else if(model.getValue("/root/main/rcpt/rcptdetail["+row+"]/cardamt") > "0"){
- model.setValue("/root/temp/selacpt" ,"card");
- caption1.text = "카드수납";
- cash.visible = false;
- card.visible = true;
- online.visible = false;
- model.setValue("/root/send/cardamt" , "0");
- model.setValue("/root/send/cashamt" , "0");
- model.setValue("/root/send/onlineamt" , "0");
- model.setValue("/root/send/cardamt" , model.getValue("/root/main/rcpt/rcptdetail["+row+"]/cardamt"));
- model.refresh();
- }else if(model.getValue("/root/main/rcpt/rcptdetail["+row+"]/onlineamt") > "0"){
- model.setValue("/root/temp/selacpt" ,"online");
- caption1.text = "온라인수납";
- cash.visible = false;
- card.visible = false;
- online.visible = true;
- model.setValue("/root/send/cardamt" , "0");
- model.setValue("/root/send/cashamt" , "0");
- model.setValue("/root/send/onlineamt" , "0");
- model.setValue("/root/send/onlineamt" , model.getValue("/root/main/rcpt/rcptdetail["+row+"]/onlineamt"));
- model.refresh();
- }
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption5" class="cell_1" style="left:290px; top:510px; width:70px; height:20px; text-align:left; ">수납구분</caption>
- <select1 id="rdo_acpt" ref="/root/temp/selacpt" appearance="full" cols="3" overflow="visible" style="left:365px; top:512px; width:150px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>현금</label>
- <value>cash</value>
- </item>
- <item>
- <label>카드</label>
- <value>card</value>
- </item>
- <item>
- <label>온라인</label>
- <value>online</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(model.getValue("/root/temp/selacpt") == "cash"){
- caption1.text = "현금수납";
- cash.visible = true;
- card.visible = false;
- online.visible = false;
- model.setValue("/root/send/cardamt" , "0");
- model.setValue("/root/send/cashamt" , "0");
- model.setValue("/root/send/onlineamt" , "0");
- }else if(model.getValue("/root/temp/selacpt") == "card"){
- caption1.text = "카드수납";
- cash.visible = false;
- card.visible = true;
- online.visible = false;
- model.setValue("/root/send/cardamt" , "0");
- model.setValue("/root/send/cashamt" , "0");
- model.setValue("/root/send/onlineamt" , "0");
- }else if(model.getValue("/root/temp/selacpt") == "online") {
- caption1.text = "온라인수납";
- cash.visible = false;
- card.visible = false;
- online.visible = true;
- model.setValue("/root/send/cardamt" , "0");
- model.setValue("/root/send/cashamt" , "0");
- model.setValue("/root/send/onlineamt" , "0");
- }
- ]]>
- </script>
- </select1>
- <input id="online" ref="/root/send/onlineamt" visibility="hidden" format="(-)#,###" style="left:595px; top:510px; width:125px; height:19px; text-align:right; "/>
- <button id="button2" class="btn4_letter4" style="left:641px; top:540px; width:80px; height:22px; ">
- <caption>수납취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_uncodetail.row;
- var uncorem = model.getValue("/root/main/h_unco/unco[" + row + "]/uncorem");
- if(messageBox("해당 수납내역을 환불하시겠습니까?", "Q999") == 6){
- model.setValue("/root/send/rcptdd" , model.getValue("/root/main/h_unco/unco[" + row + "]/unco_rcptdd"));
- model.setValue("/root/send/endyn" , model.getValue("/root/main/h_unco/unco[" + row + "]/unco_endyn"));
- model.setValue("/root/send/uncorcptflag" , "2");
- model.setValue("/root/send/uncoflag" , model.getValue("/root/main/h_unco/unco[" + row + "]/unco_uncoflag"));
- model.setValue("/root/send/rcptno" , model.getValue("/root/main/h_unco/unco[" + row + "]/rcptno"));
- model.setValue("/root/send/ordtype" , model.getValue("/root/main/h_unco/unco[" + row + "]/ordtype"));
- model.setValue("/root/send/orddd" , model.getValue("/root/main/h_unco/unco[" + row + "]/orddd"));
- model.setValue("/root/send/seqno" , model.getValue("/root/main/h_unco/unco[" + row + "]/seqno"));
- model.setValue("/root/send/cretno" , model.getValue("/root/main/h_unco/unco[" + row + "]/cretno"));
- model.setValue("/root/send/insukind" , model.getValue("/root/main/h_unco/unco[" + row + "]/insukind"));
- model.setValue("/root/send/suppkind" , model.getValue("/root/main/h_unco/unco[" + row + "]/suppkind"));
- model.setValue("/root/send/intrrate" , model.getValue("/root/main/h_unco/unco[" + row + "]/intrrate"));
- model.setValue("/root/send/intrfromdd" , model.getValue("/root/main/h_unco/unco[" + row + "]/intrfromdd"));
- model.setValue("/root/send/intrtodd" , model.getValue("/root/main/h_unco/unco[" + row + "]/intrtodd"));
- model.setValue("/root/send/uncoamt" , "0");
- model.setValue("/root/send/rcptamt" , "0");
- model.setValue("/root/send/debtamt" , "0");
- model.setValue("/root/send/remfact" , model.getValue("/root/main/h_unco/unco[" + row + "]/remfact"));
- model.setValue("/root/send/uncocd" , model.getValue("/root/main/h_unco/unco[" + row + "]/uncocd"));
- submit("TXPAM00230");
- if(model.getValue("/root/main/h_unco/unco["+row+"]/unco_endyn") == "Y"){
- model.setValue("/root/send/endyn" , model.getValue("/root/main/h_unco/unco[" + row + "]/unco_endyn"));
- model.setValue("/root/send/rcptdd" , model.getValue("/root/main/h_unco/unco[" + row + "]/unco_rcptdd"));
- model.setValue("/root/send/seqno" , model.getValue("/root/main/h_unco/unco[" + row + "]/seqno"));
- model.setValue("/root/send/rcptno" , model.getValue("/root/main/h_unco/unco[" + row + "]/rcptno"));
- submit("TRPAM00220");
- }
- model.refresh();
- submit("TRPAM00200");
- }
- ]]>
- </script>
- </button>
- <button id="btn_cardpopup" class="btn2_letter5" style="left:365px; top:540px; width:75px; height:19px; ">
- <caption>카드결제창</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if( model.getValue("/root/main/patinfo/patinfolist/pid") == '' || model.getValue("/root/main/patinfo/patinfolist/pid") == ' ' ||
- model.getValue("/root/main/patinfo/patinfolist/hngnm") == '' || model.getValue("/root/main/patinfo/patinfolist/hngnm") == '' ){
-
- messageBox("환자를 조회하신 후에 카드결제 팝업을 호출 할 수 있습니다!!", "E999", "");
- return false;
- }
-
- //=========================================================================================================================================//
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid") ;
- var cardAmt = model.getValue("/root/send/cardamt");
- var ordtype = model.getValue("/root/temp/ordtype");
-
- if( ordtype == '' || ordtype == ' ' ){
- messageBox("입금할 내역을 선택하신 후 카드결제 팝업을 호출 할 수 있습니다!!", "E999", "");
- return false;
- }
-
-
- parm = "0" + "▦" + //멀티건수
- "" + "▦" + //멀티opmi
- "" + "▦" + //rcptdd 변경 혹은 취소인 경우 필요
- "" + "▦" + //rcptno
- "" + "▦" + //rcptseqno
- cardAmt + "▦" + //totalamt
- "/root/main/h_card" + "▦" + //send
- "/root/main/h_card" + "▦" + //receive
- pid + "▦" + //pid
- "" + "▦" + //orddd
- "" + "▦" + //cretno
- "" + "▦" + //strRcvVan
- ordtype + "▦" + //ordtype
- "" + "▦" + //fromdd
- "" + "▦" + //todd
- "" + "▦" + //orddeptcd
- //단일건 접수 승인일때만 필요
- "" + "▦" + //cardno
- "" + "▦" + //valiterm
- "" + "▦" + //allotmm
- "" + "▦" + //keyinpuflag
- "" + "▦" ; //swipedata
-
- setParameter("SPPAO00400_PARM",parm);
- setParameter("SPPAO00400_FLAG", "");
-
- modal("SPPAO00400", "1","100", "100", "SPPAO00400", "", "");
- //=========================================================================================================================================//
-
-
- ]]>
- </script>
- </button>
- <button id="btn_cashpopup" class="btn2_letter5" style="left:442px; top:540px; width:75px; height:19px; ">
- <caption>현금영수증</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if( model.getValue("/root/main/patinfo/patinfolist/pid") == '' || model.getValue("/root/main/patinfo/patinfolist/pid") == ' ' ||
- model.getValue("/root/main/patinfo/patinfolist/hngnm") == '' || model.getValue("/root/main/patinfo/patinfolist/hngnm") == '' ){
-
- messageBox("환자를 조회하신 후에 현금영수증 팝업을 호출 할 수 있습니다!!", "E999", "");
- return false;
- }
-
-
- //=========================================================================================================================================//
-
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid") ;
- var cashAmt = model.getValue("/root/send/cashamt");
- var ordtype = model.getValue("/root/temp/ordtype");
-
- if( ordtype == '' || ordtype == ' ' ){
- messageBox("입금할 내역을 선택하신 후 현금영수증 팝업을 호출 할 수 있습니다!!", "E999", "");
- return false;
- }
-
- var parm = "0" + "▦" + //멀티건수
- "" + "▦" + //멀티opmi
- cashAmt + "▦" + //totalamt
- "/root/main/h_cash" + "▦" + //send
- "/root/main/h_cash" + "▦" + //receive
- pid + "▦" + //pid
- ordtype + "▦" + //ordtype
- "" + "▦" + //indinstflag
- "" + "▦" + //gQualcnfmno
- // valiterm + "▦" + //valiterm
- // allotmm + "▦" + //allotmm
- "" + "▦" + //keyinpuflag
- "" + "▦" + //swipedata
- "" + "▦" ; //qualcnfmflag
-
- setParameter("SPPAO00500_PARM",parm);
- setParameter("SPPAO00500_FLAG", "");
-
- modal("SPPAO00501", "1","100", "100", "SPPAO00501", "", "");
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|