12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- [ Submission ]
- TXPIF30704 일괄처리 저장
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>정산차수별입금등록관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <send01>
- <insukind>11</insukind>
- <calcdg/>
- <acptno/>
- <notidd/>
- <docuseqno/>
- <cpcd/>
- <assocd/>
- <oprcpcalcyn/>
- <calcacptno>9999999</calcacptno>
- <depodd/>
- <notimm/>
- <depoamt/>
- <depooutamt/>
- <depoinamt/>
- <bankcd/>
- <acntcd/>
- <depocnt/>
- </send01>
- <send02>
- <calcacptno/>
- <depodd/>
- <notimm/>
- <depoamt/>
- <calcdg/>
- <notidd/>
- <acptno/>
- <bankcd/>
- <acntcd/>
- <oprcpcalcyn/>
- </send02>
- <send03>
- <calcacptno/>
- <depodd/>
- <notimm/>
- <depoamt/>
- <calcdg/>
- <notidd/>
- <acptno/>
- <bankcd/>
- <acntcd/>
- </send03>
- <send04>
- <calcjudgdg/>
- <acptno/>
- <insukind/>
- <oprcpcalcyn/>
- </send04>
- </send>
- <main>
- <list00>
- <U0001>
- <acptno/>
- <notidd/>
- </U0001>
- </list00>
- <list01>
- <gridpifhcunc>
- <calcjudgdg/>
- <calcnotidd/>
- <clamym/>
- <clamno/>
- <acptno/>
- <judgdg/>
- <docuseqno/>
- <patnm/>
- <calcflagnm/>
- <cadecidifamt/>
- <depodd/>
- <caadjtamt1/>
- <caadjtamt2/>
- <caadjtamt/>
- <caownaddbamt/>
- <obtappamt/>
- <notimm/>
- <docuseqnorem/>
- <clamseqno/>
- <calcseqno/>
- <calcflag/>
- <depoprocinstmark/>
- <calcacptno/>
- <judgflag/>
- <calcbizcd/>
- <calcbiznm/>
- <insukind/>
- <seqno/>
- <calcacptno_bsdp/>
- <depodd_bsdp/>
- <notimm_bsdp/>
- <depoamt_bsdp/>
- <depocnt_bsdp/>
- <bankcd_bsdp/>
- <acntcd_bsdp/>
- <oprcpcalcyn_bsdp/>
- <rtnscheamt_bsdp/>
- </gridpifhcunc>
- <totcalcamt>
- <cadecidifamtsum/>
- </totcalcamt>
- </list01>
- <list02>
- <gridpifhcuncmed>
- <calcjudgdg/>
- <calcnotidd/>
- <clamym/>
- <clamno/>
- <acptno/>
- <judgdg/>
- <docuseqno/>
- <patnm/>
- <calcflagnm/>
- <cadecidifamt/>
- <depodd/>
- <caadjtamt1/>
- <caadjtamt2/>
- <caadjtamt/>
- <caownaddbamt/>
- <obtappamt/>
- <notimm/>
- <docuseqnorem/>
- <procinstmark/>
- <cpcd/>
- <assocd/>
- <cahandicaprfund/>
- <handicaprfunddepodd/>
- <casubtamt/>
- <subtamtdepodd/>
- <calcflag/>
- <judgflag/>
- <calcbizcd/>
- <calcbiznm/>
- <insukind/>
- <seqno/>
- <calcacptno_mcdp/>
- <depodd_mcdp/>
- <notimm_mcdp/>
- <depoamt_mcdp/>
- <depocnt_mcdp/>
- <cpcd_mcdp/>
- <assocd_mcdp/>
- <bankcd_mcdp/>
- <acntcd_mcdp/>
- <oprcpcalcyn_mcdp/>
- <rtnscheamt_mcdp/>
- <depooutamt_mcdp/>
- <depoinamt_mcdp/>
- </gridpifhcuncmed>
- <totcalcamt>
- <cadecidifamtsum/>
- </totcalcamt>
- </list02>
- <list03>
- <gridpifmcodpproc>
- <judgdg/>
- <insuno/>
- <docuseqno/>
- <patnm/>
- <calcmedflag/>
- <calcdg/>
- <cadeciamt/>
- <depodd/>
- <jradjtamt/>
- <jradjtamt1/>
- <jradjtamt2/>
- <obtappamt/>
- <notidd/>
- <rem/>
- <calcdg/>
- <acptno/>
- <clamno/>
- </gridpifmcodpproc>
- </list03>
- <list04>
- <gridpifhcunc>
- <calcjudgdg/>
- <calcnotidd/>
- <clamym/>
- <clamno/>
- <acptno/>
- <judgdg/>
- <docuseqno/>
- <patnm/>
- <calcflagnm/>
- <cadecidifamt/>
- <depodd/>
- <caadjtamt1/>
- <caadjtamt2/>
- <caadjtamt/>
- <caownaddbamt/>
- <obtappamt/>
- <notimm/>
- <docuseqnorem/>
- <clamseqno/>
- <calcseqno/>
- <calcflag/>
- <depoprocinstmark/>
- <calcacptno/>
- <judgflag/>
- <calcbizcd/>
- <calcbiznm/>
- <seqno/>
- </gridpifhcunc>
- </list04>
- <list04med>
- <gridpifhcuncmed>
- <calcjudgdg/>
- <calcnotidd/>
- <clamym/>
- <clamno/>
- <acptno/>
- <judgdg/>
- <docuseqno/>
- <patnm/>
- <calcflagnm/>
- <cadecidifamt/>
- <depodd/>
- <caadjtamt1/>
- <caadjtamt2/>
- <caadjtamt/>
- <caownaddbamt/>
- <obtappamt/>
- <notimm/>
- <docuseqnorem/>
- <procinstmark/>
- <cpcd/>
- <assocd/>
- <cahandicaprfund/>
- <handicaprfunddepodd/>
- <casubtamt/>
- <subtamtdepodd/>
- <calcflag/>
- <judgflag/>
- <calcbizcd/>
- <calcbiznm/>
- <seqno/>
- </gridpifhcuncmed>
- </list04med>
- <list05>
- <gridpifhcunc/>
- </list05>
- <list05med>
- <gridpifhcunc/>
- </list05med>
- </main>
- <init>
- <P0055list>
- <P0055>
- <cdid/>
- <cdnm/>
- </P0055>
- </P0055list>
- <Cpcd>
- <cpcdlist>
- <cdid/>
- <cdnm/>
- </cpcdlist>
- </Cpcd>
- <Assocd>
- <assocdlist>
- <cdid/>
- <cdnm/>
- </assocdlist>
- </Assocd>
- <bankinfo>
- <bankinfolist>
- <cdid/>
- <cdnm/>
- </bankinfolist>
- </bankinfo>
- </init>
- <hidden>
- <session/>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPIF30700" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list00"/>
- <submission id="TRPIF30701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list01"/>
- <submission id="TRPIF30702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list02"/>
- <submission id="TRPIF30703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list03"/>
- <submission id="TRPIF30704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/init/Cpcd"/>
- <submission id="TRPIF30705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/init/Assocd"/>
- <submission id="TXPIF30701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list04" resultref="/root/result"/>
- <submission id="TXPIF30702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list04med" resultref="/root/result"/>
- <submission id="TXPIF30703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list05" resultref="/root/result"/>
- <submission id="TXPIF30704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list05med" resultref="/root/result"/>
- <submission id="TRPIF30309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/bankinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelp.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetUserInfosSampling(); //세션/root/hidden/session
-
- INSTCD = model.getValue("/root/hidden/session/sess_dutplceinstcd");
-
- //기관별 은행및 은행계좌조회
- fBankSearch();
-
- var cnt = getNodesetCount("/root/init/bankinfo/bankinfolist");
- var bankcd;
- var bankacount;
-
- for( var i = 1; i <= cnt; i++){
- if(model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdid") == "10"){
- bankcd = model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdnm");
- }
-
- if(model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdid") == "20"){
- bankacount = model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdnm");
- }
- }
-
- BANKCD = bankcd;
- BANKACOUNT = bankacount;
-
- // 공통코드 Load작업
- CommCode_Load();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function Node_Init() {
- // NodeSet 초기화
- model.resetInstanceNode("/root/main/list01");
- }
- // 공통코드 Load작업
- function CommCode_Load() {
- model.setFocus("ipt_calcdg");
- // 관련 Control 초기화P0055
- // zbcfGetCodeList(new Array("P0055"), new Array( "/root/init/P0055list"));
- // zbcfGetCodeList(new Array("P0101"), new Array( "/root/init/P0101list"));
- // zbcfGetCodeList(new Array("P0266"), new Array( "/root/init/P0266list"));
- // zbcfGetCodeList(new Array("R0001"), new Array( "/root/init/R0001list"));
- // zbcfGetCodeList(new Array("P0302"), new Array( "/root/init/P0302list"));
- if(window.parent != null) { // 자기자신이 팝업일 경우
- caption15.visible = true;
- cmb_cpcd.visible = true;
- cmb_assocd.visible = true;
- if(model.getValue("/root/send/send04/insukind") == "") {
- rdo_insukind.value = '11';
- model.toggle("case1") ;
- caption15.visible = false;
- cmb_cpcd.visible = false;
- cmb_assocd.visible = false;
- } else {
- model.setValue("/root/send/send01/insukind", model.getValue("/root/send/send04/insukind"));
- model.setValue("/root/send/send01/calcdg", model.getValue("/root/send/send04/calcjudgdg"));
- model.setValue("/root/send/send01/acptno", model.getValue("/root/send/send04/acptno"));
- model.setValue("/root/send/send01/oprcpcalcyn", model.getValue("/root/send/send04/oprcpcalcyn"));
-
- if(model.getValue("/root/send/send04/insukind") == "11") {
- model.toggle("case1") ;
- btn_insu.dispatch("onclick");
- } else {
- model.toggle("case2") ;
- btn_proc.dispatch("onclick");
- }
- }
- model.refresh();
- } else { // 자기자신이 팝업이 아닌경우
- rdo_insukind.value = '11' ;
- model.toggle("case1") ;
- btn_insu.dispatch("onclick");
- caption15.visible = false;
- cmb_cpcd.visible = false;
- cmb_assocd.visible = false;
- model.refresh();
- }
- }
-
- function fBankSearch(){
- submit("TRPIF30309");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" 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:269px; height:13px; ">정산차수별입금등록관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1194px; height:744px; ">
- <switch id="switch1" class="sw_box" style="left:0px; top:72px; width:1194px; height:655px; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:1187px; height:653px; ">
- <datagrid id="grd_pifhcunc" nodeset="/root/main/list01/gridpifhcunc" class="datagrid2" caption="^정산
심사차수^정산
통보일자^청구년월^청구번호^접수번호^심사차수^명일련^수진자^정산구분^내원구분^정산금액^입금일자^조정소계1^조정소계2^조정합계^본인추가
부담금^이의신청액^통보년월^비고^이의신청
여부^부제기신청
여부^(청구연번)^(정산연번)^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10" colsep="^" colwidth="20, 60, 70, 60, 70, 60, 60, 50, 50, 60, 64, 70, 70, 70, 70, 70, 70, 70, 60, 200, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:30px; width:1181px; height:514px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col ref="calcjudgdg" style="text-align:center; "/>
- <col ref="calcnotidd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
- <col ref="clamno" style="text-align:center; "/>
- <col ref="acptno" style="text-align:center; "/>
- <col ref="judgdg" style="text-align:center; "/>
- <col ref="docuseqno" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="calcflagnm" style="text-align:center; "/>
- <col disabled="true" ref="ioflag" type="combo">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col ref="cadecidifamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="depodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="caadjtamt1" format="(-)#,###" style="text-align:right; "/>
- <col ref="caadjtamt2" format="(-)#,###" style="text-align:right; "/>
- <col ref="caadjtamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="caownaddbamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="obtappamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="notimm" format="yyyy-mm" style="text-align:center; "/>
- <col ref="docuseqnorem"/>
- <col ref="obtappyn"/>
- <col ref="obtappabdyn"/>
- <col ref="clamseqno" visibility="hidden"/>
- <col ref="calcseqno" visibility="hidden"/>
- <col ref="calcflag" visibility="hidden"/>
- <col ref="depoprocinstmark" visibility="hidden"/>
- <col ref="calcacptno" visibility="hidden"/>
- <col ref="judgflag" visibility="hidden"/>
- <col ref="calcbizcd" visibility="hidden"/>
- <col ref="calcbiznm" visibility="hidden"/>
- <col ref="insukind" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="calcacptno_bsdp" visibility="hidden"/>
- <col ref="depodd_bsdp" visibility="hidden"/>
- <col ref="notimm_bsdp" visibility="hidden"/>
- <col ref="depoamt_bsdp" visibility="hidden"/>
- <col ref="depooutamt_bsdp" visibility="hidden"/>
- <col ref="depoinamt_bsdp" visibility="hidden"/>
- <col ref="depocnt_bsdp" visibility="hidden"/>
- <col ref="bankcd_bsdp" visibility="hidden"/>
- <col ref="acntcd_bsdp" visibility="hidden"/>
- <col ref="oprcpcalcyn_bsdp" visibility="hidden"/>
- <col ref="rtnscheamt_bsdp" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.resetInstanceNode("/root/main/list04/gridpifhcunc");
- model.copyNode("/root/main/list04/gridpifhcunc", "/root/main/list01/gridpifhcunc["+grd_pifhcunc.row+"]");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- grid_oncopy();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_pifhcunc.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line9" class="line_1" style="x1:5px; y1:571px; x2:1148px; y2:571px; "/>
- <caption id="caption3" class="tit_2" style="left:6px; top:10px; width:113px; height:14px; ">정산내역</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:1186px; y2:25px; "/>
- <caption id="caption16" class="tit_2" style="left:6px; top:556px; width:113px; height:13px; ">개인별 정산내역</caption>
- <button id="button10" class="btn5_letter2" style="left:1105px; top:550px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(opt_calcdg.value == "") {
- return false;
- } else if(ipt_calcamt2.value == "") {
- messageBox("정산입금액을","C001");
- model.setFocus("ipt_calcamt2");
- return false;
- } else if(ipt_depodd2.value == "") {
- messageBox("입금일자를","C001");
- model.setFocus("ipt_depodd2");
- return false;
- } else if(ipt_notimm2.value == "") {
- messageBox("통보월을","C001");
- model.setFocus("ipt_notimm2");
- return false;
- } else {
- //model.setValue("/root/main/list04/gridpifhcunc", grd_chkdocuadjtdetl.getUpdateData());
- if(submit("TXPIF30701")) {
- submit("TRPIF30701");
- model.resetInstanceNode("/root/main/list04");
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <button id="button12" class="btn2_letter4" style="left:1121px; top:4px; width:64px; height:19px; ">
- <caption>일괄처리</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var totalamt = 0;
- var totaloutamt = 0;
- var totalinamt = 0;
-
- for(var i=1; i<grd_pifhcunc.rows; i++) {
- if( model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/check") == 'Y' ){
-
- //기 입금내역인지 체크
- if( model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/depodd") != '' ) {
- messageBox("이미 입금등록이","I002");
- return false;
- }
-
- //토탈입금내역 확인
- if( model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/ioflag") == 'I' ){
- totalinamt = parseInt(totalinamt) + parseInt(model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/cadecidifamt"));
- }else if( model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/ioflag") == 'O' ){
- totaloutamt = parseInt(totaloutamt) + parseInt(model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/cadecidifamt"));
- }
-
- totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/cadecidifamt"));
- }
-
-
- }
-
- ipt_depodd.value = "";
- ipt_notimm.value = "";
- ipt_depoamt.value = "";
-
-
-
- if(chk_oprcpcalcyn.value == "Y") {
-
- cap_calcacptno.value = "8888888";
- ipt_depoamt.value = ipt_totcalcamt.value;
- // model.setValue("/root/send/send02/calcdg", ipt_calcdg.value);
- // model.setValue("/root/send/send02/notidd", ipt_notidd.value);
- // model.setValue("/root/send/send02/acptno", cmb_acptno.value);
- model.setValue("/root/send/send01/bankcd", BANKCD);
- model.setValue("/root/send/send01/acntcd", BANKACOUNT);
- // model.setValue("/root/send/send02/acntcd", chk_oprcpcalcyn.value);
- } else {
- cap_calcacptno.value = "9999999";
- ipt_depoamt.value = ipt_totcalcamt.value;
- // model.setValue("/root/send/send02/calcdg", ipt_calcdg.value);
- // model.setValue("/root/send/send02/notidd", ipt_notidd.value);
- // model.setValue("/root/send/send02/acptno", cmb_acptno.value);
- model.setValue("/root/send/send01/bankcd", BANKCD);
- model.setValue("/root/send/send01/acntcd", BANKACOUNT);
- // model.setValue("/root/send/send02/acntcd", chk_oprcpcalcyn.value);
- }
-
-
- model.setValue("/root/send/send01/depoamt", totalamt);
- model.setValue("/root/send/send01/depooutamt", totaloutamt);
- model.setValue("/root/send/send01/depoinamt", totalinamt);
-
- group5.visible = true;
- model.refresh();
- model.setFocus("ipt_depodd");
-
- ]]>
- </script>
- </button>
- <line id="line20" class="line_3" style="x1:5px; y1:649px; x2:1148px; y2:649px; "/>
- <output id="opt_patnm" ref="/root/main/list04/gridpifhcunc/patnm" class="input_default" appearance="output" style="left:801px; top:578px; width:117px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:463px; top:576px; width:105px; height:23px; vertical-align:middle; ">명세서일련번호</caption>
- <caption id="caption21" class="cell_1" style="left:463px; top:601px; width:105px; height:23px; vertical-align:middle; ">입금일자</caption>
- <output id="opt_acptno" ref="/root/main/list04/gridpifhcunc/acptno" class="input_default" appearance="output" style="left:340px; top:578px; width:118px; height:19px; "/>
- <caption id="caption22" class="cell_1" style="left:5px; top:576px; width:105px; height:23px; vertical-align:middle; ">정산차수</caption>
- <line id="line26" class="line_2" style="x1:5px; y1:599px; x2:1148px; y2:599px; "/>
- <caption id="caption23" class="cell_1" style="left:693px; top:576px; width:105px; height:23px; vertical-align:middle; ">수진자</caption>
- <caption id="caption24" class="cell_1" style="left:693px; top:601px; width:105px; height:23px; vertical-align:middle; ">통보월</caption>
- <caption id="caption25" class="cell_1" style="left:232px; top:601px; width:105px; height:23px; vertical-align:middle; ">정산금액</caption>
- <input id="ipt_calcamt2" ref="/root/main/list04/gridpifhcunc/cadecidifamt" class="input_default" format="(-)#,###" style="left:340px; top:603px; width:118px; height:19px; text-align:right; "/>
- <output id="opt_docuseqno" ref="/root/main/list04/gridpifhcunc/docuseqno" class="input_default" appearance="output" style="left:571px; top:578px; width:117px; height:19px; "/>
- <input id="ipt_depodd2" ref="/root/main/list04/gridpifhcunc/depodd" class="input_default" format="yyyy-mm-dd" style="left:571px; top:603px; width:117px; height:19px; "/>
- <input id="ipt_notimm2" ref="/root/main/list04/gridpifhcunc/notimm" class="input_default" format="yyyy-mm" style="left:801px; top:603px; width:117px; height:19px; "/>
- <output id="opt_calcdg" ref="/root/main/list04/gridpifhcunc/calcjudgdg" class="input_default" appearance="output" style="left:113px; top:578px; width:114px; height:19px; "/>
- <caption id="caption26" class="cell_1" style="left:232px; top:576px; width:105px; height:23px; vertical-align:middle; ">접수번호</caption>
- <caption id="caption27" class="cell_1" style="left:5px; top:601px; width:105px; height:23px; vertical-align:middle; ">정산구분</caption>
- <select1 id="combo3" ref="/root/main/list04/gridpifhcunc/calcflag" appearance="minimal" style="left:113px; top:603px; width:114px; height:19px; ">
- <choices>
- <item>
- <label>이의신청</label>
- <value>01</value>
- </item>
- <item>
- <label>심사청구</label>
- <value>02</value>
- </item>
- <item>
- <label>정산환수</label>
- <value>03</value>
- </item>
- <item>
- <label>정산의뢰</label>
- <value>04</value>
- </item>
- </choices>
- </select1>
- <caption id="caption33" class="cell_1" style="left:923px; top:576px; width:105px; height:23px; vertical-align:middle; ">심사구분</caption>
- <line id="line6" class="line_2" style="x1:5px; y1:624px; x2:1148px; y2:624px; "/>
- <caption id="caption34" class="cell_1" style="left:232px; top:626px; width:105px; height:23px; vertical-align:middle; ">정산업무명</caption>
- <output id="output5" ref="/root/main/list04/gridpifhcunc/calcbiznm" class="input_default" appearance="output" style="left:340px; top:628px; width:805px; height:19px; "/>
- <select1 id="combo2" ref="/root/main/list04/gridpifhcunc/judgflag" disabled="true" appearance="minimal" style="left:1031px; top:578px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>1.재심</label>
- <value>1</value>
- </item>
- <item>
- <label>2.삼심</label>
- <value>2</value>
- </item>
- <item>
- <label>3.사심</label>
- <value>3</value>
- </item>
- <item>
- <label>4.오심</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <caption id="caption37" class="cell_1" style="left:5px; top:626px; width:105px; height:23px; vertical-align:middle; ">정산업무코드</caption>
- <output id="output4" ref="/root/main/list04/gridpifhcunc/calcbizcd" class="input_default" appearance="output" style="left:113px; top:628px; width:114px; height:19px; "/>
- <caption id="caption39" style="left:816px; top:6px; width:75px; height:15px; ">토탈정산금액</caption>
- <input id="ipt_totcalcamt" ref="/root/main/list01/totcalcamt/cadecidifamtsum" format="(-)#,###" appearance="input" style="left:898px; top:4px; width:90px; height:19px; text-align:right; "/>
- <group id="group5" visibility="hidden" style="left:495px; top:160px; width:215px; height:265px; ">
- <!--shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:215px; height:215px; background-color:#d2d2d2; border-color:#ffd799; "/-->
- <caption id="caption9" style="left:15px; top:35px; width:60px; height:30px; ">접수번호 :</caption>
- <caption id="caption11" style="left:15px; top:64px; width:60px; height:30px; ">입금일자 :</caption>
- <button id="button3" class="btn4_letter2" style="left:100px; top:237px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if(ipt_depodd.value == "") {
- messageBox("입급일자를","C001");
- model.setFocus("ipt_depodd");
- return false;
- }
- if(ipt_notimm.value == "") {
- messageBox("통보월을","C001");
- model.setFocus("ipt_notimm");
- return false;
- }
- if(ipt_depoamt.value == "") {
- messageBox("정산금액을","C001");
- model.setFocus("ipt_depoamt");
- return false;
- }
-
- //model.setValue("/root/send/send01/depocnt", grd_pifhcunc.rows-1);
- model.setValue("/root/send/send01/depocnt", getNodesetCount("/root/main/list01/gridpifhcunc[check = 'Y']/calcjudgdg"));
-
- // 청구서단위 입금등록값 세팅
- for(var i=1;i<grd_pifhcunc.rows;i++) {
-
- if( model.getValue("/root/main/list01/gridpifhcunc["+i+"]/check") != 'Y' ){
- grd_pifhcunc.rowStatus(i) = 0;
- continue;
- }
-
- grd_pifhcunc.rowStatus(i) = 2;
- model.setValue("/root/main/list01/gridpifhcunc["+i+"]/calcacptno_bsdp", model.getValue("/root/send/send01/calcacptno"));
- model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depodd_bsdp", model.getValue("/root/send/send01/depodd"));
- model.setValue("/root/main/list01/gridpifhcunc["+i+"]/notimm_bsdp", model.getValue("/root/send/send01/notimm"));
- if(model.getValue("/root/send/send01/depoamt") <= 0) {
- model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depoamt_bsdp", 0);
- model.setValue("/root/main/list01/gridpifhcunc["+i+"]/rtnscheamt_bsdp", Math.abs(model.getValue("/root/send/send01/depoamt")));
-
-
- } else {
- model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depoamt_bsdp", model.getValue("/root/send/send01/depoamt"));
- model.setValue("/root/main/list01/gridpifhcunc["+i+"]/rtnscheamt_bsdp", 0);
- }
-
- //2011-04-22 추가 - 정산입금을 입원, 외래 구분위해서 추가
- //model.makeNode("/root/main/list01/gridpifhcunc["+i+"]/depooutamt_bsdp");
- //model.makeNode("/root/main/list01/gridpifhcunc["+i+"]/depoinamt_bsdp");
- model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depooutamt_bsdp", model.getValue("/root/send/send01/depooutamt"));
- model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depoinamt_bsdp", model.getValue("/root/send/send01/depoinamt"));
-
- model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depocnt_bsdp", model.getValue("/root/send/send01/depocnt"));
- model.setValue("/root/main/list01/gridpifhcunc["+i+"]/bankcd_bsdp", model.getValue("/root/send/send01/bankcd"));
- model.setValue("/root/main/list01/gridpifhcunc["+i+"]/acntcd_bsdp", model.getValue("/root/send/send01/acntcd"));
- model.setValue("/root/main/list01/gridpifhcunc["+i+"]/oprcpcalcyn_bsdp", model.getValue("/root/send/send01/oprcpcalcyn"));
- }
-
- // model.copyNode("/root/main/list01/pifhbsdp","/root/send/send01");
- model.refresh();
-
- model.setValue("/root/main/list05/gridpifhcunc", grd_pifhcunc.getUpdateData());
-
- if(submit("TXPIF30703")) {
- messageBox("정상적으로 일괄 입금등록이","I002");
- //submit("TRPIF30701");
- btn_srch.dispatch("DOMActivate");
- }
-
- group5.visible = false;
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" style="left:157px; top:237px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group5.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption13" class="tit_1" style="left:0px; top:0px; width:151px; height:14px; ">일괄처리</caption>
- <shape id="roundrect1" class="roundrect_btnset" appearance="roundrect" style="left:5px; top:20px; width:205px; height:210px; "/>
- <caption id="caption10" style="left:15px; top:92px; width:60px; height:30px; ">통 보 월 :</caption>
- <caption id="caption12" style="left:15px; top:119px; width:60px; height:30px; ">정산금액 :</caption>
- <input id="ipt_depodd" ref="/root/send/send01/depodd" inputtype="date" format="yyyy-mm-dd" style="left:85px; top:68px; width:110px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var depodd = model.getValue("/root/send/send01/depodd");
- if( depodd.length == 8 ){
- model.setValue("/root/send/send01/notimm", depodd.substr(0,6));
- ipt_notimm.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_notimm" ref="/root/send/send01/notimm" inputtype="date" format="yyyy-mm" style="left:85px; top:95px; width:110px; height:19px; text-align:center; "/>
- <input id="ipt_depoamt" ref="/root/send/send01/depoamt" maxlength="14" format="(-)#,###" style="left:85px; top:124px; width:110px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var amt = model.getValue("/root/send/send01/depoamt");
- model.setValue("/root/send/send01/depooutamt", amt); //외래
- model.setValue("/root/send/send01/depoinamt", 0); //입원
- input1.refresh();
- input2.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- // setInputNodeCurText();
- //
- // var amt = model.getValue("/root/send/send01/depoamt");
- // var outamt = model.getValue("/root/send/send01/depooutamt").replace(',', '');
- //
- // model.setValue("/root/send/send01/depooutamt", outamt);
- // model.setValue("/root/send/send01/depoinamt", parseInt(amt) - parseInt(outamt)); //입원
- //
- // input1.refresh();
- // input2.refresh();
- model.setFocus("input1");
- }
- ]]>
- </script>
- </input>
- <output id="cap_calcacptno" ref="/root/send/send01/calcacptno" appearance="output" style="left:85px; top:40px; width:110px; height:20px; ">caption33</output>
- <input id="input1" ref="/root/send/send01/depooutamt" maxlength="14" format="(-)#,###" style="left:85px; top:154px; width:110px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- // setInputNodeCurText();
- //
- // var amt = model.getValue("/root/send/send01/depoamt");
- // var outamt = model.getValue("/root/send/send01/depooutamt").replace(',', '');
- //
- // model.setValue("/root/send/send01/depooutamt", outamt);
- // model.setValue("/root/send/send01/depoinamt", parseInt(amt) - parseInt(outamt)); //입원
- //
- // input1.refresh();
- // input2.refresh();
- model.setFocus("button3");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var amt = model.getValue("/root/send/send01/depoamt");
- var outamt = model.getValue("/root/send/send01/depooutamt").replace(',', '');
-
- model.setValue("/root/send/send01/depooutamt", outamt);
- model.setValue("/root/send/send01/depoinamt", parseInt(amt) - parseInt(outamt)); //입원
-
- input1.refresh();
- input2.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption1" style="left:15px; top:149px; width:60px; height:30px; ">정산외래 :</caption>
- <caption id="caption7" style="left:15px; top:179px; width:60px; height:30px; ">정산입원 :</caption>
- <input id="input2" ref="/root/send/send01/depoinamt" maxlength="14" format="(-)#,###" style="left:85px; top:184px; width:110px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- // setInputNodeCurText();
- //
- // var amt = model.getValue("/root/send/send01/depoamt");
- // var inamt = model.getValue("/root/send/send01/depoinamt").replace(',', '');
- //
- // model.setValue("/root/send/send01/depooutamt", parseInt(amt) - parseInt(inamt)); //외래
- // model.setValue("/root/send/send01/depoinamt", inamt); //입원
- //
- // input1.refresh();
- // input2.refresh();
- model.setFocus("button3");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var amt = model.getValue("/root/send/send01/depoamt");
- var inamt = model.getValue("/root/send/send01/depoinamt").replace(',', '');
-
- model.setValue("/root/send/send01/depooutamt", parseInt(amt) - parseInt(inamt)); //외래
- model.setValue("/root/send/send01/depoinamt", inamt); //입원
-
- input1.refresh();
- input2.refresh();
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption47" style="left:125px; top:556px; width:485px; height:15px; color:#ff6600; ">(상단 그리드에서 정보수정을 원하는 환자를 선택하시면 이곳에서 수정하실 수 있습니다.)</caption>
- <button id="button9" class="btn2_letter4" style="left:994px; top:5px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var fileName = window.fileDialog("save", ",", false, cap_title.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- var fileName = window.fileDialog("save", ",", false, "정산차수별입금", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") { grd_pifhcunc.saveExcel(fileName, "SheetName", true, true, "", "", ""); } // 20100825 추가
- ]]>
- </script>
- </button>
- <output id="output9" ref="/root/main/list04/gridpifhcunc/seqno" visibility="hidden" style="left:1029px; top:602px; width:115px; height:19px; "/>
- <button id="button13" class="btn2_letter2" style="left:771px; top:4px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPPIF30701", "XMLSTR", "","", "false","","","","","false");
- ]]>
- </script>
- </button>
- </case>
- <case id="case2">
- <line id="line2" class="line_1" style="x1:5px; y1:571px; x2:1148px; y2:571px; "/>
- <line id="line3" class="line_3" style="x1:5px; y1:649px; x2:1143px; y2:649px; "/>
- <datagrid id="grd_pifhcuncmed" nodeset="/root/main/list02/gridpifhcuncmed" class="datagrid2" caption="^정산
심사차수^정산
통보일자^청구년월^청구번호^접수번호^심사차수^명일련^수진자^정산구분^내원구분^정산금액^입금일자^조정소계1^조정소계2^조정합계^본인추가
부담금^이의신청액^통보년월^비고^조합기호^시도^시군구^장애인의료비
정산차액^장애인
입금일자^대불금^대불금
입금일자^이의신청
여부^부제기신청
여부^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9" colsep="^" colwidth="23, 60, 70, 60, 70, 60, 60, 50, 50, 60, 61, 70, 70, 70, 70, 70, 70, 70, 60, 200, 90, 80, 100, 80, 80, 80, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:30px; width:1181px; height:514px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col ref="calcjudgdg" style="text-align:center; "/>
- <col ref="calcnotidd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="clamym" style="text-align:center; "/>
- <col ref="clamno" style="text-align:center; "/>
- <col ref="acptno" style="text-align:center; "/>
- <col ref="judgdg" style="text-align:center; "/>
- <col ref="docuseqno" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="calcflagnm" style="text-align:center; "/>
- <col disabled="true" ref="ioflag" type="combo">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col ref="cadecidifamt" format="(-)#,###" style="left:695px; top:32px; width:100px; height:23px; text-align:right; "/>
- <col ref="depodd" format="yyyy-mm-dd" style="left:795px; top:32px; width:85px; height:23px; text-align:center; "/>
- <col ref="caadjtamt1" format="#,###" style="text-align:right; "/>
- <col ref="caadjtamt2" format="#,###" style="text-align:right; "/>
- <col ref="caadjtamt" format="#,###" style="text-align:right; "/>
- <col ref="caownaddbamt" format="#,###" style="left:910px; top:32px; width:70px; height:23px; text-align:right; "/>
- <col ref="obtappamt" format="#,###" style="text-align:right; "/>
- <col ref="notimm" style="text-align:center; "/>
- <col ref="docuseqnorem"/>
- <col ref="procinstmark" style="text-align:center; "/>
- <col ref="cpcdnm" style="text-align:center; "/>
- <col ref="assocd"/>
- <col ref="cahandicaprfund" format="#,###" style="text-align:right; "/>
- <col ref="handicaprfunddepodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="casubtamt" format="#,###" style="left:2073px; top:32px; width:100px; height:23px; text-align:right; "/>
- <col ref="subtamtdepodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="obtappyn"/>
- <col ref="obtappabdyn"/>
- <col ref="calcflag" visibility="hidden"/>
- <col ref="judgflag" visibility="hidden"/>
- <col ref="calcbizcd" visibility="hidden"/>
- <col ref="calcbiznm" visibility="hidden"/>
- <col ref="insukind" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="cpcd" visibility="hidden"/>
- <col ref="calcacptno_mcdp" visibility="hidden"/>
- <col ref="depodd_mcdp" visibility="hidden"/>
- <col ref="notimm_mcdp" visibility="hidden"/>
- <col ref="depoamt_mcdp" visibility="hidden"/>
- <col ref="depocnt_mcdp" visibility="hidden"/>
- <col ref="cpcd_mcdp" visibility="hidden"/>
- <col ref="assocd_mcdp" visibility="hidden"/>
- <col ref="bankcd_mcdp" visibility="hidden"/>
- <col ref="acntcd_mcdp" visibility="hidden"/>
- <col ref="oprcpcalcyn_mcdp" visibility="hidden"/>
- <col ref="rtnscheamt_mcdp" visibility="visible"/>
- <col ref="depooutamt_mcdp" visibility="visible"/>
- <col ref="depoinamt_mcdp" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 셀을 선택했을 경우에만 실행
- if( grd_pifhcuncmed.iscell(event.target) ) {
-
- // 선택된 row 를 list04med 에 복사한다.
- model.copyNode("/root/main/list04med/gridpifhcuncmed", "/root/main/list02/gridpifhcuncmed["+grd_pifhcuncmed.row+"]");
-
- // 장애인입금일자가 없으면 정산으로 변경
- if ( model.getValue("/root/main/list02/gridpifhcuncmed["+grd_pifhcuncmed.row+"]/handicaprfunddepodd") == "" ) {
- cp_amt.attribute("text") = "정산금액";
- cp_depodd.attribute("text") = "입금일자";
- cp_notidd.attribute("text") = "통보월";
-
- } else { // 장애인입금일자가 있으면 정산장애인으로 변경
- cp_amt.attribute("text") = "장애인정산차액";
- cp_depodd.attribute("text") = "장애인입금일자";
- cp_notidd.attribute("text") = "장애인통보월";
-
- // pifhcunc에 정산, 정산장애인의 값이 저장되는 컬럼은 동일하다. 정산과 정산장애인이 각각 저장되어 있다
- // MAP 파일에서 cadecidifamt, depodd, notimm 이 저장되는 ref 이므로 장애인일 경우의 값으로 변경해 준다.
- model.setValue("/root/main/list04med/gridpifhcuncmed/cadecidifamt",model.getValue("/root/main/list04med/gridpifhcuncmed/cahandicaprfund"));
- model.setValue("/root/main/list04med/gridpifhcuncmed/depodd",model.getValue("/root/main/list04med/gridpifhcuncmed/handicaprfunddepodd"));
- model.setValue("/root/main/list04med/gridpifhcuncmed/notimm",model.getValue("/root/main/list04med/gridpifhcuncmed/notimm"));
- }
-
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_pifhcuncmed.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <output id="output1" ref="/root/main/list04med/gridpifhcuncmed/patnm" class="input_default" appearance="output" style="left:801px; top:578px; width:117px; height:19px; text-align:center; "/>
- <output id="output2" ref="/root/main/list04med/gridpifhcuncmed/acptno" class="input_default" appearance="output" style="left:340px; top:578px; width:118px; height:19px; text-align:center; "/>
- <caption id="cp_depodd" class="cell_1" style="left:463px; top:601px; width:105px; height:23px; vertical-align:middle; ">입금일자</caption>
- <caption id="caption2" class="cell_1" style="left:5px; top:576px; width:105px; height:23px; vertical-align:middle; ">정산차수</caption>
- <caption id="caption4" class="tit_2" style="left:6px; top:10px; width:113px; height:14px; ">정산내역</caption>
- <caption id="caption5" class="cell_1" style="left:693px; top:576px; width:105px; height:23px; vertical-align:middle; ">수진자</caption>
- <line id="line4" class="line_2" style="x1:5px; y1:599px; x2:1148px; y2:599px; "/>
- <select1 id="cmb_calcflagmed2" ref="/root/main/list04med/gridpifhcuncmed/calcflag" appearance="minimal" style="left:113px; top:603px; width:114px; height:19px; ">
- <choices>
- <item>
- <label>이의신청</label>
- <value>01</value>
- </item>
- <item>
- <label>심사청구</label>
- <value>02</value>
- </item>
- <item>
- <label>정산환수</label>
- <value>03</value>
- </item>
- <item>
- <label>정산의뢰</label>
- <value>04</value>
- </item>
- </choices>
- </select1>
- <caption id="cp_notidd" class="cell_1" style="left:693px; top:601px; width:105px; height:23px; vertical-align:middle; ">통보월</caption>
- <line id="line5" class="line_1" style="x1:5px; y1:25px; x2:1186px; y2:25px; "/>
- <caption id="cp_amt" class="cell_1" style="left:232px; top:601px; width:105px; height:23px; vertical-align:middle; ">정산금액</caption>
- <caption id="caption29" class="cell_1" style="left:232px; top:576px; width:105px; height:23px; vertical-align:middle; ">접수번호</caption>
- <input id="ipt_calcamtmed2" ref="/root/main/list04med/gridpifhcuncmed/cadecidifamt" class="input_default" format="(-)#,###" style="left:340px; top:603px; width:118px; height:19px; text-align:right; "/>
- <button id="button1" class="btn5_letter2" style="left:1105px; top:550px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(opt_calcdgmed.value == "") {
- return false;
- } else if(ipt_calcamtmed2.value == "") {
- messageBox("정산입금액을","");
- model.setFocus("ipt_calcamtmed2");
- return false;
- } else if(ipt_depoddmed2.value == "") {
- messageBox("입금일자를","");
- model.setFocus("ipt_depoddmed2");
- return false;
- } else if(ipt_notimmmed2.value == "") {
- messageBox("통보월을","");
- model.setFocus("ipt_notimmmed2");
- return false;
- }else {
- //model.setValue("/root/main/list04/gridpifhcunc", grd_chkdocuadjtdetl.getUpdateData());
- if(submit("TXPIF30702")) {
- submit("TRPIF30702");
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption30" class="tit_2" style="left:6px; top:556px; width:113px; height:13px; ">개인별 정산내역</caption>
- <caption id="caption31" class="cell_1" style="left:5px; top:601px; width:105px; height:23px; vertical-align:middle; ">정산구분</caption>
- <input id="ipt_depoddmed2" ref="/root/main/list04med/gridpifhcuncmed/depodd" class="input_default" format="yyyy-mm-dd" style="left:571px; top:603px; width:117px; height:19px; text-align:center; "/>
- <caption id="caption32" class="cell_1" style="left:463px; top:576px; width:105px; height:23px; vertical-align:middle; ">명세서일련번호</caption>
- <input id="ipt_notimmmed2" ref="/root/main/list04med/gridpifhcuncmed/notimm" class="input_default" format="yyyy-mm" style="left:801px; top:603px; width:117px; height:19px; text-align:center; "/>
- <output id="output3" ref="/root/main/list04med/gridpifhcuncmed/docuseqno" class="input_default" appearance="output" style="left:571px; top:578px; width:117px; height:19px; text-align:center; "/>
- <output id="opt_calcdgmed" ref="/root/main/list04med/gridpifhcuncmed/calcjudgdg" class="input_default" appearance="output" style="left:113px; top:578px; width:114px; height:19px; text-align:center; "/>
- <caption id="caption35" class="cell_1" style="left:923px; top:576px; width:105px; height:23px; vertical-align:middle; ">심사구분</caption>
- <line id="line7" class="line_2" style="x1:5px; y1:624px; x2:1143px; y2:624px; "/>
- <output id="output7" ref="/root/main/list04med/gridpifhcuncmed/calcbiznm" class="input_default" appearance="output" style="left:340px; top:628px; width:805px; height:19px; "/>
- <caption id="caption36" class="cell_1" style="left:232px; top:626px; width:105px; height:23px; vertical-align:middle; ">정산업무명</caption>
- <select1 id="combo1" ref="/root/main/list04med/gridpifhcuncmed/judgflag" disabled="true" appearance="minimal" style="left:1031px; top:578px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>1.재심</label>
- <value>1</value>
- </item>
- <item>
- <label>2.삼심</label>
- <value>2</value>
- </item>
- <item>
- <label>3.사심</label>
- <value>3</value>
- </item>
- <item>
- <label>4.오심</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <output id="output6" ref="/root/main/list04med/gridpifhcuncmed/calcbizcd" class="input_default" appearance="output" style="left:113px; top:628px; width:114px; height:19px; text-align:center; "/>
- <caption id="caption38" class="cell_1" style="left:5px; top:626px; width:105px; height:23px; vertical-align:middle; ">정산업무코드</caption>
- <input id="ipt_totcalcamtmed" ref="/root/main/list02/totcalcamt/cadecidifamtsum" format="(-)#,###" appearance="input" style="left:900px; top:4px; width:90px; height:19px; text-align:right; "/>
- <caption id="caption40" style="left:818px; top:6px; width:75px; height:15px; ">토탈정산금액</caption>
- <group id="group6" visibility="hidden" style="left:495px; top:160px; width:215px; height:265px; ">
- <!--shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:215px; height:215px; background-color:#d2d2d2; border-color:#ffd799; "/-->
- <caption id="caption41" style="left:15px; top:35px; width:60px; height:30px; ">접수번호 :</caption>
- <caption id="caption42" style="left:15px; top:64px; width:60px; height:30px; ">입금일자 :</caption>
- <button id="button6" class="btn4_letter2" style="left:100px; top:232px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(ipt_depoddmed.value == "") {
- messageBox("입급일자를","C001");
- model.setFocus("ipt_depoddmed");
- return false;
- }
- if(ipt_notimmmed.value == "") {
- messageBox("통보월을","C001");
- model.setFocus("ipt_notimmmed");
- return false;
- }
- if(ipt_depoamtmed.value == "") {
- messageBox("정산금액을","C001");
- model.setFocus("ipt_depoamtmed");
- return false;
- }
-
- //model.setValue("/root/send/send01/depocnt", grd_pifhcuncmed.rows-1);
- model.setValue("/root/send/send01/depocnt", getNodesetCount("/root/main/list02/gridpifhcuncmed[check = 'Y']/calcjudgdg"));
-
- for(var i=1;i<grd_pifhcuncmed.rows;i++) {
-
- if( model.getValue("/root/main/list02/gridpifhcuncmed["+i+"]/check") != 'Y' ){
- grd_pifhcuncmed.rowStatus(i) = 0;
- continue;
- }
-
-
- grd_pifhcuncmed.rowStatus(i) = 2;
- model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/calcacptno_mcdp", model.getValue("/root/send/send01/calcacptno"));
- model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/depodd_mcdp", model.getValue("/root/send/send01/depodd"));
- model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/notimm_mcdp", model.getValue("/root/send/send01/notimm"));
-
- // 정산금액이 - 일 경우 정산금액을 입금액은 0, 환수 예정액에 넣는다. 2010.03.19 추가 (보험에는 이미 구현되어 있었음)
- if(model.getValue("/root/send/send01/depoamt") <= 0) {
- model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/depoamt_mcdp", 0);
- model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/rtnscheamt_mcdp", Math.abs(model.getValue("/root/send/send01/depoamt")));
- } else {
- model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/depoamt_mcdp", model.getValue("/root/send/send01/depoamt"));
- model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/rtnscheamt_mcdp", 0);
- }
-
- // model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/depoamt_mcdp", model.getValue("/root/send/send01/depoamt"));
-
- model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/depocnt_mcdp", model.getValue("/root/send/send01/depocnt"));
- model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/cpcd_mcdp", model.getValue("/root/send/send01/cpcd"));
- model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/assocd_mcdp", model.getValue("/root/send/send01/assocd"));
- model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/bankcd_mcdp", model.getValue("/root/send/send01/bankcd"));
- model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/acntcd_mcdp", model.getValue("/root/send/send01/acntcd"));
- model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/oprcpcalcyn_mcdp", model.getValue("/root/send/send01/oprcpcalcyn"));
-
- //20110-04-22 추가 - 정산입금액에 외래,입원 구분위해 추가
- //model.makeNode("/root/main/list02/gridpifhcuncmed["+i+"]/depooutamt_mcdp");
- //model.makeNode("/root/main/list02/gridpifhcuncmed["+i+"]/depoinamt_mcdp");
- model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/depooutamt_mcdp", model.getValue("/root/send/send01/depooutamt"));
- model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/depoinamt_mcdp", model.getValue("/root/send/send01/depoinamt"));
- }
-
- model.refresh();
- //grd_pifhcuncmed.rebuild();
- model.setValue("/root/main/list05med/gridpifhcunc", grd_pifhcuncmed.getUpdateData());
-
- if(submit("TXPIF30704")) {
-
- btn_srch.dispatch("DOMActivate");
- //submit("TRPIF30702");
-
- }
-
- group6.visible = false;
- ]]>
- </script>
- </button>
- <button id="button7" class="btn4_letter2" style="left:157px; top:232px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group6.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption43" class="tit_1" style="left:0px; top:0px; width:151px; height:14px; ">일괄처리</caption>
- <shape id="roundrect2" class="roundrect_btnset" appearance="roundrect" style="left:5px; top:20px; width:205px; height:205px; "/>
- <caption id="caption44" style="left:15px; top:92px; width:60px; height:30px; ">통 보 월 :</caption>
- <caption id="caption45" style="left:15px; top:119px; width:60px; height:30px; ">정산금액 :</caption>
- <input id="ipt_depoddmed" ref="/root/send/send01/depodd" inputtype="date" format="yyyy-mm-dd" style="left:85px; top:68px; width:110px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var depodd = model.getValue("/root/send/send01/depodd");
- if( depodd.length == 8 ){
- model.setValue("/root/send/send01/notimm", depodd.substr(0,6));
- ipt_notimmmed.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_notimmmed" ref="/root/send/send01/notimm" inputtype="date" format="yyyy-mm" style="left:85px; top:95px; width:110px; height:19px; text-align:center; "/>
- <input id="ipt_depoamtmed" ref="/root/send/send01/depoamt" maxlength="14" format="(-)#,###" style="left:85px; top:124px; width:110px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var amt = model.getValue("/root/send/send01/depoamt");
- model.setValue("/root/send/send01/depooutamt", amt); //외래
- model.setValue("/root/send/send01/depoinamt", 0); //입원
- input3.refresh();
- input4.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- // setInputNodeCurText();
- //
- // var amt = model.getValue("/root/send/send01/depoamt");
- // var outamt = model.getValue("/root/send/send01/depooutamt").replace(',', '');
- //
- // model.setValue("/root/send/send01/depooutamt", outamt); //외래
- // model.setValue("/root/send/send01/depoinamt", parseInt(amt) - parseInt(outamt)); //입원
- //
- // input3.refresh();
- // input4.refresh();
-
- model.setFocus("input3");
- }
- ]]>
- </script>
- </input>
- <output id="opt_calcacptnomed" ref="/root/send/send01/calcacptno" appearance="output" style="left:85px; top:40px; width:110px; height:20px; ">caption33</output>
- <caption id="caption28" style="left:15px; top:149px; width:61px; height:30px; ">정산외래 :</caption>
- <input id="input3" ref="/root/send/send01/depooutamt" maxlength="14" format="(-)#,###" style="left:85px; top:154px; width:110px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- // setInputNodeCurText();
- //
- // var amt = model.getValue("/root/send/send01/depoamt");
- // var outamt = model.getValue("/root/send/send01/depooutamt").replace(',', '');
- //
- // model.setValue("/root/send/send01/depooutamt", outamt); //외래
- // model.setValue("/root/send/send01/depoinamt", parseInt(amt) - parseInt(outamt)); //입원
- //
- // input3.refresh();
- // input4.refresh();
-
- model.setFocus("button6");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var amt = model.getValue("/root/send/send01/depoamt");
- var outamt = model.getValue("/root/send/send01/depooutamt").replace(',', '');
-
- model.setValue("/root/send/send01/depooutamt", outamt); //외래
- model.setValue("/root/send/send01/depoinamt", parseInt(amt) - parseInt(outamt)); //입원
-
- input3.refresh();
- input4.refresh();
- ]]>
- </script>
- </input>
- <input id="input4" ref="/root/send/send01/depoinamt" maxlength="14" format="(-)#,###" style="left:85px; top:184px; width:110px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- // setInputNodeCurText();
- //
- // var amt = model.getValue("/root/send/send01/depoamt");
- // var inamt = model.getValue("/root/send/send01/depoinamt").replace(',', '');
- //
- // model.setValue("/root/send/send01/depooutamt", parseInt(amt) - parseInt(inamt)); //외래
- // model.setValue("/root/send/send01/depoinamt", inamt); //입원
- //
- // input3.refresh();
- // input4.refresh();
-
- model.setFocus("button6");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var amt = model.getValue("/root/send/send01/depoamt");
- var inamt = model.getValue("/root/send/send01/depoinamt").replace(',', '');
-
- model.setValue("/root/send/send01/depooutamt", parseInt(amt) - parseInt(inamt)); //외래
- model.setValue("/root/send/send01/depoinamt", inamt); //입원
-
- input3.refresh();
- input4.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption48" style="left:15px; top:179px; width:60px; height:30px; ">정산입원 :</caption>
- </group>
- <button id="button8" class="btn2_letter4" style="left:1121px; top:4px; width:64px; height:19px; ">
- <caption>일괄처리</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var totalamt = 0;
- var totaloutamt = 0;
- var totalinamt = 0;
-
- ipt_depoddmed.value = "";
- ipt_notimmmed.value = "";
- ipt_depoamtmed.value = "";
-
- for(var i=1; i<grd_pifhcuncmed.rows; i++) {
- if( model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/check") == 'Y' ){
-
- //기 입금내역인지 체크
- if( model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/depodd") != '' ) {
- messageBox("이미 입금등록이","I002");
- return false;
- }
-
- //토탈입금내역 확인
- if( model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/ioflag") == 'I' ){
- totalinamt = parseInt(totalinamt) + parseInt(model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/cadecidifamt"));
- }else if( model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/ioflag") == 'O' ){
- totaloutamt = parseInt(totaloutamt) + parseInt(model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/cadecidifamt"));
- }
-
- totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/cadecidifamt"));
- }
-
-
- }
-
- if(chk_oprcpcalcyn.value == "Y") {
- opt_calcacptnomed.value = "8888888";
- ipt_depoamtmed.value = ipt_totcalcamtmed.value;
- // model.setValue("/root/send/send03/calcdg", ipt_calcdg.value);
- // model.setValue("/root/send/send03/notidd", ipt_notidd.value);
- // model.setValue("/root/send/send03/acptno", cmb_acptno.value);
- model.setValue("/root/send/send01/bankcd", BANKCD);
- model.setValue("/root/send/send01/acntcd", BANKACOUNT);
- } else {
- opt_calcacptnomed.value = "9999999";
- ipt_depoamtmed.value = ipt_totcalcamtmed.value;
- // model.setValue("/root/send/send03/calcdg", ipt_calcdg.value);
- // model.setValue("/root/send/send03/notidd", ipt_notidd.value);
- // model.setValue("/root/send/send03/acptno", cmb_acptno.value);
- model.setValue("/root/send/send01/bankcd", BANKCD);
- model.setValue("/root/send/send01/acntcd", BANKACOUNT);
- }
-
- model.setValue("/root/send/send01/depoamt", totalamt);
- model.setValue("/root/send/send01/depooutamt", totaloutamt);
- model.setValue("/root/send/send01/depoinamt", totalinamt);
-
- group6.visible = true;
- model.refresh();
- model.setFocus("ipt_depoddmed");
- ]]>
- </script>
- </button>
- <output id="output8" ref="/root/main/list04med/gridpifhcuncmed/seqno" visibility="hidden" style="left:1030px; top:602px; width:115px; height:19px; "/>
- <caption id="caption46" style="left:120px; top:556px; width:465px; height:15px; color:#ff6600; ">(개인정산내역에 대한 정산구분,정산금액,입금일자,통보월 수정만 이곳에서 하십시오)</caption>
- <button id="button2" class="btn2_letter4" style="left:996px; top:4px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "정산차수별입금", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") { grd_pifhcuncmed.saveExcel(fileName, "SheetName", true, true, "", "", ""); } // 20100825 추가
- ]]>
- </script>
- </button>
- <button id="button11" class="btn2_letter2" style="left:771px; top:4px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPPIF30700", "XMLSTR", "","", "false","","","","","false");
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_srch" class="btn1_letter2" style="left:1126px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_calcdg.value== "" || ipt_calcdg.value== null) {
- messageBox("정산차수를","C001");
- model.setFocus("ipt_calcdg");
- return false;
- }
- // model.setvalue("/root/send/send01/clamno", model.getvalue("/root/list00/u0001[1]/clamno"));
- model.resetInstanceNode("/root/main/list01");
- // model.resetInstanceNode("/root/main/list02");
-
- var totalamt = 0;
-
- switch (rdo_insukind.value) {
- case "11" :
- submit("TRPIF30701");
-
- for(var i=1; i<=getNodesetCount("/root/main/list01/gridpifhcunc/depodd"); i++) {
- if( model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/depodd") != '' ){
- grd_pifhcunc.isreadonly( i, grd_pifhcunc.colRef("check") ) = true;
- model.setValue("/root/main/list01/gridpifhcunc[" + i + "]/check", 'N');
- //totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/cadecidifamt"));
- }else{
- grd_pifhcunc.isreadonly( i, grd_pifhcunc.colRef("check") ) = false;
- model.setValue("/root/main/list01/gridpifhcunc[" + i + "]/check", 'Y');
- //totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/cadecidifamt"));
- }
- totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/cadecidifamt"));
- }
- model.makeNode("/root/main/list01/totcalcamt/cadecidifamtsum");
- model.setValue("/root/main/list01/totcalcamt/cadecidifamtsum", totalamt);
-
- break ;
- case "21":
- submit("TRPIF30702");
- model.resetInstanceNode("/root/main/list04med/gridpifhcuncmed");
-
- for(var i=1; i<=getNodesetCount("/root/main/list02/gridpifhcuncmed/depodd"); i++) {
- if( model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/depodd") != '' ){
- grd_pifhcuncmed.isreadonly( i, grd_pifhcuncmed.colRef("check") ) = true;
- model.setValue("/root/main/list02/gridpifhcuncmed[" + i + "]/check", 'N');
- //totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/cadecidifamt"));
- }else{
- grd_pifhcuncmed.isreadonly( i, grd_pifhcuncmed.colRef("check") ) = false;
- model.setValue("/root/main/list02/gridpifhcuncmed[" + i + "]/check", 'Y');
- //totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/cadecidifamt"));
- }
-
- totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/cadecidifamt"));
- }
- model.makeNode("/root/main/list02/totcalcamt/cadecidifamtsum");
- model.setValue("/root/main/list02/totcalcamt/cadecidifamtsum", totalamt);
-
- break ;
- case "31":
- submit("TRPIF30703");
- }
-
- model.refresh();
- // btn_acptno.selected = true;
- ]]>
- </script>
- </button>
- <line id="line43" style="x1:1115px; y1:7px; x2:1115px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select id="chk_oprcpcalcyn" ref="/root/send/send01/oprcpcalcyn" class="chekbox_search" overflow="visible" appearance="full" style="left:349px; top:10px; width:67px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>원외정산</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(chk_oprcpcalcyn.value == "Y") {
- model.removeNodeset("/root/main/list00/U0001");
- model.setValue("/root/send/send01/calcacptno","8888888");
- // model.setValue("/root/send/send02/oprcpcalcyn", chk_oprcpcalcyn.value);
- ipt_notidd.value = "";
- model.setFocus("ipt_calcdg");
- if(rdo_insukind.value == "21") {
- model.removenode("/root/init/Cpcd");
- model.removenode("/root/init/Assocd");
- cmb_cpcd.value = "";
- cmb_assocd.value = "";
- }
- model.refresh();
- cmb_acptno.value = "";
- } else {
- model.removeNodeset("/root/main/list00/U0001");
- model.setValue("/root/send/send01/calcacptno","9999999");
- // model.setValue("/root/send/send02/oprcpcalcyn", chk_oprcpcalcyn.value);
- ipt_notidd.value = "";
- cmb_acptno.value = "";
- if(rdo_insukind.value == "21") {
- model.removenode("/root/init/Cpcd");
- model.removenode("/root/init/Assocd");
- cmb_cpcd.value = "";
- cmb_assocd.value = "";
- }
- model.refresh();
- model.setFocus("ipt_calcdg");
- }
- ]]>
- </script>
- </select>
- <caption id="caption17" class="search_name" style="left:11px; top:9px; width:90px; height:17px; ">보험유형 :</caption>
- <caption id="caption18" class="search_name" style="left:769px; top:9px; width:79px; height:17px; ">명일련 :</caption>
- <caption id="caption19" class="search_name" style="left:422px; top:9px; width:88px; height:17px; ">통보일자 :</caption>
- <select1 id="rdo_insukind" ref="/root/send/send01/insukind" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:99px; top:10px; width:86px; height:14px; border-style:none; ">
- <choices>
- <item>
- <label>보험</label>
- <value>11</value>
- </item>
- <item>
- <label>보호</label>
- <value>21</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- switch (rdo_insukind.value) {
- case "11" :
- caption15.visible = false;
- cmb_cpcd.visible = false;
- cmb_assocd.visible = false;
- model.removeNodeset("/root/main/list00/U0001");
- model.setValue("/root/send/send01/docuseqno","");
-
- btn_insu.selected = true ;
- model.toggle("case1") ;
- model.setFocus("ipt_calcdg");
- model.refresh();
- break ;
- case "21":
- caption15.visible = true;
- cmb_cpcd.visible = true;
- cmb_assocd.visible = true;
- model.removeNodeset("/root/main/list00/U0001");
- model.setValue("/root/send/send01/docuseqno","");
- model.setValue("/root/send/send01/cpcd","");
- model.setValue("/root/send/send01/assocd","");
-
- btn_proc.selected = true ;
- model.toggle("case2") ;
- model.setFocus("ipt_calcdg");
- model.refresh();
- break ;
- case "31":
- btn_handi.selected = true ;
- model.toggle("case3") ;
- }
- model.setFocus("ipt_calcdg");
- ]]>
- </script>
- </select1>
- <input id="ipt_docuseqno" ref="/root/send/send01/docuseqno" class="input_search" style="left:843px; top:8px; width:50px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- model.setFocus("btn_srch");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_notidd" ref="/root/main/list00/U0001/notidd" class="input_search" inputtype="date" style="left:509px; top:8px; width:86px; height:19px; "/>
- <caption id="caption20" class="search_name" style="left:602px; top:9px; width:86px; height:17px; ">접수번호 :</caption>
- <input id="ipt_calcdg" ref="/root/send/send01/calcdg" class="input_s_essential" style="left:281px; top:8px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- if(ipt_calcdg.value != "" || ipt_calcdg.value != null) {
- model.resetInstanceNode("/root/main/list00/U0001");
- model.setValue("/root/send/send01/acptno","");
- ipt_notidd.value = "";
- cmb_acptno.value = "";
- ipt_docuseqno.value = "";
- if(rdo_insukind.value == "21") {
- model.removenode("/root/init/Cpcd");
- model.removenode("/root/init/Assocd");
- cmb_cpcd.value = "";
- cmb_assocd.value = "";
- }
- model.refresh();
- submit("TRPIF30700");
- model.setValue("/root/send/send01/notidd", model.getValue("/root/main/list00/U0001[1]/notidd"));
-
- if(cmb_acptno.length == 1) {
- cmb_acptno.select(0);
- model.setFocus("cmb_acptno");
- } else if(cmb_acptno.length > 1) {
- addComboItem( "cmb_acptno" , "--선택--","");
- model.setFocus("cmb_acptno");
- }
-
- // 보호는 시도코드 까지 조회를 한다. 2010.03.22 접수번호 없이 시도 선택하게 해 달라는 요청.
- // 일괄처리시 접수번호는 그리드의 각 로우의 것을 가지고 가므로 문제는 없다.
- if(rdo_insukind.value == "21") {
- model.removenode("/root/init/Cpcd");
- model.removenode("/root/init/Assocd");
- ipt_docuseqno.value = "";
- cmb_cpcd.value = "";
- cmb_assocd.value = "";
- model.refresh();
- submit("TRPIF30704"); // 시도코드 조회
- }
- }
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption14" class="search_name" style="left:194px; top:9px; width:103px; height:17px; ">정산차수 :</caption>
- <select1 id="cmb_acptno" ref="/root/send/send01/acptno" class="combo_search" appearance="minimal" style="left:688px; top:8px; width:74px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/list00/U0001">
- <label ref="acptno"/>
- <value ref="acptno"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(rdo_insukind.value == "11") {
- submit("TRPIF30701"); // 보험유형이 보험이면 정산내역 조회
- } else {
- model.removenode("/root/init/Cpcd");
- model.removenode("/root/init/Assocd");
- ipt_docuseqno.value = "";
- cmb_cpcd.value = "";
- cmb_assocd.value = "";
- model.refresh();
- submit("TRPIF30704"); // 보험유형이 보호이면 시도코드 조회
- }
- ]]>
- </script>
- </select1>
- <select1 id="cmb_cpcd" ref="/root/send/send01/cpcd" class="combo_search" appearance="minimal" style="left:961px; top:8px; width:59px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/Cpcd/cpcdlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue("/root/send/send01/assocd","");
- model.removenode("/root/init/Assocd");
- model.refresh();
- submit("TRPIF30705"); // 시군구코드 조회
- submit("TRPIF30702"); // 시도에 해당하는 정산내역 조회
-
- model.resetInstanceNode("/root/main/list04med/gridpifhcuncmed");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption15" class="search_name" style="left:900px; top:9px; width:61px; height:17px; ">시도 :</caption>
- <select1 id="cmb_assocd" ref="/root/send/send01/assocd" class="combo_search" appearance="minimal" style="left:1022px; top:8px; width:83px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/Assocd/assocdlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- submit("TRPIF30702"); // 시군구에 해당하는 정산내역 조회
- model.resetInstanceNode("/root/main/list04med/gridpifhcuncmed");
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_proc" class="btn_sw" group="tab" style="left:110px; top:51px; width:110px; height:22px; ">
- <caption>보호</caption>
- <toggle case="case2" ev:event="onclick"/>
- </button>
- <button id="btn_insu" class="btn_sw" group="tab" selected="true" style="left:0px; top:51px; width:110px; height:22px; ">
- <caption>보험</caption>
- <toggle case="case1" ev:event="onclick"/>
- </button>
- <button id="button5" class="btn2_letter3" style="left:1065px; top:77px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.resetInstanceNode("/root/main/list00/U0001");
- model.setValue("/root/send/send01/acptno","");
- model.removenode("/root/init/Cpcd");
- model.removenode("/root/init/Assocd");
- model.resetInstanceNode("/root/send/send01");
- model.removenode("/root/main/list01");
- model.removenode("/root/main/list02");
- btn_insu.selected = true;
- model.toggle("case1");
- model.refresh();
- rdo_insukind.value = "11";
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1194px; height:27px; "/>
- </xhtml:body>
- </xhtml:html>
|