123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830 |
- <?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/>
- <ioflag/>
- <updatedata>
- <datalist/>
- </updatedata>
- <orddd/>
- <rcptno/>
- <rcptdd/>
- <quarflag/>
- <seqno/>
- <sendflag/>
- <data1>
- <checkfnexam/>
- <srchcond/>
- <pid/>
- <autoflag/>
- </data1>s
- <uncocd/>
- <hngnm/>
- <phoneflag/>
- </send>
- <main>
- <patinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <addr/>
- <detladdr/>
- <hometel/>
- </patinfolist>
- </patinfo>
- </main>
- <list>
- <unco>
- <uncolist>
- <check/>
- <pid/>
- <hngnm/>
- <insukind/>
- <suppkind/>
- <rcptdd/>
- <rcptno/>
- <instcd/>
- <ordtype/>
- <orddd/>
- <cretno/>
- <uncocls/>
- <uncocd/>
- <unconm/>
- <rrgstno/>
- <uncoamt/>
- <rcptamt/>
- <debtamt/>
- <uncorem/>
- <insukindnm/>
- <suppkindnm/>
- <guarcount/>
- <acptcount/>
- <lawcount/>
- <ordpaycount/>
- <zipcd/>
- <zipaddr/>
- <uncono/>
- <shortdd/>
- <longdd/>
- </uncolist>
- </unco>
- <detail>
- <guarlist>
- <check/>
- <printyn/>
- <grntornm/>
- <grntorrrgstno1/>
- <grntorrrgstno2/>
- <grntorsex/>
- <grntorrel/>
- <grntorhometel/>
- <grntorofficetel/>
- <grntormpphontel/>
- <grntorzipcd1/>
- <grntorzipcd2/>
- <grntorzipcdseq/>
- <grntordetladdr/>
- <grntorzipcdaddr/>
- <uncodescyn/>
- <pid/>
- <rcptdd/>
- <rcptno/>
- <orddd/>
- <cretno/>
- <seqno/>
- </guarlist>
- <acptlist>
- <check/>
- <uncorcptflag/>
- <uncoflag/>
- <rcpttm/>
- <uncoamt/>
- <intrfromdd/>
- <intrtodd/>
- <intramt/>
- <intrrate/>
- <cashamt/>
- <debtamt/>
- <acptuncorem/>
- <remfact/>
- <pid/>
- <rcptdd/>
- <rcptno/>
- <orddd/>
- <cretno/>
- <seqno/>
- <rcptstat/>
- <insukind/>
- <suppkind/>
- <uncorem/>
- <ordtype/>
- <uncocd/>
- <cardamt/>
- <onlineamt/>
- <rcptamt/>
- </acptlist>
- <lawsulist>
- <check/>
- <uncorcptflag/>
- <uncoflag/>
- <rcpttm/>
- <uncoamt/>
- <cashamt/>
- <debtamt/>
- <intrrate/>
- <remfact/>
- <pid/>
- <rcptdd/>
- <rcptno/>
- <orddd/>
- <cretno/>
- <seqno/>
- <rcptstat/>
- <insukind/>
- <suppkind/>
- <uncorem/>
- <ordtype/>
- <uncocd/>
- <cardamt/>
- <onlineamt/>
- <rcptamt/>
- </lawsulist>
- <ordpaydemand>
- <check/>
- <issflag/>
- <issdt/>
- <remfact/>
- <pid/>
- <rcptdd/>
- <rcptno/>
- <orddd/>
- <cretno/>
- <endyn/>
- <seqno/>
- <isscnt/>
- <sendflag/>
- <subremfact/>
- <phone/>
- <bankno/>
- <koraddr/>
- <engaddr/>
- <hospno/>
- </ordpaydemand>
- </detail>
- </list>
- <source>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <autoflag/>
- <checkfnexam/>
- </source>
- <result/>
- <temp>
- <post/>
- <printinfo>
- <pid/>
- <hngnm/>
- <addr/>
- <detladdr/>
- <uncoamt/>
- <intramt/>
- <grntornm/>
- <grntorzipcdaddr/>
- <grntordetladdr/>
- <uncorem/>
- <totamt/>
- <totamtkor/>
- <yyyy/>
- <mm/>
- <dd/>
- <orddd/>
- <orddeptnm/>
- </printinfo>
- <acptdd/>
- <checkall/>
- <printpat>N</printpat>
- <detail>
- <ordpaydemand>
- <instcd/>
- <phone/>
- <bankno/>
- <koraddr/>
- <engaddr/>
- <hospnm/>
- <remfact/>
- <subremfact/>
- </ordpaydemand>
- </detail>
- </temp>
- <hidden>
- <urgereport/>
- </hidden>
- <init>
- <uncocd/>
- </init>
- <phone>
- <phdata>
- <pnum/>
- <bankno/>
- <koraddr/>
- <engaddr/>
- <hospnm/>
- <subremfact/>
- </phdata>
- </phone>
- <temp1/>
- <paminit>
- <P6584list/>
- </paminit>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- ]]>
- </script>
- <bind id="bind1" ref="/root/main/outreceivamtlist/receivamtstats" calculate="now() + ."/>
- <bind id="bind2" ref="/root/main/outreceivamtsumlist/receivamtsumstats/uncocnt" calculate="sum(/root/main/outreceivamtlist/receivamtstats/uncocnt);"/>
- <bind id="bind3" ref="/root/main/outreceivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/outreceivamtlist/receivamtstats/uncoamt);"/>
- <bind id="bind4" ref="/root/main/inreceivamtlist/receivamtstats" calculate="now() + ."/>
- <bind id="bind5" ref="/root/main/inreceivamtsumlist/receivamtsumstats/uncocnt" calculate="sum(/root/main/inreceivamtlist/receivamtstats/uncocnt);"/>
- <bind id="bind6" ref="/root/main/inreceivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/inreceivamtlist/receivamtstats/uncoamt);"/>
- <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="TRPAS00700" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/list/unco"/>
- <submission id="TRPAS00710" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/list/detail"/>
- <submission id="TRPAS00720" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
- <submission id="TRPAS00721" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/phone"/>
- <submission id="TXPAS00710" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/list/detail"/>
- <submission id="TXPAS00720" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/list/detail"/>
- <submission id="TXPAS00730" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp1"/>
- <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/utilHelper.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/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../pam/outordamtmngtweb/js/SMPAO00100.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //기초코드 조회(보험,감면,진료과,공통코드)
- fSetCodeList();
- addComboItem( "cmd_uncocd" , "", "", "above" );
- model.removeNodeset("/root/list/unco/uncolist");
- model.removeNodeset("/root/list/detail/guarlist");
- model.removeNodeset("/root/list/detail/acptlist");
- model.removeNodeset("/root/list/detail/lawsulist");
- model.removeNodeset("/root/list/detail/ordpaydemand");
-
- // model.makeNode("/root/list/unco/uncolist");
- // model.makeNode("/root/list/detail/guarlist");
- // model.makeNode("/root/list/detail/acptlist");
- // model.makeNode("/root/list/detail/lawsulist");
- // model.makeNode("/root/list/detail/ordpaydemand");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fsaveResult() {
- var quarrow = grd_quar.row;
- var acptlist = grd_acptlist.row;
- if(model.getValue("/root/list/detail/guarlist[" + quarrow +"]/grntornm") == "" ||
- model.getValue("/root/list/detail/guarlist[" + quarrow +"]/grntorrrgstno1") == "" ||
- model.getValue("/root/list/detail/guarlist[" + quarrow +"]/grntorrrgstno2") == "" ||
- model.getValue("/root/list/detail/guarlist[" + quarrow +"]/grntorsex") == "" ){
- messageBox("보증인정보를", "C001");
- return;
- }
- }
- function fsaveResult2(){
- if(model.getValue("/root/list/detail/acptlist[" + acptlist + "]/uncoflag") == "") {
- messageBox("정산구분을" , "C001");
- }else if(model.getValue("/root/list/detail/acptlist[" + acptlist + "]/intrfromdd") == "") {
- messageBox("이자시작일자를" , "C001");
- }else if(model.getValue("/root/list/detail/acptlist[" + acptlist + "]/intrtodd") == ""){
- messageBox("이자종료일자를" , "C001");
- }
- }
- //초기화 시키기
- function fClear(){
- model.removeNodeset("/root/source/pid");
- model.removeNodeset("/root/send/pid");
- model.removeNodeset("/root/send/hngnm");
- model.removeNodeset("/root/send/uncocd");
- model.removeNodeset("/root/main/patinfo/patinfolist");
- model.removeNodeset("/root/list/unco/uncolist");
- model.removeNodeset("/root/list/detail/guarlist");
- model.removeNodeset("/root/list/detail/acptlist");
- model.removeNodeset("/root/list/detail/lawsulist");
- model.removeNodeset("/root/list/detail/ordpaydemand");
-
- model.makeNode("/root/source/pid");
- model.makeNode("/root/send/pid");
- model.makeNode("/root/send/hngnm");
- model.makeNode("/root/send/uncocd");
- model.makeNode("/root/main/patinfo/patinfolist/pid");
- model.makeNode("/root/main/patinfo/patinfolist/hngnm");
- model.makeNode("/root/main/patinfo/patinfolist/rrgstno1");
- model.makeNode("/root/main/patinfo/patinfolist/rrgstno2");
- model.makeNode("/root/main/patinfo/patinfolist/addr");
- model.makeNode("/root/main/patinfo/patinfolist/detladdr");
- model.makeNode("/root/main/patinfo/patinfolist/hometel");
- // model.makeNode("/root/list/unco/uncolist");
- // model.makeNode("/root/list/detail/guarlist");
- // model.makeNode("/root/list/detail/acptlist");
- // model.makeNode("/root/list/detail/lawsulist");
- // model.makeNode("/root/list/detail/ordpaydemand");
-
- model.refresh();
- }
- function fSetCodeList(){
- //공통코드
- zbcfGetCodeList( new Array("P0072","P0001","P0311"),
- new Array("/root/init_com/comncdlist/P0072list" //미수분류(개인,계약처)
- ,"/root/init_com/comncdlist/P0001list" //진료형태(입원,외래,응급)
- ,"/root/init_com/comncdlist/P0311list" //납부자정보
- ) );
-
- if (instance1.selectSingleNode("/root/init_com/comncdlist/P0072list") != null)
- {
- model.setValue("/root/init_com/comncdlist/P0072list/P0072/cdnm","-");
- model.setValue("/root/init_com/comncdlist/P0072list/P0072/cdid","-");
- }
-
- if (instance1.selectSingleNode("/root/init_com/comncdlist/P0001list") != null)
- {
- model.setValue("/root/init_com/comncdlist/P0001list/P0001/cdnm","전체");
- model.setValue("/root/init_com/comncdlist/P0001list/P0001/cdid","-");
- }
-
- //원무사용 기초코드 조회(진료과,의사,할인,미수코드)
- submit("TRPAMCOM01");
-
- // 원무 공통코드 조회
- pamfGetCodeList(new Array("P6584"), new Array("/root/paminit/P6584list"));
- }
-
- function fPrintordpaydemand() {
- var row = grd_uncolist.row;
- var cur_row = grd_ordpaydemand.row;
- var quarrow = grd_quar.rows;
-
- //이자금액 , 소송금액 , 이자종료일 받아오기
- submit("TRPAS00720");
- model.setValue("/root/temp/printinfo/pid" , model.getValue("/root/list/unco/uncolist["+row+"]/pid"));
- model.setValue("/root/temp/printinfo/hngnm" , model.getValue("/root/list/unco/uncolist["+row+"]/hngnm"));
- model.setValue("/root/temp/printinfo/addr" , model.getValue("/root/list/unco/uncolist["+row+"]/zipaddr"));
- model.setValue("/root/temp/printinfo/detladdr" , model.getValue("/root/list/unco/uncolist["+row+"]/zipcd"));
- model.setValue("/root/temp/printinfo/orddd" , model.getValue("/root/list/unco/uncolist["+row+"]/orddd"));
- model.setValue("/root/temp/printinfo/orddeptnm" , model.getValue("/root/list/unco/uncolist["+row+"]/orddeptnm"));
- //model.setValue("/root/temp/printinfo/uncoamt" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncorem"));
- //총진료비 구하기
- var totamt = parseInt(model.getValue("/root/hidden/urgereport/law")) +
- parseInt(model.getValue("/root/hidden/urgereport/intr")) +
- parseInt(model.getValue("/root/temp/printinfo/uncoamt"));
- model.setValue("/root/temp/printinfo/totamt" , totamt);
- model.setValue("/root/temp/printinfo/totamtkor" , model.getValue("/root/temp/printinfo/totamt").setAmountToKorean()+"원");
- //진료비 독촉 보고서
- if( grd_ordpaydemand.row >= grd_ordpaydemand.fixedRows && grd_ordpaydemand.col >= grd_ordpaydemand.fixedCols) {
- //독촉장
- if(model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issflag") == "A"){
- model.setValue("/root/send/phoneflag", "A");
- submit("TRPAS00721");
- model.setValue("/root/temp/detail/ordpaydemand/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/temp/detail/ordpaydemand/phone", model.getValue("/root/phone/phdata/pnum") );
- model.setValue("/root/temp/detail/ordpaydemand/bankno", model.getValue("/root/phone/phdata/bankno") );
- model.setValue("/root/temp/detail/ordpaydemand/koraddr", model.getValue("/root/phone/phdata/koraddr") );
- model.setValue("/root/temp/detail/ordpaydemand/engaddr", model.getValue("/root/phone/phdata/engaddr") );
- model.setValue("/root/temp/detail/ordpaydemand/hospnm", model.getValue("/root/phone/phdata/hospnm") );
- model.setValue("/root/temp/detail/ordpaydemand/remfact", model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
- if(model.getValue("/root/temp/printpat") == "N"){ //환자용 독촉장 출력
- exeReportPreview("RPPAS00710", "XMLSTR", "","", "true","","","","","true");
- exeReportPreview("RPPAS00710", "XMLSTR", "","", "true","","","","","true");
- }
- for(var i = 1; i <= quarrow; i++){
- if(model.getValue("/root/list/detail/guarlist["+i+"]/printyn") == "Y"){ //출력여부가 "Y"일때만 출력
- //보증인 이름, 주소, 상세주소 가져오기
- model.setValue("/root/temp/printinfo/grntornm" , model.getValue("/root/list/detail/guarlist["+i+"]/grntornm"));
- model.setValue("/root/temp/printinfo/grntorzipcdaddr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcdaddr") +" "+ model.getValue("/root/list/detail/guarlist["+i+"]/grntordetladdr"));
- // 신우편번호 적용
- if (model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2").length == 2) {
- model.setValue("/root/temp/printinfo/grntordetladdr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd1") + model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2"));
- } else {
- model.setValue("/root/temp/printinfo/grntordetladdr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd1") +"-"+ model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2"));
- }
-
- exeReportPreview("RPPAS00711", "XMLSTR", "","", "true","","","","","true");
- exeReportPreview("RPPAS00711", "XMLSTR", "","", "true","","","","","true");
- }
- }
- //최고장
- }else if(model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issflag") == "B") {
- model.setValue("/root/send/phoneflag", "B");
- submit("TRPAS00721");
- model.setValue("/root/temp/detail/ordpaydemand/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/temp/detail/ordpaydemand/phone", model.getValue("/root/phone/phdata/pnum") );
- model.setValue("/root/temp/detail/ordpaydemand/bankno", model.getValue("/root/phone/phdata/bankno") );
- model.setValue("/root/temp/detail/ordpaydemand/koraddr", model.getValue("/root/phone/phdata/koraddr") );
- model.setValue("/root/temp/detail/ordpaydemand/engaddr", model.getValue("/root/phone/phdata/engaddr") );
- model.setValue("/root/temp/detail/ordpaydemand/hospnm", model.getValue("/root/phone/phdata/hospnm") );
- model.setValue("/root/temp/detail/ordpaydemand/remfact", model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
- if(model.getValue("/root/temp/printpat") == "N"){
- exeReportPreview("RPPAS00740", "XMLSTR", "","", "true","","","","","true");
- exeReportPreview("RPPAS00740", "XMLSTR", "","", "true","","","","","true");
- }
- for(var i = 1; i <= quarrow; i++){
- if(model.getValue("/root/list/detail/guarlist["+i+"]/printyn") == "Y"){
- model.setValue("/root/temp/printinfo/grntornm" , model.getValue("/root/list/detail/guarlist["+i+"]/grntornm"));
- model.setValue("/root/temp/printinfo/grntorzipcdaddr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcdaddr") +" "+ model.getValue("/root/list/detail/guarlist["+i+"]/grntordetladdr"));
- model.setValue("/root/temp/printinfo/grntordetladdr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd1") +"-"+ model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2"));
- exeReportPreview("RPPAS00741", "XMLSTR", "","", "true","","","","","true");
- exeReportPreview("RPPAS00741", "XMLSTR", "","", "true","","","","","true");
- }
- }
- //진료비 납부 통지서(1)
- }else if(model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issflag") == "C") {
- model.setValue("/root/send/phoneflag", "C");
- submit("TRPAS00721");
- model.setValue("/root/temp/detail/ordpaydemand/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/temp/detail/ordpaydemand/phone", model.getValue("/root/phone/phdata/pnum") );
- model.setValue("/root/temp/detail/ordpaydemand/bankno", model.getValue("/root/phone/phdata/bankno") );
- model.setValue("/root/temp/detail/ordpaydemand/koraddr", model.getValue("/root/phone/phdata/koraddr") );
- model.setValue("/root/temp/detail/ordpaydemand/engaddr", model.getValue("/root/phone/phdata/engaddr") );
- model.setValue("/root/temp/detail/ordpaydemand/hospnm", model.getValue("/root/phone/phdata/hospnm") );
- model.setValue("/root/temp/detail/ordpaydemand/remfact", model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
- model.setValue("/root/temp/detail/ordpaydemand/subremfact", model.getValue("/root/phone/phdata/subremfact") );
-
- if(model.getValue("/root/temp/printpat") == "N"){
- exeReportPreview("RPPAS00730", "XMLSTR", "","", "true","","","","","true");
- exeReportPreview("RPPAS00730", "XMLSTR", "","", "true","","","","","true");
- }
- for(var i = 1; i <= quarrow; i++){
- if(model.getValue("/root/list/detail/guarlist["+i+"]/printyn") == "Y"){
- model.setValue("/root/temp/printinfo/grntornm" , model.getValue("/root/list/detail/guarlist["+i+"]/grntornm"));
- model.setValue("/root/temp/printinfo/grntorzipcdaddr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcdaddr") +" "+ model.getValue("/root/list/detail/guarlist["+i+"]/grntordetladdr"));
- model.setValue("/root/temp/printinfo/grntordetladdr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd1") +"-"+ model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2"));
- exeReportPreview("RPPAS00731", "XMLSTR", "","", "true","","","","","true");
- exeReportPreview("RPPAS00731", "XMLSTR", "","", "true","","","","","true");
- }
- }
- //진료비 납부 통지서(2)
- }else if(model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issflag") == "D") {
- model.setValue("/root/send/phoneflag", "D");
- submit("TRPAS00721");
- model.setValue("/root/temp/detail/ordpaydemand/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/temp/detail/ordpaydemand/phone", model.getValue("/root/phone/phdata/pnum") );
- model.setValue("/root/temp/detail/ordpaydemand/bankno", model.getValue("/root/phone/phdata/bankno") );
- model.setValue("/root/temp/detail/ordpaydemand/koraddr", model.getValue("/root/phone/phdata/koraddr") );
- model.setValue("/root/temp/detail/ordpaydemand/engaddr", model.getValue("/root/phone/phdata/engaddr") );
- model.setValue("/root/temp/detail/ordpaydemand/hospnm", model.getValue("/root/phone/phdata/hospnm") );
- model.setValue("/root/temp/detail/ordpaydemand/remfact", model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
- model.setValue("/root/temp/detail/ordpaydemand/subremfact", model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/subremfact") );
- if(model.getValue("/root/temp/printpat") == "N"){
- exeReportPreview("RPPAS00700", "XMLSTR", "","", "true","","","","","true");
- exeReportPreview("RPPAS00700", "XMLSTR", "","", "true","","","","","true");
- }
- for(var i = 1; i <= quarrow; i++){
- if(model.getValue("/root/list/detail/guarlist["+i+"]/printyn") == "Y"){
- model.setValue("/root/temp/printinfo/grntornm" , model.getValue("/root/list/detail/guarlist["+i+"]/grntornm"));
- model.setValue("/root/temp/printinfo/grntorzipcdaddr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcdaddr") +" "+ model.getValue("/root/list/detail/guarlist["+i+"]/grntordetladdr"));
- model.setValue("/root/temp/printinfo/grntordetladdr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd1") +"-"+ model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2"));
- exeReportPreview("RPPAS00701", "XMLSTR", "","", "true","","","","","true");
- exeReportPreview("RPPAS00701", "XMLSTR", "","", "true","","","","","true");
- }
- }
- //진료비 납부 안내서(1)
- }else if(model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issflag") == "E") {
- if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") != "치과미수"){
- model.setValue("/root/send/phoneflag", "E");
- submit("TRPAS00721");
- model.setValue("/root/temp/detail/ordpaydemand/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/temp/detail/ordpaydemand/phone", model.getValue("/root/phone/phdata/pnum") );
- model.setValue("/root/temp/detail/ordpaydemand/bankno", model.getValue("/root/phone/phdata/bankno") );
- model.setValue("/root/temp/detail/ordpaydemand/koraddr", model.getValue("/root/phone/phdata/koraddr") );
- model.setValue("/root/temp/detail/ordpaydemand/engaddr", model.getValue("/root/phone/phdata/engaddr") );
- model.setValue("/root/temp/detail/ordpaydemand/hospnm", model.getValue("/root/phone/phdata/hospnm") );
- model.setValue("/root/temp/detail/ordpaydemand/remfact", model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
- if(model.getValue("/root/temp/printpat") == "N"){
- exeReportPreview("RPPAS00720", "XMLSTR", "","", "true","","","","","true");
- exeReportPreview("RPPAS00720", "XMLSTR", "","", "true","","","","","true");
- }
- }else if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") == "치과미수"){
- model.setValue("/root/send/phoneflag", "Z");
- submit("TRPAS00721");
- model.setValue("/root/temp/detail/ordpaydemand/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/temp/detail/ordpaydemand/phone", model.getValue("/root/phone/phdata/pnum") );
- model.setValue("/root/temp/detail/ordpaydemand/bankno", model.getValue("/root/phone/phdata/bankno") );
- model.setValue("/root/temp/detail/ordpaydemand/koraddr", model.getValue("/root/phone/phdata/koraddr") );
- model.setValue("/root/temp/detail/ordpaydemand/engaddr", model.getValue("/root/phone/phdata/engaddr") );
- model.setValue("/root/temp/detail/ordpaydemand/hospnm", model.getValue("/root/phone/phdata/hospnm") );
- model.setValue("/root/temp/detail/ordpaydemand/remfact", model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
- if(model.getValue("/root/temp/printpat") == "N"){
- exeReportPreview("RPPAS00725", "XMLSTR", "","", "true","","","","","true");
- exeReportPreview("RPPAS00725", "XMLSTR", "","", "true","","","","","true");
- }
- }
- for(var i = 1; i <= quarrow; i++){
- if(model.getValue("/root/list/detail/guarlist["+i+"]/printyn") == "Y"){
- model.setValue("/root/temp/printinfo/grntornm" , model.getValue("/root/list/detail/guarlist["+i+"]/grntornm"));
- model.setValue("/root/temp/printinfo/grntorzipcdaddr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcdaddr") +" "+ model.getValue("/root/list/detail/guarlist["+i+"]/grntordetladdr"));
- model.setValue("/root/temp/printinfo/grntordetladdr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd1") +"-"+ model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2"));
- if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") != "치과미수"){
- exeReportPreview("RPPAS00721", "XMLSTR", "","", "true","","","","","true");
- exeReportPreview("RPPAS00721", "XMLSTR", "","", "true","","","","","true");
- }else if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") == "치과미수"){
- exeReportPreview("RPPAS00726", "XMLSTR", "","", "true","","","","","true");
- exeReportPreview("RPPAS00726", "XMLSTR", "","", "true","","","","","true");
- }
- }
- }
- //진료비 납부 안내서(2)
- }else if(model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issflag") == "H") {
- if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") != "치과미수"){
- model.setValue("/root/send/phoneflag", "H");
- submit("TRPAS00721");
- model.setValue("/root/temp/detail/ordpaydemand/instcd" , getUserInfo("dutplceinstcd"));
- model.setValue("/root/temp/detail/ordpaydemand/phone" , model.getValue("/root/phone/phdata/pnum") );
- model.setValue("/root/temp/detail/ordpaydemand/bankno" , model.getValue("/root/phone/phdata/bankno") );
- model.setValue("/root/temp/detail/ordpaydemand/koraddr" , model.getValue("/root/phone/phdata/koraddr") );
- model.setValue("/root/temp/detail/ordpaydemand/engaddr" , model.getValue("/root/phone/phdata/engaddr") );
- model.setValue("/root/temp/detail/ordpaydemand/hospnm" , model.getValue("/root/phone/phdata/hospnm") );
- model.setValue("/root/temp/detail/ordpaydemand/remfact" , model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
- if(model.getValue("/root/temp/printpat") == "N"){
- exeReportPreview("RPPAS00722", "XMLSTR", "","", "true","","","","","true");
- exeReportPreview("RPPAS00722", "XMLSTR", "","", "true","","","","","true");
- }
- }else if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") == "치과미수"){
- model.setValue("/root/send/phoneflag", "Z");
- submit("TRPAS00721");
- model.setValue("/root/temp/detail/ordpaydemand/instcd" , getUserInfo("dutplceinstcd"));
- model.setValue("/root/temp/detail/ordpaydemand/phone" , model.getValue("/root/phone/phdata/pnum") );
- model.setValue("/root/temp/detail/ordpaydemand/bankno" , model.getValue("/root/phone/phdata/bankno") );
- model.setValue("/root/temp/detail/ordpaydemand/koraddr" , model.getValue("/root/phone/phdata/koraddr") );
- model.setValue("/root/temp/detail/ordpaydemand/engaddr" , model.getValue("/root/phone/phdata/engaddr") );
- model.setValue("/root/temp/detail/ordpaydemand/hospnm" , model.getValue("/root/phone/phdata/hospnm") );
- model.setValue("/root/temp/detail/ordpaydemand/remfact" , model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
- if(model.getValue("/root/temp/printpat") == "N"){
- exeReportPreview("RPPAS00722", "XMLSTR", "","", "true","","","","","true");
- exeReportPreview("RPPAS00722", "XMLSTR", "","", "true","","","","","true");
- }
- }
- for(var i = 1; i <= quarrow; i++){
- if(model.getValue("/root/list/detail/guarlist["+i+"]/printyn") == "Y"){
- model.setValue("/root/temp/printinfo/grntornm" , model.getValue("/root/list/detail/guarlist["+i+"]/grntornm"));
- model.setValue("/root/temp/printinfo/grntorzipcdaddr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcdaddr") +" "+ model.getValue("/root/list/detail/guarlist["+i+"]/grntordetladdr"));
- model.setValue("/root/temp/printinfo/grntordetladdr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd1") +"-"+ model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2"));
- // if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") != "치과미수"){
- exeReportPreview("RPPAS00723", "XMLSTR", "","", "true","","","","","true");
- exeReportPreview("RPPAS00723", "XMLSTR", "","", "true","","","","","true");
- // }else if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") == "치과미수"){
- // exeReportPreview("RPPAS00726", "XMLSTR", "","", "true","","","","","true");
- // exeReportPreview("RPPAS00726", "XMLSTR", "","", "true","","","","","true");
- // }
- }
- }
- }
- //model.setValue("/root/list/detail/ordpaydemand["+cur_row+"]/sendflag", "upOrdPayDemand");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="color:#000000; ">
- <group id="group2" style="left:0px; top:23px; width:1200px; height:37px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:0px; width:1190px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1135px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( model.getValue("/root/source/pid") == "" ){
- messageBox("환자번호를 입력하세요!!", "E999", "");
- return false;
- }
-
- model.setValue("/root/send/pid" , model.getValue("/root/source/pid"));
- model.setValue("/root/send/hngnm" , model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/temp/checkall" , "N");
- submit("TRPAS00700");
- grd_uncolist.rebuildStyle();
- for(var i=0; i <= getNodesetCount("/root/list/unco/uncolist/uncorem"); i++){
- if(model.getValue("/root/list/unco/uncolist["+ i +"]/suppkindnm") == "소계"){
- grd_uncolist.rowStyle(i,"data","background-color") = "#99ff99";
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" visibility="visible" style="x1:1125px; y1:5px; x2:1125px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption4" class="search_name" style="left:10px; top:10px; width:78px; height:17px; ">등록번호</caption>
- <input id="ipt_pid" ref="/root/source/pid" style="left:90px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_pid" , "DOMActivate");
-
- ]]>
- </script>
- </input>
- <button id="btn_pid" class="icon_search" style="left:375px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/patinfo/patinfolist/pid" , model.getValue("/root/source/pid"));
- var ptbs_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var hometel = model.getValue("/root/main/patinfo/patinfolist/hometel");
- var row = grd_uncolist.row;
- // 화면 초기화
- //fInitialize();
- model.removeNodeset("/root/send/orddd");
- model.removeNodeset("/root/send/uncocd");
- model.removeNodeset("/root/list/detail/guarlist");
- model.removeNodeset("/root/list/detail/acptlist");
- model.removeNodeset("/root/list/detail/lawsulist");
- model.removeNodeset("/root/list/detail/ordpaydemand");
- model.makeNode("/root/send/orddd");
- model.makeNode("/root/send/uncocd");
-
- if (ptbs_pid == null || ptbs_pid ==" " || ptbs_pid == "") {
- model.resetInstanceNode("/root/send/data1");
- } else {
- model.setValue("/root/send/data1/pid", ptbs_pid);
- model.setValue("/root/send/data1/srchcond", "1");
- }
-
- model.setValue("/root/send/data1/checkfnexam", "1");
- //model.setValue("/root/send/data1/autoflag", "NON"); //조회내역 없을경우 자동 화면 닫기
-
- modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data1", "/root/send");
- //modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data9", "/root/send");
- model.resetInstanceNode("/root/send/data1");
-
- btn_search.dispatch("DOMActivate");
- //model.setValue("/root/list/unco/uncolist[" + row + "]/hometel" , hometel);
- ]]>
- </script>
- </button>
- <output id="output2" ref="/root/main/patinfo/patinfolist/rrgstno1" class="output_fix" style="left:269px; top:9px; width:45px; height:19px; "/>
- <output id="output3" ref="/root/main/patinfo/patinfolist/rrgstno2" class="output_fix" style="left:316px; top:9px; width:55px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:420px; top:10px; width:90px; height:17px; ">미수구분</caption>
- <input id="input1" ref="/root/temp/acptdd" inputtype="date" style="left:735px; top:9px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/temp/printinfo/yyyy" , model.getValue("/root/temp/acptdd").substr(0,4));
- model.setValue("/root/temp/printinfo/mm" , model.getValue("/root/temp/acptdd").substr(4,2));
- model.setValue("/root/temp/printinfo/dd" , model.getValue("/root/temp/acptdd").substr(6,2));
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:630px; top:10px; width:102px; height:17px; ">납부기간입력</caption>
- <select1 id="cmd_uncocd" ref="/root/send/uncocd" appearance="minimal" style="left:500px; top:9px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/uncocd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(model.getValue("/root/source/pid") == "" || model.getValue("/root/send/hngnm") == ""){
- return;
- }else{
- if(model.getValue("/root/source/pid") == ""){
- btn_hngnm.dispatch("DOMActivate");
- }else{
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </select1>
- <input id="input2" ref="/root/send/hngnm" style="left:204px; top:9px; width:62px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_hngnm" , "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
- <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">미수금관리</caption>
- </group>
- <line id="line3" class="line_1" style="x1:6px; y1:80px; x2:1194px; y2:80px; "/>
- <caption id="caption6" class="tit_2" style="left:10px; top:65px; width:160px; height:13px; ">미수내역</caption>
- <datagrid id="grd_uncolist" nodeset="/root/list/unco/uncolist" caption="^등록번호^미수경로^미수코드^미수구분^성명^진료과명^유형^보조유형^입원일자^단기시효^장기시효^발생일자^미수번호^미수분류^미수금액^미수입금액^미수잔액^보증^이자^소송^독려^전화번호^휴대전화^우편번호^주소^참고사항" colsep="^" colwidth="20, 85, 60, 65, 100, 70, 100, 80, 80, 85, 85, 85, 85, 85, 100, 80, 80, 80, 50, 50, 50, 50, 100, 100, 74, 245, 100" mergecellsfixedrows="bycolrec" rowsep="|" subtotalposition="below" style="left:5px; top:85px; width:1190px; height:210px; text-align:center; ">
- <col checkvalue="Y,N" ref="check" type="checkbox" visibility="hidden"/>
- <col ref="pid"/>
- <col disabled="true" ref="ordtype" type="combo">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col ref="uncocd" visibility="hidden"/>
- <col ref="unconm"/>
- <col ref="hngnm"/>
- <col ref="orddeptnm" visibility="visible"/>
- <col ref="insukindnm"/>
- <col ref="suppkindnm"/>
- <col ref="orddd" format="9999-99-99"/>
- <col ref="shortdd" format="9999-99-99"/>
- <col ref="longdd" format="9999-99-99"/>
- <col ref="rcptdd" format="9999-99-99"/>
- <col ref="uncono"/>
- <col ref="uncocls" visibility="hidden"/>
- <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="uncorem" format="(-)#,###" style="text-align:right; "/>
- <col ref="guarcount" format="#,###"/>
- <col ref="acptcount" visibility="visible"/>
- <col ref="lawcount"/>
- <col ref="ordpaycount"/>
- <col ref="hometel"/>
- <col ref="mpphontel"/>
- <col ref="zipcd"/>
- <col ref="zipaddr"/>
- <col ref="remfact"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_uncolist.col == grd_uncolist.colRef("rcptdd") && grd_uncolist.isCell(event.target) && grd_uncolist.mouseRow >= grd_uncolist.fixedrows && model.getValue("/root/list/unco/uncolist["+grd_uncolist.row+"]/suppkindnm") != "소계") {
- setParameter("pid", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("pid")));
- setParameter("rcptdd", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("rcptdd")));
-
- open("../../../pam/rcptteamstatsweb/xrw/SPPAS00701_미수입금내역", "", "20", "80" ,"SPPAS00701_미수입금내역", "", "");
- }else if(isDataCell()){
- /** 추가 요청 사항
- 발생일자가 동일할시에는 체크상태의
- 미수잔액금을 모두 더해 출력물에 표시한다
- **/
- var uncomoney = 0;
- var row = grd_uncolist.row;
- var rcptdd = model.getValue("/root/list/unco/uncolist[check = 'Y']/rcptdd");
- var uncorem = model.getValue("/root/list/unco/uncolist[" + row + "]/uncorem");
- model.setValue("/root/source/pid" , model.getValue("/root/list/unco/uncolist["+row+"]/pid"));
- model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist["+row+"]/pid"));
- model.refresh();
- //소계만 찍을수 있도록 요청함
- if(model.getValue("/root/list/unco/uncolist["+row+"]/suppkindnm") == "소계"){
- //클릭시 체크 "Y" or "N"
- if(model.getValue("/root/list/unco/uncolist[" + row + "]/check") == ""){
- model.setValue("/root/list/unco/uncolist[" + row + "]/check" , "Y");
- }else if(model.getValue("/root/list/unco/uncolist[" + row + "]/check") == "Y") {
- model.setValue("/root/list/unco/uncolist[" + row + "]/check" , "N");
- model.removeNodeset("/root/list/detail/guarlist");
- model.removeNodeset("/root/list/detail/acptlist");
- model.removeNodeset("/root/list/detail/lawsulist");
- model.removeNodeset("/root/list/detail/ordpaydemand");
- model.refresh();
- model.setValue("/root/list/unco/uncolist[" + row + "]/check" , "");
- }
- //선택된 미수금 더하고 빼기
- if(model.getValue("/root/temp/checkall") == "N") {
- for(var i = 0; i <= getNodesetCount("/root/list/unco/uncolist/uncorem"); i++){
- if(model.getValue("/root/list/unco/uncolist["+i+"]/check") == "Y"){
- uncomoney += parseInt(model.getValue("/root/list/unco/uncolist["+i+"]/uncorem"));
- }
- if(model.getValue("/root/list/unco/uncolist["+i+"]/check") == "N"){
- uncomoney -= parseInt(model.getValue("/root/list/unco/uncolist["+i+"]/uncorem"));
- }
- }
- }
- }else{
- messageBox("소계만 선택이" , "I006");
- return;
- }
- //필수 컬럼
- model.setValue("/root/send/quarflag" , "quar");
- model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
- model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
- model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
- model.setValue("/root/send/uncocd" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncocd"));
- //submit("TRPAS00700");
- submit("TRPAS00710");
- submit("TRPAS00720");
- // if(submit("TRPAS00720")){
- model.makeNode("/root/temp/printinfo/pid");
- model.makeNode("/root/temp/printinfo/hngnm");
- model.makeNode("/root/temp/printinfo/addr");
- model.makeNode("/root/temp/printinfo/detladdr");
- model.makeNode("/root/temp/printinfo/uncoamt");
- model.makeNode("/root/temp/printinfo/intramt");
- model.makeNode("/root/temp/printinfo/grntornm");
- model.makeNode("/root/temp/printinfo/grntorzipcdaddr");
- model.makeNode("/root/temp/printinfo/grntordetladdr");
- model.makeNode("/root/temp/printinfo/uncorem");
- model.makeNode("/root/temp/printinfo/totamt");
- model.makeNode("/root/temp/printinfo/totamtkor");
- // if(uncomoney != "0"){
- model.setValue("/root/temp/printinfo/uncoamt" , uncomoney);
- // }
- model.setValue("/root/temp/printinfo/uncorem" , model.getValue("/root/temp/printinfo/uncoamt").setAmountToKorean()+"원");
- // }
- setParameter("SMPAM00100_PID_PARM" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- //model.setValue("/root/send/updatedata/datalist" , model.getValue("/root/list/uncolist/pid"));
- //model.copyNode("/root/send/updatedata/datalist" , "/root/list/uncolist");
- model.refresh();
- }
-
-
-
- ]]>
- </script>
- </datagrid>
- <line id="line4" class="line_1" style="x1:5px; y1:550px; x2:595px; y2:550px; "/>
- <caption id="caption8" class="tit_2" style="left:5px; top:535px; width:160px; height:14px; ">이자내역</caption>
- <datagrid id="grd_ordpaydemand" nodeset="/root/list/detail/ordpaydemand" caption="^구분^시행일자^발행부수^비고^pid^rcptdd^rcptno^orddd^cretno^endyn^seqno^sendflag^instcd^bankno^koraddr^engaddr^hospnm^subremfact" colsep="^" colwidth="20, 158, 131, 58, 199, 37, 33, 35, 29, 38, 46, 36, 45, 50, 39, 38, 41, 40, 41" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:605px; top:555px; width:590px; height:200px; text-align:center; ">
- <col checkvalue="Y,N" ref="check" type="checkbox" visibility="hidden"/>
- <col disabled="true" ref="issflag" type="combo">
- <choices>
- <item>
- <label>독촉장</label>
- <value>A</value>
- </item>
- <item>
- <label>최고장</label>
- <value>B</value>
- </item>
- <item>
- <label>진료비 납부 통지서(1)</label>
- <value>C</value>
- </item>
- <item>
- <label>진료비 납부 통지서(2)</label>
- <value>D</value>
- </item>
- <item>
- <label>진료비 납부 안내서(1)</label>
- <value>E</value>
- </item>
- <item>
- <label>진료비 납부 안내서(2)</label>
- <value>H</value>
- </item>
- <item>
- <label>안내서 저장용</label>
- <value>F</value>
- </item>
- <item>
- <label>기타</label>
- <value>G</value>
- </item>
- </choices>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fPrintordpaydemand();
- ]]>
- </script>
- </col>
- <col ref="issdt" type="output" format="9999-99-99 99:99:99"/>
- <col ref="isscnt" visibility="hidden"/>
- <col ref="remfact" type="input">
- <script type="javascript" ev:evnet="ondblclick">
- <![CDATA[
- var cur_row = grd_ordpaydemand.row;
- if(model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issflag") != "C") {
- grd_ordpaydemand.disabled = false;
- }
- ]]>
- </script>
- </col>
- <col ref="pid" visibility="hidden"/>
- <col ref="rcptdd" visibility="hidden"/>
- <col ref="rcptno" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="endyn" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="sendflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="bankno" visibility="hidden"/>
- <col ref="koraddr" visibility="hidden"/>
- <col ref="engaddr" visibility="hidden"/>
- <col ref="hospnm" visibility="hidden"/>
- <col ref="subremfact" visibility="hidden"/>
- <col ref="phone" visibility="hidden"/>
- </datagrid>
- <line id="line5" class="line_1" style="x1:605px; y1:320px; x2:1195px; y2:320px; "/>
- <caption id="caption9" class="tit_2" style="left:10px; top:306px; width:160px; height:13px; ">보증인내역</caption>
- <caption id="caption10" class="tit_2" style="left:605px; top:305px; width:160px; height:14px; ">소송내역</caption>
- <line id="line6" class="line_1" style="x1:5px; y1:321px; x2:595px; y2:321px; "/>
- <caption id="caption11" class="tit_2" style="left:605px; top:535px; width:160px; height:14px; ">진료비독촉내역</caption>
- <line id="line7" class="line_1" style="x1:605px; y1:550px; x2:1195px; y2:550px; "/>
- <datagrid id="grd_acptlist" nodeset="/root/list/detail/acptlist" caption="^정산구분^미수구분^수납일자^수납시간^이자대상금액^이자시작일자^이자종료일자^이자율^이자금액^수납금액^대손금액^이자미수잔액^비고^pid^rcptdd^rcptno^seqno^orddd^cretno^insukind^suppkind^rcptstat^uncorem^ordtype^uncoamt^uncocd^cashamt^cardamt^onlineamt" colsep="^" colwidth="20, 55, 55, 100, 100, 80, 88, 88, 48, 80, 80, 87, 100, 132, 60, 41, 45, 39, 46, 40, 55, 39, 49, -13, 42, 41, 47, 48, 46, 43" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:555px; width:590px; height:200px; text-align:center; ">
- <col checkvalue="Y,N" ref="check" type="checkbox" visibility="hidden"/>
- <col disabled="true" ref="uncorcptflag" 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 disabled="true" ref="uncoflag" type="combo">
- <choices>
- <item>
- <label>이자</label>
- <value>10</value>
- </item>
- </choices>
- </col>
- <col ref="rcptexecdd" format="yyyy-mm-dd"/>
- <col ref="rcpttm" visibility="visible" format="99:99:99"/>
- <col ref="intramt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col disabled="true" ref="intrfromdd" type="inputdate"/>
- <col ref="intrtodd" type="inputdate">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- /*
- 이자종료일자을 수정가능하게 해달라는 요청
- 이자종료일자를 수정하면 금액이 변동됨
- 계산을 위해 이자대상금액을 끌고 와야 해서 이자종료일자 더블클릭시
- 이자대상금액을 끌고 오게 만듬
- */
- if(isDataCell()){
- var urow = grd_uncolist.row;
- var arow = grd_acptlist.row;
- model.makeNode("/root/list/detail/acptlist["+arow+"]/intramt");
- var intramt = model.getValue("/root/list/unco/uncolist["+urow+"]/uncorem");
- model.setValue("/root/list/detail/acptlist["+arow+"]/intramt" , intramt);
- grd_acptlist.refresh();
- model.refresh();
- }
- ]]>
- </script>
- </col>
- <col disabled="true" ref="intrrate" type="combo">
- <choices>
- <itemset nodeset="/root/paminit/P6584list/P6584">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="debtamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="acptuncorem" format="(-)#,###" style="text-align:right; "/>
- <col/>
- <col ref="pid" visibility="hidden"/>
- <col ref="rcptdd" visibility="hidden"/>
- <col ref="rcptno" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="insukind" visibility="hidden"/>
- <col ref="suppkind" visibility="hidden"/>
- <col ref="rcptstat" visibility="hidden"/>
- <col ref="uncorem" visibility="hidden"/>
- <col ref="ordtype" visibility="hidden"/>
- <col ref="uncoamt" visibility="hidden"/>
- <col ref="uncocd" visibility="hidden"/>
- <col ref="cashamt" visibility="hidden"/>
- <col ref="cardamt" visibility="hidden"/>
- <col ref="onlineamt" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //이자 구하기
- var cur_row = grd_acptlist.row;
- var uncorcptflag = model.getValue("/root/list/detail/acptlist[" + cur_row + "]/uncorcptflag");
- var intramt = parseInt(model.getValue("/root/list/detail/acptlist[" + cur_row + "]/intramt"));
- var fromdd = model.getValue("/root/list/detail/acptlist[" + cur_row + "]/intrfromdd");
- var todd = model.getValue("/root/list/detail/acptlist[" + cur_row + "]/intrtodd");
- var gigan = parseInt(getDateInterval(fromdd, todd));
- var intryul = parseInt(model.getValue("/root/list/detail/acptlist[" + cur_row + "]/intrrate"))/100;
- //이자구하기 (이자대상금액 X 기간 X 이자율) / 365 - 1원단위 절삭
- var intramt = (intramt * gigan * intryul) /365 - ((intramt * gigan * intryul) /365)%10;
- if(uncorcptflag == "1") {
- //이자종료일이 99991231 일시에는 이자율 구하지 않음
- if(todd == "99991231"){
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/debtamt" , "0");
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/cashamt" , "0");
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncoamt" , "0");
-
- }else{
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/debtamt" , "0");
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/cashamt" , "0");
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncoamt" , intramt);
- }
- }
- else if(uncorcptflag == "2") {
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncoamt" , "0");
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/debtamt" , "0");
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/cashamt" , intramt);
- }
- else if(uncorcptflag == "3") {
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncoamt" , "0");
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/cashamt" , "0");
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/debtamt" , intramt);
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- /* var cur_row = grd_acptlist.row;
- var uncorcptflag = model.getValue("/root/list/detail/acptlist[" + cur_row + "]/uncorcptflag");
- var intrtodd = model.getValue("/root/list/detail/acptlist[" + cur_row + "]/intrtodd");
- var uncoamt = model.getValue("/root/list/detail/acptlist[" + cur_row + "]/uncoamt");
- if(uncorcptflag == "1" && intrtodd != "" && uncoamt != "") {
- model.makeNode("/root/hidden/urgereport/intrtodd");
- if(model.getValue("/root/hidden/urgereport/intrtodd") == "") {
- model.setValue("/root/hidden/urgereport/intrtodd" , intrtodd);
- }
- }
- */
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_quar" nodeset="/root/list/detail/guarlist" caption="^출력^보증인명^주민번호^주민번호^성별^관계^집전화^사무실전화^휴대폰번호^우편번호^우편번호^우편일련번호^우편주소^상세주소^미수설명여부^pid^rcptdd^rcptno^orddd^crentno^seqno^rcptstat" colsep="^" colwidth="20, 40, 100, 55, 55, 39, 80, 80, 80, 85, 39, 39, 79, 150, 200, 100, 40, 35, 33, 33, 38, 36, 45" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:326px; width:590px; height:200px; text-align:center; ">
- <col checkvalue="Y,N" ref="check" type="checkbox" visibility="hidden"/>
- <col ref="printyn" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="grntornm" type="input"/>
- <col ref="grntorrrgstno1" type="input" format="999999" maxlength="6"/>
- <col ref="grntorrrgstno2" type="input" format="9999999" maxlength="7"/>
- <col disabled="true" ref="grntorsex" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="grntorrel" type="input"/>
- <col ref="grntorhometel" type="input" visibility="visible" format="999-999-9999"/>
- <col ref="grntorofficetel" type="input" format="999-999-9999"/>
- <col ref="grntormpphontel" type="input" visibility="visible" format="999-9999-9999"/>
- <col ref="grntorzipcd1">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()){
- //우편번호 창 더블클릭시 주소검색 팝업창 띄우기
- zbcfOpenZipCodeList("combination", "", "/root/main/ptbs/ptbs_zipcd1", "/root/main/ptbs/ptbs_zipcd2", "/root/main/ptbs/ptbs_zipcdseq", "/root/main/ptbs/ptbs_highaddr", "hangul", "/root/main/ptbs/ptbs_detladdr");
- model.setFocus("ipt_detladdr");
- var row = grd_quar.row;
- var post1 = model.getValue("/root/main/ptbs/ptbs_zipcd1");
- var post2 = model.getValue("/root/main/ptbs/ptbs_zipcd2");
- var grntorzipcdseq = model.getValue("/root/main/ptbs/ptbs_zipcdseq");
- var grntorzipcdaddr = model.getValue("/root/main/ptbs/ptbs_highaddr");
- var grntordetladdr = model.getValue("/root/main/ptbs/ptbs_detladdr");
- model.setValue("/root/list/detail/guarlist["+ row +"]/grntorzipcd1" , post1);
- model.setValue("/root/list/detail/guarlist["+ row +"]/grntorzipcd2" , post2);
- model.setValue("/root/list/detail/guarlist["+ row +"]/grntorzipcdseq" , grntorzipcdseq);
- model.setValue("/root/list/detail/guarlist["+ row +"]/grntorzipcdaddr" , grntorzipcdaddr);
- model.setValue("/root/list/detail/guarlist["+ row +"]/grntordetladdr" , grntordetladdr);
- model.setValue("/root/list/detail/guarlist["+ row +"]/uncodescyn" , "Y");
- }
- ]]>
- </script>
- </col>
- <col ref="grntorzipcd2"/>
- <col ref="grntorzipcdseq" visibility="hidden"/>
- <col ref="grntorzipcdaddr" type="input"/>
- <col ref="grntordetladdr" type="input"/>
- <col ref="uncodescyn" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="rcptdd" visibility="hidden"/>
- <col ref="rcptno" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="rcptstat" visibility="hidden"/>
- </datagrid>
- <button id="button3" class="btn2_letter3" style="left:452px; top:301px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/pid") == "" || model.getValue("/root/send/orddd") == ""){
- messageBox("미수내역을","C002");
- return;
- }
- grd_quar.addItem();
- var cur_row = grd_quar.rows - 1;
- var row = grd_uncolist.row;
- //var bottom = grd_quar.rows - grd_quar.fixedRows -1;
- model.setValue("/root/list/detail/guarlist[" + cur_row + "]/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- model.setValue("/root/list/detail/guarlist[" + cur_row + "]/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
- model.setValue("/root/list/detail/guarlist[" + cur_row + "]/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
- model.setValue("/root/list/detail/guarlist[" + cur_row + "]/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
- model.setValue("/root/list/detail/guarlist[" + cur_row + "]/cretno" , model.getValue("/root/list/unco/uncolist[" + row + "]/cretno"));
- model.setValue("/root/list/detail/guarlist[" + cur_row + "]/printyn" , "Y");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn5_letter2" style="left:508px; top:301px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var i = grd_quar.row;
-
- //디비에 입력되지 않은 데이터는 그리드에서만 삭제한다.
- if (grd_quar.rowStatus(i) == "1" || grd_quar.rowStatus(i) == "3"){
-
- grd_quar.deleteItem( i );
- }else{
-
- grd_quar.addStatus( i, "delete");
-
- if(messageBox("선택된 행의 보증인내역을", "Q001") != 6) return;
- }
- //삭제할 행의 정보를 send에 넣는다.
- model.resetInstanceNode("/root/send/updatedata");
- model.setValue("root/send/updatedata/datalist", grd_quar.getUpdateData("delete"));
-
- if ( submit("TXPAS00710") ) {
- var row = grd_uncolist.row;
- model.setValue("/root/send/quarflag" , "quar");
- model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
- model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
- model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
- submit("TRPAS00710");
- }
- model.removeNodeset("/root/send/updatedata/datalist");
- model.makeNode("/root/send/updatedata/datalist");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn5_letter2" style="left:553px; top:301px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_quar.rows - grd_quar.fixedRows;
-
- if( cur_row > 0 ){
- if(messageBox("보증인내역을 저장 하시겠습니까?", "Q999") != 6) return;
-
- model.setValue("/root/send/updatedata/datalist",grd_quar.getUpdateData());
-
- if ( submit("TXPAS00710") ) {
-
- grd_quar.clearStatus();
- var row = grd_uncolist.row;
-
- model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
- model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
- model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
- submit("TRPAS00710");
- }
-
- model.removeNodeset("/root/send/updatedata/datalist");
- model.makeNode("/root/send/updatedata/datalist");
- model.refresh();
- }else{
- return false;
- }
- return true;
- ]]>
- </script>
- </button>
- <button id="button15" class="btn2_letter3" style="left:1051px; top:530px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/pid") == "" || model.getValue("/root/send/orddd") == ""){
- messageBox("미수내역을","C002");
- return;
- }
- // 2011.12.15 L.E.J 첫 행에 행추가
- // grd_ordpaydemand.addItem();
- // var cur_row = grd_ordpaydemand.row;
- grd_ordpaydemand.insertitem(0,"after");
- var cur_row = grd_ordpaydemand.row;
- var row = grd_uncolist.row;
- //var bottom = grd_quar.rows - grd_quar.fixedRows -1;
- model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
- model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
- model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
- model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/cretno" , model.getValue("/root/list/unco/uncolist[" + row + "]/cretno"));
- model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/seqno" , model.getValue("/root/list/unco/uncolist[" + row + "]/seqno"));
- model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issdt" , getCurrentDate() + getCurrentTime());
- model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/endyn" , "N");
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button16" class="btn5_letter2" style="left:1107px; top:530px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var i = grd_ordpaydemand.row;
-
- //디비에 입력되지 않은 데이터는 그리드에서만 삭제한다.
- if (grd_ordpaydemand.rowStatus(i) == "1" || grd_ordpaydemand.rowStatus(i) == "3"){
-
- grd_ordpaydemand.deleteItem( i );
- }else{
-
- grd_ordpaydemand.addStatus( i, "delete");
-
- if(messageBox("선택된 행의 독촉내역을", "Q001") != 6) return;
- }
- //삭제할 행의 정보를 send에 넣는다.
- model.resetInstanceNode("/root/send/updatedata");
- model.setValue("root/send/updatedata/datalist", grd_ordpaydemand.getUpdateData("delete"));
-
- if ( submit("TXPAS00730") ) {
- var row = grd_uncolist.row;
-
- model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
- model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
- model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
- submit("TRPAS00710");
- }
- model.removeNodeset("/root/send/updatedata/datalist");
- model.makeNode("/root/send/updatedata/datalist");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button17" class="btn5_letter2" style="left:1152px; top:530px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_ordpaydemand.rows - grd_ordpaydemand.fixedRows;
- if( cur_row > 0 ){
- if(messageBox("해당 독촉내역을 출력 하시겠습니까?", "Q999") == 6) {
- model.setValue("/root/send/updatedata/datalist",grd_ordpaydemand.getUpdateData());
- model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/isscnt" , 1);
-
- if ( submit("TXPAS00730", "TRUE") ) {
- fPrintordpaydemand();
-
- grd_ordpaydemand.clearStatus();
- var row = grd_uncolist.row;
- model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
- model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
- model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
-
- submit("TRPAS00710");
- }
-
- }else {
- model.setValue("/root/send/updatedata/datalist",grd_ordpaydemand.getUpdateData());
- model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/isscnt" , 0);
-
- if ( submit("TXPAS00730", "TRUE") ) {
- grd_ordpaydemand.clearStatus();
- var row = grd_uncolist.row;
- model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
- model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
- model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
-
- submit("TRPAS00710");
- }
- }
-
- model.removeNodeset("/root/send/updatedata/datalist");
- model.makeNode("/root/send/updatedata/datalist");
- model.refresh();
- }else{
- return false;
- }
- return true;
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:451px; top:530px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/pid") == "" || model.getValue("/root/send/orddd") == ""){
- messageBox("미수내역을","C002");
- return;
- }
- grd_acptlist.addItem();
- var cur_row = grd_acptlist.rows - 1;
- var row = grd_uncolist.row;
- //var bottom = grd_quar.rows - grd_quar.fixedRows -1;
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/cretno" , model.getValue("/root/list/unco/uncolist[" + row + "]/cretno"));
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/insukind" , model.getValue("/root/list/unco/uncolist[" + row + "]/insukind"));
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/suppkind" , model.getValue("/root/list/unco/uncolist[" + row + "]/suppkind"));
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncocd" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncocd"));
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncoamt" , "0");
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncorcptflag" , "1");
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/cashamt" , "0");
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/cardamt" , "0");
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/onlineamt" , "0");
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/intramt" , model.getValue("/root/temp/printinfo/uncoamt"));
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/ordtype" , model.getValue("/root/list/unco/uncolist[" + row + "]/ordtype"));
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/debtamt" , "0");
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/rcptstat" , "Y");
- model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncoflag" , "10");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button6" class="btn5_letter2" style="left:507px; top:530px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var i = grd_acptlist.row;
-
- //디비에 입력되지 않은 데이터는 그리드에서만 삭제한다.
- if (grd_acptlist.rowStatus(i) == "1" || grd_acptlist.rowStatus(i) == "3"){
-
- grd_acptlist.deleteItem( i );
- }else{
-
- grd_acptlist.addStatus( i, "delete");
-
- if(messageBox("선택된 행의 수납내역을", "Q001") != 6) return;
- }
- //삭제할 행의 정보를 send에 넣는다.
- model.resetInstanceNode("/root/send/updatedata");
- model.setValue("root/send/updatedata/datalist", grd_acptlist.getUpdateData("delete"));
-
- if ( submit("TXPAS00720") ) {
- var row = grd_uncolist.row;
-
- model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
- model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
- model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
- submit("TRPAS00710");
- }
- model.removeNodeset("/root/send/updatedata/datalist");
- model.makeNode("/root/send/updatedata/datalist");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button7" class="btn5_letter2" style="left:552px; top:530px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 수납자 마감여부 체크하여 처리
- if (isMagmAprv()) {
- return false; // 마감결제 완료되어있으므로 더이상 진행하지 않음
- }
-
- var cur_row = grd_acptlist.rows - grd_acptlist.fixedRows;
-
- if( cur_row > 0 ){
-
- if(messageBox("수납내역을 저장 하시겠습니까?", "Q999") != 6) return;
-
- model.setValue("/root/send/updatedata/datalist",grd_acptlist.getUpdateData());
-
- if ( submit("TXPAS00720") ) {
-
- grd_acptlist.clearStatus();
- var row = grd_uncolist.row;
-
- model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
- model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
- model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
- submit("TRPAS00710");
- }
-
- model.removeNodeset("/root/send/updatedata/datalist");
- model.makeNode("/root/send/updatedata/datalist");
- model.refresh();
- }else{
- return false;
- }
- return true;
- ]]>
- </script>
- </button>
- <datagrid id="grd_lawsulist" nodeset="/root/list/detail/lawsulist" caption="^정산구분^미수구분^수납시간^소송비용^수납금액^대손금액^비고^intrrate^pid^rcptdd^rcptno^seqno^orddd^cretno^insukind^suppkind^rcptstat^uncorem^ordtype^uncoamt^uncocd^cashamt^cardamt^onlineamt" colsep="^" colwidth="20, 55, 80, 100, 80, 80, 80, 218, 48, 60, 41, 45, 39, 46, 40, 55, 39, 49, 44, 42, 41, 46, 41, 37, 39" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:605px; top:325px; width:590px; height:200px; text-align:center; ">
- <col checkvalue="Y,N" ref="check" type="checkbox" visibility="hidden"/>
- <col disabled="true" ref="uncorcptflag" 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 disabled="true" ref="uncoflag" type="combo">
- <choices>
- <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="rcpttm" visibility="hidden"/>
- <col disabled="true" ref="uncoamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col disabled="true" ref="rcptamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col disabled="true" ref="debtamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="remfact" type="input"/>
- <col ref="intrrate" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="rcptdd" visibility="hidden"/>
- <col ref="rcptno" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="insukind" visibility="hidden"/>
- <col ref="suppkind" visibility="hidden"/>
- <col ref="rcptstat" visibility="hidden"/>
- <col ref="uncorem" visibility="hidden"/>
- <col ref="ordtype" visibility="hidden"/>
- <col ref="uncoamt" visibility="hidden"/>
- <col ref="uncocd" visibility="hidden"/>
- <col ref="cashamt" visibility="hidden"/>
- <col ref="cardamt" visibility="hidden"/>
- <col ref="onlineamt" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var row = grd_uncolist.row;
- var cur_row = grd_lawsulist.row;
- var uncorcptflag = model.getValue("/root/list/detail/lawsulist[" + cur_row + "]/uncorcptflag");
- var rcptamt = model.getValue("/root/list/detail/lawsulist[" + cur_row + "]/rcptamt");
-
- if(uncorcptflag == "1") {
- //model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/uncoamt" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncoamt"));
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cashamt" , "0");
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/debtamt" , "0");
- }else if(uncorcptflag == "2") {
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/uncoamt" , "0");
- //model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cashamt" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncoamt"));
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/debtamt" , "0");
- if ( rcptamt != 0 || rcptamt != "" ) {
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cashamt" , rcptamt);
- }
- }else if(uncorcptflag == "3") {
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/uncoamt" , "0");
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cashamt" , "0");
- //model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/debtamt" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncoamt"));
- }
-
-
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="button8" class="btn2_letter3" style="left:1052px; top:300px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/pid") == "" || model.getValue("/root/send/orddd") == ""){
- messageBox("미수내역을","C002");
- return;
- }
- grd_lawsulist.addItem();
- var cur_row = grd_lawsulist.rows - 1;
- var row = grd_uncolist.row;
- //var bottom = grd_quar.rows - grd_quar.fixedRows -1;
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cretno" , model.getValue("/root/list/unco/uncolist[" + row + "]/cretno"));
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/insukind" , model.getValue("/root/list/unco/uncolist[" + row + "]/insukind"));
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/suppkind" , model.getValue("/root/list/unco/uncolist[" + row + "]/suppkind"));
- //model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cashamt" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptamt"));
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cashamt" , "0");
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cardamt" , "0");
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/onlineamt" , "0");
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/uncorem" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncorem"));
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/ordtype" , model.getValue("/root/list/unco/uncolist[" + row + "]/ordtype"));
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/uncoamt" , model.getValue("/root/temp/printinfo/uncoamt"));
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/debtamt" , model.getValue("/root/list/unco/uncolist[" + row + "]/debtamt"));
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/uncocd" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncocd"));
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/uncorcptflag" , "1");
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/intrrate" , "0");
- model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/rcptstat" , "Y");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button9" class="btn5_letter2" style="left:1108px; top:300px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var i = grd_lawsulist.row;
-
- //디비에 입력되지 않은 데이터는 그리드에서만 삭제한다.
- if (grd_lawsulist.rowStatus(i) == "1" || grd_lawsulist.rowStatus(i) == "3"){
-
- grd_lawsulist.deleteItem( i );
- }else{
-
- grd_lawsulist.addStatus( i, "delete");
-
- if(messageBox("선택된 행의 소송내역을", "Q001") != 6) return;
- }
- //삭제할 행의 정보를 send에 넣는다.
- model.resetInstanceNode("/root/send/updatedata");
- model.setValue("root/send/updatedata/datalist", grd_lawsulist.getUpdateData("delete"));
-
- if ( submit("TXPAS00720") ) {
- var row = grd_uncolist.row;
-
- model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
- model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
- model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
- submit("TRPAS00710");
- }
- model.removeNodeset("/root/send/updatedata/datalist");
- model.makeNode("/root/send/updatedata/datalist");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button10" class="btn5_letter2" style="left:1153px; top:300px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 수납자 마감여부 체크하여 처리
- if (isMagmAprv()) {
- return false; // 마감결제 완료되어있으므로 더이상 진행하지 않음
- }
-
- var cur_row = grd_lawsulist.rows - grd_lawsulist.fixedRows;
-
- if( cur_row > 0 ){
-
- if(messageBox("소송내역을 저장 하시겠습니까?", "Q999") != 6) return;
-
- model.setValue("/root/send/updatedata/datalist",grd_lawsulist.getUpdateData());
-
- if ( submit("TXPAS00720") ) {
-
- grd_lawsulist.clearStatus();
- var row = grd_uncolist.row;
-
- model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
- model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
- model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
- submit("TRPAS00710");
- }
-
- model.removeNodeset("/root/send/updatedata/datalist");
- model.makeNode("/root/send/updatedata/datalist");
- model.refresh();
- }else{
- return false;
- }
- return true;
- ]]>
- </script>
- </button>
- <button id="button11" class="btn3_letter6" style="left:5px; top:757px; width:80px; height:22px; ">
- <caption>미수입금내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPAS00710", "1","", "", "SPPAS00710", "", "");
- ]]>
- </script>
- </button>
- <button id="button12" class="btn3_letter7" style="left:113px; top:757px; width:108px; height:22px; ">
- <caption>기간별미수조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPAS00722", "1","", "", "SPPAS00722", "", "");
-
- var pid = getParameter("SMPAS00700_PID");
- model.setValue("/root/source/pid" , pid);
- ipt_pid.refresh();
-
-
- ]]>
- </script>
- </button>
- <button id="button13" class="btn3_letter7" visibility="hidden" style="left:655px; top:758px; width:116px; height:22px; ">
- <caption>년도별미수조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPAS00730", "1","", "", "SPPAS00730", "", "");
- ]]>
- </script>
- </button>
- <button id="button14" class="btn3_letter6" visibility="hidden" style="left:545px; top:758px; width:104px; height:22px; ">
- <caption>승인미수내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPAS00740", "1","", "", "SPPAS00740", "", "");
- ]]>
- </script>
- </button>
- <button id="button18" class="btn4_letter4" style="left:1030px; top:758px; width:80px; height:22px; ">
- <caption>미수수납</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_uncolist.row;
- setParameter("SMPAM00100_PID_PARM" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- modal("SMPAS00800", "1","", "", "SMPAS00800", "", "");
- ]]>
- </script>
- </button>
- <datagrid id="datagrid1" nodeset="/root/temp/printinfo" visibility="hidden" caption="pid^hngnm^addr^detladdr^uncoamt^intramt^grntornm^grntorzipcdaddr^grntordetladdr^uncorem^totamt^totamtkor^yyyy^mm^dd" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 53, 30, 25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:815px; top:245px; width:380px; height:50px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="addr"/>
- <col ref="detladdr"/>
- <col ref="uncoamt"/>
- <col ref="intramt"/>
- <col ref="grntornm"/>
- <col ref="grntorzipcdaddr"/>
- <col ref="grntordetladdr"/>
- <col ref="uncorem"/>
- <col ref="totamt"/>
- <col ref="totamtkor"/>
- <col ref="yyyy"/>
- <col ref="mm"/>
- <col ref="dd"/>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/hidden/urgereport" visibility="hidden" caption="intr^law^intrtodd" colsep="^" colwidth="100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1015px; top:195px; width:180px; height:50px; ">
- <col ref="law"/>
- <col ref="intr"/>
- <col ref="intrtodd"/>
- </datagrid>
- <button id="button1" class="btn3_letter6" style="left:233px; top:758px; width:104px; height:22px; ">
- <caption>일일미수현황</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPAS00750", "1","", "", "SPPAS00750", "", "");
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1125px; top:758px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClear();
- ]]>
- </script>
- </button>
- <bool id="checkall" visibility="hidden" checkvalue="Y,N" ref="/root/temp/checkall" style="left:8px; top:90px; width:15px; height:15px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- 소계만 찍을 수 있게 요청 하면서 앞에 체크기능을 지움
- 하지만 진료일자가 다르면 소계가 2줄 이상 발생하고
- 독촉장을 보낼시 남은 진료비 합산 금액을 보내야함
- 해당 체크를 하면 화면상의 남은 미수잔액이 모두 더해짐
- */
- /* var uncoamt = 0;
- var row = grd_uncolist.row;
- var rows = grd_uncolist.rows;
- if(model.getValue("/root/temp/checkall") == "Y"){
- for(var i = 0; i <= getNodesetCount("/root/list/unco/uncolist/uncorem"); i++){
- if(model.getValue("/root/list/unco/uncolist["+i+"]/suppkindnm") == "소계" ){
- uncoamt += parseInt(model.getValue("/root/list/unco/uncolist["+i+"]/uncorem"));
- }
- }
- }else if(model.getValue("/root/temp/checkall") == "N"){
- uncoamt = 0;
- }
- model.setValue("/root/temp/printinfo/uncoamt" , uncoamt);
- model.refresh();
- */
- ]]>
- </script>
- </bool>
- <button id="button19" class="btn3_letter5" style="left:341px; top:758px; width:92px; height:22px; ">
- <caption>보증인조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPAS00760", "1","", "", "SPPAS00760", "", "");
- ]]>
- </script>
- </button>
- <button id="btn_hngnm" class="btn2_letter2" visibility="hidden" style="left:225px; top:30px; width:42px; height:19px; ">
- <caption>11</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRPAS00700");
- grd_uncolist.rebuildStyle();
- for(var i=0; i <= getNodesetCount("/root/list/unco/uncolist/uncorem"); i++){
- if(model.getValue("/root/list/unco/uncolist["+ i +"]/suppkindnm") == "소계"){
- grd_uncolist.rowStyle(i,"data","background-color") = "#99ff99";
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button20" class="btn3_letter5" visibility="hidden" style="left:825px; top:760px; width:92px; height:22px; ">
- <caption>미수총괄표</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPAS00770", "1","", "", "SPPAS00770", "", "");
- ]]>
- </script>
- </button>
- <button id="button21" class="btn4_letter4" style="left:945px; top:758px; width:80px; height:22px; ">
- <caption>미수안내</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_uncolist.row;
- setParameter("SMPAM00100_PID_PARM" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
- modal("SPPAS00780", "1","", "", "SPPAS00780", "", "");
- ]]>
- </script>
- </button>
- <bool id="bool1" checkvalue="Y,N" ref="/root/temp/printpat" style="left:717px; top:533px; width:20px; height:15px; "/>
- <caption id="caption3" style="left:735px; top:531px; width:313px; height:20px; color:#ff0000; ">※체크시 환자독촉장을 출력하지 않습니다(보증인만출력)</caption>
- <button id="button22" class="btn3_letter5" style="left:433px; top:758px; width:128px; height:22px; ">
- <caption>미수총괄표</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPAS00772", "1","", "", "SPPAS00772", "", "");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|