12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823 |
- <?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>
- <etcproflist/>
- <prntetcproflist/>
- </list>
- <printlist>
- <fstpage/>
- <secpage/>
- </printlist>
- <cadl>
- <cadllist/>
- </cadl>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <frdd/>
- <todd/>
- <incmflag/>
- <ionatiflag/>
- <residentflag/>
- <rrgstno/>
- <name/>
- <retrkind>all</retrkind>
- <needpay/>
- <dayflag/>
- <groupid/>
- </retrparams>
- <rertparams2>
- <instcd/>
- <name/>
- <rrgstno/>
- <retrflag/>
- </rertparams2>
- <printparams>
- <secPageCnt/>
- <allEtcProf/>
- <allCount/>
- <payTotAmt/>
- <payAmt/>
- <profTax/>
- <incmTax/>
- <resdnTax/>
- <sumAmt/>
- <lawTax>0</lawTax>
- <nhTax>0</nhTax>
- </printparams>
- <data1>
- <instcd/>
- <rrgstno/>
- </data1>
- <emplcheck>
- <instcd/>
- <emplno/>
- </emplcheck>
- <incmpsn>
- <incmpsnlist/>
- </incmpsn>
- <list>
- <etcproflist/>
- </list>
- </send>
- <init/>
- <temp/>
- <hidden>
- <incmpsn>
- <name/>
- <rrgstno/>
- <entrregno/>
- <custnm/>
- <zipcd/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseqno/>
- <supaddr/>
- <infaddr/>
- <cntctel/>
- <emailaddr/>
- <cmt/>
- <ionatiflag/>
- <incmflag/>
- <passport/>
- </incmpsn>
- <prntlist>
- <etcprofprntlist/>
- </prntlist>
- <incmpsntemp>
- <name/>
- <rrgstno/>
- <entrregno/>
- <custnm/>
- <zipcd/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseqno/>
- <supaddr/>
- <infaddr/>
- <cntctel/>
- <emailaddr/>
- <cmt/>
- <ionatiflag/>
- <induflag/>
- <incmflag/>
- </incmpsntemp>
- <checkedcnt/>
- <excelupload>
- <exceluploadlist/>
- </excelupload>
- <emplcntcheck/>
- <name/>
- <rrgstno/>
- <zipcd1/>
- <zipcd2/>
- <supaddr/>
- <infaddr/>
- <incmpsnlist>
- <instcd/>
- <rrgstno/>
- <name/>
- <zipcd1/>
- <zipcd2/>
- <supaddr/>
- <infaddr/>
- <ionatiflag/>
- </incmpsnlist>
- <prntetclist/>
- </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"/>
- <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
-
- model.setValue("/root/send/retrparams/needpay", "80");
- 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/etcproflist");
- //2012.05.21 박준범 - grid multi select를 위해 misfMsterDetailSet 사용안함
- //misfMsterDetailSet(grd_etcproflist, null, "TRRAT00501", "Y");
- misfComboComCdList("R0279", cmb_incmflag1, "Y");
- misfComboComCdList("R0347", cmb_incmflag2, "Y");
- misfComboComCdListMulti("Z0007", "cmb_instcd");
- // misfComboComCdListMulti("Z0007,R0279", "cmb_instcd,grd_etcproflist.incmflag");
- 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"));
- fSetResidentflag();
- model.refresh();
-
- //fRetrieve();
- grd_etcproflist.rowHeight(0) = 35;
- }
-
- function fRetrieve()
- {
- //2012.05.21 박준범 - misfGridInit 추가
- //misfGridInit : model.removeNodeset(grd_etcproflist.nodeset); grid.refresh();
- misfGridInit(grd_etcproflist);
-
- submit("TRRAT00501");
- for(var i=1; i<grd_etcproflist.rows; i++)
- {
- if(model.getValue(grd_etcproflist.nodeset + "[" + i + "]/chkyn") == "Y")
- {
- model.setValue(grd_etcproflist.nodeset + "[" + i + "]/chknm" , "확인");
- misfSetReadOnlyCol(grd_etcproflist, "pumno,incmflag,name,rrgstno,paydd,getdd,paytotamt",true,i);
- }else{
- misfSetReadOnlyCol(grd_etcproflist, "pumno,incmflag,name,rrgstno,paydd,getdd,paytotamt",false,i); //2011.10.11 cyw
- }
-
- // if(model.getValue(grd_etcproflist.nodeset + "[" + i + "]/slipyn") == "Y" && model.getValue("/root/send/retrparams/retrkind") == "all")
- // {
- // grd_etcproflist.rowStyle(i, "all", "background-color") = "#EAEAEA";
-
- // misfSetReadOnlyCol(grd_etcproflist, "incmflag,name,rrgstno,paytotamt,payamt,proftax,cmt", true, i);
- // }
- // else
- // {
- // grd_etcproflist.rowStyle(i, "all", "background-color") = "#FFFFFF";
- // }
-
- }
- // var rows = grd_etcproflist.rows - 1;
- // var st = grd_etcproflist.colRef("paydd");
- // grd_etcproflist.sort(1, st, rows, st) = "desc";
- // grd_etcproflist.refresh();
-
- fSetControlAttr();
- model.recalculate();
- }
- function fSave()
- {
- for(var i=1; i<grd_etcproflist.rows; i++)
- {
- var sRrgstno = grd_etcproflist.valueMatrix(i, grd_etcproflist.colRef("rrgstno"));
- var sPosYear = grd_etcproflist.valueMatrix(i, grd_etcproflist.colRef("posyear"));
- var sIncmFlag = grd_etcproflist.valueMatrix(i, grd_etcproflist.colRef("incmflag"));
- var sCmt = grd_etcproflist.valueMatrix(i, grd_etcproflist.colRef("cmt"));
-
-
- if(sRrgstno == "")
- {
- messageBox("소득자를", "C001");
- return;
- }
- // if(!isValidDateTime(sPosYear, "YYYYMMDD"))
-
- // {
- // messageBox("귀속 일자가 유효하지 않습니다.", "I000");
- // return;
- // }
- if(sIncmFlag == "")
- {
- messageBox("소득 구분코드를", "C001");
- return;
- }
-
- // if(sCmt == "")
- // {
- // messageBox("비고를", "C001");
- // return;
- // }
- }
-
- //2012.05.21 박준범 - grid multi select를 위해 misfSave 대신 submit 사용
- //misfSave("TXRAT00501");
- model.setValue("/root/send/list/etcproflist", grd_etcproflist.getUpdateData());
- submit("TXRAT00501");
-
- if(grd_icpn.rows > 1)
- {
- model.setValue("/root/send/incmpsn/incmpsnlist", grd_icpn.getUpdateData());
- submit("TXRAC00612");
- model.refresh();
- model.removeNodeset(grd_excelupload.nodeset);
- model.removeNodeset(grd_icpn.nodeset);
-
- }
-
- fRetrieve();
- }
- function fPrint()
- {
- /*
- fSetPrintNodeList();
-
- if(model.getValue(rdo_retrkind.attribute("ref")) == "all") // 전체
- {
- var iChkCnt = parseInt(model.getValue("/root/hidden/checkedcnt"), 10);
- var dlgRslt = 0;
- if(iChkCnt > 0)
- {
- dlgRslt = messageBox("선택된 소득만 출력하시겠습니까\n\nYes(선택자료) / No(전체)", "Q000");
- }
- if(dlgRslt == 6)
- {
- var iSelectedCnt = grd_etcproflist.selectedCells.length;
- var iCnt = 0;
- var iRowIdx = -1;
- var sRowIdxes = "";
- model.removenode("/root/hidden/prntlist");
- model.makeNode("/root/hidden/prntlist");
- for(var i=0; i<iSelectedCnt; i++)
- {
- iRowIdx = grd_etcproflist.selectedCells.item(i).row;
-
- if(!misfGetRowIdxExists(sRowIdxes, iRowIdx)) continue;
- sRowIdxes = sRowIdxes + iRowIdx + ",";
- iCnt = instance1.selectNodes("/root/hidden/prntlist/etcprofprntlist").length;
- model.makeNode("/root/hidden/prntlist/etcprofprntlist[" + (iCnt + 1) + "]");
- model.copyNode("/root/hidden/prntlist/etcprofprntlist[" + (iCnt + 1) + "]", "/root/main/list/etcproflist[" + iRowIdx + "]");
- }
- }
- else // 집합
- {
- var iLength = instance1.selectNodes("/root/main/list/etcproflist").length;
- model.removenode("/root/hidden/prntlist");
- model.makeNode("/root/hidden/prntlist");
- for(var i=1; i<=iLength; i++)
- {
- model.makeNode("/root/hidden/prntlist/etcprofprntlist[" + i + "]");
- model.copyNode("/root/hidden/prntlist/etcprofprntlist[" + i + "]", "/root/main/list/etcproflist[" + i + "]");
- }
- }
- exeReportPreview("RPRAD00201", "XMLSTR", "/root/send/printparams");
- }
- else
- {
- // exeReportPreview("RPRAT00501", "XMLSTR", "/root/send/printparams");
- // exeReportPreview("RPRAD00201", "XMLSTR", "/root/send/printparams");
- // 2011.08.08 cyw 기타소득 서식 수정.
- exeReportPreview("RPRAD00216", "XMLSTR");
-
- }
- */
- var iLength = instance1.selectNodes("/root/main/list/prntetcproflist").length;
- model.removenode("/root/hidden/prntetclist");
- model.makeNode("/root/hidden/prntetclist");
-
- //2011.10.04 cyw 선택영역만 출력가능하게
- if(grd_etcproflist.selectedRows >= 1 ){
- for( var a = 0 ; a < grd_etcproflist.selectedRows ; a++ ){
- model.makeNode("/root/hidden/prntetclist/etcproflist[" + (a+1) + "]");
- model.copyNode("/root/hidden/prntetclist/etcproflist[" + (a+1) + "]", "/root/main/list/etcproflist[" + grd_etcproflist.selectedRow(a) + "]");
- model.setValue("/root/hidden/prntetclist/etcproflist[" + (a+1) + "]/incmflag", grd_etcproflist.labelMatrix( grd_etcproflist.selectedRow(a), grd_etcproflist.colRef("incmflag")) + "(" + model.getValue("/root/main/list/etcproflist[" + grd_etcproflist.selectedRow(a) + "]/incmflag") + ")" );
- }
- }else{
- for(var i=1; i<=iLength; i++)
- {
- model.makeNode("/root/hidden/prntetclist/etcproflist[" + i + "]");
- model.copyNode("/root/hidden/prntetclist/etcproflist[" + i + "]", "/root/main/list/prntetcproflist[" + i + "]");
- model.setValue("/root/hidden/prntetclist/etcproflist[" + i + "]/incmflag", grd_prntetcproflist.labelMatrix( i, grd_prntetcproflist.colRef("incmflag")) + "(" + model.getValue("/root/main/list/prntetcproflist[" + i + "]/incmflag") + ")" );
- }
- }
-
-
- var lstcnt = getNodesetCount("/root/hidden/prntetclist");
- // 소득자, 발행자 구분값
- model.makeValue("/root/hidden/prntetclist/lstpaydd", model.getValue("/root/hidden/prntetclist/etcproflist[" + lstcnt + "]/paydd" ));
-
- model.makeValue("/root/hidden/prntetclist/flag", "1");
- exeReportPreview("RPRAD00216", "XMLSTR");
- model.makeValue("/root/hidden/prntetclist/flag", "2");
- exeReportPreview("RPRAD00216", "XMLSTR");
-
- model.refresh();
-
- }
-
- function fSetPrintNodeList()
- {
- //if(model.getValue("/root/send/retrparams/rrgstno") != "" && model.getValue("/root/send/retrparams/name") != "")
- if(model.getValue(rdo_retrkind.attribute("ref")) == "sum")
- {
- var iLength = instance1.selectNodes("/root/main/list/etcproflist").length;
- model.removenode("/root/hidden/prntlist");
- model.makeNode("/root/hidden/prntlist");
- for(var i=1; i<=iLength; i++)
- {
- model.makeNode("/root/hidden/prntlist/etcprofprntlist[" + i + "]");
- model.copyNode("/root/hidden/prntlist/etcprofprntlist[" + i + "]", "/root/main/list/etcproflist[" + i + "]");
- }
- }
- else
- {
- var iLength = instance1.selectNodes("/root/main/list/etcproflist").length;
- model.removenode("/root/main/printlist");
- model.makeNode("/root/main/printlist");
-
- for(var i=1; i<=iLength; i++)
- {
- if(i <= 10)
- {
- model.makeNode("/root/main/printlist/fstpage[" + i + "]");
- model.copyNode("/root/main/printlist/fstpage[" + i + "]", "/root/main/list/etcproflist[" + i + "]");
- }
- else
- {
- model.makeNode("/root/main/printlist/secpage[" + (i - 10) + "]");
- model.copyNode("/root/main/printlist/secpage[" + (i - 10) + "]", "/root/main/list/etcproflist[" + i + "]");
- }
- }
- }
- }
- function fSetControlAttr()
- {
- if(model.getValue("/root/send/retrparams/retrkind") == "sum")
- {
- btn_save.disabled = true;
- btn_addrow.disabled = true;
- btn_delrow.disabled = true;
- btn_print.disabled = false;
-
- misfSetReadOnlyCol(grd_etcproflist, "incmflag,name,rrgstno,posyear,paytotamt,payamt,proftax", true);
- grd_etcproflist.colDisabled(grd_etcproflist.colRef("chk")) = true;
- grd_etcproflist.colAttribute(grd_etcproflist.colRef("posyear"), "format") = "yyyy";
- }
- else
- {
- //btn_print.disabled = true;
- btn_save.disabled = false;
- btn_addrow.disabled = false;
- btn_delrow.disabled = false;
-
- if(model.getValue("/root/send/retrparams/rrgstno") != "" && model.getValue("/root/send/retrparams/name") != "")
- {
- grd_etcproflist.colDisabled(grd_etcproflist.colRef("chk")) = false;
- }
- else
- {
- grd_etcproflist.colDisabled(grd_etcproflist.colRef("chk")) = true;
- }
- grd_etcproflist.colAttribute(grd_etcproflist.colRef("posyear"), "format") = "yyyy-mm-dd";
- }
-
- }
-
- function fGridStatusCheck()
- {
- var grd_rows = grd_etcproflist.rows;
- var grd_fixedRows = grd_etcproflist.fixedRows;
-
- for(var i = grd_fixedRows ; i <= grd_rows ; i++)
- {
- if(grd_etcproflist.rowStatus(i) != 0)
- {
- messageBox("작업중인 데이터가 있습니다. \n 작업완료 후 작업하세요", "");
- return false;
- }
- }
- return true;
- }
-
- //========================================================================================
- //엑셀입력(excel file을 그리드에 입력)
- //========================================================================================
- function fInputExcel(pGrid) {
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if(fileName != "") {
- pGrid.loadExcel(fileName, 1, true);
-
- pGrid.deleteRow(1);
- //
- // for(i = 1; i < pGrid.rows; i++) {
- // pGrid.rowStatus(i) = 1;
- // }
- pGrid.rebuild();
- return true;
- }
- return false;
- }
-
- //========================================================================================
- //내외국인 구분에 따른 소득구분 setting
- //========================================================================================
- function fSetResidentflag()
- {
- if(model.getValue(cmb_residentflag.attribute("ref")) == "1")
- {
- cmb_incmflag1.visible = true;
- cmb_incmflag2.visible = false;
- model.setValue(cmb_incmflag1.attribute("ref"), "61");
- cmb_incmflag1.refresh();
- }
- else if(model.getValue(cmb_residentflag.attribute("ref")) == "2")
- {
- cmb_incmflag1.visible = false;
- cmb_incmflag2.visible = true;
- model.setValue(cmb_incmflag2.attribute("ref"), "42");
- cmb_incmflag2.refresh();
- }
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRRAT00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
- <submission id="TRRAC00611" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rertparams2" resultref="/root/hidden/incmpsn"/>
- <!-- 2012.05.21 박준범 - TXRAT00501 의 ref를 변경함 -->
- <!--submission id="TXRAT00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/etcproflist" resultref="/root/temp"/-->
- <submission id="TXRAT00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list/etcproflist" resultref="/root/temp"/>
- <bind id="bindSecPageCnt" ref="/root/send/printparams/secPageCnt" calculate="count(/root/main/printlist/secpage)"/>
- <bind id="bindAllEtcProf" ref="/root/send/printparams/allEtcProf" calculate="count(/root/main/list/etcproflist)"/>
- <bind id="bindAllCount" ref="/root/send/printparams/allCount" calculate="sum(/root/main/list/etcproflist/cnt)"/>
- <bind id="bindPayTotAmt" ref="/root/send/printparams/payTotAmt" calculate="sum(/root/main/list/etcproflist/paytotamt)"/>
- <bind id="bindProfTax" ref="/root/send/printparams/profTax" calculate="sum(/root/main/list/etcproflist/proftax)"/>
- <bind id="bindIncmTax" ref="/root/send/printparams/incmTax" calculate="sum(/root/main/list/etcproflist/incmtax)"/>
- <bind id="bindResdnTax" ref="/root/send/printparams/resdnTax" calculate="sum(/root/main/list/etcproflist/resdntax)"/>
- <bind id="bindSumAmt" ref="/root/send/printparams/sumAmt" calculate="sum(/root/main/list/etcproflist/sumamt)"/>
- <bind id="bindPayAmt" ref="/root/send/printparams/payAmt" calculate="sum(/root/main/list/etcproflist/payamt)"/>
- <bind id="bindChkCnt" ref="/root/hidden/checkedcnt" calculate="count(/root/main/list/etcproflist[chk='Y']/chk)"/>
- <submission id="TRRAZ00008" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/name"/>
- <submission id="TRRAZ00006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/emplcheck" resultref="/root/hidden/emplcntcheck"/>
- <submission id="TXRAC00612" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/incmpsn" resultref="/root/temp"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1193;" 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:60px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_name" style="left:9px; top:35px; width:92px; height:17px; ">소득구분 :</caption>
- <line id="line5" class="line_4" style="x1:1107px; y1:6px; x2:1107px; y2:54px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" visibility="hidden" 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:520px; 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:622px; 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>
- <caption id="caption5" class="search_name" style="left:755px; top:9px; width:124px; height:17px; ">내/외국인구분 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:19px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
- ]]>
- </script>
- </button>
- <select1 id="cmb_incmflag1" ref="/root/send/retrparams/incmflag" class="combo_s_essential" visibility="hidden" appearance="minimal" showvalue="true" style="left:99px; top:34px; width:176px; height:19px; margin-left:2; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_incmflag2" ref="/root/send/retrparams/incmflag" class="combo_s_essential" visibility="hidden" appearance="minimal" showvalue="true" style="left:99px; top:34px; width:176px; height:19px; margin-left:2; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_toym" ref="/root/send/retrparams/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:635px; 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:545px; top:35px; width:90px; height:17px; ">소 득 자 :</caption>
- <button id="btn_entregnohelp" class="icon_search" style="left:739px; top:35px; 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:635px; top:34px; 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:759px; top:34px; 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>
- <caption id="caption9" class="search_name" visibility="hidden" style="left:885px; top:35px; width:97px; height:17px; ">조회구분 :</caption>
- <select1 id="rdo_retrkind" ref="/root/send/retrparams/retrkind" visibility="hidden" appearance="full" cellspacing="15" cols="3" overflow="visible" style="left:975px; top:35px; width:125px; 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>
- <select1 id="cmb_ionatiflag" ref="/root/send/retrparams/ionatiflag" class="combo_s_essential" appearance="minimal" style="left:875px; top:8px; width:95px; height:19px; margin-left:2; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>내국인</label>
- <value>1</value>
- </item>
- <item>
- <label>외국인</label>
- <value>9</value>
- </item>
- </choices>
- </select1>
- <caption id="caption20" class="search_name" style="left:900px; top:34px; width:105px; height:17px; ">거주자구분 :</caption>
- <select1 id="cmb_residentflag" ref="/root/send/retrparams/residentflag" class="combo_s_essential" appearance="minimal" style="left:1000px; top:34px; width:95px; height:19px; margin-left:2; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>거주자</label>
- <value>1</value>
- </item>
- <item>
- <label>비거주자</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetResidentflag();
-
- if(model.getValue(cmb_residentflag.attribute("ref")) == "")
- {
- cmb_incmflag1.visible = false;
- cmb_incmflag2.visible = false;
- model.setValue("/root/send/retrparams/incmflag", "");
- }
-
- ]]>
- </script>
- </select1>
- <caption id="caption22" class="search_name" style="left:284px; top:35px; width:92px; height:17px; ">필요경비 :</caption>
- <select1 id="chk_needpay" ref="/root/send/retrparams/needpay" appearance="full" cols="4" overflow="visible" style="left:375px; top:35px; width:170px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>0%</label>
- <value>0</value>
- </item>
- <item>
- <label>75%</label>
- <value>75</value>
- </item>
- <item>
- <label>80%</label>
- <value>80</value>
- </item>
- <item>
- <label>100%</label>
- <value>100</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_day" ref="/root/send/retrparams/dayflag" class="combo_s_essential" navindex="-1" appearance="minimal" style="left:410px; 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="caption23" class="search_name" style="left:320px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:118px; x2:1195px; y2:118px; "/>
- <datagrid id="grd_etcproflist" nodeset="/root/main/list/etcproflist" backcoloralternate="#ffffff" caption="기관코드^일련번호^세부일련번호^지급처사업자등록번호^지급처거래처명^지급처대표자명^지급처사업자(주민)번호^상위주소^하위주소^증빙구분^확인^품의번호^소득
구분코드^소득자성명
(상호)^주민(사업자)
등록번호^주소^내/외국인^거주자구분^귀속일자^지급
년도^지급
건수^지급일자^귀속년월^지급총액^필요경비^소득금액^세율^소득세^주민세^법인세^농특세^계^미결전표일자^미결전표번호^미결전표일련번호^전표여부^비고" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 133, 55, 80, 110, 0, 60, 0, 0, 0, 0, 90, 90, 90, 80, 75, 39, 75, 70, 70, 70, 80, 0, 0, 0, 0, 200, 100, 100, 100" explorerbar="sortshow" frozencols="21" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:168px; width:1195px; height:593px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="detlseqno" visibility="hidden"/>
- <col ref="deployeeentrregno" visibility="hidden"/>
- <col ref="deployeecustnm" visibility="hidden"/>
- <col ref="deployeeprsdnm" visibility="hidden"/>
- <col ref="deployeerrgstno" visibility="hidden"/>
- <col ref="deployeesupaddr" visibility="hidden"/>
- <col ref="deployeeinfaddr" visibility="hidden"/>
- <col ref="chrgflag"/>
- <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="incmflag" type="combo" format="##" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cmb_incmflag1/comcodelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col imemode="hangul" ref="name" type="inputbutton" style="text-align:center; "/>
- <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
- <col ref="address" style="text-align:left; padding-left:1; "/>
- <col disabled="true" ref="ionatiflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>내국인</label>
- <value>1</value>
- </item>
- <item>
- <label>외국인</label>
- <value>9</value>
- </item>
- </choices>
- </col>
- <col ref="residentflag" visibility="hidden"/>
- <col ref="posyear" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="getyear" visibility="hidden" format="yyyy" style="text-align:center; "/>
- <col ref="cnt" visibility="hidden" 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="payamt" type="input" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="proftax" type="input" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="taxrate" format="## %" style="text-align:right; "/>
- <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="lawtax" visibility="hidden" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="nhtax" visibility="hidden" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="sumamt" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col ref="unsldd"/>
- <col ref="unslno" visibility="hidden"/>
- <col ref="unslseqno"/>
- <col ref="slipyn"/>
- <col ref="cmt" type="input" visibility="hidden"/>
- <col ref="rrgstnovalidyn" visibility="hidden"/>
- <col ref="emplno" visibility="hidden"/>
- <col ref="chkyn" type="input" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_etcproflist.col == grd_etcproflist.colRef("name"))
- {
- model.setValue("/root/hidden/incmpsn/name", model.getValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/name"));
-
- misfOpenPopUpList("31", opt_temp, "", "rrgstno,name,entrregno,custnm,zipcd,zipcd1,zipcd2,zipcdseqno,supaddr,infaddr,cntctel,emailaddr,passport,cmt,ionatiflag,incmflag", "");
- // 팝업화면의 그리드 순서가 바뀌면 틀어지기 때문에 적절치 않은 사용이다.
-
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/incmflag", model.getValue("/root/hidden/incmpsn/incmflag"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/ionatiflag", model.getValue("/root/hidden/incmpsn/ionatiflag"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/posyear", "");
- //model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/getyear", getCurrentDate().substr(0, 4));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/cnt", "1");
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_etcproflist.col == grd_etcproflist.colRef("name") || grd_etcproflist.col == grd_etcproflist.colRef("rrgstno"))
- {
- model.setValue("/root/send/rertparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
- if(grd_etcproflist.col == grd_etcproflist.colRef("name"))
- {
- model.setValue("/root/send/rertparams2/name", grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("name")));
- model.setValue("/root/send/rertparams2/rrgstno", "");
- model.setValue("/root/send/rertparams2/retrflag", "name");
- }
- else if(grd_etcproflist.col == grd_etcproflist.colRef("rrgstno"))
- {
- model.setValue("/root/send/rertparams2/name", "");
- model.setValue("/root/send/rertparams2/rrgstno", grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("rrgstno")));
- model.setValue("/root/send/rertparams2/retrflag", "code");
- }
- if (submit("TRRAC00611"))
- {
- if (instance1.selectNodes("/root/hidden/incmpsn").length == 0)
- {
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/incmflag", model.getValue("/root/hidden/incmpsn/incmflag"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/ionatiflag", model.getValue("/root/hidden/incmpsn/ionatiflag"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/posyear", "");
- //model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/getyear", getCurrentDate().substr(0, 4));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/cnt", "1");
- }
- else
- {
-
- }
- }
- }
- else if(grd_etcproflist.col == grd_etcproflist.colRef("paytotamt") || grd_etcproflist.col == grd_etcproflist.colRef("taxrate"))
- {
- var sPayTotAmt = grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("paytotamt"));
- var sTaxRate = grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("taxrate"));
- var sIncmFlag = grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("incmflag"));
-
- if(sPayTotAmt.getTrim() != "" && sTaxRate.getTrim() != "")
- {
- var iPayTotAmt = parseInt(sPayTotAmt, 10);
- var iPayAmt = 0;
- var iProfTax = 0;
- var fTaxRate = parseFloat(sTaxRate);
- var fNeedPay = chk_needpay.value;
- // iPayAmt = iPayTotAmt - ((iPayTotAmt * fTaxRate) / 100);
-
- //필요경비
- //iPayAmt = ((iPayTotAmt * fNeedPay) / 100);
- //2012.02.29 박준범 : 필요경비를 반올림 처리함(오성호 샘과 협의 결과 반영)
- iPayAmt = Math.round((iPayTotAmt * fNeedPay) / 100);
-
- // iProfTax = iPayTotAmt * (fTaxRate / 100);
- // 소득금액
- iProfTax = iPayTotAmt - iPayAmt;
- if(sIncmFlag == "42")
- {
- iPayAmt = 0;
- }
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("payamt")) = iPayAmt;
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("proftax")) = iProfTax;
- }
-
- if(grd_etcproflist.col == grd_etcproflist.colRef("paytotamt") && sPayTotAmt.getTrim() != "")
- {
- var iPayTotAmt = parseInt(sPayTotAmt, 10);
- var sIncmFlag = grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("incmflag"));
- var iIncmTax = 0;
- var iResdnTax = 0;
- if(sIncmFlag == "42")
- {
- if (fNeedPay != "100") {
- iIncmTax = ((iPayTotAmt * 0.22) / 11) * 10;
- iResdnTax = (iPayTotAmt * 0.22) / 11;
- } else if (fNeedPay == "100" ) {
- iIncmTax = 0;
- iResdnTax = 0;
- }
- }
- else
- {
- iIncmTax = (iPayTotAmt <= 250000) ? 0 : parseInt((iProfTax * fTaxRate /100) / 10, 10) * 10;
- iResdnTax = (iPayTotAmt <= 250000) ? 0 : parseInt((iIncmTax * 0.1) / 10, 10) * 10;
- if (iIncmTax < 1000 || fNeedPay == "100")
- {
- iIncmTax = 0;
- iResdnTax = 0;
- }
- }
-
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("incmtax")) = iIncmTax;
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("resdntax")) = iResdnTax;
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("sumamt")) = iIncmTax + iResdnTax;
- }
- }
- else if(grd_etcproflist.col == grd_etcproflist.colRef("incmflag"))
- {
- // var sIncmFlag = grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("incmflag"));
- //
- // if(sIncmFlag == "42")
- // {
- // grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("taxrate")) = "30";
- // }
- }
- else if(grd_etcproflist.col == grd_etcproflist.colRef("posyear"))
- {
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/getyear", grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("posyear")).substr(0, 4));
- }
-
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/lawtax", "0");
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/nhtax", "0");
- model.recalculate();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_etcproflist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_etcproflist.isCell(event.target) && grd_etcproflist.row > 0 && grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("slipyn")) == "Y" && model.getValue("/root/send/retrparams/retrkind") == "all")
- {
- model.makeValue("/root/source/slipinfo/instcd", cmb_instcd.value);
- model.makeValue("/root/source/slipinfo/slipdt", model.getValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/unsldd"));
- model.makeValue("/root/source/slipinfo/slipno", model.getValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/unslno").substr(0, 4));
- model.refresh();
- modal("SMRAD00100","","","","","/root/source", "/root/target" );
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption21" class="tit_2" style="left:5px; top:103px; width:96px; height:13px; ">소득자 목록</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:1075px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 2011.08.08 CYW
- // * 조회기준이 소득자가 포함되어있는 경우에만 출력 가능함.
- var flag = true;
- var etcCnt = getNodesetCount("/root/main/list/prntetcproflist");
- if( model.getValue("/root/send/retrparams/rrgstno") == "" ) {
- flag = false;
- }
- // for( var i = 1 ; i <= etcCnt ; i++ ){
- // if( model.getValue("/root/main/list/etcproflist[1]/name") != model.getValue("/root/main/list/etcproflist[" + i + "]/name") ){
- // flag = false;
- // }
- // }
-
- if( flag == true ){
- fPrint();
- }else{
- messageBox("소득자 기준으로 조회해야 출력 가능합니다. 소득자를 조회해주십시오.", "E000", "");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter9" visibility="hidden" style="left:915px; top:3px; width:140px; height:22px; ">
- <caption>비거주자 파일생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var instcd = model.getValue("/root/send/retrparams/instcd");
-
- model.makeValue("/root/source/reportfile/instcd", instcd);
- model.makeValue("/root/source/reportfile/frdd", ipt_frym.value);
- model.makeValue("/root/source/reportfile/todd", ipt_toym.value);
- model.makeValue("/root/source/reportfile/jobflag", "etc2");
-
-
- model.refresh();
- modal("SPRAT01000","","","","","/root/source", "/root/target" );
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter8" visibility="hidden" style="left:780px; top:3px; width:128px; height:22px; ">
- <caption>거주자 파일생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var instcd = model.getValue("/root/send/retrparams/instcd");
-
- model.makeValue("/root/source/reportfile/instcd", instcd);
- model.makeValue("/root/source/reportfile/frdd", ipt_frym.value);
- model.makeValue("/root/source/reportfile/todd", ipt_toym.value);
- model.makeValue("/root/source/reportfile/jobflag", "etc1");
-
-
- model.refresh();
- modal("SPRAT01000","","","","","/root/source", "/root/target" );
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_addrow" class="btn2_letter3" style="left:1007px; top:98px; width:53px; height:19px; text-align:left; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_etcproflist, "A");
-
- var dayno = getCurrentDate();
-
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("chrgflag")) = "C";
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("taxrate")) = "20";
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("paydd")) = dayno;
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("getdd")) = dayno.substr(0, 6);
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("incmflag")) = "61";
- misfSetReadOnlyCol(grd_etcproflist, "ionatiflag", true, grd_etcproflist.row);
- //2012.05.21 박준범 - instcd 추가
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("instcd")) = cmb_instcd.value;
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" style="left:1064px; top:98px; width:53px; height:19px; text-align:left; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var iLength = grd_etcproflist.selectedCells.length;
- var iLength = grd_etcproflist.selectedRows;
-
- for(var i=0; i<iLength; i++)
- {
- var iRowIdx = grd_etcproflist.selectedCells.item(i).row;
-
- if(model.getValue(grd_etcproflist.nodeset + "[" + iRowIdx + "]/slipyn") != "Y" && model.getValue("/root/send/retrparams/retrkind") == "all")
- {
- if(grd_etcproflist.rowStatus(iRowIdx) == 4)
- {
- grd_etcproflist.rowStatus(iRowIdx) = 0;
- }
- else if(grd_etcproflist.rowStatus(iRowIdx) == 1 && grd_etcproflist.rowStatus(iRowIdx) == 3)
- {
- grd_etcproflist.deleteRow(iRowIdx, false);
- }
- else
- {
- grd_etcproflist.addStatus(iRowIdx, "delete");
- }
- }
- }
- ]]>
- </script>
- </button>
- <output id="opt_temp" ref="/root/hidden/incmpsn/name" visibility="hidden" style="left:633px; top:98px; width:20px; height:19px; "/>
- <caption id="caption10" style="left:120px; top:102px; width:15px; height:15px; background-color:#eaeaea; "/>
- <caption id="caption11" style="left:138px; top:103px; width:182px; height:14px; ">전표기타소득 삭제 및 수정 불가</caption>
- <output id="output1" ref="/root/send/printparams/resdnTax" format="(-)#,###.##" style="left:1044px; top:148px; width:67px; height:19px; text-align:right; margin-right:1; "/>
- <caption id="cap_item" class="cell_1" style="left:1044px; top:123px; width:67px; height:23px; text-align:center; vertical-align:middle; ">주민세</caption>
- <caption id="caption14" class="cell_1" style="left:1114px; top:123px; width:77px; height:23px; text-align:center; vertical-align:middle; ">계</caption>
- <output id="output4" ref="/root/send/printparams/sumAmt" format="(-)#,###.##" style="left:1114px; top:148px; width:77px; height:19px; text-align:right; margin-right:1; "/>
- <output id="output5" ref="/root/send/printparams/incmTax" format="(-)#,###.##" style="left:968px; top:148px; width:73px; height:19px; text-align:right; margin-right:1; "/>
- <caption id="caption15" class="cell_1" style="left:968px; top:123px; width:73px; height:23px; text-align:center; vertical-align:middle; ">소득세</caption>
- <output id="output6" ref="/root/send/printparams/profTax" format="(-)#,###.##" style="left:855px; top:148px; width:72px; height:19px; text-align:right; margin-right:1; "/>
- <caption id="caption16" class="cell_1" style="left:855px; top:123px; width:72px; height:23px; text-align:center; vertical-align:middle; ">소득금액</caption>
- <output id="output7" ref="/root/send/printparams/payAmt" format="(-)#,###.##" style="left:775px; top:148px; width:77px; height:19px; text-align:right; margin-right:1; "/>
- <caption id="caption17" class="cell_1" style="left:775px; top:123px; width:77px; height:23px; text-align:center; vertical-align:middle; ">필요경비</caption>
- <output id="output8" ref="/root/send/printparams/payTotAmt" format="(-)#,###.##" style="left:685px; top:148px; width:87px; height:19px; text-align:right; margin-right:1; "/>
- <caption id="caption18" class="cell_1" style="left:685px; top:123px; width:87px; height:23px; text-align:center; vertical-align:middle; ">총지급액</caption>
- <line id="line10" class="line_3" style="x1:1112px; y1:123px; x2:1112px; y2:167px; "/>
- <line id="line6" class="line_3" style="x1:1112px; y1:123px; x2:1112px; y2:167px; "/>
- <line id="line7" class="line_3" style="x1:1042px; y1:123px; x2:1042px; y2:167px; "/>
- <line id="line8" class="line_3" style="x1:853px; y1:123px; x2:853px; y2:167px; "/>
- <line id="line9" class="line_3" style="x1:773px; y1:123px; x2:773px; y2:167px; "/>
- <line id="line11" class="line_3" style="x1:683px; y1:123px; x2:683px; y2:167px; "/>
- <line id="line12" class="line_3" style="x1:928px; y1:123px; x2:928px; y2:167px; "/>
- <line id="line13" class="line_3" style="x1:966px; y1:123px; x2:966px; y2:167px; "/>
- <line id="line14" class="line_3" style="x1:1192px; y1:123px; x2:1192px; y2:167px; "/>
- <caption id="caption19" class="cell_1" style="left:595px; top:146px; width:87px; height:21px; text-align:center; vertical-align:middle; ">계</caption>
- <button id="btn_excel" class="btn2_letter4" style="left:1124px; top:98px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fGridStatusCheck())
- {
- 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);
- // grd_excel.rebuild();
- misfSaveExcel(grd_excel, sTitle);
- }
- ]]>
- </script>
- </button>
- <button id="btn_openpsn" class="btn2_letter5" style="left:928px; top:98px; 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="output9" ref="/root/hidden/checkedcnt" visibility="hidden" style="left:70px; top:140px; width:25px; height:20px; "/>
- <button id="btn_excelupload" class="btn2_letter4" visibility="hidden" style="left:543px; top:95px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- dlgRslt = messageBox("소득구분은 80% 필요경비 발생(61)만 입력가능합니다.\n계속하시겠습니까?\n", "Q000");
- if(dlgRslt != 6) return;
-
- if(fGridStatusCheck() && fInputExcel(grd_excelupload))
- {
- var grd_fixedRows = grd_excelupload.fixedRows;
- var grd_rows = grd_excelupload.rows;
-
- var incmflag = '';
- var name = '';
- var rrgstno = '';
- var emplno = '';
- var residentflag = '';
- var ionatiflag = '';
- var posyear = '';
- var paytotamt = '';
- var payamt = '';
- var proftax = '';
- var taxrate = '';
- var incmtax = '';
- var resdntax = '';
- var vIonatiflag = '';
- var vResidentflag = '';
- var icpncmt = '';
- var cmt = '';
- var icpnpsnCount = 0;
-
- var nZipcd1 = "/root/hidden/zipcd1";
- var nZipcd2 = "/root/hidden/zipcd2";
- var nSupaddr = "/root/hidden/supaddr";
- var nInfaddr = "/root/hidden/infaddr";
-
- radfgetAcntYY(cmb_instcd.value, ipt_frym.value + "01", nZipcd1, nZipcd2, nSupaddr, nInfaddr);
-
- var vZipcd1 = model.getValue(nZipcd1);
- var vZipcd2 = model.getValue(nZipcd2);
- var vSupaddr = model.getValue(nSupaddr);
- var vInfaddr = model.getValue(nInfaddr);
-
- model.removenode("/root/hidden/incmpsnlist");
- grd_icpn.refresh();
-
- for(var i = grd_fixedRows; i < grd_rows ; i++)
- {
- incmflag = model.getValue(grd_excelupload.nodeset + "[" + i + "]/incmflag");
- name = model.getValue(grd_excelupload.nodeset + "[" + i + "]/name");
- rrgstno = model.getValue(grd_excelupload.nodeset + "[" + i + "]/rrgstno");
- emplno = model.getValue(grd_excelupload.nodeset + "[" + i + "]/emplno");
- residentflag = model.getValue(grd_excelupload.nodeset + "[" + i + "]/residentflag");
- ionatiflag = model.getValue(grd_excelupload.nodeset + "[" + i + "]/ionatiflag");
- posyear = model.getValue(grd_excelupload.nodeset + "[" + i + "]/posyear");
- paytotamt = model.getValue(grd_excelupload.nodeset + "[" + i + "]/paytotamt");
- payamt = model.getValue(grd_excelupload.nodeset + "[" + i + "]/payamt");
- proftax = model.getValue(grd_excelupload.nodeset + "[" + i + "]/proftax");
- taxrate = model.getValue(grd_excelupload.nodeset + "[" + i + "]/taxrate");
- incmtax = model.getValue(grd_excelupload.nodeset + "[" + i + "]/incmtax");
- resdntax = model.getValue(grd_excelupload.nodeset + "[" + i + "]/resdntax");
- icpncmt = model.getValue(grd_excelupload.nodeset + "[" + i + "]/cmt");
- cmt = model.getValue(grd_excelupload.nodeset + "[" + i + "]/cmt");
-
- if(incmflag != '61') {messageBox(i + " 번째줄 " + "소득구분이 잘못되었습니다." ,"I000");return;}
-
- if(ionatiflag == "내국인" || ionatiflag == "1") {vIonatiflag = "1";}
- else if(ionatiflag == "외국인" || ionatiflag == "9") {vIonatiflag = "9";}
- else {messageBox(i + " 번째줄 " + "내/외국인구분이 잘못 되었습니다." ,"I000");return;}
- model.setValue(grd_excelupload.nodeset + "[" + i + "]/ionatiflag", vIonatiflag);
-
- if(residentflag == "거주자" || residentflag == "1") {vResidentflag = "1";}
- else if(residentflag == "비거주자" || residentflag == "2") {vResidentflag = "2";}
- else {messageBox(i + " 번째줄 " + "거주자 구분이 잘못 되었습니다." ,"I000");return;}
- model.setValue(grd_excelupload.nodeset + "[" + i + "]/residentflag", vResidentflag);
-
- if(!isValidDateTime(posyear, "YYYYMMDD"))
- {
- messageBox(i + "번째줄 일자가 유효하지 않습니다.", "I000");
- return false;
- }
-
- if(rrgstno == "") // 주민번호가 없을 시 사번으로 조회한다.
- {
- vNode = "/root/hidden/rrgstno";
- name = radfcheckEmplExist(emplno,vNode);
- if(name == "")
- {
- messageBox("사원번호 [ " + vEmplNo + " ] 는 잘못된 데이터 입니다.", "I000");
- return false;
- }
- else
- {
- rrgstno = model.getValue(vNode);
- model.setValue(grd_excelupload.nodeset + "[" + i + "]/rrgstno", rrgstno);
- }
- }
- else
- {
- rrgstno = rrgstno.replace("-","");
- if(rrgstno.length > 13)
- {
- messageBox(i +"번째줄 주민등록번호 자릿수가 맞지 않습니다.", "I000");
- return false;
- }
- }
-
- if(radfGetIcpncd(cmb_instcd.value,rrgstno) == "")
- {
- if(name == ""){messageBox(i +"번째줄 이름이 없어 소득자 정보에 저장하지 못했습니다.", "I000"); return false}
-
- var bNoDuplFlag = 'Y';
-
- for(var j = grd_icpn.fixedRows ; j < grd_icpn.rows ; j++)
- {
- if(grd_icpn.valueMatrix(j, grd_icpn.colRef("rrgstno")) == rrgstno)
- {
- bNoDuplFlag = 'N';
- }
- }
-
- if(bNoDuplFlag == 'Y')
- {
- icpnpsnCount++;
-
- model.makeValue("/root/hidden/incmpsnlist[" + icpnpsnCount + "]/instcd", cmb_instcd.value);
- model.makeValue("/root/hidden/incmpsnlist[" + icpnpsnCount + "]/rrgstno", rrgstno);
- model.makeValue("/root/hidden/incmpsnlist[" + icpnpsnCount + "]/name", name);
- model.makeValue("/root/hidden/incmpsnlist[" + icpnpsnCount + "]/zipcd1", vZipcd1);
- model.makeValue("/root/hidden/incmpsnlist[" + icpnpsnCount + "]/zipcd2", vZipcd2);
- model.makeValue("/root/hidden/incmpsnlist[" + icpnpsnCount + "]/supaddr", vSupaddr);
- model.makeValue("/root/hidden/incmpsnlist[" + icpnpsnCount + "]/infaddr", vInfaddr);
- model.makeValue("/root/hidden/incmpsnlist[" + icpnpsnCount + "]/residentflag", vResidentflag);
- model.makeValue("/root/hidden/incmpsnlist[" + icpnpsnCount + "]/ionatiflag", vIonatiflag);
- model.makeValue("/root/hidden/incmpsnlist[" + icpnpsnCount + "]/cmt", icpncmt);
- }
- }
- }
-
- var grd_rows = grd_excelupload.rows;
- var grd_fixedRows = grd_excelupload.fixedRows;
- var Instance_row = grd_etcproflist.rows - grd_etcproflist.fixedRows + 1;
- var status_row = grd_etcproflist.rows - grd_etcproflist.fixedRows + 1;
-
- for(var i = grd_fixedRows ; i < grd_rows ; i++)
- {
- model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/instcd", cmb_instcd.value);
- model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/chrgflag", "C");
- //model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/instcd", cmb_instcd.value);
- model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/incmflag", model.getValue(grd_excelupload.nodeset + "[" + i + "]/incmflag"));
- model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/name", model.getValue(grd_excelupload.nodeset + "[" + i + "]/name"));
- model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/rrgstno", model.getValue(grd_excelupload.nodeset + "[" + i + "]/rrgstno").replace("-",""));
- model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/emplno", model.getValue(grd_excelupload.nodeset + "[" + i + "]/emplno"));
- model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/ionatiflag", model.getValue(grd_excelupload.nodeset + "[" + i + "]/ionatiflag"));
- model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/posyear", model.getValue(grd_excelupload.nodeset + "[" + i + "]/posyear"));
- model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/paytotamt", model.getValue(grd_excelupload.nodeset + "[" + i + "]/paytotamt"));
- model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/payamt", model.getValue(grd_excelupload.nodeset + "[" + i + "]/payamt"));
- model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/proftax", model.getValue(grd_excelupload.nodeset + "[" + i + "]/proftax"));
- model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/taxrate", model.getValue(grd_excelupload.nodeset + "[" + i + "]/taxrate"));
- model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/incmtax", model.getValue(grd_excelupload.nodeset + "[" + i + "]/incmtax"));
- model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/resdntax", model.getValue(grd_excelupload.nodeset + "[" + i + "]/resdntax"));
- model.makeValue(grd_etcproflist.nodeset + "[" + Instance_row + "]/cmt", model.getValue(grd_excelupload.nodeset + "[" + i + "]/cmt"));
-
- Instance_row++;
- }
-
- model.refresh(); // 그리드 반영
-
- for(var i = grd_fixedRows ; i < grd_rows ; i++)
- {
- grd_etcproflist.rowStatus(status_row) = 1;
- status_row++;
- }
-
- for(var i = grd_icpn.fixedRows ; i < grd_icpn.rows ; i++)
- {
- grd_icpn.rowStatus(i) = 1;
- status_row++;
- }
- //fInitialize();
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_excelupload" nodeset="/root/hidden/excelupload/exceluploadlist" visibility="hidden" backcoloralternate="#ffffff" caption="소득구분코드^소득자성명(상호)^주민(사업자)등록번호^사번^거주자구분^내/외국인^귀속일자^(연간)지급총액^필요경비^소득금액^세율^소득세^주민세^비고" colsep="^" colwidth="106, 105, 105, 81, 80, 60, 79, 92, 60, 60, 60, 60, 60, 160" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:335px; width:1178px; height:193px; ">
- <col ref="incmflag"/>
- <col ref="name" style="text-align:center; "/>
- <col ref="rrgstno"/>
- <col ref="emplno" style="text-align:center; "/>
- <col ref="residentflag"/>
- <col ref="ionatiflag" style="text-align:center; "/>
- <col ref="posyear" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="paytotamt" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col ref="payamt" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col ref="proftax" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col ref="taxrate" format="## %" style="text-align:right; "/>
- <col ref="incmtax" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col ref="resdntax" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col ref="cmt" style="text-align:right; padding-right:1; "/>
- </datagrid>
- <datagrid id="grd_icpn" nodeset="/root/hidden/incmpsnlist" visibility="hidden" backcoloralternate="#ffffff" caption="기관코드^주민등록번호^이름^우편번호1^우편번호2^상위주소^하위주소^거주자구분^내외국인^비고" colsep="^" colwidth="106, 105, 138, 81, 60, 79, 92, 60, 60, 60, 60, 60, 60, 60, 60" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:180px; top:530px; width:865px; height:190px; ">
- <col ref="instcd"/>
- <col ref="rrgstno"/>
- <col ref="name"/>
- <col ref="zipcd1"/>
- <col ref="zipcd2"/>
- <col ref="supaddr"/>
- <col ref="infaddr"/>
- <col ref="residentflag"/>
- <col ref="ionatiflag"/>
- <col ref="cmt"/>
- </datagrid>
- <datagrid id="grd_excel" nodeset="/root/main/list/etcproflist" visibility="hidden" backcoloralternate="#ffffff" caption="확인^품의번호^소득
구분코드^소득자성명
(상호)^주민(사업자)
등록번호^주소^내/외국인^거주자구분^지급일자^귀속년월^지급총액^필요경비^소득금액^세율^소득세^주민세^법인세^농특세^계" colsep="^" explorerbar="sort" frozencols="21" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:585px; width:1000px; height:97px; ">
- <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="incmflag" type="input" format="##" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col imemode="hangul" ref="name" type="inputbutton" style="text-align:center; "/>
- <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
- <col ref="address" style="text-align:left; padding-left:1; "/>
- <col disabled="true" ref="ionatiflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>내국인</label>
- <value>1</value>
- </item>
- <item>
- <label>외국인</label>
- <value>9</value>
- </item>
- </choices>
- </col>
- <col ref="residentflag" visibility="hidden"/>
- <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="payamt" type="input" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="proftax" type="input" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="taxrate" format="## %" style="text-align:right; "/>
- <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="lawtax" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="nhtax" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="sumamt" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- </datagrid>
- <button id="button1" class="btn2_letter8" style="left:815px; top:98px; width:108px; height:19px; ">
- <caption>주민등록번호검사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // //chkresno("6007262041524");
- //
- //
- //
- // if (!radfJuminCheck("810314-1032411"))
- // {
- // alert("잘못된 주민등록번호입니다."); return;
- // }
- //
- // alert("정상적인 주민등록번호입니다.");
-
-
- openLoadingBar("작업중");
-
- for(var i = grd_etcproflist.fixedRows ; i < grd_etcproflist.rows ; i++)
- {
- sRrgstno = grd_etcproflist.valueMatrix(i, grd_etcproflist.colRef("rrgstno"));
-
-
- if(!radfJuminCheck(sRrgstno) && grd_etcproflist.valueMatrix(i, grd_etcproflist.colRef("ionatiflag")) == "1" || !radfFgnJuminCheck(sRrgstno) && grd_etcproflist.valueMatrix(i, grd_etcproflist.colRef("ionatiflag")) == "9")
- {
-
- grd_etcproflist.rowStyle(i, "data", "background-color") = "#ff99cc";
- model.setValue(grd_etcproflist.nodeset + "[" + i + "]/rrgstnovalidyn", "N");
- // alert(model.getValue(grd_etcproflist.nodeset + "[" + (i-1) + "]/rrgstnovalidyn"));
- // alert(model.getValue(grd_etcproflist.nodeset + "[" + i + "]/rrgstnovalidyn"));
- // alert(model.getValue(grd_etcproflist.nodeset + "[" + (i+1) + "]/rrgstnovalidyn"));
-
- }
-
- }
- grd_etcproflist.refresh();
- closeLoadingBar();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter4" visibility="hidden" style="left:475px; top:95px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀양식</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sTitle = "기타소득 입력 양식";
- grd_excelupload.rebuild();
- misfSaveExcel(grd_excelupload, sTitle);
- ]]>
- </script>
- </button>
- <datagrid id="grd_prntetcproflist" nodeset="/root/main/list/prntetcproflist" visibility="hidden" backcoloralternate="#ffffff" caption="기관코드^일련번호^세부일련번호^지급처사업자등록번호^지급처거래처명^지급처대표자명^지급처사업자(주민)번호^상위주소^하위주소^증빙구분^확인^품의번호^소득
구분코드^소득자성명
(상호)^주민(사업자)
등록번호^주소^내/외국인^거주자구분^귀속일자^지급
년도^지급
건수^지급일자^귀속년월^지급총액^필요경비^소득금액^세율^소득세^주민세^법인세^농특세^계^미결전표일자^미결전표번호^미결전표일련번호^전표여부^비고" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 133, 55, 80, 110, 0, 60, 0, 0, 0, 0, 90, 90, 90, 80, 75, 39, 75, 70, 70, 70, 80, 0, 0, 0, 0, 200, 100, 100, 100" explorerbar="sort" frozencols="21" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:65px; top:410px; width:345px; height:90px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="detlseqno" visibility="hidden"/>
- <col ref="deployeeentrregno" visibility="hidden"/>
- <col ref="deployeecustnm" visibility="hidden"/>
- <col ref="deployeeprsdnm" visibility="hidden"/>
- <col ref="deployeerrgstno" visibility="hidden"/>
- <col ref="deployeesupaddr" visibility="hidden"/>
- <col ref="deployeeinfaddr" visibility="hidden"/>
- <col ref="chrgflag"/>
- <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="incmflag" type="combo" format="##" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cmb_incmflag1/comcodelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col imemode="hangul" ref="name" type="inputbutton" style="text-align:center; "/>
- <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
- <col ref="address" style="text-align:left; padding-left:1; "/>
- <col disabled="true" ref="ionatiflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>내국인</label>
- <value>1</value>
- </item>
- <item>
- <label>외국인</label>
- <value>9</value>
- </item>
- </choices>
- </col>
- <col ref="residentflag" visibility="hidden"/>
- <col ref="posyear" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="getyear" visibility="hidden" format="yyyy" style="text-align:center; "/>
- <col ref="cnt" visibility="hidden" 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="payamt" type="input" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="proftax" type="input" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="taxrate" format="## %" style="text-align:right; "/>
- <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="lawtax" visibility="hidden" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="nhtax" visibility="hidden" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col disabled="true" ref="sumamt" format="(-)#,###.##" style="text-align:right; padding-right:1; "/>
- <col ref="unsldd"/>
- <col ref="unslno" visibility="hidden"/>
- <col ref="unslseqno"/>
- <col ref="slipyn"/>
- <col ref="cmt" type="input" visibility="hidden"/>
- <col ref="rrgstnovalidyn" visibility="hidden"/>
- <col ref="emplno" visibility="hidden"/>
- <col ref="chkyn" type="input" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_etcproflist.col == grd_etcproflist.colRef("name"))
- {
- model.setValue("/root/hidden/incmpsn/name", model.getValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/name"));
-
- misfOpenPopUpList("31", opt_temp, "", "rrgstno,name,entrregno,custnm,zipcd,zipcd1,zipcd2,zipcdseqno,supaddr,infaddr,cntctel,emailaddr,passport,cmt,ionatiflag,incmflag", "");
- // 팝업화면의 그리드 순서가 바뀌면 틀어지기 때문에 적절치 않은 사용이다.
-
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/incmflag", model.getValue("/root/hidden/incmpsn/incmflag"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/ionatiflag", model.getValue("/root/hidden/incmpsn/ionatiflag"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/posyear", "");
- //model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/getyear", getCurrentDate().substr(0, 4));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/cnt", "1");
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_etcproflist.col == grd_etcproflist.colRef("name") || grd_etcproflist.col == grd_etcproflist.colRef("rrgstno"))
- {
- model.setValue("/root/send/rertparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
- if(grd_etcproflist.col == grd_etcproflist.colRef("name"))
- {
- model.setValue("/root/send/rertparams2/name", grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("name")));
- model.setValue("/root/send/rertparams2/rrgstno", "");
- model.setValue("/root/send/rertparams2/retrflag", "name");
- }
- else if(grd_etcproflist.col == grd_etcproflist.colRef("rrgstno"))
- {
- model.setValue("/root/send/rertparams2/name", "");
- model.setValue("/root/send/rertparams2/rrgstno", grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("rrgstno")));
- model.setValue("/root/send/rertparams2/retrflag", "code");
- }
- if (submit("TRRAC00611"))
- {
- if (instance1.selectNodes("/root/hidden/incmpsn").length == 0)
- {
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/incmflag", model.getValue("/root/hidden/incmpsn/incmflag"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/ionatiflag", model.getValue("/root/hidden/incmpsn/ionatiflag"));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/posyear", "");
- //model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/getyear", getCurrentDate().substr(0, 4));
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/cnt", "1");
- }
- else
- {
-
- }
- }
- }
- else if(grd_etcproflist.col == grd_etcproflist.colRef("paytotamt") || grd_etcproflist.col == grd_etcproflist.colRef("taxrate"))
- {
- var sPayTotAmt = grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("paytotamt"));
- var sTaxRate = grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("taxrate"));
- var sIncmFlag = grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("incmflag"));
-
- if(sPayTotAmt.getTrim() != "" && sTaxRate.getTrim() != "")
- {
- var iPayTotAmt = parseInt(sPayTotAmt, 10);
- var iPayAmt = 0;
- var iProfTax = 0;
- var fTaxRate = parseFloat(sTaxRate);
- var fNeedPay = chk_needpay.value;
- // iPayAmt = iPayTotAmt - ((iPayTotAmt * fTaxRate) / 100);
- //필요경비
- //iPayAmt = ((iPayTotAmt * fNeedPay) / 100);
- //2012.02.29 박준범 : 필요경비에 반올림 처리
- iPayAmt = Math.round((iPayTotAmt * fNeedPay) / 100);
-
-
- // iProfTax = iPayTotAmt * (fTaxRate / 100);
- // 소득금액
- iProfTax = iPayTotAmt - iPayAmt;
- if(sIncmFlag == "42")
- {
- iPayAmt = 0;
- }
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("payamt")) = iPayAmt;
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("proftax")) = iProfTax;
- }
-
- if(grd_etcproflist.col == grd_etcproflist.colRef("paytotamt") && sPayTotAmt.getTrim() != "")
- {
- var iPayTotAmt = parseInt(sPayTotAmt, 10);
- var sIncmFlag = grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("incmflag"));
- var iIncmTax = 0;
- var iResdnTax = 0;
- if(sIncmFlag == "42")
- {
- if (fNeedPay != "100") {
- iIncmTax = ((iPayTotAmt * 0.22) / 11) * 10;
- iResdnTax = (iPayTotAmt * 0.22) / 11;
- } else if (fNeedPay == "100" ) {
- iIncmTax = 0;
- iResdnTax = 0;
- }
- }
- else
- {
- iIncmTax = (iPayTotAmt <= 250000) ? 0 : parseInt((iProfTax * fTaxRate /100) / 10, 10) * 10;
- iResdnTax = (iPayTotAmt <= 250000) ? 0 : parseInt((iIncmTax * 0.1) / 10, 10) * 10;
- if (iIncmTax < 1000 || fNeedPay == "100")
- {
- iIncmTax = 0;
- iResdnTax = 0;
- }
- }
-
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("incmtax")) = iIncmTax;
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("resdntax")) = iResdnTax;
- grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("sumamt")) = iIncmTax + iResdnTax;
- }
- }
- else if(grd_etcproflist.col == grd_etcproflist.colRef("incmflag"))
- {
- // var sIncmFlag = grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("incmflag"));
- //
- // if(sIncmFlag == "42")
- // {
- // grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("taxrate")) = "30";
- // }
- }
- else if(grd_etcproflist.col == grd_etcproflist.colRef("posyear"))
- {
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/getyear", grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("posyear")).substr(0, 4));
- }
-
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/lawtax", "0");
- model.setValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/nhtax", "0");
- model.recalculate();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_etcproflist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_etcproflist.isCell(event.target) && grd_etcproflist.row > 0 && grd_etcproflist.valueMatrix(grd_etcproflist.row, grd_etcproflist.colRef("slipyn")) == "Y" && model.getValue("/root/send/retrparams/retrkind") == "all")
- {
- model.makeValue("/root/source/slipinfo/instcd", cmb_instcd.value);
- model.makeValue("/root/source/slipinfo/slipdt", model.getValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/unsldd"));
- model.makeValue("/root/source/slipinfo/slipno", model.getValue(grd_etcproflist.nodeset + "[" + grd_etcproflist.row + "]/unslno").substr(0, 4));
- model.refresh();
- modal("SMRAD00100","","","","","/root/source", "/root/target" );
- }
- ]]>
- </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>
|