123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>입금내역관리(자보)(SMPIF70800)</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <send01>
- <ioflag>O</ioflag>
- <termflag>1</termflag>
- <fromdd/>
- <todd/>
- <insucmpymark/>
- <patunitsrch1/>
- <patunitsrch2/>
- <endyn>N</endyn>
- </send01>
- <send02>
- <clamno/>
- <docuseqno/>
- <instcd/>
- <docuflag/>
- <insucmpymark/>
- <acptdd/>
- <acptno/>
- <acdacptno/>
- <clamamt/>
- </send02>
- </send>
- <main>
- <list01>
- <gridclamstat>
- <ioflag/>
- <acptdd/>
- <ordym/>
- <insucmpycd/>
- <docuseqno/>
- <patnm/>
- <patrrgstno/>
- <clamamt/>
- <acdacptno/>
- <clamno/>
- <acptno/>
- <instcd/>
- <docuflag/>
- </gridclamstat>
- </list01>
- <list02>
- <gridchkdocustat>
- <docuflag/>
- <tddeciyn/>
- <rtnyn/>
- <payclamacptdd/>
- <adjtamt/>
- <chkdocuacptdd/>
- <realcutamt/>
- <tddecicutamt/>
- <tdcomsamt/>
- <tdrestpayamt/>
- <tdrestrtnamt/>
- <clamno/>
- <docuseqno/>
- <instcd/>
- </gridchkdocustat>
- <griddepodetl>
- <depodd/>
- <depoflag/>
- <bankcd/>
- <acntcd/>
- <depocnt/>
- <depoamt/>
- <rtnscheamt/>
- <orgcutamt/>
- <tddecicutamt/>
- <notiym/>
- <rem/>
- <clamno/>
- <docuseqno/>
- <instcd/>
- <acptdd/>
- <acdacptno/>
- <acptno/>
- <insucmpymark/>
- <cutrate/>
- <seqno/>
- </griddepodetl>
- <gridrtndetl>
- <rtndd/>
- <rtnflag/>
- <stfrtnpatordym/>
- <stfrtnpatnm/>
- <rtncnt/>
- <rtnamt/>
- <notiym/>
- <rem/>
- <clamno/>
- <docuseqno/>
- <instcd/>
- <acptdd/>
- <acdacptno/>
- <acptno/>
- <insucmpymark/>
- <seqno/>
- </gridrtndetl>
- <rtnuncoamt>
- <balance/>
- <uncoamt/>
- </rtnuncoamt>
- </list02>
- <list03>
- <griddepodetl/>
- <gridrtndetl/>
- </list03>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <source>
- <judgdg/>
- <clamno/>
- <acptno/>
- <instcd/>
- <docuseqno/>
- <insucmpymark/>
- <rtndetlrow/>
- <rtnflag/>
- </source>
- <init>
- <P0028list>
- <P0028>
- <cdid/>
- <cdnm/>
- </P0028>
- </P0028list>
- <P0304list>
- <P0304>
- <cdid/>
- <cdnm/>
- </P0304>
- </P0304list>
- <P0268list>
- <P0268>
- <cdid/>
- <cdnm/>
- </P0268>
- </P0268list>
- <R0001list>
- <R0001>
- <cdid/>
- <cdnm/>
- </R0001>
- </R0001list>
- <U0001list>
- <U0001>
- <cd/>
- <nm/>
- </U0001>
- </U0001list>
- <P0251list>
- <P0251>
- <cdid/>
- <cdnm/>
- </P0251>
- </P0251list>
- <P0009list>
- <P0009>
- <cdid/>
- <cdnm/>
- </P0009>
- </P0009list>
- </init>
- <hidden>
- <sppmc02500>
- <cond>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <insukind/>
- </cond>
- </sppmc02500>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPIF70801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list01"/>
- <submission id="TRPIF70802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send02" resultref="/root/main/list02"/>
- <submission id="TXPIF70801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list03" resultref="/root/main/result"/>
- <submission id="TXPIF70802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list03" resultref="/root/main/result2"/>
- <submission id="TRPIF70305" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/U0001list"/>
- <submission id="TXPIF70803" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // zbcfGetCodeList(new Array("P0028","P0302"), new Array( "/root/init/P0028list","/root/init/P0302list"));
- zbcfGetCodeList(new Array("P0268","P0304","R0001","P0251" ), new Array("/root/init/P0268list", "/root/init/P0304list","/root/init/R0001list", "/root/init/P0251list"));
-
- // 원무공통코드 - 금융기관, 계좌번호
- pamfGetCodeList(new Array("P0009"), new Array("/root/init/P0009list"));
- // 공통코드 Load작업
- CommCode_Load();
-
- if (checkOpener()) {
- var SMPIF70800_PARM = opener.javascript.getParameter("SMPIF70800_PARM");
-
- if ( SMPIF70800_PARM.length > 0 ) {
-
- var array_parm = SMPIF70800_PARM.split("▦");
-
- model.setValue("/root/send/send01/insucmpymark" , array_parm[0]); //손보사
- model.setValue("/root/send/send01/patunitsrch1" , array_parm[1]); //등록번호
- model.setValue("/root/send/send01/endyn" , array_parm[2]); //종결여부
- model.setValue("/root/send/send01/termflag" , array_parm[3]); //기간여부
- model.setValue("/root/send/send01/fromdd" , array_parm[4]); //시작년월
- model.setValue("/root/send/send01/todd" , array_parm[5]); //종료년월
- model.setValue("/root/send/send01/ioflag" , array_parm[6]); //내원유형
-
- if ( submit("TRPIF70801") ) {
- grd_clamstat.row = 1;
-
- var row = grd_clamstat.row;
-
- model.resetInstanceNode("/root/send/send02");
-
- if(grd_clamstat.valueMatrix(row,10) != "") {
- model.setValue("/root/send/send02/clamno" ,grd_clamstat.valueMatrix(row,10));
- model.setValue("/root/send/send02/docuseqno" ,grd_clamstat.valueMatrix(row,5));
- model.setValue("/root/send/send02/acptdd" ,grd_clamstat.valueMatrix(row,2));
- model.setValue("/root/send/send02/acptno" ,grd_clamstat.valueMatrix(row,11));
- model.setValue("/root/send/send02/acdacptno" ,grd_clamstat.valueMatrix(row,9));
- model.setValue("/root/send/send02/insucmpymark" ,grd_clamstat.valueMatrix(row,4));
- model.setValue("/root/send/send02/clamamt" ,grd_clamstat.valueMatrix(row,8));
-
- model.removenode("/root/main/list02");
- submit("TRPIF70802");
- }
- }
- }
- } else {
- model.setValue("/root/send/send01/todd" , getCurrentDate().substr(0, 6));
- model.setValue("/root/send/send01/fromdd" , getCurrentDate().toDate().getAddDate(-90).getDateFormat("YYYYMM"));
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript">
- <![CDATA[
- function Node_Init() {
-
- }
-
- // 공통코드 Load작업
- function CommCode_Load() {
- submit("TRPIF70305");
- }
-
- function fGetInAftJudgTrgtManList(){
-
- // 환자단위조회를 하는 경우
- var patunitsrch1 = model.getValue("/root/send/send01/patunitsrch1").getTrim(); // (stringHelper.js) 문자열 앞뒤에 있는 공백 제거
- model.setValue("/root/send/send01/patunitsrch1", patunitsrch1);
- if (patunitsrch1 == "") {
- model.setValue("/root/send/send01/patunitsrch2", "");
- }
- else if (patunitsrch1.isNumber()) { // (numericHelper.js) 숫자가 입력된 경우 환자번호로 조회한다.
- /** [2007.03.23 jumi]
- Table Layout 상에는 pid가 VARCHAR(10) 이지만, 테스트용 data에서는 VARCHAR(8) 이므로 8자리로 구현함
- */
- // if (patunitsrch1.length < 8) {
- // model.setValue("/root/send/patunitsrch1", patunitsrch1.getLeftPad(8, "0")); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
- // }
- model.setValue("/root/send/send01/patunitsrch2", "pidSrch");
- } else { // 문자가 입력된 경우 환자이름으로 조회한다.
- if (patunitsrch1.length > 1) {
- model.setValue("/root/send/send01/patunitsrch2", "nmSrch");
- } else {
- model.setValue("/root/send/send01/patunitsrch2", "");
- model.refresh();
- messageBox("환자단위조회시 검색할 환자이름은 2글자 이상", "C001"); ///환자단위조회시 검색할 환자이름은 2글자 이상 입력하십시오.
- return;
- }
- }
- }
-
- // 청구서 선택시 하위 그리드 조회
- function fGetDetlList(){
- var row = grd_clamstat.row;
-
- model.resetInstanceNode("/root/send/send02");
-
- if(grd_clamstat.valueMatrix(row,10) != "") {
- model.setValue("/root/send/send02/clamno" ,grd_clamstat.valueMatrix(row,10));
- model.setValue("/root/send/send02/docuseqno" ,grd_clamstat.valueMatrix(row,5));
- model.setValue("/root/send/send02/acptdd" ,grd_clamstat.valueMatrix(row,2));
- model.setValue("/root/send/send02/acptno" ,grd_clamstat.valueMatrix(row,11));
- model.setValue("/root/send/send02/acdacptno" ,grd_clamstat.valueMatrix(row,9));
- model.setValue("/root/send/send02/insucmpymark" ,grd_clamstat.valueMatrix(row,4));
- model.setValue("/root/send/send02/clamamt" ,grd_clamstat.valueMatrix(row,8));
- model.setValue("/root/send/send02/docuflag" ,grd_clamstat.valueMatrix(row,13));
-
- model.removenode("/root/main/list02");
- submit("TRPIF70802");
- }
-
- }
-
- // round 함수 ( val = 값, precision= 소숫점 자릿수)
- function fRound(val, precision) {
- val = val * Math.pow(10,precision);
- val = Math.round(val);
- return val/Math.pow(10,precision);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:164px; height:14px; ">입금내역관리(자보)</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <line id="line5" class="line_1" style="x1:0px; y1:435px; x2:1194px; y2:435px; "/>
- <caption id="caption8" class="tit_2" style="left:6px; top:420px; width:229px; height:14px; ">입금내역(piehatdp)</caption>
- <caption id="caption16" class="tit_2" style="left:6px; top:595px; width:126px; height:14px; ">환수내역(pifhrtat)</caption>
- <line id="line9" class="line_1" style="x1:0px; y1:610px; x2:1194px; y2:610px; "/>
- <button id="button4" class="btn2_letter3" style="left:1039px; top:414px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( grd_clamstat.row < 1 ) {
- messageBox("추가할 대상을 선택하세요..!","E999");
- return;
- }
-
- grd_depodetl.addRow();
-
- var row_cnt = grd_depodetl.row;
-
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/clamno" ,model.getValue("/root/send/send02/clamno")); //청구번호
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/docuseqno" ,model.getValue("/root/send/send02/docuseqno")); //명세서일련번호
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/acptno" ,model.getValue("/root/send/send02/acptno")); //접수번호
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/insucmpymark" ,model.getValue("/root/send/send02/insucmpymark")); //보험사기호
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/acptdd" ,model.getValue("/root/send/send02/acptdd")); //청구일자(접수일자)
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/acdacptno" ,model.getValue("/root/send/send02/acdacptno")); //사고접수번호
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/depoflag" ,"01"); //입금구분(1차 지급 01로 Default Setting)
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/depodd" ,getCurrentDate()); //입금일자
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/bankcd" ,model.getValue("/root/init/P0009list/P0009[2]/cdid")); //금융기관코드
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/acntcd" ,model.getValue("/root/init/P0009list/P0009[3]/cdnm")); //계좌번호
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/depocnt" ,1); //입금건수
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/depoamt" ,0); //입금액
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/rtnscheamt" ,0); //환수예정액
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/tddecicutamt" ,0); //분심결정삭감액
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/orgcutamt" ,0); //실삭감액(최종)
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/cutrate" ,0); //삭감율
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/notiym" ,getCurrentDate().substring(0,6)); //재무통보월
- model.setValue("/root/main/list02/griddepodetl[" + row_cnt + "]/rem" ,"-"); //참고사항
- ]]>
- </script>
- </button>
- <button id="button5" class="btn5_letter2" style="left:1151px; top:414px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var clamstat_row = grd_clamstat.row;
- var rows = grd_depodetl.rows;
- // for(var i=1;i<rows;i++) {
- // grd_depodetl.valueMatrix(i,13) = model.getValue("/root/send/send02/clamno");
- // grd_depodetl.valueMatrix(i,14) = model.getValue("/root/send/send02/docuseqno");
- // grd_depodetl.valueMatrix(i,15) = model.getValue("/root/send/send02/instcd");
- // grd_depodetl.valueMatrix(i,16) = grd_clamstat.valueMatrix(clamstat_row,2);
- // grd_depodetl.valueMatrix(i,17) = grd_clamstat.valueMatrix(clamstat_row,9);
- // }
- model.setValue("/root/main/list03/griddepodetl", grd_depodetl.getUpdateData());
- submit("TXPIF70801");
- submit("TRPIF70802");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter3" style="left:1095px; top:414px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_depodetl.rowStatus(grd_depodetl.row) = "4";
- model.setValue("/root/main/list03/griddepodetl", grd_depodetl.getUpdateData());
- if(messageBox("선택하신 데이터를","Q001") == "6") {
- submit("TXPIF70801");
- grd_depodetl.deleteRow(grd_depodetl.row);
- } else {
- return false;
- }
-
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter3" style="left:1039px; top:589px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( grd_clamstat.row < 1 ) {
- messageBox("추가할 대상을 선택하세요..!","E999");
- return;
- }
-
- grd_rtndetl.addRow();
-
- var row_cnt = grd_rtndetl.row;
-
- // 청구내역 클릭시 /root/send/send02 에 해당 row의 정보를 담아 두었다.
- model.setValue("/root/main/list02/gridrtndetl[" + row_cnt + "]/clamno" ,model.getValue("/root/send/send02/clamno")); //청구번호
- model.setValue("/root/main/list02/gridrtndetl[" + row_cnt + "]/docuseqno" ,model.getValue("/root/send/send02/docuseqno")); //명세서일련번호
- model.setValue("/root/main/list02/gridrtndetl[" + row_cnt + "]/acptno" ,model.getValue("/root/send/send02/acptno")); //접수번호
- model.setValue("/root/main/list02/gridrtndetl[" + row_cnt + "]/insucmpymark" ,model.getValue("/root/send/send02/insucmpymark")); //보험사기호
- model.setValue("/root/main/list02/gridrtndetl[" + row_cnt + "]/acptdd" ,model.getValue("/root/send/send02/acptdd")); //청구일자(접수일자)
- model.setValue("/root/main/list02/gridrtndetl[" + row_cnt + "]/acdacptno" ,model.getValue("/root/send/send02/acdacptno")); //사고접수번호
- model.setValue("/root/main/list02/gridrtndetl[" + row_cnt + "]/rtnflag" ,"01"); //환수구분(01:과지급환수)
- model.setValue("/root/main/list02/gridrtndetl[" + row_cnt + "]/rtndd" ,getCurrentDate()); //환수일자
- model.setValue("/root/main/list02/gridrtndetl[" + row_cnt + "]/rtnamt" ,0); //환수액
- model.setValue("/root/main/list02/gridrtndetl[" + row_cnt + "]/rtncnt" ,1); //환수건수
- model.setValue("/root/main/list02/gridrtndetl[" + row_cnt + "]/stfrtnpatordym" ,"000000"); //상계환수수진자진료년월
- model.setValue("/root/main/list02/gridrtndetl[" + row_cnt + "]/stfrtnpatnm" ,"-"); //상계환수수진자명
- model.setValue("/root/main/list02/gridrtndetl[" + row_cnt + "]/notiym" ,getCurrentDate().substring(0,6)); //재무통보월
- model.setValue("/root/main/list02/gridrtndetl[" + row_cnt + "]/rem" ,"-"); //참고사항
- ]]>
- </script>
- </button>
- <button id="button8" class="btn5_letter2" style="left:1151px; top:589px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_rtndetl.row;
- if (grd_rtndetl.valueMatrix(row, grd_rtndetl.colRef("rtnflag")) != "") {
- model.setValue("/root/main/list03/gridrtndetl", grd_rtndetl.getUpdateData());
-
- submit("TXPIF70802");
- submit("TRPIF70802");
- } else {
- messageBox("환수구분을","C002");
- }
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter3" style="left:1095px; top:589px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_rtndetl.rowStatus(grd_rtndetl.row) = "4";
- model.setValue("/root/main/list03/gridrtndetl", grd_rtndetl.getUpdateData());
- if(messageBox("선택하신 데이터를","Q001") == "6") {
- submit("TXPIF70802");
- grd_rtndetl.deleteRow(grd_rtndetl.row);
- } else {
- return false;
- }
-
-
- ]]>
- </script>
- </button>
- <group id="group2" style="left:0px; top:5px; width:1194px; height:47px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:43px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button36" class="btn1_letter2" style="left:1126px; top:12px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(cmb_insucmpymark.value == "") {
- messageBox("손보사명을","C002");
- model.setFocus("cmb_insucmpymark");
- return false;
- }
- // if(ipt_patunitsrch.value == "") {
- // messageBox("환자단위조회를","C001");
- // model.setFocus("ipt_patunitsrch");
- // return false;
- // }
-
- if(ipt_patunitsrch.value == "") {
- model.setValue("/root/send/send01/patunitsrch2","");
- } else {
- fGetInAftJudgTrgtManList();
- }
-
- model.removeNode("/root/main/list01");
- model.removeNode("/root/main/list02");
- // model.removeNode("/root/main/list03");
- model.reset("/root/main/list03"); // 2010.02.08 리셋노드로 변경. remove하면 저장시 오류
-
- if ( submit("TRPIF70801") ) {
-
- grd_clamstat.row = 1;
-
- fGetDetlList(); // 하위 그리드 자동 조회
-
- // grd_clamstat.dispatch("onclick");
- }
- ]]>
- </script>
- </button>
- <line id="line11" style="x1:1115px; y1:12px; x2:1115px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:970px; top:14px; width:86px; height:17px; ">내원유형 :</caption>
- <select1 id="radio3" ref="/root/send/send01/ioflag" appearance="full" cellspacing="5" cols="1" rows="2" vcellspacing="-2" overflow="visible" style="left:1060px; top:9px; width:45px; height:28px; border-style:none; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:10px; top:14px; width:86px; height:17px; ">손보사명 :</caption>
- <select1 id="cmb_insucmpymark" ref="/root/send/send01/insucmpymark" class="combo_s_essential" appearance="minimal" style="left:98px; top:13px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/U0001list/U0001">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_termflag" ref="/root/send/send01/termflag" appearance="full" cellspacing="5" cols="1" rows="2" vcellspacing="-2" overflow="visible" style="left:734px; top:7px; width:73px; height:31px; border-style:none; ">
- <choices>
- <item>
- <label>청구년월</label>
- <value>1</value>
- </item>
- <item>
- <label>진료년월</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_fromdd" ref="/root/send/send01/fromdd" class="input_search" inputtype="date" maxlength="6" format="yyyy-mm" style="left:811px; top:12px; width:70px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/send01/todd" class="input_search" inputtype="date" maxlength="6" format="yyyy-mm" style="left:896px; top:12px; width:70px; height:19px; "/>
- <caption id="caption4" class="search_no_b" style="left:882px; top:12px; width:12px; height:17px; ">~</caption>
- <input id="ipt_patunitsrch" ref="/root/send/send01/patunitsrch1" class="input_s_essential" inputtype="button" style="left:340px; top:12px; width:80px; height:19px; ">
- <hint>
- <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
- </hint>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") { // Enter 입력 시에
- if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- fGetInAftJudgTrgtManList();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var ipt_pid = model.getValue("/root/send/send01/patunitsrch1");
- if (ipt_pid) {
- if(ipt_pid.isNumber()) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
- } else {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
- model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
- }
- } else {
- model.resetInstanceNode("/root/hidden/sppmc02500/cond");
- }
-
- model.setValue("/root/hidden/sppmc02500/cond/insukind", "31");
- modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
-
- // 환자단위조회 InputBox에 값을 입력후 팝업조회했을 때
- if (ipt_pid != "") {
- if(ipt_pid.isNumber()) {
- var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- model.setValue("/root/send/send01/patunitsrch1", srch_pid);
- } else {
- var srch_pid = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.setValue("/root/send/send01/patunitsrch1", srch_pid);
- }
- } else {
- var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- model.setValue("/root/send/send01/patunitsrch1", srch_pid);
- }
-
- model.refresh();
- fGetInAftJudgTrgtManList();
- ]]>
- </script>
- </input>
- <caption id="caption18" class="search_name" style="left:225px; top:13px; width:112px; height:17px; ">환자단위조회 :</caption>
- <caption id="caption5" class="search_name" style="left:430px; top:13px; width:90px; height:17px; ">종결여부 :</caption>
- <select1 id="radio1" ref="/root/send/send01/endyn" appearance="full" cellspacing="1" cols="3" vcellspacing="-2" overflow="visible" style="left:516px; top:15px; width:149px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>완료</label>
- <value>Y</value>
- </item>
- <item>
- <label>미완료</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:670px; top:14px; width:65px; height:17px; ">기간 :</caption>
- </group>
- <caption id="caption3" class="tit_2" style="left:6px; top:56px; width:289px; height:14px; ">청구현황(pifmintd)</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
- <caption id="caption7" class="tit_2" style="left:6px; top:200px; width:366px; height:14px; ">검토현황(pifhrstd AND piehc301 + piehc401 + pifmtrds)</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:215px; x2:1194px; y2:215px; "/>
- <datagrid id="datagrid3" nodeset="/root/main/list02/gridchkdocustat" caption="서식구분^분심여부^반송여부^지급청구접수일자^조정액^동의서발송일자^자보실삭감액^분심결정삭감액^분심수수료^분심이자지급액^분심이자환수액" colsep="^" colwidth="71, 70, 70, 120, 120, 100, 120, 120, 120, 120, 120, 100, 100, 100" dataheight="25" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:220px; width:1194px; height:119px; ">
- <col disabled="true" ref="docuflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0251list/P0251">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="tddeciyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="rtnyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="payclamacptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="adjtamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="chkdocuacptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="realcutamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="tddecicutamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="tdcomsamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="tdrestpayamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="tdrestrtnamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="clamno" visibility="hidden"/>
- <col ref="docuseqno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:367px; x2:1194px; y2:367px; "/>
- <input id="input34" ref="/root/main/list02/rtnuncoamt/uncoamt" class="input_default" format="(-)#,###" style="left:1073px; top:376px; width:121px; height:19px; text-align:right; "/>
- <line id="line14" class="line_3" style="x1:0px; y1:400px; x2:1194px; y2:400px; "/>
- <caption id="caption45" class="cell_1" style="left:757px; top:371px; width:93px; height:28px; text-align:center; vertical-align:middle; ">환수잔액</caption>
- <caption id="caption46" class="cell_1" style="left:977px; top:371px; width:93px; height:28px; text-align:center; vertical-align:middle; ">미수금</caption>
- <input id="input36" ref="/root/main/list02/rtnuncoamt/balance" class="input_default" format="(-)#,###" style="left:853px; top:376px; width:121px; height:19px; text-align:right; "/>
- <datagrid id="grd_clamstat" nodeset="/root/main/list01/gridclamstat" caption="내원유형^청구일자^진료월^손보사명^명일련^수진자^주민번호^청구액^사고접수번호" colsep="^" colwidth="125, 125, 125, 160, 125, 125, 128, 128, 130, 130, 130, 130" dataheight="25" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:76px; width:1194px; height:111px; ">
- <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ordym" format="yyyy-mm" style="text-align:center; "/>
- <col disabled="true" ref="insucmpymark" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/U0001list/U0001">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="docuseqno" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="patrrgstno" style="text-align:center; "/>
- <col ref="clamamt" format="(-)#,###" style="text-align:center; "/>
- <col ref="acdacptno" style="text-align:center; "/>
- <col ref="clamno" visibility="hidden"/>
- <col ref="acptno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="docuflag" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if( grd_clamstat.isCell(event.target) && grd_clamstat.row >= grd_clamstat.fixedRows ){
-
- fGetDetlList();
-
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_depodetl" nodeset="/root/main/list02/griddepodetl" caption="입금일자^입금구분^금융기관^계좌번호^건수^입금액^환수예정액^자보실삭감액(최종)^분심결정삭감액^재무통보월^비고" colsep="^" colwidth="90, 90, 94, 120, 57, 90, 90, 115, 90, 90, 232, 151, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="2" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:440px; width:1194px; height:145px; ">
- <col ref="depodd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( grd_depodetl.col == grd_depodetl.colRef("depodd")) {
- var row = grd_depodetl.row;
- var notimm = grd_depodetl.valueMatrix(row,1);
- grd_depodetl.valueMatrix(row,10) = notimm.substring(0,6);
- }
- ]]>
- </script>
- <col ref="depoflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0268list/P0268">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="bankcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0009list/P0009">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 금융기관 선택시 계좌번호 자동셋팅, 원무공통코드의 상세설명을 계좌번호로 사용함.
- if(grd_depodetl.col == grd_depodetl.colRef("bankcd")) {
- if ( grd_depodetl.valueMatrix(grd_depodetl.row, grd_depodetl.colRef("bankcd")) != "" ) {
- grd_depodetl.valueMatrix(grd_depodetl.row, grd_depodetl.colRef("acntcd")) = model.getValue("/root/init/P0009list/P0009[cdid="
- + grd_depodetl.valueMatrix(grd_depodetl.row, grd_depodetl.colRef("bankcd")) + "]/detl");
- } else {
- grd_depodetl.valueMatrix(grd_depodetl.row, grd_depodetl.colRef("acntcd")) = "";
- }
- }
- ]]>
- </script>
- <col ref="acntcd" type="output" style="text-align:center; "/>
- <col ref="depocnt" type="input" style="text-align:center; "/>
- <col ref="depoamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="rtnscheamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="orgcutamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 삭감률 구하기
- var row = grd_depodetl.row;
- var orgcutamt = grd_depodetl.valueMatrix(row,8); //실삭감액
- var clamamt = model.getValue("/root/send/send02/clamamt"); //청구액
-
- grd_depodetl.valueMatrix(row,19) = fRound((orgcutamt / clamamt) * 100, 2); //삭감률
-
- ]]>
- </script>
- <col ref="tddecicutamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="notiym" type="inputdate" format="yyyy-mm" maxlength="6" style="text-align:center; "/>
- <col ref="rem" type="input"/>
- <col ref="clamno" visibility="hidden"/>
- <col ref="docuseqno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="acdacptno" visibility="hidden"/>
- <col ref="acptno" visibility="hidden"/>
- <col ref="insucmpymark" visibility="hidden" style="left:1845px; top:23px; width:100px; height:23px; "/>
- <col ref="cutrate" visibility="hidden" style="left:1945px; top:23px; width:100px; height:23px; "/>
- <col ref="seqno" visibility="hidden"/>
- </datagrid>
- <datagrid id="grd_rtndetl" nodeset="/root/main/list02/gridrtndetl" caption="환수일자^환수구분^상계수진자미수월^상계수진자^환수건수^환수금액^재무통보월^비고" colsep="^" colwidth="106, 110, 120, 100, 90, 110, 100, 387, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:615px; width:1194px; height:105px; ">
- <col ref="rtndd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var row = grd_rtndetl.row;
- var notimm = grd_rtndetl.valueMatrix(row,1);
- grd_rtndetl.valueMatrix(row,7) = notimm.substring(0,6);
- ]]>
- </script>
- <col ref="rtnflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0304list/P0304">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 환수잔액조회 팝업 호출
- if(grd_rtndetl.col == grd_rtndetl.colRef("rtnflag")) {
- var row = grd_rtndetl.row;
- var rtnflag = grd_rtndetl.valueMatrix(row, grd_rtndetl.colRef("rtnflag"));
- // 환수저장시 사용될 청구번호,명일련번호
- model.setValue("/root/source/clamno", model.getValue("/root/main/list01/gridclamstat/clamno"));
- model.setValue("/root/source/docuseqno", model.getValue("/root/main/list01/gridclamstat/docuseqno"));
- // model.setValue("/root/source/acptno", model.getValue("/root/main/list01/gridclamstat/acptno"));
- model.setValue("/root/source/instcd", model.getValue("/root/main/list01/gridclamstat/instcd"));
-
- model.setValue("/root/source/insucmpymark", grd_clamstat.valueMatrix(grd_clamstat.row, grd_clamstat.colRef("insucmpymark"))); //선택된 보험사 기호
- model.makeNode("/root/source/openerflag");
- model.setValue("/root/source/openerflag","자보");
- model.makeValue("/root/source/rtnflag", rtnflag);
- model.makeNode("/root/source/rtnflaggrcd");
- model.makeNode("/root/source/allsrchyn");
- model.setValue("/root/source/rtndetlrow",""); // 2010.02.17 환수내역에서 팝업 띄울 경우
-
- // 환수잔액조회(자보) 팝업화면
- modal("SPPIF30311", 1, "", "", "SPPIF30311", "/root/source", "/root/send");
-
- }
-
- ]]>
- </script>
- <col ref="stfrtnpatordym" type="inputdate" format="yyyy-mm" maxlength="6" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 상계환수수진자진료월이 6자리가 넘을 경우 앞에서 6자리까지만 취함. 나머진 버림
- var row = grd_rtndetl.row;
- var patordmm = grd_rtndetl.valueMatrix(row,3);
- if(patordmm.length > 6) {
- model.setValue("/root/main/list02/gridrtndetl["+row+"]/stfrtnpatordmm", patordmm.substring(0,6));
- }
- ]]>
- </script>
- <col ref="stfrtnpatnm" type="input" style="text-align:center; "/>
- <col ref="rtncnt" type="input" style="text-align:center; "/>
- <col ref="rtnamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="notiym" type="inputdate" format="yyyy-mm" maxlength="6" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 재무통보월이 6자리가 넘을 경우 앞에서 6자리까지만 취함. 나머진 버림
- var row = grd_rtndetl.row;
- var notimm = grd_rtndetl.valueMatrix(row,7);
- if(notimm.length > 6) {
- model.setValue("/root/main/list02/gridrtndetl["+row+"]/notimm", notimm.substring(0,6));
- }
- ]]>
- </script>
- <col ref="rem" type="input"/>
- <col ref="clamno" visibility="hidden"/>
- <col ref="docuseqno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="acdacptno" visibility="hidden"/>
- <col ref="acptno" visibility="hidden"/>
- <col ref="dg" visibility="hidden"/>
- <col ref="insucmpymark" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="rtnclamno" visibility="hidden"/>
- <col ref="rtndocuseqno" visibility="hidden"/>
- <col ref="rtnseqno" visibility="hidden"/>
- </datagrid>
- <caption id="caption11" style="left:570px; top:195px; width:587px; height:20px; ">* 자보실삭감액 : 동의액(C401.aprvamt) + 분심결정삭감액(trds.tddecicutamt) + 분심수수료(trds.tdcomsamt)</caption>
- <caption id="caption10" style="left:5px; top:375px; width:403px; height:20px; ">* 환수잔액 = 환수예정액(atdp.rtnscheamt - 환수액(rtat.rtnamt)</caption>
- <caption id="caption12" style="left:5px; top:345px; width:862px; height:20px; ">* 미수액 = 청구액-통장입금액(과지급,이자지급제외)+환수예정액(과지급,이자지급제외 )-환수액(rtat.rtnamt)-자보실삭감액(최종)-분심결정삭감액</caption>
- <button id="button10" class="btn2_letter6" style="left:1105px; top:346px; width:86px; height:19px; ">
- <caption>환수잔액조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/source/clamno", model.getValue("/root/main/list01/gridclamstat/clamno"));
- model.setValue("/root/source/docuseqno", model.getValue("/root/main/list01/gridclamstat/docuseqno"));
- model.setValue("/root/source/acptno", model.getValue("/root/main/list01/gridclamstat/acptno"));
- model.setValue("/root/source/instcd", model.getValue("/root/main/list01/gridclamstat/instcd"));
- model.setValue("/root/source/insucmpymark", grd_clamstat.valueMatrix(grd_clamstat.row, grd_clamstat.colRef("insucmpymark"))); //선택된 보험사 기호
- model.makeNode("/root/source/openerflag");
- model.setValue("/root/source/openerflag","자보");
- model.setValue("/root/source/rtnflag","");
- model.makeNode("/root/source/rtnflaggrcd");
- model.makeNode("/root/source/allsrchyn");
- model.setValue("/root/source/rtndetlrow","A"); // 2010.02.17 잔액조회팝업일 경우
- // 메모입력창 팝업화면
- modal("SPPIF30311", 1, "", "", "SPPIF30311", "/root/source", "/root/send");
- //window.load("SPPIF30310.xrw", "modal", "SPPIF30310", "", "/root/source", "/root/send");
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; "/>
- </xhtml:body>
- </xhtml:html>
|