123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>사업소득 조회/수정</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>
- </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/>
- </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();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- 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.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 + "]/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);
- }
- }
- 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 sPosDD = 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"));
-
- if(sRrgstno == "") { messageBox("소득자를", "C001"); return; }
- if(!isValidDateTime(sPosDD, "YYYYMMDD"))
- { messageBox("귀속 일자가 유효하지 않습니다.", "I000"); return; }
- if(sCmt == "") { messageBox("적요를", "C001"); return; }
- if(sPaytotamt == "") { messageBox("지급액을", "C001"); return; }
- }
- misfSave("TXRAT00601");
- fRetrieve();
- }
- function fPrint()
- {
- var iCheckedCnt = parseInt(model.getValue("/root/hidden/checkedcnt"), 10);
- var dlgRslt = 0;
- if(iCheckedCnt > 0)
- {
- dlgRslt = messageBox("선택된 소득만 출력하시겠습니까\n\nYes(선택자료) / No(전체)", "Q000");
- }
- if(dlgRslt == 6)
- {
- var iCnt = 0;
- var sYn = "";
- model.removenode("/root/hidden/prntlist");
- model.makeNode("/root/hidden/prntlist");
- for(var i=1; i<grd_orchlist.rows; i++)
- {
- sYn = model.getValue(grd_orchlist.nodeset + "[" + i + "]/chk");
-
- if(sYn == "Y")
- {
- iCnt = instance1.selectNodes("/root/hidden/prntlist/priprofprntlist").length;
- model.makeNode("/root/hidden/prntlist/priprofprntlist[" + (iCnt + 1) + "]");
- model.copyNode("/root/hidden/prntlist/priprofprntlist[" + (iCnt + 1) + "]", "/root/main/list/orchlist[" + i + "]");
- }
- }
- }
- else
- {
- 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 + "]");
- }
- }
- 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; ">
- <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; "/>
- <caption id="caption1" class="search_name" style="left:310px; top:9px; width:90px; height:17px; ">지급년월 :</caption>
- <input id="ipt_frym" ref="/root/send/retrparams/frdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:400px; 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:502px; 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:515px; 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:650px; top:9px; width:90px; height:17px; ">소 득 자 :</caption>
- <button id="btn_entregnohelp" class="icon_search" style="left:844px; 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:740px; 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:864px; top:8px; width:126px; 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>
- </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[
- fPrint();
- ]]>
- </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");
- grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("chrgflag")) = "B";
- grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("taxrate")) = "3";
- // 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;
-
- 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="v^기관코드^일련번호^세부일련번호^징수구분^사원번호^성명^주민등록번호^귀속년도^귀속일자^사업자등록번호^상호^적 요^지급액^세율^소득세^주민세^계^우편번호^우편번호^우편번호^우편번호일련번호^주소^상위주소^상세주소^업종구분^소득구분" colwidth="25, 0, 0, 0, 0, 0, 99, 110, 70, 90, 0, 0, 340, 110, 40, 90, 80, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" ellipsis="true" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:142px; width:1193px; height:617px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <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" style="text-align:center; "/>
- <col ref="posdd" type="inputdate" 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" style="text-align:left; "/>
- <col ref="paytotamt" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="taxrate" format="## %" style="text-align:right; padding-right:1; "/>
- <col ref="incmtax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="resdntax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col 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 + "]/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("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>
- <output id="output5" ref="/root/send/printparams/incmTax" format="(-)#,###" style="left:907px; top:122px; width:86px; height:19px; text-align:right; margin-right:1; "/>
- <output id="output8" ref="/root/send/printparams/payTotAmt" format="(-)#,###" style="left:756px; top:122px; width:107px; height:19px; text-align:right; margin-right:1; "/>
- <line id="line11" class="line_3" style="x1:754px; y1:98px; x2:754px; y2:142px; "/>
- <line id="line13" class="line_3" style="x1:864px; y1:98px; x2:864px; y2:142px; "/>
- <caption id="cap_item" class="cell_1" style="left:996px; top:98px; width:77px; height:23px; text-align:center; vertical-align:middle; ">주민세</caption>
- <caption id="caption15" class="cell_1" style="left:907px; top:98px; width:86px; height:23px; text-align:center; vertical-align:middle; ">소득세</caption>
- <output id="output1" ref="/root/send/printparams/resdnTax" format="(-)#,###" style="left:996px; top:122px; width:77px; height:19px; text-align:right; margin-right:1; "/>
- <caption id="caption18" class="cell_1" style="left:756px; top:98px; width:107px; height:23px; text-align:center; vertical-align:middle; ">총지급액</caption>
- <line id="line6" class="line_3" style="x1:1074px; y1:98px; x2:1074px; y2:142px; "/>
- <caption id="caption19" class="cell_1" style="left:666px; top:120px; width:87px; height:21px; text-align:center; vertical-align:middle; ">계</caption>
- <line id="line7" class="line_3" style="x1:994px; y1:98px; x2:994px; 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="성명^주민등록번호^귀속일자^적 요^지급일수^일급^지급액^세율^소득세^주민세^계^사업자등록번호^상호^우편번호^주소" colwidth="80, 100, 87, 375, 60, 100, 110, 70, 90, 90, 100, 100, 100, 90, 70" dataheight="25" ellipsis="true" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:1110px; top:675px; width:83px; height:74px; ">
- <col ref="name" type="inputbutton"/>
- <col ref="rrgstno" type="input" format="999999-9999999" style="text-align:center; "/>
- <col ref="posyear" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cmt" type="input" style="text-align:left; "/>
- <col ref="dayno" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="dypay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="paytotamt" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="taxrate" visibility="hidden"/>
- <col ref="incmtax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="resdntax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="sumamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="entrregno"/>
- <col ref="custnm"/>
- <col ref="zipcd" type="inputbutton" visibility="hidden" style="text-align:center; "/>
- <col ref="address" visibility="hidden"/>
- <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:905px; y1:98px; x2:905px; y2:142px; "/>
- </group>
- <caption id="caption5" class="cell_1" style="left:1076px; top:111px; width:87px; height:23px; text-align:center; vertical-align:middle; ">계</caption>
- <output id="output3" ref="/root/send/printparams/isumAmt" format="(-)#,###" style="left:1076px; top:135px; width:87px; height:19px; text-align:right; margin-right:1; "/>
- <line id="line4" class="line_3" style="x1:1164px; y1:111px; x2:1164px; y2:155px; "/>
- </xhtml:body>
- </xhtml:html>
|