123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110 |
- <?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/>
- <dayworkerprntlist/>
- </list>
- <printlist>
- <fstpage/>
- <secpage/>
- </printlist>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <payinst/>
- <frdd/>
- <todd/>
- <rrgstno/>
- <name/>
- <emplno/>
- <emplnm/>
- <profflag>A</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>
- <dayworkerprntlist/>
- </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>
- </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;
-
- var payrow = grd_orchlist.colRef("paytotamt");
- grd_orchlist.colDisabled(payrow) = true;
- //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,dayno,dypay", true, i);
- }else{
- misfSetReadOnlyCol(grd_orchlist, "pumno,name,rrgstno,paydd,getdd,dayno,dypay", 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();
- model.refresh();
- }
- 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("getdd"));
- var sCmt = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("cmt"));
- var sDayno = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("dayno"));
- var sDypay = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("dypay"));
- var sPaytotamt = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("paytotamt"));
- if(sRrgstno == "") { messageBox("소득자를", "C001"); return; }
- if(!isValidDateTime(sPosYear, "YYYYMM"))
- { messageBox("귀속 일자가 유효하지 않습니다.", "I000"); return; }
- // if(sCmt == "") { messageBox("비고를", "C001"); return; }
- if(sDayno == "") { messageBox("지급일수를", "C001"); return; }
- if(sDypay == "") { 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/dayworkerprntlist[" + (a+1) + "]");
- model.copyNode("/root/hidden/prntlist/dayworkerprntlist[" + (a+1) + "]", "/root/main/list/orchlist[" + grd_orchlist.selectedRow(a) + "]");
-
- }
- }else{
- for(var i=1; i<=iLength; i++)
- {
- model.makeNode("/root/hidden/prntlist/dayworkerprntlist[" + i + "]");
- model.copyNode("/root/hidden/prntlist/dayworkerprntlist[" + i + "]", "/root/main/list/prtorchlist[" + i + "]");
- }
- }
-
- model.makeValue("/root/hidden/prntlist/prtflag", "1");
- exeReportPreview("RPRAD00215", "XMLSTR");
-
- model.setValue("/root/hidden/prntlist/prtflag", "2");
- exeReportPreview("RPRAD00215", "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/dayworkerprntlist[" + i + "]");
- model.copyNode("/root/hidden/prntlist/dayworkerprntlist[" + i + "]", "/root/main/list/orchlist[" + i + "]");
- }
- }
-
-
- function fPayCalc()
- {
- var dayno = parseFloat(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/dayno"));
- var dypay = parseFloat(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/dypay"));
-
- var weight = 0;
- if(dypay >= 0)
- {
- weight = 100000;
- }
- else
- {
- weight = -100000;
- }
-
- if (dayno != 0 && dypay != 0)
- {
-
- // 과세표준
- var taxpay = (dypay > 100000 || dypay < -100000) ? parseFloat((dypay * dayno) - (weight * dayno)) : 0;
- // alert("taxpay(?)=" + " " + taxpay);
-
- // 소득공제
- var nontaxpay = parseFloat((dypay * dayno) - taxpay);
-
- // var caltax = parseFloat(taxpay * 0.08);
- // 산출세액
- var caltax = parseFloat(taxpay * 0.06);
- // alert(caltax);
-
- // 공제세액
- var taxgj = parseFloat(caltax * 0.55);
- // alert(taxgj);
-
- // 소득세액
- var incmtax = parseInt((caltax - taxgj) / 10, 10) * 10;
-
- // 주민세액
- var resdntax = parseInt((incmtax * 0.1) / 10, 10) * 10;
-
- // 실수령액
- var realpay = parseInt(dayno * dypay, 10) - ( incmtax + resdntax );
-
- // 소득세액이 1000 미만이면 소득세 주민세 0으로 셋팅
- if (incmtax < 1000 && incmtax > -1000) {
- incmtax = 0;
- resdntax = 0;
- }
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/paytotamt", parseInt(dayno * dypay, 10));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/incmtax", parseInt(incmtax, 10));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/resdntax", parseInt(resdntax, 10));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/taxpay", parseInt(taxpay, 10));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/caltax", parseInt(caltax, 10));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/taxgj", parseInt(taxgj, 10));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/realpay", parseInt(realpay, 10));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/nontaxpay", parseInt(nontaxpay, 10));
- model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/sumamt", parseInt(incmtax + resdntax, 10));
-
- model.refresh();
- model.recalculate();
- }
- }
- ]]>
- </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,1191;" 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; ">
- <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:485px; 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:587px; 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:600px; 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="rdo_retrkind" ref="/root/send/retrparams/retrkind" visibility="hidden" appearance="full" cellspacing="0" cols="3" overflow="visible" style="left:1001px; 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:911px; top:9px; width:97px; height:17px; ">조회구분 :</caption>
- <caption id="caption1" class="search_name" style="left:280px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
- <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>
- </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.08.08 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")) = "A";
- grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("taxrate")) = "6";
- 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;
-
- // alert(iRowIdx);
-
- if(model.getValue(grd_orchlist.nodeset + "[" + iRowIdx + "]/slipyn") != "Y")
- {
- // alert(grd_orchlist.rowStatus(iRowIdx));
- 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="40, 95, 0, 0, 0, 0, 0, 64, 100, 90, 76, 0, 0, 0, 0, 55, 55, 70, 0, 0, 70, 70, 60, 60, 60, 60, 70, 70, 45, 0, 0, 0, 0, 0, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" 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="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="posyear" type="inputdate" visibility="hidden" format="yyyy-mm-dd" 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="dayno" type="input" format="(-)#,###.9" style="text-align:right; padding-right:1; "/>
- <col ref="dypay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="paytotamt" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="taxrate" visibility="hidden"/>
- <col ref="taxrate" format="## %" visibillity="hidden" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="nontaxpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="taxpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="caltax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="taxgj" type="input" 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 disabled="true" ref="realpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col checkvalue="Y,N" ref="chkyn" type="checkbox" visibility="hidden"/>
- <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 + "]/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"))
- {
- // 20110520_wify_경북대병원 소득자 조회시 조회대상이 없어도 기존정보 사라지도록 node값을 셋팅한다.
- // if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
- // {
- if (instance1.selectNodes("/root/hidden/incmpsn").length < 1) {
- alert("등록된 소득자가 없습니다.");
- }
- 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();
- }
- 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:930px; top:122px; width:60px; height:19px; text-align:right; margin-right:1; "/>
- <output id="output8" ref="/root/send/printparams/payTotAmt" format="(-)#,###" style="left:599px; top:122px; width:76px; height:19px; text-align:right; margin-right:1; "/>
- <line id="line11" class="line_3" style="x1:597px; y1:98px; x2:597px; y2:142px; "/>
- <line id="line13" class="line_3" style="x1:676px; y1:98px; x2:676px; y2:142px; "/>
- <caption id="cap_item" class="cell_1" style="left:990px; top:98px; width:60px; height:23px; text-align:center; vertical-align:middle; ">주민세</caption>
- <caption id="caption15" class="cell_1" style="left:930px; top:98px; width:60px; height:23px; text-align:center; vertical-align:middle; ">소득세</caption>
- <output id="output1" ref="/root/send/printparams/resdnTax" format="(-)#,###" style="left:991px; top:122px; width:58px; height:19px; text-align:right; margin-right:1; "/>
- <caption id="caption18" class="cell_1" style="left:599px; top:98px; width:76px; height:23px; text-align:center; vertical-align:middle; ">총지급액</caption>
- <line id="line6" class="line_3" style="x1:1049px; y1:98px; x2:1049px; y2:142px; "/>
- <caption id="caption19" class="cell_1" style="left:509px; top:120px; width:87px; height:21px; text-align:center; vertical-align:middle; ">계</caption>
- <line id="line7" class="line_3" style="x1:990px; y1:98px; x2:990px; 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" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:442px; width:593px; height:217px; ">
- <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="dayno" type="input" format="(-)#,###.9" style="text-align:right; padding-right:1; "/>
- <col ref="dypay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="paytotamt" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="nontaxpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="taxpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="caltax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="taxgj" type="input" 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 disabled="true" ref="realpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <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 + "]/induflag", model.getValue("/root/hidden/incmpsn/induflag"));
- 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 + "]/induflag", model.getValue("/root/hidden/incmpsn/induflag"));
- 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>
- <output id="output3" ref="/root/send/printparams/isumAmt" format="(-)#,###" style="left:1051px; top:122px; width:69px; height:19px; text-align:right; margin-right:1; "/>
- <caption id="caption5" class="cell_1" style="left:1051px; top:98px; width:70px; height:23px; text-align:center; vertical-align:middle; ">계</caption>
- <line id="line2" class="line_3" style="x1:1122px; y1:98px; x2:1122px; y2:142px; "/>
- <line id="line4" class="line_3" style="x1:928px; y1:98px; x2:928px; y2:142px; "/>
- <datagrid id="datagrid1" nodeset="/root/main/list/prtorchlist" visibility="hidden" backcoloralternate="#ffffff" caption="확인^품의번호^기관코드^일련번호^세부일련번호^징수구분^사원번호^성명^주민등록번호^지급일자^귀속년월^승인일자^사업자등록번호^상호^적 요^지급일수^일급^지급액^세율^세율^소득공제^과세표준^산출세액^공제세액^소득세^주민세^계^실수령액^확인^우편번호^우편번호^우편번호^우편번호일련번호^주소^상위주소^상세주소^업종구분^소득구분" colwidth="40, 95, 0, 0, 0, 0, 0, 64, 100, 90, 76, 0, 0, 0, 0, 55, 55, 70, 0, 0, 70, 70, 60, 60, 60, 60, 70, 70, 45, 0, 0, 0, 0, 0, 100, 100, 100, 100" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:285px; width:500px; height:405px; ">
- <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="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="posyear" type="inputdate" visibility="hidden" format="yyyy-mm-dd" 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="dayno" type="input" format="(-)#,###.9" style="text-align:right; padding-right:1; "/>
- <col ref="dypay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="paytotamt" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="taxrate" visibility="hidden"/>
- <col ref="taxrate" format="## %" visibillity="hidden" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="nontaxpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="taxpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="caltax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="taxgj" type="input" 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 disabled="true" ref="realpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col checkvalue="Y,N" ref="chkyn" type="checkbox" visibility="hidden"/>
- <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 + "]/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"))
- {
- // 20110520_wify_경북대병원 소득자 조회시 조회대상이 없어도 기존정보 사라지도록 node값을 셋팅한다.
- // if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
- // {
- if (instance1.selectNodes("/root/hidden/incmpsn").length < 1) {
- alert("등록된 소득자가 없습니다.");
- }
- 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();
- }
- 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>
- </xhtml:body>
- </xhtml:html>
|