123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987 |
- <?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>
- <instcd/>
- <seqno/>
- <detlseqno/>
- <chrgflag/>
- <emplno/>
- <name/>
- <entrregno/>
- <rrgstno/>
- <custnm/>
- <zipcd/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseqno/>
- <supaddr/>
- <infaddr/>
- <induflag/>
- <incmflag/>
- <dayno/>
- <dypay/>
- <paytotamt/>
- <taxrate/>
- <incmtax/>
- <resdntax/>
- <cmt/>
- </orchlist>
- <orch>
- <instcd/>
- <seqno/>
- <chrgflag/>
- <unsldd/>
- <unslno/>
- <undeciseqno/>
- <paydd/>
- <status/>
- </orch>
- </list>
- <orch_one>
- <instcd/>
- <seqno/>
- <detlseqno/>
- <chrgflag/>
- <emplno/>
- <name/>
- <entrregno/>
- <rrgstno/>
- <custnm/>
- <zipcd/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseqno/>
- <supaddr/>
- <infaddr/>
- <induflag/>
- <incmflag/>
- <dayno/>
- <dypay/>
- <paytotamt/>
- <taxrate/>
- <incmtax/>
- <resdntax/>
- <cmt/>
- </orch_one>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <seqno/>
- <chrgflag/>
- <detlseqno/>
- </retrparams>
- <list>
- <orchlist/>
- <orch/>
- </list>
- <data1>
- <instcd/>
- <rrgstno/>
- <name/>
- <retrflag/>
- </data1>
- </send>
- <hidden>
- <incmpsn/>
- <totamt/>
- <maxdetlseqno>0000</maxdetlseqno>
- <orch_one>
- <instcd/>
- <seqno/>
- <detlseqno/>
- <chrgflag/>
- <emplno/>
- <name/>
- <entrregno/>
- <rrgstno/>
- <custnm/>
- <zipcd/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseqno/>
- <supaddr/>
- <infaddr/>
- <induflag/>
- <incmflag/>
- <dayno/>
- <dypay/>
- <paytotamt/>
- <taxrate/>
- <incmtax/>
- <resdntax/>
- <cmt/>
- </orch_one>
- <orchreturn>
- <amt/>
- <etcnotefact/>
- <incmtax/>
- <resdntax/>
- </orchreturn>
- <flag/>
- </hidden>
- <init>
- <R0278list>
- <R0278>
- <cdnm/>
- <cdid/>
- </R0278>
- </R0278list>
- <R0279list>
- <R0279>
- <cdnm/>
- <cdid/>
- </R0279>
- </R0279list>
- </init>
- <temp>
- <seqno>
- <seqno/>
- </seqno>
- </temp>
- <target/>
- </root>
- </instance>
- <submission id="TRZBC00101" method="urlencoded-post" replace="instance"/>
- <submission id="TRRAC00611" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/incmpsn"/>
- <submission id="TRRAD00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
- <submission id="TXRAD00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list" resultref="/root/temp"/>
- <bind id="bind_totamt" ref="/root/hidden/totamt" calculate="(/root/main/orch_one/paytotamt) - (/root/main/orch_one/incmtax) -(/root/main/orch_one/resdntax)"/>
- <bind id="bind_amt" ref="/root/hidden/orchreturn/amt" calculate="sum(/root/main/list/orchlist/paytotamt)"/>
- <bind id="bind_incmtax" ref="/root/hidden/orchreturn/incmtax" calculate="sum(/root/main/list/orchlist/incmtax)"/>
- <bind id="bind_resdntax" ref="/root/hidden/orchreturn/resdntax" calculate="sum(/root/main/list/orchlist/resdntax)"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- model.removenode("/root/main/list/orchlist");
- var instcd = getUserInfo("dutplceinstcd");
-
- // document.title = "기타소득";
- //공통코드 조회
- // zbcfGetCodeList(new Array("R0278","R0279"), new Array("/root/init/R0278list","/root/init/R0279list"));
-
- if (model.getValue("/root/target/slipinfo/seqno") != "") {
- model.setValue("/root/send/retrparams/instcd", model.getValue("/root/target/slipinfo/instcd"));
- model.setValue("/root/send/retrparams/seqno", model.getValue("/root/target/slipinfo/seqno"));
- model.setValue("/root/send/retrparams/chrgflag", model.getValue("/root/target/slipinfo/profflag"));
- model.refresh();
- fSearch();
- } else {
- model.setValue("/root/main/list/orch/instcd", model.getValue("/root/target/slipinfo/instcd"));
- model.setValue("/root/main/list/orch/unsldd", model.getValue("/root/target/slipinfo/unsldd"));
- model.setValue("/root/main/list/orch/unslno", model.getValue("/root/target/slipinfo/unslno"));
- model.setValue("/root/main/list/orch/undeciseqno", model.getValue("/root/target/slipinfo/unslseqno"));
- model.setValue("/root/main/list/orch/chrgflag", model.getValue("/root/target/slipinfo/profflag"));
- model.setValue("/root/main/orch_one/instcd", model.getValue("/root/target/slipinfo/instcd"));
- model.setValue("/root/main/orch_one/chrgflag", model.getValue("/root/target/slipinfo/profflag"));
- model.setValue("/root/main/orch_one/detlseqno", "0001");
-
- model.setValue("/root/hidden/maxdetlseqno", "0000");
- model.setValue("/root/main/list/orch/status", "i");
-
- if(model.getValue("/root/target/slipinfo/rrgstno") != "")
- {
- model.setValue("/root/main/orch_one/rrgstno", model.getValue("/root/target/slipinfo/rrgstno"));
- ipt_rrgstno.refresh();
- ipt_rrgstno.dispatch("xforms-value-changed");
- }
-
- model.makeValue("/root/main/orch_one/cmt", model.getValue("/root/target/slipinfo/cmt"));
-
- }
-
- model.refresh();
-
- if (model.getValue("/root/target/slipinfo/readonly") == "Y") {
- btn_grdadd.disabled = true;
- btn_save.disabled = true;
- btn_delete.disabled = true;
- }
-
- model.setFocus("ipt_name");
- }
-
- //========================================================================================
- //우편번호 Help Open
- //========================================================================================
- function fOpenPopupZipHelp(pControl, pInstance)
- {
- //04 우편번호 Helper
- misfOpenPopUpList("04", pControl, "", pInstance);
- var sZipcd = model.getValue("/root/main/orch_one/zipcd1") + '-' + model.getValue("/root/main/orch_one/zipcd2");
- model.setValue("/root/main/incmpsn/zipcd", sZipcd);
- model.refresh();
- }
-
- function fSearch() {
-
- submit("TRRAD00105");
-
- if(instance1.selectNodes("/root/main/list/orchlist").length == 0)
- {
- model.makeValue("/root/main/list/orch/instcd", model.getValue("/root/target/slipinfo/instcd"));
- model.makeValue("/root/main/list/orch/unsldd", model.getValue("/root/target/slipinfo/unsldd"));
- model.makeValue("/root/main/list/orch/unslno", model.getValue("/root/target/slipinfo/unslno"));
- model.makeValue("/root/main/list/orch/undeciseqno", model.getValue("/root/target/slipinfo/unslseqno"));
- model.makeValue("/root/main/list/orch/chrgflag", model.getValue("/root/target/slipinfo/profflag"));
- model.makeValue("/root/main/list/orch/status", "i");
- model.setValue("/root/main/orch_one/instcd", model.getValue("/root/target/slipinfo/instcd"));
- model.setValue("/root/main/orch_one/chrgflag", model.getValue("/root/target/slipinfo/profflag"));
- model.setValue("/root/main/orch_one/detlseqno", "0001");
- model.setValue("/root/hidden/maxdetlseqno", "0000");
- }
- else
- {
- var rowCnt = grd_orchlist.rows - 1;
- model.setValue("/root/hidden/maxdetlseqno",model.getValue("/root/main/list/orchlist["+ rowCnt +"]/detlseqno"));
- model.setValue("/root/main/list/orch/status", "u");
- fIncreSeqno("/root/main/orch_one/detlseqno");
- model.setValue("/root/main/orch_one/instcd", model.getValue("/root/main/list/orch/instcd"));
- model.setValue("/root/main/orch_one/seqno", model.getValue("/root/main/list/orch/seqno"));
- model.setValue("/root/main/orch_one/chrgflag", model.getValue("/root/main/list/orch/chrgflag"));
- }
- model.refresh();
- }
- function fSave() {
- var updtdata = getGridUpdateData(grd_orchlist);
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- model.setValue("/root/send/list/orchlist", grd_orchlist.getUpdateData());
- model.copyNode("/root/send/list/orch", "/root/main/list/orch");
- if (submit("TXRAD00105")) {
- model.setValue("/root/send/list/orchlist","");
- if (model.getValue("/root/temp/seqno/seqno") != "") {
- model.setValue("/root/send/retrparams/instcd", model.getValue("/root/main/list/orch/instcd"));
- model.setValue("/root/send/retrparams/seqno", model.getValue("/root/temp/seqno/seqno"));
- model.setValue("/root/send/retrparams/chrgflag", model.getValue("/root/main/list/orch/chrgflag"));
- model.refresh();
- fSearch();
- } else {
- model.removeNodeset("/root/main/list/orchlist");
-
- model.setValue("/root/main/list/orch/instcd", model.getValue("/root/target/slipinfo/instcd"));
- model.setValue("/root/main/list/orch/seqno", "");
- model.setValue("/root/main/list/orch/unsldd", model.getValue("/root/target/slipinfo/unsldd"));
- model.setValue("/root/main/list/orch/unslno", model.getValue("/root/target/slipinfo/unslno"));
- model.setValue("/root/main/list/orch/undeciseqno", model.getValue("/root/target/slipinfo/unslseqno"));
- model.setValue("/root/main/list/orch/chrgflag", model.getValue("/root/target/slipinfo/profflag"));
- model.setValue("/root/main/list/orch/status", "i");
- model.setValue("/root/hidden/maxdetlseqno", "0000");
- fRowClearClick();
- }
-
- var rowcnt = grd_orchlist.rows - 1;
-
- if (rowcnt > 0) {
- if (rowcnt > 1) {
- var cmt = model.getValue("/root/main/list/orchlist[1]/cmt") + " (" + model.getValue("/root/main/list/orchlist[1]/name") + " 외 " + (rowcnt - 1) + "명)";
- model.setValue("/root/hidden/orchreturn/etcnotefact", cmt);
- } else {
- model.setValue("/root/hidden/orchreturn/etcnotefact", model.getValue("/root/main/list/orchlist[1]/cmt"));
- }
- } else {
- model.setValue("/root/hidden/orchreturn/etcnotefact", "");
- }
- model.refresh();
-
- var receiveref = model.getValue("/root/target/receiveref");
- if (checkOpener())
- {
- opener.model.setValue(receiveref + "/seqno", model.getValue("/root/temp/seqno/seqno"));
- opener.model.setValue(receiveref + "/amt", model.getValue("/root/hidden/orchreturn/amt"));
- opener.model.setValue(receiveref + "/etcnotefact", model.getValue("/root/hidden/orchreturn/etcnotefact"));
- opener.model.setValue(receiveref + "/incmtax", model.getValue("/root/hidden/orchreturn/incmtax"));
- opener.model.setValue(receiveref + "/resdntax", model.getValue("/root/hidden/orchreturn/resdntax"));
- messageBox("저장이 " ,"I002");
- }
- else
- {
- messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
- }
- }
- model.setFocus("ipt_rrgstno");
- }
- function fDelete() {
- if (messageBox("전체 내역을","Q001") == "6") {
- var rowCnt = grd_orchlist.rows;
- for (i=1; i<rowCnt; i++) {
- grd_orchlist.addStatus(i,"delete");
- }
- model.setValue("/root/main/list/orch/status","d");
- model.refresh();
- fSave();
- }
- }
-
- //========================================================================================
- //not null check
- //========================================================================================
- function fNotNullCheck() {
- if(model.getValue("/root/main/orch_one/rrgstno").length== 0)
- {
- messageBox("주민등록번호는" ,"I003");
- model.setFocus("ipt_rrgstno");
- return false;
- }
-
- if(model.getValue("/root/main/orch_one/name").length== 0 )
- {
- messageBox("성명은" ,"I003");
- model.setFocus("ipt_name");
- return false;
- }
-
- if(model.getValue("/root/main/orch_one/zipcd").length== 0 )
- {
- messageBox("우편번호는" ,"I003");
- model.setFocus("ipt_zipcd");
- return false;
- }
-
- if(model.getValue("/root/main/orch_one/dayno").length== 0 )
- {
- messageBox("지급일수는" ,"I003");
- model.setFocus("ipt_dayno");
- return false;
- }
-
- if(model.getValue("/root/main/orch_one/dypay").length== 0 )
- {
- messageBox("일급은" ,"I003");
- model.setFocus("ipt_dypay");
- return false;
- }
- }
-
- function fGridRowAddClick() {
- var detlseq = model.getValue("/root/main/orch_one/detlseqno");
- var detlseqno = model.getValue("/root/main/list/orchlist[detlseqno='"+ detlseq +"']/detlseqno");
- var cur_row = grd_orchlist.row;
-
- if(fNotNullCheck() == false) {
- return;
- }
-
- if (detlseqno == "") {
- grd_orchlist.addRow(false);
- } else {
- grd_orchlist.addStatus(cur_row,"update");
- }
-
- model.copyNode("/root/main/list/orchlist["+grd_orchlist.row+"]","/root/main/orch_one");
-
- var maxdetlseqno = model.getValue("/root/hidden/maxdetlseqno");
- if (parseInt(maxdetlseqno,10) < parseInt(detlseq,10)) {
- model.setValue("/root/hidden/maxdetlseqno", detlseq);
- }
- fRowClearClick(); //행정리
- }
-
- function fGridRowDelClick() {
- var rowstat;
- var i, j=0;
- //grd_orchlist.addStatus(grd_orchlist.row,"delete");
- misfGridIUD(grd_orchlist, "D");
- for (i=1; i<grd_orchlist.rows; i++) {
- rowstat = parseInt(grd_orchlist.rowStatus(i),10);
- if (rowstat >= 4) {
- j++;
- }
- }
-
- if (j == grd_orchlist.rows - 1) {
- model.setValue("/root/main/list/orch/status","d");
- } else {
- model.setValue("/root/main/list/orch/status","u");
- }
- model.refresh();
-
- fRowClearClick();
- }
-
- function fGridRowClick() {
- var cur_row = grd_orchlist.row;
-
- model.removenode("/root/main/orch_one");
- model.makeNode("/root/main/orch_one");
- model.copyNode("/root/main/orch_one","/root/main/list/orchlist["+cur_row+"]");
- model.recalculate();
- model.refresh();
-
- btn_grddel.disabled = false;
- model.setFocus("ipt_paytotamt");
- }
-
- function fRowClearClick() {
- model.removenode("/root/main/orch_one");
- model.makeNode("/root/main/orch_one");
- model.copyNode("/root/main/orch_one","/root/hidden/orch_one");
-
- fIncreSeqno("/root/main/orch_one/detlseqno");
- model.setValue("/root/main/orch_one/instcd", model.getValue("/root/main/list/orch/instcd"));
- model.setValue("/root/main/orch_one/seqno", model.getValue("/root/main/list/orch/seqno"));
- model.setValue("/root/main/orch_one/chrgflag", model.getValue("/root/main/list/orch/chrgflag"));
- model.recalculate();
- model.refresh();
-
- btn_grddel.disabled = true;
- model.setFocus("ipt_rrgstno");
- }
-
- //========================================================================================
- //행번 증가
- //========================================================================================
- function fIncreSeqno(pRef) {
- var detlseqno = model.getValue("/root/hidden/maxdetlseqno");
- var seqno = parseInt(detlseqno, 10);
-
- seqno++;
- model.setValue(pRef, seqno.toString().getLeftPad(4,"0"));
- }
-
- function fPayCalc()
- {
- var dayno = parseFloat(model.getValue("/root/main/orch_one/dayno"));
- var dypay = parseFloat(model.getValue("/root/main/orch_one/dypay"));
- var weight = 0;
- if(dypay >= 0)
- {
- weight = 100000;
- }
- else
- {
- weight = -100000;
- }
-
- if (dayno != 0 && dypay != 0) {
-
-
- var taxpay = (dypay > 100000 || dypay < -100000) ? parseFloat((dypay * dayno) - (weight * dayno)) : 0;
- var caltax = parseFloat(taxpay * 0.08);
- var taxgj = parseFloat(caltax * 0.55);
- var incmtax = parseInt((caltax - taxgj) / 10, 10) * 10;
- var resdntax = parseInt((incmtax * 0.1) / 10, 10) * 10;
- if (incmtax < 1000 && incmtax > -1000) {
- incmtax = 0;
- resdntax = 0;
- }
- model.setValue("/root/main/orch_one/paytotamt", parseInt(dayno * dypay, 10));
- model.setValue("/root/main/orch_one/incmtax", parseInt(incmtax, 10));
- model.setValue("/root/main/orch_one/resdntax", parseInt(resdntax, 10));
- model.setValue("/root/main/orch_one/taxrate", "8");
- model.refresh();
- model.recalculate();
- model.refresh();
- }
- }
- function fGetIcpm(sType)
- {
- var row;
-
- if(sType == "code")
- {
- var rrgstno = model.getValue("/root/main/orch_one/rrgstno");
- // if (rrgstno.length != 13)
- // {
- // messageBox("주민등록번호 13자리를 정확하게 입력하세요.","I000");
- // return;
- // }
- row = grd_orchlist.findRow(rrgstno, 1, grd_orchlist.colRef("rrgstno"));
- if (row == -1) {
- model.removenode("/root/hidden/incmpsn");//조회시 기존 데이터 삭제
- model.setValue("/root/send/data1/instcd", model.getValue("/root/main/orch_one/instcd"));
- model.setValue("/root/send/data1/rrgstno", rrgstno);
- model.setValue("/root/send/data1/name", "");
- model.setValue("/root/send/data1/retrflag", sType);
- model.refresh();
-
- if (submit("TRRAC00611"))
- {
- if(instance1.selectNodes("/root/hidden/incmpsn").length > 1)
- {
- model.setValue("/root/hidden/flag", "code");
- btn_rrgstno.dispatch("DOMActivate");
- }
- else if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
- {
- model.setValue("/root/main/orch_one/name", model.getValue("/root/hidden/incmpsn/name"));
- model.setValue("/root/main/orch_one/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
- model.setValue("/root/main/orch_one/entrregno", model.getValue("/root/hidden/incmpsn/entrregno"));
- model.setValue("/root/main/orch_one/custnm", model.getValue("/root/hidden/incmpsn/custnm"));
- model.setValue("/root/main/orch_one/zipcd", model.getValue("/root/hidden/incmpsn/zipcd"));
- model.setValue("/root/main/orch_one/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
- model.setValue("/root/main/orch_one/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
- model.setValue("/root/main/orch_one/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
- model.setValue("/root/main/orch_one/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
- model.setValue("/root/main/orch_one/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
- model.setValue("/root/main/orch_one/induflag", model.getValue("/root/hidden/incmpsn/induflag"));
- model.setValue("/root/main/orch_one/incmflag", model.getValue("/root/hidden/incmpsn/incmflag"));
- model.refresh();
- model.setFocus("ipt_paytotamt");
- } else {
- model.setValue("/root/main/orch_one/name", "");
- model.setValue("/root/main/orch_one/rrgstno", "");
- model.setValue("/root/main/orch_one/entrregno", "");
- model.setValue("/root/main/orch_one/custnm", "");
- model.setValue("/root/main/orch_one/zipcd", "");
- model.setValue("/root/main/orch_one/zipcd1", "");
- model.setValue("/root/main/orch_one/zipcd2", "");
- model.setValue("/root/main/orch_one/zipcdseqno", "");
- model.setValue("/root/main/orch_one/supaddr", "");
- model.setValue("/root/main/orch_one/infaddr", "");
- model.setValue("/root/main/orch_one/induflag", "");
- model.setValue("/root/main/orch_one/incmflag", "");
- model.refresh();
-
- messageBox("등록된 소득자가 아닙니다.\n확인 후 다시 입력하세요." ,"I000");
- model.setFocus("ipt_rrgstno");
- }
- }
- }
- else
- {
- model.setValue("/root/main/orch_one/name", "");
- model.setValue("/root/main/orch_one/rrgstno", "");
- model.setValue("/root/main/orch_one/entrregno", "");
- model.setValue("/root/main/orch_one/custnm", "");
- model.setValue("/root/main/orch_one/zipcd", "");
- model.setValue("/root/main/orch_one/zipcd1", "");
- model.setValue("/root/main/orch_one/zipcd2", "");
- model.setValue("/root/main/orch_one/zipcdseqno", "");
- model.setValue("/root/main/orch_one/supaddr", "");
- model.setValue("/root/main/orch_one/infaddr", "");
- model.setValue("/root/main/orch_one/induflag", "");
- model.setValue("/root/main/orch_one/incmflag", "");
- model.refresh();
- messageBox("입력된 내역이 이미 존재합니다.\n확인 후 다시 입력하세요." ,"I000");
- model.setFocus("ipt_rrgstno");
- }
- }
- else if(sType == "name")
- {
- var name = model.getValue("/root/main/orch_one/name");
- row = grd_orchlist.findRow(name, 1, grd_orchlist.colRef("name"));
- if (row == -1)
- {
- model.removenode("/root/hidden/incmpsn");//조회시 기존 데이터 삭제
- model.setValue("/root/send/data1/instcd", model.getValue("/root/main/orch_one/instcd"));
- model.setValue("/root/send/data1/rrgstno", "");
- model.setValue("/root/send/data1/name", name);
- model.setValue("/root/send/data1/retrflag", sType);
- model.refresh();
- if (submit("TRRAC00611"))
- {
- if(instance1.selectNodes("/root/hidden/incmpsn").length > 1)
- {
- model.setValue("/root/hidden/flag", "name");
- btn_rrgstno.dispatch("DOMActivate");
- }
- else if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
- {
- model.setValue("/root/main/orch_one/name", model.getValue("/root/hidden/incmpsn/name"));
- model.setValue("/root/main/orch_one/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
- model.setValue("/root/main/orch_one/entrregno", model.getValue("/root/hidden/incmpsn/entrregno"));
- model.setValue("/root/main/orch_one/custnm", model.getValue("/root/hidden/incmpsn/custnm"));
- model.setValue("/root/main/orch_one/zipcd", model.getValue("/root/hidden/incmpsn/zipcd"));
- model.setValue("/root/main/orch_one/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
- model.setValue("/root/main/orch_one/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
- model.setValue("/root/main/orch_one/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
- model.setValue("/root/main/orch_one/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
- model.setValue("/root/main/orch_one/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
- model.setValue("/root/main/orch_one/induflag", model.getValue("/root/hidden/incmpsn/induflag"));
- model.setValue("/root/main/orch_one/incmflag", model.getValue("/root/hidden/incmpsn/incmflag"));
- model.refresh();
- model.setFocus("ipt_paytotamt");
- }
- else
- {
- model.setValue("/root/main/orch_one/name", "");
- model.setValue("/root/main/orch_one/rrgstno", "");
- model.setValue("/root/main/orch_one/entrregno", "");
- model.setValue("/root/main/orch_one/custnm", "");
- model.setValue("/root/main/orch_one/zipcd", "");
- model.setValue("/root/main/orch_one/zipcd1", "");
- model.setValue("/root/main/orch_one/zipcd2", "");
- model.setValue("/root/main/orch_one/zipcdseqno", "");
- model.setValue("/root/main/orch_one/supaddr", "");
- model.setValue("/root/main/orch_one/infaddr", "");
- model.setValue("/root/main/orch_one/induflag", "");
- model.setValue("/root/main/orch_one/incmflag", "");
- model.refresh();
- messageBox("등록된 소득자가 아닙니다.\n확인 후 다시 입력하세요." ,"I000");
- model.setFocus("ipt_name");
- }
- }
- }
- else
- {
- model.setValue("/root/main/orch_one/name", "");
- model.setValue("/root/main/orch_one/rrgstno", "");
- model.setValue("/root/main/orch_one/entrregno", "");
- model.setValue("/root/main/orch_one/custnm", "");
- model.setValue("/root/main/orch_one/zipcd", "");
- model.setValue("/root/main/orch_one/zipcd1", "");
- model.setValue("/root/main/orch_one/zipcd2", "");
- model.setValue("/root/main/orch_one/zipcdseqno", "");
- model.setValue("/root/main/orch_one/supaddr", "");
- model.setValue("/root/main/orch_one/infaddr", "");
- model.setValue("/root/main/orch_one/induflag", "");
- model.setValue("/root/main/orch_one/incmflag", "");
- model.refresh();
- messageBox("입력된 내역이 이미 존재합니다.\n확인 후 다시 입력하세요." ,"I000");
- model.setFocus("ipt_name");
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1070" pageheight="600" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:1042px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:190px; height:14px; ">일용근로소득관리</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:12px; width:1042px; height:548px; ">
- <line id="line7" class="line_2" style="x1:0px; y1:109px; x2:1042px; y2:109px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:85px; x2:1042px; y2:85px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:61px; x2:543px; y2:61px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:36px; x2:1042px; y2:36px; "/>
- <line id="line9" class="line_3" style="x1:0px; y1:157px; x2:1042px; y2:157px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:133px; x2:1042px; y2:133px; "/>
- <caption id="caption47" class="cell_1" style="left:0px; top:14px; width:100px; height:23px; vertical-align:middle; ">주민등록번호</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:9px; x2:1042px; y2:9px; "/>
- <caption id="caption2" class="cell_1" visibility="hidden" style="left:512px; top:14px; width:100px; height:23px; vertical-align:middle; ">사업자등록번호</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:38px; width:100px; height:23px; vertical-align:middle; ">우편번호</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:63px; width:100px; height:23px; vertical-align:middle; ">주소</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:135px; width:100px; height:23px; vertical-align:middle; ">적요</caption>
- <caption id="caption10" class="cell_1" style="left:0px; top:111px; width:100px; height:23px; vertical-align:middle; ">지급액</caption>
- <input id="ipt_entrregno" ref="/root/main/orch_one/entrregno" class="input_default" visibility="hidden" format="999-99-99999" style="left:615px; top:15px; width:150px; height:19px; "/>
- <caption id="caption13" class="cell_1" visibility="hidden" style="left:768px; top:135px; width:100px; height:23px; vertical-align:middle; ">지급일자</caption>
- <caption id="caption18" class="cell_1" visibility="hidden" style="left:768px; top:14px; width:100px; height:23px; vertical-align:middle; ">상호</caption>
- <input id="ipt_custnm" ref="/root/main/orch_one/custnm" class="input_default" visibility="hidden" maxlength="10" style="left:871px; top:15px; width:171px; height:19px; "/>
- <input id="ipt_paytotamt" ref="/root/main/orch_one/paytotamt" class="input_s_essential" disabled="true" format="(-)#,###" style="left:103px; top:112px; width:150px; height:19px; text-align:right; "/>
- <input id="ipt_cmt" ref="/root/main/orch_one/cmt" class="input_default" navindex="4" style="left:103px; top:136px; width:662px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setFocus("btn_grdadd");
- }
- ]]>
- </script>
- </input>
- <line id="line10" class="line_2" style="x1:0px; y1:61px; x2:1042px; y2:61px; "/>
- <input id="ipt_paydd" ref="/root/main/list/orch/paydd" class="input_default" disabled="true" navindex="-1" visibility="hidden" style="left:871px; top:136px; width:171px; height:19px; text-align:center; "/>
- <input id="ipt_rrgstno" ref="/root/main/orch_one/rrgstno" class="input_s_essential" navindex="-1" format="999999-9999999" style="left:103px; top:15px; width:127px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetIcpm("code");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- model.setFocus("ipt_name");
- }
- ]]>
- </script>
- </input>
- <datagrid id="grd_orchlist" nodeset="/root/main/list/orchlist" caption="기관코드^일련번호^세부일련번호^징수구분^사원번호^주민등록번호^성명^사업자등록번호^상호^일용근로일수^일용근로일급^지급액^세율^소득세^주민세^비고^우편번호^우편번호1^우편번호2^우편번호일련번호^주소^상세주소^업종구분^소득구분" colwidth="0, 0, 0, 0, 0, 97, 91, 104, 118, 0, 0, 84, 0, 84, 84, 307, 84, 0, 0, 0, 174, 146, 128, 0" dataheight="25" ellipsis="true" extendlastcol="scroll" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:185px; width:1042px; height:340px; ">
- <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="rrgstno" format="999999-9999999"/>
- <col ref="name"/>
- <col ref="entrregno" format="999-99-99999"/>
- <col ref="custnm"/>
- <col ref="dayno" visibility="hidden"/>
- <col ref="dypay"/>
- <col ref="paytotamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="taxrate" visibility="hidden"/>
- <col ref="incmtax" format="(-)#,###" style="text-align:right; "/>
- <col ref="resdntax" format="(-)#,###" style="text-align:right; "/>
- <col ref="cmt"/>
- <col ref="zipcd" visibility="hidden"/>
- <col ref="zipcd1" visibility="hidden"/>
- <col ref="zipcd2" visibility="hidden"/>
- <col ref="zipcdseqno"/>
- <col ref="supaddr"/>
- <col ref="infaddr"/>
- <col ref="induflag" type="combo">
- <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[
- if(grd_orchlist.isCell(event.target) && grd_orchlist.row >= grd_orchlist.fixedRows) {
- fGridRowClick();
- }
- ]]>
- </script>
- </datagrid>
- <input id="input1" ref="/root/main/list/orch/instcd" class="input_s_essential" visibility="hidden" style="left:185px; top:161px; width:30px; height:19px; "/>
- <input id="input2" ref="/root/main/list/orch/seqno" class="input_s_essential" visibility="hidden" style="left:220px; top:161px; width:30px; height:19px; "/>
- <input id="input3" ref="/root/main/list/orch/chrgflag" class="input_s_essential" visibility="hidden" style="left:255px; top:161px; width:30px; height:19px; "/>
- <input id="input4" ref="/root/main/list/orch/unsldd" class="input_s_essential" visibility="hidden" style="left:290px; top:161px; width:30px; height:19px; "/>
- <input id="input5" ref="/root/main/list/orch/unslno" class="input_s_essential" visibility="hidden" style="left:325px; top:161px; width:30px; height:19px; "/>
- <input id="input6" ref="/root/main/list/orch/undeciseqno" class="input_s_essential" visibility="hidden" style="left:360px; top:161px; width:30px; height:19px; "/>
- <input id="ipt_name" ref="/root/main/orch_one/name" class="input_s_essential" navindex="1" maxlength="10" style="left:359px; top:15px; width:150px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetIcpm("name");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_dayno");
- }
- ]]>
- </script>
- </input>
- <caption id="caption1" class="cell_1" style="left:256px; top:14px; width:100px; height:23px; vertical-align:middle; ">성명</caption>
- <button id="button1" class="icon_search" style="left:222px; top:41px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupZipHelp(opt_zipcd1,"zipcd1,zipcd2,supaddr,zipcdseqno");
-
- ]]>
- </script>
- </button>
- <output id="opt_zipcd1" ref="/root/main/orch_one/zipcd1" navindex="-1" visibility="hidden" style="left:250px; top:40px; width:35px; height:19px; text-align:left; "/>
- <output id="opt_zipcd2" ref="/root/main/orch_one/zipcd2" navindex="-1" visibility="hidden" style="left:285px; top:40px; width:30px; height:19px; text-align:left; "/>
- <input id="ipt_supaddr" ref="/root/main/orch_one/supaddr" class="input_default" style="left:103px; top:64px; width:440px; height:19px; "/>
- <input id="ipt_zipcd" ref="/root/main/orch_one/zipcd" class="input_default" style="left:103px; top:39px; width:115px; height:19px; "/>
- <output id="opt_zipcdseqno" ref="/root/main/orch_one/zipcdseqno" navindex="-1" visibility="hidden" style="left:315px; top:40px; width:25px; height:19px; text-align:left; "/>
- <input id="ipt_infaddr" ref="/root/main/orch_one/infaddr" class="input_default" style="left:547px; top:64px; width:495px; height:19px; "/>
- <select1 id="cmb_incmflag" ref="/root/main/orch_one/incmflag" visibility="hidden" appearance="minimal" style="left:990px; top:40px; width:28px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/R0279list/R0279">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_induflag" ref="/root/main/orch_one/induflag" visibility="hidden" appearance="minimal" style="left:945px; top:40px; width:42px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/R0278list/R0278">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="cell_1" style="left:0px; top:87px; width:100px; height:23px; vertical-align:middle; ">지급일수</caption>
- <input id="ipt_taxrate" ref="/root/main/orch_one/taxrate" class="input_default" navindex="-1" visibility="hidden" maxlength="10" format="(-)#,###%" style="left:396px; top:162px; width:54px; height:19px; text-align:right; "/>
- <input id="ipt_incmtax" ref="/root/main/orch_one/incmtax" class="input_default" disabled="true" format="(-)#,###" style="left:359px; top:112px; width:150px; height:19px; text-align:right; "/>
- <caption id="caption11" class="cell_1" style="left:256px; top:111px; width:100px; height:23px; vertical-align:middle; ">소득세</caption>
- <input id="ipt_resdntax" ref="/root/main/orch_one/resdntax" class="input_default" disabled="true" maxlength="10" format="(-)#,###" style="left:615px; top:112px; width:150px; height:19px; text-align:right; "/>
- <caption id="caption12" class="cell_1" style="left:512px; top:111px; width:100px; height:23px; vertical-align:middle; ">주민세</caption>
- <button id="btn_grddel" class="btn2_letter3" disabled="true" navindex="-1" style="left:987px; top:162px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridRowDelClick();
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" navindex="5" style="left:932px; top:162px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/orch_one/zipcd") == "")
- {
- messageBox("우편번호는","I003");
- model.setFocus("ipt_zipcd");
- return;
- }
- fGridRowAddClick();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {model.setFocus("btn_save");}
- ]]>
- </script>
- </button>
- <caption id="caption5" class="cell_1" style="left:768px; top:111px; width:100px; height:23px; vertical-align:middle; ">실지급액</caption>
- <caption id="caption14" bind="bind_totamt" format="(-)#,###" style="left:871px; top:112px; width:171px; height:19px; text-align:right; vertical-align:middle; background-color:#ffe79d; "/>
- <button id="btn_openpsn" class="btn2_letter5" style="left:0px; top:162px; width:75px; height:19px; ">
- <caption>소득자등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/source/receiveref", "/root/main/orch_one");
- model.refresh();
- modal("SPRAC00611","","","","","/root/source", "/root/target" );
-
- model.setValue("/root/main/orch_one/rrgstno", "");
- model.setValue("/root/main/orch_one/name", "");
- model.setValue("/root/main/orch_one/entrregno", "");
- model.setValue("/root/main/orch_one/custnm", "");
- model.setValue("/root/main/orch_one/zipcd", "");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/hidden/orchreturn/amt" navindex="-1" format="(-)#,###" style="left:376px; top:526px; width:110px; height:19px; text-align:right; "/>
- <caption id="caption15" style="left:314px; top:526px; width:60px; height:20px; ">지급합계 :</caption>
- <caption id="caption16" style="left:519px; top:526px; width:70px; height:20px; ">소득세합계 :</caption>
- <output id="output2" ref="/root/hidden/orchreturn/incmtax" navindex="-1" format="(-)#,###" style="left:590px; top:526px; width:110px; height:19px; text-align:right; "/>
- <caption id="caption17" style="left:739px; top:526px; width:70px; height:20px; ">주민세합계 :</caption>
- <output id="output3" ref="/root/hidden/orchreturn/resdntax" navindex="-1" format="(-)#,###" style="left:813px; top:526px; width:110px; height:19px; text-align:right; "/>
- <caption id="caption9" class="cell_1" style="left:256px; top:87px; width:100px; height:23px; vertical-align:middle; ">일급</caption>
- <input id="ipt_dayno" ref="/root/main/orch_one/dayno" class="input_s_essential" navindex="2" format="(-)#,###.9" style="left:103px; top:88px; width:150px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fPayCalc();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setFocus("ipt_dypay");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_dypay" ref="/root/main/orch_one/dypay" class="input_s_essential" navindex="3" format="(-)#,###" style="left:359px; top:88px; width:150px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fPayCalc();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setFocus("ipt_cmt");
- }
- ]]>
- </script>
- </input>
- <button id="btn_rrgstno" class="icon_search" style="left:235px; top:18px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("31", ipt_dayno, "", "rrgstno,name,entrregno,custnm,zipcd,zipcd1,zipcd2,zipcdseqno,supaddr,infaddr,cntctel,emailaddr,cmt", "ipt_name", model.getValue("/root/hidden/flag"));
- model.refresh();
- model.setFocus("ipt_dayno");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:562px; width:1042px; height:27px; ">
- <line id="line1" class="line_6" style="x1:0px; y1:0px; x2:1042px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:867px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- if (event.keyCode == "13")
- {
- fSave();
- model.setFocus("btn_close");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn4_letter2" navindex="-1" style="left:925px; top:3px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelete();
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" navindex="-1" style="left:983px; top:3px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var receiveref = model.getValue("/root/target/receiveref");
- if (checkOpener())
- {
- opener.model.setValue(receiveref + "/seqno", model.getValue("/root/main/list/orch/seqno"));
- opener.model.setValue(receiveref + "/amt", model.getValue("/root/hidden/orchreturn/amt"));
- }
- else
- {
- messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
- }
- window.close();
- ]]>
- </script>
- </button>
- </group>
- <input id="ipt_codenameflag" ref="/root/hidden/flag" class="input_default" visibility="hidden" format="999-99-99999" style="left:630px; top:55px; width:15px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|