12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>사업소득 조회/수정</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <orchlist/>
- <priprofprntlist/>
- </list>
- <printlist>
- <fstpage/>
- <secpage/>
- </printlist>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <payinst/>
- <frdd/>
- <todd/>
- <rrgstno/>
- <name/>
- <emplno/>
- <emplnm/>
- <profflag>B</profflag>
- <retrkind/>
- <dayflag/>
- <groupid/>
- </retrparams>
- <printparams>
- <payTotAmt/>
- <incmTax/>
- <resdnTax/>
- <isumAmt/>
- </printparams>
- <rertparams2>
- <instcd/>
- <name/>
- <rrgstno/>
- <retrflag/>
- </rertparams2>
- </send>
- <init/>
- <temp/>
- <hidden>
- <incmpsn>
- <name/>
- <rrgstno/>
- <entrregno/>
- <custnm/>
- <zipcd/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseqno/>
- <supaddr/>
- <infaddr/>
- <cntctel/>
- <emailaddr/>
- <cmt/>
- <ionatiflag/>
- <incmflag/>
- </incmpsn>
- <prntlist>
- <priprofprntlist/>
- <flag/>
- </prntlist>
- <zipcd>
- <zipcd1/>
- <zipcd2/>
- <supaddr/>
- <zipcdseqno/>
- </zipcd>
- <incmpsntemp>
- <name/>
- <rrgstno/>
- <entrregno/>
- <custnm/>
- <zipcd/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseqno/>
- <supaddr/>
- <infaddr/>
- <cntctel/>
- <emailaddr/>
- <cmt/>
- <ionatiflag/>
- <induflag/>
- <incmflag/>
- </incmpsntemp>
- <checkedcnt/>
- </hidden>
- <prt/>
- </root>
- </instance>
- <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/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <bind id="bindPayTotAmt" ref="/root/send/printparams/payTotAmt" calculate="sum(/root/main/list/orchlist/paytotamt)"/>
- <bind id="bindIncmTax" ref="/root/send/printparams/incmTax" calculate="sum(/root/main/list/orchlist/incmtax)"/>
- <bind id="bindResdnTax" ref="/root/send/printparams/resdnTax" calculate="sum(/root/main/list/orchlist/resdntax)"/>
- <submission id="TRRAC00611" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rertparams2" resultref="/root/hidden/incmpsn"/>
- <submission id="TXRAT00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/orchlist" resultref="/root/temp"/>
- <submission id="TRRAT00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
-
- model.setValue("/root/send/retrparams/dayflag", "P");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- // 2011.09.26 cyw 해당실무자만이 메뉴접근 가능하도록 수정.
- misfComboComCdList("030R0018",cmb_gruptype);
- var cnt = getNodesetCount("/root/init/cmb_gruptype/comcodelist");
- var chk = 0;
- for(var i = 1; i <= cnt; i++ ){
- if( model.getValue("/root/init/cmb_gruptype/comcodelist[" + i + "]/cdid") == getUserId() ){
- chk++;
- }
- }
-
- if( chk > 0 ){
- group3.disabled = false;
- }else{
- group3.disabled = true;
- messageBox("해당 화면에 권한이 없습니다.", "C000");
- }
- model.removenode("/root/main/list/orchlist");
- misfMsterDetailSet(grd_orchlist, null, "TRRAT00601", "Y");
- // misfComboComCdListMulti("Z0007,R0278", "cmb_instcd,grd_orchlist.induflag");
- misfComboComCdListMulti("Z0007,", "cmb_instcd");
- model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/retrparams/frdd", getCurrentDate());
- model.setValue("/root/send/retrparams/todd", getCurrentDate());
- model.setValue("/root/send/rertparams2/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/retrparams/retrkind", "all")
- model.refresh();
-
- grd_orchlist.rowHeight(0) = 30;
-
- //fRetrieve();
- }
-
- function fRetrieve()
- {
- submit("TRRAT00601");
- for(var i=1; i<grd_orchlist.rows; i++)
- {
- if(model.getValue(grd_orchlist.nodeset + "[" + i + "]/chkyn") == "Y")
- {
- model.setValue(grd_orchlist.nodeset + "[" + i + "]/chknm" , "확인");
- misfSetReadOnlyCol(grd_orchlist, "pumno,name,rrgstno,paydd,getdd,paytotamt",true,i);
- }else{
- misfSetReadOnlyCol(grd_orchlist, "pumno,name,rrgstno,paydd,getdd,paytotamt",false,i); //2011.10.11 cyw
- }
-
- // if(model.getValue(grd_orchlist.nodeset + "[" + i + "]/slipyn") == "Y")
- // {
- // grd_orchlist.rowStyle(i, "all", "background-color") = "#EAEAEA";
- // misfSetReadOnlyCol(grd_orchlist, "name,rrgstno,posyear,cmt,dayno,dypay,paytotamt,incmtax,resdntax,zipcd,supaddr,infaddr", true, i);
- // }
- // else
- // {
- // grd_orchlist.rowStyle(i, "all", "background-color") = "#ffffff";
- // misfSetReadOnlyCol(grd_orchlist, "name,rrgstno,posyear", true, i);
- // misfSetReadOnlyCol(grd_orchlist, "name,rrgstno,posyear,cmt,dayno,dypay,paytotamt,incmtax,resdntax,zipcd,supaddr,infaddr", false, i);
- // }
- }
- // var rows = grd_orchlist.rows - 1;
- // var st = grd_orchlist.colRef("paydd");
- // grd_orchlist.sort(1, st, rows, st) = "desc";
- // grd_orchlist.refresh();
-
- fSetPrintNodeList();
- model.recalculate();
- }
- function fSave()
- {
- for(var i=1; i<grd_orchlist.rows; i++)
- {
- var sRrgstno = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("rrgstno"));
- //var sPosYear = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("posyear"));
- var sPosYear = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("posdd"));
- var sCmt = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("cmt"));
- var sPaytotamt = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("paytotamt"));
- var unslno = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("unslno"));
- if (unslno != ""){
- messageBox("전표발의에서 생성된 자료는 삭제할 수 없습니다.", "E999", "");
- return;
- }
-
- if(sRrgstno == "") { messageBox("소득자를", "C001"); return; }
- // if(!isValidDateTime(sPosYear, "YYYYMMDD"))
- // { messageBox("귀속 일자가 유효하지 않습니다.", "I000"); return; }
- // if(sCmt == "") { messageBox("적요를", "C001"); return; }
- if(sPaytotamt == "") { messageBox("지급액을", "C001"); return; }
- }
- misfSave("TXRAT00601");
- fRetrieve();
- }
- function fPrint()
- {
- var iLength = instance1.selectNodes("/root/main/list/prtorchlist").length;
- model.removenode("/root/hidden/prntlist");
- model.makeNode("/root/hidden/prntlist");
-
- //2011.10.04 cyw 선택영역만 출력가능하게
- if(grd_orchlist.selectedRows >= 1 ){
- for( var a = 0 ; a < grd_orchlist.selectedRows ; a++ ){
- model.makeNode("/root/hidden/prntlist/priprofprntlist[" + (a+1) + "]");
- model.copyNode("/root/hidden/prntlist/priprofprntlist[" + (a+1) + "]","/root/main/list/orchlist[" + grd_orchlist.selectedRow(a) + "]");
- }
- }else{
- for(var i=1; i<=iLength; i++)
- {
- model.makeNode("/root/hidden/prntlist/priprofprntlist[" + i + "]");
- model.copyNode("/root/hidden/prntlist/priprofprntlist[" + i + "]", "/root/main/list/prtorchlist[" + i + "]");
- }
- }
-
-
- var lstcnt = getNodesetCount("/root/hidden/prntlist/priprofprntlist");
- // 소득자, 발행자 구분값
- model.makeValue("/root/hidden/prntlist/lstcnt", lstcnt );
- model.makeValue("/root/hidden/prntlist/flag", "1");
-
- //2011.07.27 cyw 가장 마지막 지급일자
- model.makeValue("/root/hidden/prntlist/gdate", model.getValue("/root/hidden/prntlist/priprofprntlist[1]/paydd"));
- exeReportPreview("RPRAT00900", "XMLSTR");
-
- model.setValue("/root/hidden/prntlist/flag", "2");
- exeReportPreview("RPRAT00900", "XMLSTR");
- // exeReportPreview("RPRAD00203", "XMLSTR");
- }
-
- function fSetPrintNodeList()
- {
- var iLength = instance1.selectNodes("/root/main/list/orchlist").length;
- model.removenode("/root/hidden/prntlist");
- model.makeNode("/root/hidden/prntlist");
- for(var i=1; i<=iLength; i++)
- {
- model.makeNode("/root/hidden/prntlist/priprofprntlist[" + i + "]");
- model.copyNode("/root/hidden/prntlist/priprofprntlist[" + i + "]", "/root/main/list/orchlist[" + i + "]");
- }
- }
-
-
- function fPayCalc()
- {
- var iPayTotAmt = parseInt(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/paytotamt"), 10);
- var iIncmTax = parseInt((iPayTotAmt * 0.03) / 10,10) * 10;
- var iResdnTax = parseInt((iIncmTax * 0.1) / 10,10) * 10;
-
- if (iIncmTax < 1000)
- {
- iIncmTax = 0;
- iResdnTax = 0;
- }
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/incmtax", iIncmTax);
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/resdntax", iResdnTax);
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/sumamt", iIncmTax + iResdnTax);
- model.recalculate();
- model.refresh();
- }
- ]]>
- </script>
- <bind id="bindChkCnt" ref="/root/hidden/checkedcnt" calculate="count(/root/main/list/orchlist[chk = 'Y']/chk)"/>
- <bind id="bindSumAmt" ref="/root/send/printparams/isumAmt" calculate="sum(/root/main/list/orchlist/sumamt)"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">사업소득 조회/수정</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:762px; ">
- <group id="grp_sea" style="left:0px; top:35px; width:1195px; height:35px; vertical-align:top; ">
- <select1 id="rdo_retrkind" ref="/root/send/retrparams/retrkind" visibility="hidden" appearance="full" cellspacing="0" cols="3" overflow="visible" style="left:971px; top:9px; width:90px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>all</value>
- </item>
- <item>
- <label>집합</label>
- <value>sum</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fRetrieve();
- //
- // fSetControlAttr();
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" visibility="hidden" style="left:901px; top:9px; width:97px; height:17px; ">조회구분 :</caption>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line5" class="line_4" style="x1:1107px; y1:6px; x2:1107px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_frym" ref="/root/send/retrparams/frdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:490px; top:8px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fRetrieve();
- ]]>
- </script>
- </input>
- <caption id="caption2" style="left:592px; top:11px; width:15px; height:20px; ">~</caption>
- <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_s_essential" disabled="true" navindex="-1" appearance="minimal" style="left:99px; top:8px; width:176px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/rertparams2/instcd", "/root/send/retrparams/instcd");
- fRetrieve();
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:9px; top:9px; width:90px; height:17px; ">기관구분 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
- ]]>
- </script>
- </button>
- <input id="ipt_toym" ref="/root/send/retrparams/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:605px; top:8px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fRetrieve();
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:730px; top:9px; width:90px; height:17px; ">소 득 자 :</caption>
- <button id="btn_entregnohelp" class="icon_search" style="left:924px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("31", ipt_rrgstno, "", "rrgstno,name");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_rrgstno" ref="/root/send/retrparams/rrgstno" class="input_search" navindex="5" format="999999-9999999" style="left:820px; top:8px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_name");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(ipt_rrgstno.currentText == "")
- {
- model.setValue("/root/send/retrparams/rrgstno", "");
- model.setValue("/root/send/retrparams/name", "");
- ipt_rrgstno.refresh();
- ipt_name.refresh();
- return;
- }
- model.setValue("/root/send/rertparams2/name", "");
- model.setValue("/root/send/rertparams2/rrgstno", model.getValue("/root/send/retrparams/rrgstno"));
- model.setValue("/root/send/rertparams2/retrflag", "code");
- if (submit("TRRAC00611"))
- {
- if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
- {
- model.setValue("/root/send/retrparams/name", model.getValue("/root/hidden/incmpsn/name"));
- model.setValue("/root/send/retrparams/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
- }
- else
- {
- model.setValue("/root/send/retrparams/name", "");
- model.setValue("/root/send/retrparams/rrgstno", "");
- }
- }
- model.refresh();
- fRetrieve();
- ]]>
- </script>
- </input>
- <input id="ipt_name" ref="/root/send/retrparams/name" class="input_search" navindex="6" imemode="hangul" style="left:944px; top:8px; width:101px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(ipt_name.currentText == "")
- {
- model.setValue("/root/send/retrparams/rrgstno", "");
- model.setValue("/root/send/retrparams/name", "");
- ipt_rrgstno.refresh();
- ipt_name.refresh();
- return;
- }
- model.setValue("/root/send/rertparams2/name", model.getValue("/root/send/retrparams/name"));
- model.setValue("/root/send/rertparams2/rrgstno", "");
- model.setValue("/root/send/rertparams2/retrflag", "name");
- if (submit("TRRAC00611"))
- {
- if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
- {
- model.setValue("/root/send/retrparams/name", model.getValue("/root/hidden/incmpsn/name"));
- model.setValue("/root/send/retrparams/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
- }
- else
- {
- model.setValue("/root/send/retrparams/name", "");
- model.setValue("/root/send/retrparams/rrgstno", "");
- }
- }
- model.refresh();
- fRetrieve();
- ]]>
- </script>
- </input>
- <select1 id="cmb_day" ref="/root/send/retrparams/dayflag" class="combo_s_essential" navindex="-1" appearance="minimal" style="left:370px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>지급일자</label>
- <value>P</value>
- </item>
- <item>
- <label>귀속년월</label>
- <value>G</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( cmb_day.value == "G" ) {
- ipt_frym.attribute("format") = "yyyy-mm";
- ipt_toym.attribute("format") = "yyyy-mm";
- model.refresh();
- }
- if ( cmb_day.value == "P" ) {
- ipt_frym.attribute("format") = "yyyy-mm-dd";
- ipt_toym.attribute("format") = "yyyy-mm-dd";
- model.refresh();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:280px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:93px; x2:1195px; y2:93px; "/>
- <caption id="caption21" class="tit_2" style="left:5px; top:78px; width:139px; height:14px; ">사업소득자 목록</caption>
- <group id="group2" scroll="auto" style="left:0px; top:0px; width:1195px; height:27px; ">
- <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
-
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn4_letter2" style="left:1080px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 2011.07.13 CYW
- // * 조회기준이 소득자가 포함되어있는 경우에만 출력 가능함.
- var flag = true;
- var orchCnt = getNodesetCount("/root/main/list/orchlist");
-
- for( var i = 1 ; i <= orchCnt ; i++ ){
- if( model.getValue("/root/main/list/orchlist[1]/name") != model.getValue("/root/main/list/orchlist[" + i + "]/name") ){
- flag = false;
- }
- }
-
- if( flag == true ){
- fPrint();
- }else{
- messageBox("소득자 기준으로 조회해야 출력 가능합니다. 소득자를 조회해주십시오.", "E000", "");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_addrow" class="btn2_letter3" style="left:1017px; top:73px; width:53px; height:19px; text-align:left; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_orchlist, "A");
- var dayno = getCurrentDate();
- grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("chrgflag")) = "B";
- grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("taxrate")) = "3";
- grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("paydd")) = dayno;
- grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("getdd")) = dayno.substr(0, 6);
- // misfSetReadOnlyCol(grd_orchlist, "ionatiflag", true, grd_orchlist.row);
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" style="left:1072px; top:73px; width:53px; height:19px; text-align:left; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var iLength = grd_orchlist.selectedCells.length;
- var iLength = grd_orchlist.selectedRows;
-
- for(var i=0; i<iLength; i++)
- {
- var iRowIdx = grd_orchlist.selectedCells.item(i).row;
-
- if(model.getValue(grd_orchlist.nodeset + "[" + iRowIdx + "]/slipyn") != "Y")
- {
- if(grd_orchlist.rowStatus(iRowIdx) == 4)
- {
- grd_orchlist.rowStatus(iRowIdx) = 0;
- }
- else if(grd_orchlist.rowStatus(iRowIdx) == 1 && grd_orchlist.rowStatus(iRowIdx) == 3)
- {
- grd_orchlist.deleteRow(iRowIdx, false);
- }
- else
- {
- grd_orchlist.addStatus(iRowIdx, "delete");
- }
- }
- }
- ]]>
- </script>
- </button>
- <output id="opt_temp" ref="/root/hidden/incmpsn/name" visibility="hidden" style="left:914px; top:73px; width:20px; height:19px; "/>
- <caption id="caption10" style="left:180px; top:77px; width:15px; height:15px; background-color:#c0c0c0; "/>
- <caption id="caption11" style="left:198px; top:78px; width:202px; height:14px; ">전표 사업소득 삭제 및 수정 불가</caption>
- <button id="btn_excel" class="btn2_letter4" style="left:1127px; top:73px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sTitle = "사업소득 " + model.getValue("/root/send/retrparams/frdd").substr(2, 2) + "-" + model.getValue("/root/send/retrparams/frdd").substr(4, 2) + "-" + model.getValue("/root/send/retrparams/frdd").substr(6, 2) + " ~ " + model.getValue("/root/send/retrparams/todd").substr(2, 2) + "-" + model.getValue("/root/send/retrparams/todd").substr(4, 2) + "-" + model.getValue("/root/send/retrparams/todd").substr(6, 2);
- misfSaveExcel(grd_excel, sTitle);
- ]]>
- </script>
- </button>
- <datagrid id="grd_orchlist" nodeset="/root/main/list/orchlist" backcoloralternate="#ffffff" caption="확인^품의번호^기관코드^일련번호^세부일련번호^징수구분^사원번호^성명^주민등록번호^귀속년도^귀속일자^지급일자^귀속년월^사업자등록번호^상호^적 요^지급액^세율^소득세^주민세^계^우편번호^우편번호^우편번호^우편번호일련번호^주소^상위주소^상세주소^업종구분^소득구분" colwidth="45, 150, 0, 0, 0, 0, 0, 99, 110, 0, 0, 90, 90, 0, 0, 0, 150, 40, 90, 80, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" ellipsis="true" explorerbar="sortshow" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:142px; width:1193px; height:617px; ">
- <col disabled="true" ref="chknm" type="input" style="text-align:center; "/>
- <col ref="pumno" type="input" format="99999999-99999999" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="detlseqno" visibility="hidden"/>
- <col ref="chrgflag" visibility="hidden"/>
- <col ref="emplno" visibility="hidden"/>
- <col ref="name" type="inputbutton"/>
- <col ref="rrgstno" type="input" format="999999-9999999" style="text-align:center; "/>
- <col ref="posyear" visibility="hidden" style="text-align:center; "/>
- <col ref="posdd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="paydd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="getdd" type="inputdate" format="yyyy-mm" style="text-align:center; "/>
- <col ref="entrregno" visibility="hidden" format="999-99-99999"/>
- <col ref="custnm" visibility="hidden"/>
- <col ref="cmt" type="input" visibility="hidden" style="text-align:left; "/>
- <col ref="paytotamt" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="taxrate" format="## %" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="incmtax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="resdntax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="sumamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="zipcd" type="inputbutton" visibility="hidden" style="text-align:center; "/>
- <col ref="zipcd1" visibility="hidden"/>
- <col ref="zipcd2" visibility="hidden"/>
- <col ref="zipcdseqno" visibility="hidden"/>
- <col ref="address" visibility="hidden"/>
- <col ref="supaddr" type="input" visibility="hidden" style="text-align:left; "/>
- <col ref="infaddr" type="input" visibility="hidden" style="text-align:left; "/>
- <col ref="induflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/R0278list/R0278">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="incmflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/R0279list/R0279">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_orchlist.col == grd_orchlist.colRef("name"))
- {
- model.removenode("/root/hidden/incmpsn");
- model.makeNode("/root/hidden/incmpsn");
- model.copyNode("/root/hidden/incmpsn", "/root/hidden/incmpsntemp");
- misfOpenPopUpList("31", opt_temp, "", "rrgstno,name,entrregno,custnm,zipcd,zipcd1,zipcd2,zipcdseqno,supaddr,infaddr,cntctel,emailaddr,cmt,ionatiflag,incmflag", "");
-
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
- // model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/ionatiflag", model.getValue("/root/hidden/incmpsn/ionatiflag"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posdd", getCurrentDate());
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate().substr(0, 4));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", (model.getValue("/root/hidden/incmpsn/zipcd1") == "" ? "" : model.getValue("/root/hidden/incmpsn/zipcd1") + "-" + model.getValue("/root/hidden/incmpsn/zipcd1")));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
- }
- else if(grd_orchlist.col == grd_orchlist.colRef("zipcd"))
- {
- misfOpenPopUpList("04", opt_zipcd, "", "zipcd1,zipcd2,supaddr,zipcdseqno");
- var sZipcd = model.getValue("/root/hidden/zipcd/zipcd1") + '-' + model.getValue("/root/hidden/zipcd/zipcd2");
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", sZipcd);
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/zipcd/supaddr"));
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_orchlist.col == grd_orchlist.colRef("name") || grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
- {
- model.setValue("/root/send/rertparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
- if(grd_orchlist.col == grd_orchlist.colRef("name"))
- {
- model.setValue("/root/send/rertparams2/name", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("name")));
- model.setValue("/root/send/rertparams2/rrgstno", "");
- model.setValue("/root/send/rertparams2/retrflag", "name");
- }
- else if(grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
- {
- model.setValue("/root/send/rertparams2/name", "");
- model.setValue("/root/send/rertparams2/rrgstno", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("rrgstno")));
- model.setValue("/root/send/rertparams2/retrflag", "code");
- }
- if (submit("TRRAC00611"))
- {
- if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
- {
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate());
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", (model.getValue("/root/hidden/incmpsn/zipcd1") == "" ? "" : model.getValue("/root/hidden/incmpsn/zipcd1") + "-" + model.getValue("/root/hidden/incmpsn/zipcd1")));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
- }
- }
- }
- else if(grd_orchlist.col == grd_orchlist.colRef("paytotamt"))
- {
- fPayCalc();
- }
- else if(grd_orchlist.col == grd_orchlist.colRef("incmtax") || grd_orchlist.col == grd_orchlist.colRef("resdntax"))
- {
- var iIncmTax = parseInt(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/incmtax") == "" ? 0 : model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/incmtax"), 10);
- var iResdnTax = parseInt(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/resdntax") == "" ? 0 : model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/resdntax"), 10);
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/sumamt", iIncmTax + iResdnTax);
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_orchlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <output id="output5" ref="/root/send/printparams/incmTax" format="(-)#,###" style="left:797px; top:122px; width:86px; height:19px; text-align:right; margin-right:1; "/>
- <output id="output8" ref="/root/send/printparams/payTotAmt" format="(-)#,###" style="left:646px; top:122px; width:107px; height:19px; text-align:right; margin-right:1; "/>
- <line id="line11" class="line_3" style="x1:644px; y1:98px; x2:644px; y2:142px; "/>
- <line id="line13" class="line_3" style="x1:754px; y1:98px; x2:754px; y2:142px; "/>
- <caption id="cap_item" class="cell_1" style="left:886px; top:98px; width:77px; height:23px; text-align:center; vertical-align:middle; ">주민세</caption>
- <caption id="caption15" class="cell_1" style="left:797px; top:98px; width:86px; height:23px; text-align:center; vertical-align:middle; ">소득세</caption>
- <output id="output1" ref="/root/send/printparams/resdnTax" format="(-)#,###" style="left:886px; top:122px; width:77px; height:19px; text-align:right; margin-right:1; "/>
- <caption id="caption18" class="cell_1" style="left:646px; top:98px; width:107px; height:23px; text-align:center; vertical-align:middle; ">총지급액</caption>
- <line id="line6" class="line_3" style="x1:964px; y1:98px; x2:964px; y2:142px; "/>
- <caption id="caption19" class="cell_1" style="left:556px; top:120px; width:87px; height:21px; text-align:center; vertical-align:middle; ">계</caption>
- <line id="line7" class="line_3" style="x1:884px; y1:98px; x2:884px; y2:142px; "/>
- <output id="opt_zipcd" ref="/root/hidden/zipcd/zipcd1" navindex="-1" visibility="hidden" style="left:895px; top:73px; width:20px; height:19px; text-align:left; "/>
- <button id="btn_openpsn" class="btn2_letter5" style="left:938px; top:73px; width:75px; height:19px; ">
- <caption>소득자등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/source/receiveref", "/root/hidden/incmpsntemp");
- model.refresh();
- modal("SPRAC00611","","","","","/root/source", "/root/target" );
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="output2" ref="/root/hidden/checkedcnt" visibility="hidden" style="left:105px; top:110px; width:25px; height:20px; "/>
- <datagrid id="grd_excel" nodeset="/root/main/list/orchlist" visibility="hidden" backcoloralternate="#ffffff" caption="확인^품의번호^성명^주민등록번호^지급일자^귀속년월^지급액^세율^소득세^주민세^계" dataheight="25" ellipsis="true" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:65px; top:575px; width:83px; height:74px; ">
- <col disabled="true" ref="chknm" type="input" style="text-align:center; "/>
- <col ref="pumno" type="input" format="99999999-99999999" style="text-align:center; "/>
- <col ref="name" type="inputbutton"/>
- <col ref="rrgstno" type="input" format="999999-9999999" style="text-align:center; "/>
- <col ref="paydd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="getdd" type="inputdate" format="yyyy-mm" style="text-align:center; "/>
- <col ref="paytotamt" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="taxrate" format="## %" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="incmtax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="resdntax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="sumamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_orchlist.col == grd_orchlist.colRef("name"))
- {
- model.removenode("/root/hidden/incmpsn");
- model.makeNode("/root/hidden/incmpsn");
- model.copyNode("/root/hidden/incmpsn", "/root/hidden/incmpsntemp");
- misfOpenPopUpList("31", opt_temp, "", "rrgstno,name,entrregno,custnm,zipcd,zipcd1,zipcd2,zipcdseqno,supaddr,infaddr,cntctel,emailaddr,cmt,ionatiflag,incmflag", "");
-
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
- // model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/ionatiflag", model.getValue("/root/hidden/incmpsn/ionatiflag"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate());
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", (model.getValue("/root/hidden/incmpsn/zipcd1") == "" ? "" : model.getValue("/root/hidden/incmpsn/zipcd1") + "-" + model.getValue("/root/hidden/incmpsn/zipcd1")));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
- }
- else if(grd_orchlist.col == grd_orchlist.colRef("zipcd"))
- {
- misfOpenPopUpList("04", opt_zipcd, "", "zipcd1,zipcd2,supaddr,zipcdseqno");
- var sZipcd = model.getValue("/root/hidden/zipcd/zipcd1") + '-' + model.getValue("/root/hidden/zipcd/zipcd2");
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", sZipcd);
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/zipcd/supaddr"));
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_orchlist.col == grd_orchlist.colRef("name") || grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
- {
- model.setValue("/root/send/rertparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
- if(grd_orchlist.col == grd_orchlist.colRef("name"))
- {
- model.setValue("/root/send/rertparams2/name", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("name")));
- model.setValue("/root/send/rertparams2/rrgstno", "");
- model.setValue("/root/send/rertparams2/retrflag", "name");
- }
- else if(grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
- {
- model.setValue("/root/send/rertparams2/name", "");
- model.setValue("/root/send/rertparams2/rrgstno", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("rrgstno")));
- model.setValue("/root/send/rertparams2/retrflag", "code");
- }
- if (submit("TRRAC00611"))
- {
- if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
- {
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate());
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", (model.getValue("/root/hidden/incmpsn/zipcd1") == "" ? "" : model.getValue("/root/hidden/incmpsn/zipcd1") + "-" + model.getValue("/root/hidden/incmpsn/zipcd1")));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
- }
- }
- }
- else if(grd_orchlist.col == grd_orchlist.colRef("dayno") || grd_orchlist.col == grd_orchlist.colRef("dypay"))
- {
- fPayCalc();
- }
-
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_3" style="x1:795px; y1:98px; x2:795px; y2:142px; "/>
- <datagrid id="prt_orchlist" nodeset="/root/main/list/prtorchlist" visibility="hidden" backcoloralternate="#ffffff" caption="확인^품의번호^기관코드^일련번호^세부일련번호^징수구분^사원번호^성명^주민등록번호^귀속년도^귀속일자^지급일자^귀속년월^사업자등록번호^상호^적 요^지급액^세율^소득세^주민세^계^우편번호^우편번호^우편번호^우편번호일련번호^주소^상위주소^상세주소^업종구분^소득구분" colwidth="45, 150, 0, 0, 0, 0, 0, 99, 110, 0, 0, 90, 90, 0, 0, 0, 150, 40, 90, 80, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:120px; top:340px; width:375px; height:180px; ">
- <col disabled="true" ref="chknm" type="input" style="text-align:center; "/>
- <col ref="pumno" type="input" format="99999999-99999999" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="detlseqno" visibility="hidden"/>
- <col ref="chrgflag" visibility="hidden"/>
- <col ref="emplno" visibility="hidden"/>
- <col ref="name" type="inputbutton"/>
- <col ref="rrgstno" type="input" format="999999-9999999" style="text-align:center; "/>
- <col ref="posyear" visibility="hidden" style="text-align:center; "/>
- <col ref="posdd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="paydd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="getdd" type="inputdate" format="yyyy-mm" style="text-align:center; "/>
- <col ref="entrregno" visibility="hidden" format="999-99-99999"/>
- <col ref="custnm" visibility="hidden"/>
- <col ref="cmt" type="input" visibility="hidden" style="text-align:left; "/>
- <col ref="paytotamt" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="taxrate" format="## %" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="incmtax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="resdntax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="sumamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="zipcd" type="inputbutton" visibility="hidden" style="text-align:center; "/>
- <col ref="zipcd1" visibility="hidden"/>
- <col ref="zipcd2" visibility="hidden"/>
- <col ref="zipcdseqno" visibility="hidden"/>
- <col ref="address" visibility="hidden"/>
- <col ref="supaddr" type="input" visibility="hidden" style="text-align:left; "/>
- <col ref="infaddr" type="input" visibility="hidden" style="text-align:left; "/>
- <col ref="induflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/R0278list/R0278">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="incmflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/R0279list/R0279">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_orchlist.col == grd_orchlist.colRef("name"))
- {
- model.removenode("/root/hidden/incmpsn");
- model.makeNode("/root/hidden/incmpsn");
- model.copyNode("/root/hidden/incmpsn", "/root/hidden/incmpsntemp");
- misfOpenPopUpList("31", opt_temp, "", "rrgstno,name,entrregno,custnm,zipcd,zipcd1,zipcd2,zipcdseqno,supaddr,infaddr,cntctel,emailaddr,cmt,ionatiflag,incmflag", "");
-
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
- // model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/ionatiflag", model.getValue("/root/hidden/incmpsn/ionatiflag"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posdd", getCurrentDate());
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate().substr(0, 4));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", (model.getValue("/root/hidden/incmpsn/zipcd1") == "" ? "" : model.getValue("/root/hidden/incmpsn/zipcd1") + "-" + model.getValue("/root/hidden/incmpsn/zipcd1")));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
- }
- else if(grd_orchlist.col == grd_orchlist.colRef("zipcd"))
- {
- misfOpenPopUpList("04", opt_zipcd, "", "zipcd1,zipcd2,supaddr,zipcdseqno");
- var sZipcd = model.getValue("/root/hidden/zipcd/zipcd1") + '-' + model.getValue("/root/hidden/zipcd/zipcd2");
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", sZipcd);
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/zipcd/supaddr"));
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_orchlist.col == grd_orchlist.colRef("name") || grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
- {
- model.setValue("/root/send/rertparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
- if(grd_orchlist.col == grd_orchlist.colRef("name"))
- {
- model.setValue("/root/send/rertparams2/name", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("name")));
- model.setValue("/root/send/rertparams2/rrgstno", "");
- model.setValue("/root/send/rertparams2/retrflag", "name");
- }
- else if(grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
- {
- model.setValue("/root/send/rertparams2/name", "");
- model.setValue("/root/send/rertparams2/rrgstno", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("rrgstno")));
- model.setValue("/root/send/rertparams2/retrflag", "code");
- }
- if (submit("TRRAC00611"))
- {
- if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
- {
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate());
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", (model.getValue("/root/hidden/incmpsn/zipcd1") == "" ? "" : model.getValue("/root/hidden/incmpsn/zipcd1") + "-" + model.getValue("/root/hidden/incmpsn/zipcd1")));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
- }
- }
- }
- else if(grd_orchlist.col == grd_orchlist.colRef("paytotamt"))
- {
- fPayCalc();
- }
- else if(grd_orchlist.col == grd_orchlist.colRef("incmtax") || grd_orchlist.col == grd_orchlist.colRef("resdntax"))
- {
- var iIncmTax = parseInt(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/incmtax") == "" ? 0 : model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/incmtax"), 10);
- var iResdnTax = parseInt(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/resdntax") == "" ? 0 : model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/resdntax"), 10);
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/sumamt", iIncmTax + iResdnTax);
- }
-
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_gruptype" ref="/root/send/retrparams/groupid" class="combo_s_essential" navindex="-1" visibility="hidden" appearance="minimal" style="left:99px; top:8px; width:66px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_gruptype/comcodelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption5" class="cell_1" style="left:966px; top:111px; width:87px; height:23px; text-align:center; vertical-align:middle; ">계</caption>
- <output id="output3" ref="/root/send/printparams/isumAmt" format="(-)#,###" style="left:966px; top:135px; width:87px; height:19px; text-align:right; margin-right:1; "/>
- <line id="line4" class="line_3" style="x1:1054px; y1:111px; x2:1054px; y2:155px; "/>
- </xhtml:body>
- </xhtml:html>
|