123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>세금계산서관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <taxbilllist/>
- </list>
- <prntlist/>
- <ctrls>
- <total>
- <cnt/>
- <supamt/>
- <tax/>
- <sum/>
- </total>
- <mutualpossible>
- <cnt/>
- <supamt/>
- <tax/>
- <sum/>
- </mutualpossible>
- <mutualimpossible>
- <cnt/>
- <supamt/>
- <tax/>
- <sum/>
- </mutualimpossible>
- <fixproperty>
- <cnt/>
- <supamt/>
- <tax/>
- <sum/>
- </fixproperty>
- </ctrls>
- </main>
- <send>
- <retrparam>
- <instcd/>
- <yyyy/>
- <reptkind/>
- <frdate/>
- <todate/>
- <taxbillkind>4</taxbillkind>
- <taxbillflag>1</taxbillflag>
- <entrregno/>
- <custnm/>
- <prsdnm/>
- <addtaxpnt/>
- <profcheckyn/>
- <sanctflag>Y</sanctflag>
- <sendflag>Y</sendflag>
- <mngtiptflag>Y</mngtiptflag>
- <ntsappryn/>
- <ntsautoyn/>
- </retrparam>
- <date/>
- <prntretrparams>
- <seqno/>
- </prntretrparams>
- </send>
- <init>
- <init_taxbillkind>
- <item>
- <label>세금계산서</label>
- <value>4</value>
- </item>
- <item>
- <label>계산서</label>
- <value>5</value>
- </item>
- <item>
- <label>신용카드</label>
- <value>6</value>
- </item>
- <item>
- <label>기타</label>
- <value>7</value>
- </item>
- </init_taxbillkind>
- <init_taxbillflag>
- <item>
- <label>매입</label>
- <value>1</value>
- </item>
- <item>
- <label>매출</label>
- <value>2</value>
- </item>
- </init_taxbillflag>
- <init_reptkind>
- <item>
- <label>1기예정</label>
- <value>1</value>
- </item>
- <item>
- <label>1기확정</label>
- <value>2</value>
- </item>
- <item>
- <label>2기예정</label>
- <value>3</value>
- </item>
- <item>
- <label>2기확정</label>
- <value>4</value>
- </item>
- </init_reptkind>
- <init_flagcd>
- <item>
- <label>정규</label>
- <value>1</value>
- </item>
- <item>
- <label>예정신고누락분</label>
- <value>2</value>
- </item>
- </init_flagcd>
- <init_fixasetflag>
- <item>
- <label>일반 매입·출</label>
- <value>00</value>
- </item>
- <item>
- <label>건,구축물</label>
- <value>01</value>
- </item>
- <item>
- <label>기계장치</label>
- <value>02</value>
- </item>
- <item>
- <label>차량운반구</label>
- <value>03</value>
- </item>
- <item>
- <label>기타감가상각물</label>
- <value>04</value>
- </item>
- </init_fixasetflag>
- <all_chk/>
- </init>
- <source>
- <slipinfo>
- <instcd/>
- <slipdt/>
- <slipno/>
- </slipinfo>
- </source>
- <hidden>
- <allwork/>
- <dtiworkyn/>
- <dtiinfo>
- <dtiemail/>
- <inv_no/>
- <custdtiemailaddr/>
- <name/>
- <entrregno/>
- <isscust/>
- <custnm/>
- <suplamt/>
- <valaddtax/>
- <amt/>
- </dtiinfo>
- <dtimail>
- <instcd/>
- <deptcd/>
- <depthngnm/>
- <emplno/>
- <emplnm/>
- <duplcedeptnm/>
- <jobrespnm/>
- <email/>
- </dtimail>
- <custdtiemaillist>
- <chrgnm/>
- <chrgemailaddr/>
- </custdtiemaillist>
- </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/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[
- fResetForm();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fResetForm()
- {
-
- model.removeNodeset("/root/main/list/taxbilllist");
- misfMsterDetailSet(grd_taxbilllist, null, "TRRAT00102", "Y");
- model.setValue("/root/send/retrparam/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/retrparam/yyyy", getCurrentDate().substr(0, 4));
- // 현재일자 세팅
- model.setValue("/root/send/retrparam/frdate", getCurrentDate());
- model.setValue("/root/send/retrparam/todate", getCurrentDate());
-
- grd_taxbilllist.rowheight(0) = 35;
-
- fSetReptKind();
- fSetDate();
- misfGridComboComCdList("R0364", grd_taxbilllist, "proc_flag", "");
-
- model.refresh();
- }
- function fRetrieve()
- {
- if(model.getValue("/root/send/retrparam/yyyy").length != 4)
- {
- messageBox("년도가 잘못되었습니다.", "I999");
- return;
- }
-
- model.setValue("/root/send/prntretrparams/seqno", "");
- model.setValue("/root/init/all_chk", "");
- model.removeNodeset("/root/main/list/taxbilllist");
- model.refresh();
-
- misfMsterDetailRetrieve();
-
- model.recalculate();
-
- //전표 입력 증빙은 수정하지 못하도록 예외처리
- for(var i = grd_taxbilllist.fixedRows ; i < grd_taxbilllist.rows ; i++)
- {
- var gubn = model.getValue("/root/send/retrparam/taxbillflag");
- //if (gubn == "1"){
- // model.setValue("/root/main/list/taxbilllist["+ i +"]/deduyn", "00");
- //}else {
- // model.setValue("/root/main/list/taxbilllist["+ i +"]/deduyn", "08");
- //}
- var ReadOnlyValue = false;
- if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("unsldd")) != "")
- {
- bReadOnlyValue = true;
- }
- else
- {
- bReadOnlyValue = false;
- }
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("entrregno")) = bReadOnlyValue;
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("suplamt")) = bReadOnlyValue;
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("valaddtax")) = bReadOnlyValue;
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("amt")) = bReadOnlyValue;
-
- if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "02")
- {
- grd_taxbilllist.rowStyle(i, "data", "background-color") = "#ff9900";
- }
- else if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("closyn")) == "Y")
- {
- grd_taxbilllist.rowStyle(i, "data", "background-color") = "#99ccff";
- }
- else
- {
- grd_taxbilllist.rowStyle(i, "data", "background-color") = "#ffffff";
- }
-
- if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("inv_no")) != "")
- {
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("dtibillyn")) = true;
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("ebillflag")) = true;
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("isscust")) = true;
- }
-
- if( (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "1")
- || (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "2") )// 수신데이터 일때
- {
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("inv_no")) = false;
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("dtiemail")) = true;
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("custdtiemailaddr")) = true;
- }
- if( (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "2")
- || (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "1") )// 발신 일때
- {
- if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("inv_no")) != "") // 이미 발신된 데이터
- {
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("inv_no")) = true;
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("dtiemail")) = true;
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("dtibillyn")) = true;
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("ebillflag")) = true;
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("custdtiemailaddr")) = true;
- }
- else // 미발송된 데이터
- {
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("inv_no")) = false;
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("dtiemail")) = false;
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("dtibillyn")) = false;
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("ebillflag")) = false;
- grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("custdtiemailaddr")) = false;
- }
- }
- }
-
- // DIT 관련 예외 처리
-
- //model.setValue(chk_dtiworkyn.attribute("ref"), "");
- btn_dtisend.disabled = true;
- btn_addrow.disabled = false;
- btn_delrow.disabled = false;
- ipt_allchk.disabled = false;
- ipt_cancelchk.disabled = false;
- btn_excelinput.disabled = false;
- btn_save.disabled = false;
-
-
- model.refresh();
- }
- function fSetReptKind()
- {
- var sMonth = getCurrentDate().substr(4, 2);
- if(sMonth == "01" || sMonth == "02" || sMonth == "03")
- {
- model.setValue("/root/send/retrparam/reptkind", "1");
- }
- else if(sMonth == "04" || sMonth == "05" || sMonth == "06")
- {
- model.setValue("/root/send/retrparam/reptkind", "2");
- }
- else if(sMonth == "07" || sMonth == "08" || sMonth == "09")
- {
- model.setValue("/root/send/retrparam/reptkind", "3");
- }
- else if(sMonth == "10" || sMonth == "11" || sMonth == "12")
- {
- model.setValue("/root/send/retrparam/reptkind", "4");
- }
- model.refresh();
- }
- function fSetDate()
- {
- if(model.getValue("/root/send/retrparam/yyyy").length != 4)
- {
- messageBox("년도가 잘못되었습니다.", "I999");
- return;
- }
- var sReptKind = model.getValue("/root/send/retrparam/reptkind");
- if(sReptKind == "1")
- {
- model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/yyyy") + "0101");
- model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/yyyy") + "0331");
- }
- else if(sReptKind == "2")
- {
- model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/yyyy") + "0401");
- model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/yyyy") + "0630");
- }
- else if(sReptKind == "3")
- {
- model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/yyyy") + "0701");
- model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/yyyy") + "0930");
- }
- else if(sReptKind == "4")
- {
- model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/yyyy") + "1001");
- model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/yyyy") + "1231");
- }
- model.refresh();
- }
- function fAddDelRow(sStatus)
- {
- if(sStatus == "A")
- {
- misfGridIUD(grd_taxbilllist, sStatus);
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("instcd")) = getUserInfo("dutplceinstcd");
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("flagcd")) = "1";
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("genrdd")) = getCurrentDate();
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isskind")) = "01";
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxkind")) = "05";
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) = "01";
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("fixasetflag")) = "00";
-
- if(rdo_billkind.value == "5"){
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("deduyn")) = "08";
- }else{
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("deduyn")) = "00";
- }
-
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("remintax")) = "00";
-
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("closyn")) = "N";
-
- fSetAddtaxterm(grd_taxbilllist.row);
- }
- else
- {
- if(sStatus == "D") {
- var vgrdstatus;
- vgrdstatus = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("slipstatus")) ;
- if(vgrdstatus == "미결" || vgrdstatus == "결재" ) {
- model.alert (" 전표 내용이 있어 삭제가 불가 합니다...");
- return;
- }
- }
- misfGridIUD(grd_taxbilllist, sStatus);
- }
- }
- function fSave()
- {
- for(var i = grd_taxbilllist.fixedRows ; i < grd_taxbilllist.rows ; i++)
- {
- if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("genrdd")) == "")
- {
- messageBox("작성일자는", "I003");
- return false;
- }
- else if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("entrregno")) == "")
- {
- messageBox("사업자등록번호는", "I003");
- return false;
- }
- else if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("suplamt")) == "" || grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("valaddtax")) == "" || grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("amt")) == "")
- {
- messageBox("금액은", "I003");
- return false;
- }
- /*else if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("ebillflag")) == "")
- {
- messageBox("전자세금계산서종류는", "I003");
- return false;
- } */
- }
-
- misfSave("TXRAT00101");
- }
- function fSetPrntRetrParams()
- {
- model.setValue("/root/send/prntretrparams/seqno", model.getValue("/root/main/list/taxbilllist[" + grd_taxbilllist.row + "]/seqno"));
- }
- function fPrintTaxBill()
- {
- submit("TRRAT00701");
-
- if(rdo_billkind.value == 4)
- {
- exeReportPreview("RPRAT00701", "XMLSTR");
- }
- else
- {
- exeReportPreview("RPRAT00702", "XMLSTR");
- }
- }
-
- function fAllCheck(strAllChk)
- {
- var grdTolCnt;
- grdTolCnt = grd_taxbilllist.rows;
-
- if(model.getValue(chk_dtiworkyn.attribute("ref")) != "Y")
- {
- if (strAllChk == "Y")
- {
- for(var i =1; i < grd_taxbilllist.rows; i++)
- {
- fSetAddtaxterm(i);
- grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("chk")) = "Y";
- }
- }
- else
- {
- for(var i =1; i < grd_taxbilllist.rows; i++)
- {
- fSetCleartaxterm(i);
- grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("chk")) = "N";
- }
- }
- }
- else if(model.getValue(chk_dtiworkyn.attribute("ref")) == "Y")
- {
- if (strAllChk == "Y")
- {
- for(var i =1; i < grd_taxbilllist.rows; i++)
- {
- if( (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "1")
- || (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "2") )// 수신데이터 일때
- {
- grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("chk")) = "Y";
- }
- }
- }
- else
- {
- for(var i =1; i < grd_taxbilllist.rows; i++)
- {
- grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("chk")) = "N";
- }
- }
- }
- }
- /*
- 부가세 년도와 신고 유형을 셋팅
- */
- function fSetAddtaxterm(rowid)
- {
- var strAddtaxyy;
- var strAddtaxpnt;
- strAddtaxyy = model.getValue("/root/send/retrparam/yyyy");
- strAddtaxpnt = model.getValue("/root/send/retrparam/reptkind");
- grd_taxbilllist.valueMatrix(rowid, grd_taxbilllist.colRef("addtaxyy")) = strAddtaxyy;
- grd_taxbilllist.valueMatrix(rowid, grd_taxbilllist.colRef("addtaxpnt")) = strAddtaxpnt;
-
- var tmpStatus;
- tmpStatus = grd_taxbilllist.rowStatus(rowid);
-
- if (tmpStatus == 0 )
- {
- grd_taxbilllist.rowStatus(rowid) = 2 ;
- }
- }
-
- /*
- 부가세 년도와 신고 유형 제거
- */
- function fSetCleartaxterm(rowid)
- {
- grd_taxbilllist.valueMatrix(rowid, grd_taxbilllist.colRef("addtaxyy")) = "";
- grd_taxbilllist.valueMatrix(rowid, grd_taxbilllist.colRef("addtaxpnt")) = "";
-
- var tmpStatus;
- tmpStatus = grd_taxbilllist.rowStatus(rowid);
-
- if (tmpStatus == 0 )
- {
- grd_taxbilllist.rowStatus(rowid) = 2 ;
- }
- }
-
- function fSetcheck(chk, row) // 선택을 체크해서 Y이면 신고년도, 신고기간 입력, N이면 삭제
- {
-
- }
-
-
- function fInsertUpdateException()
- {
- if( (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "1")
- || (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "2") )// 수신데이터 일때
- {
- grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) = false;
- grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) = true;
- grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = true;
- }
- if( (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "2")
- || (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "1") )// 발신 일때
- {
-
- if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) != "")
- {
- grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) = true;
- grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) = true;
- grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) = true;
- grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("ebillflag")) = true;
- grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = true;
- }
- else
- {
- grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) = false;
- grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) = false;
- grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) = false;
- grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("ebillflag")) = false;
- grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = false;
- }
- }
- }
-
- function fDtibillynException()
- {
- if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) == "N")
- {
- if( ((grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "2")
- || (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "1"))
- && (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) != "")) //이미 발송된 발신 데이터는 멥핑상태를 해제할 수 없다.
- {
- messageBox("발송된 자료는 mapping 을 해제 할 수 없습니다.", "I000");
- }
- else
- {
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) = "";
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) = "";
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtideptnm")) = "";
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiname")) = "";
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = "";
-
- }
- }
- else
- {
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("ebillflag")) = "01";
- }
- }
-
- ]]>
- </script>
- <submission id="TXRAT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/taxbilllist" resultref="/root/temp"/>
- <submission id="TRRAT00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam" resultref="/root/main/list"/>
- <!-- 전체 -->
- <bind id="tot_cnt" ref="/root/main/ctrls/total/cnt" calculate="count(/root/main/list/taxbilllist/seqno)"/>
- <bind id="tot_supamt" ref="/root/main/ctrls/total/supamt" calculate="sum(/root/main/list/taxbilllist/suplamt)"/>
- <bind id="tot_tax" ref="/root/main/ctrls/total/tax" calculate="sum(/root/main/list/taxbilllist/valaddtax)"/>
- <bind id="tot_sum" ref="/root/main/ctrls/total/sum" calculate="sum(/root/main/list/taxbilllist/amt)"/>
- <!-- 공제 항목 : 공제 인건 공제와 Null 포함 -->
- <bind id="tot1_cnt" ref="/root/main/ctrls/mutualpossible/cnt" calculate="count(/root/main/list/taxbilllist[deduyn='00']/seqno) + count(/root/main/list/taxbilllist[deduyn='']/seqno)"/>
- <bind id="tot1_supamt" ref="/root/main/ctrls/mutualpossible/supamt" calculate="sum(/root/main/list/taxbilllist[deduyn='00']/suplamt) + sum(/root/main/list/taxbilllist[deduyn='']/suplamt)"/>
- <bind id="tot1_tax" ref="/root/main/ctrls/mutualpossible/tax" calculate="sum(/root/main/list/taxbilllist[deduyn='00']/valaddtax) + sum(/root/main/list/taxbilllist[deduyn='']/valaddtax)"/>
- <bind id="tot1_sum" ref="/root/main/ctrls/mutualpossible/sum" calculate="sum(/root/main/list/taxbilllist[deduyn='00']/amt) + sum(/root/main/list/taxbilllist[deduyn='']/amt)"/>
- <!-- 불공제 항목 : 전체에서 공제를 뺀 것 -->
- <bind id="tot2_cnt" ref="/root/main/ctrls/mutualimpossible/cnt" calculate="sum(/root/main/ctrls/total/cnt) - sum(/root/main/ctrls/mutualpossible/cnt)"/>
- <bind id="tot2_supamt" ref="/root/main/ctrls/mutualimpossible/supamt" calculate="sum(/root/main/ctrls/total/supamt) - sum(/root/main/ctrls/mutualpossible/supamt)"/>
- <bind id="tot2_tax" ref="/root/main/ctrls/mutualimpossible/tax" calculate="sum(/root/main/ctrls/total/tax) - sum(/root/main/ctrls/mutualpossible/tax)"/>
- <bind id="tot2_sum" ref="/root/main/ctrls/mutualimpossible/sum" calculate="sum(/root/main/ctrls/total/sum) - sum(/root/main/ctrls/mutualpossible/sum)"/>
- <!-- 고정자산 매입 : 전체에서 일반 매입과 Null을 뺀 것 -->
- <bind id="tot3_cnt" ref="/root/main/ctrls/fixproperty/cnt" calculate="sum(/root/main/ctrls/total/cnt) - count(/root/main/list/taxbilllist[fixasetflag='00']/seqno) - count(/root/main/list/taxbilllist[fixasetflag='']/seqno)"/>
- <bind id="tot3_supamt" ref="/root/main/ctrls/fixproperty/supamt" calculate="sum(/root/main/ctrls/total/supamt) - sum(/root/main/list/taxbilllist[fixasetflag='00']/suplamt) - sum(/root/main/list/taxbilllist[fixasetflag='']/suplamt)"/>
- <bind id="tot3_tax" ref="/root/main/ctrls/fixproperty/tax" calculate="sum(/root/main/ctrls/total/tax) - sum(/root/main/list/taxbilllist[fixasetflag='00']/valaddtax) - sum(/root/main/list/taxbilllist[fixasetflag='']/valaddtax)"/>
- <bind id="tot3_sum" ref="/root/main/ctrls/fixproperty/sum" calculate="sum(/root/main/ctrls/total/sum) - sum(/root/main/list/taxbilllist[fixasetflag='00']/amt) - sum(/root/main/list/taxbilllist[fixasetflag='']/amt)"/>
- <submission id="TRRAT00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prntretrparams" resultref="/root/main/prntlist"/>
- <submission id="TXRAT00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/taxbilllist" resultref="/root/temp"/>
- </model>
- </xhtml:head>
- <xhtml:body 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:230px; 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:40; width:1195px; height:744px; ">
- <group id="group4" style="left:0px; top:0px; width:1195px; height:85px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption9" class="search_name" style="left:305px; top:9px; width:106px; height:17px; ">신고 유형 :</caption>
- <caption id="caption2" class="search_name" style="left:10px; top:9px; width:101px; height:17px; ">년 도 :</caption>
- <caption id="caption8" style="left:961px; top:11px; width:15px; height:20px; ">~</caption>
- <caption id="caption10" class="search_name" style="left:760px; top:10px; width:100px; height:17px; ">작성 일자 :</caption>
- <caption id="caption1" class="search_name" style="left:760px; top:36px; width:104px; height:17px; ">사업자번호 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1125px; top:31px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue(chk_dtiworkyn.attribute("ref")) == "Y")
- {
- fRetrieve();
- chk_dtiworkyn.dispatch("xforms-value-changed");
- }
- else
- {
- fRetrieve();
- }
-
- ]]>
- </script>
- </button>
- <line id="line10" class="line_4" style="x1:1107px; y1:5px; x2:1107px; y2:81px; "/>
- <caption id="caption3" class="search_name" style="left:10px; top:36px; width:99px; height:17px; ">계산서종류 :</caption>
- <caption id="caption5" class="search_name" style="left:10px; top:62px; width:109px; height:17px; ">계산서구분 :</caption>
- <select1 id="rdo_reptkind" ref="/root/send/retrparam/reptkind" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:410px; top:9px; width:320px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/init_reptkind/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(model.getValue(cmb_addtaxpnt.attribute("ref")) == "")
- {
- fSetDate();
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_frdate" ref="/root/send/retrparam/frdate" class="input_s_essential" editable="false" inputtype="date" style="left:860px; top:9px; width:95px; height:19px; "/>
- <input id="ipt_todate" ref="/root/send/retrparam/todate" class="input_s_essential" editable="false" inputtype="date" style="left:977px; top:9px; width:95px; height:19px; "/>
- <select1 id="rdo_billflag" ref="/root/send/retrparam/taxbillflag" class="radio_search" navindex="4" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:115px; top:62px; width:165px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/init_taxbillflag/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
-
-
- btn_search.dispatch("DOMActivate");
-
- // if(model.getValue(rdo_billflag.attribute("ref")) == "1") // 매입 일때
- // {
- // chk_dtiworkyn.disabled = true;
- // }
- // else if(model.getValue(rdo_billflag.attribute("ref")) == "2") //매출 일때
- // {
- // chk_dtiworkyn.disabled = false;
- // }
- //
- // if(rdo_billflag.value == 1)
- // {
- // btn_print.visible = false;
- // }
- // else
- // {
- // btn_print.visible = true;
- // }
-
- ]]>
- </script>
- </select1>
- <button id="btn_entregnohelp" class="icon_search" style="left:959px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfOpenPopUpList("14", ipt_regno, "", "entrregno,custnm");
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_regno" ref="/root/send/retrparam/entrregno" navindex="5" format="999-99-99999" style="left:860px; top:36px; width:95px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfCustValidCheck("entrregno,custnm", "code");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfCustValidCheck("entrregno,custnm", "code");
- ]]>
- </script>
- </input>
- <input id="ipt_regnm" ref="/root/send/retrparam/custnm" navindex="6" imemode="hangul" style="left:977px; top:36px; width:123px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfCustValidCheck("entrregno,custnm", "name");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfCustValidCheck("entrregno,custnm", "name");
- ]]>
- </script>
- </input>
- <input id="ipt_yyyy" ref="/root/send/retrparam/yyyy" class="input_s_essential" navindex="1" maxlength="4" style="left:130px; top:9px; width:68px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rdo_reptkind.dispatch("xforms-value-changed");
- ]]>
- </script>
- </input>
- <select1 id="cmb_addtaxpnt" ref="/root/send/retrparam/addtaxpnt" class="combo_essential" navindex="4" appearance="minimal" style="left:410px; top:35px; width:130px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>1기예정</label>
- <value>1</value>
- </item>
- <item>
- <label>1기확정</label>
- <value>2</value>
- </item>
- <item>
- <label>2기예정</label>
- <value>3</value>
- </item>
- <item>
- <label>2기확정</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(cmb_addtaxpnt.attribute("ref")) != "")
- {
- model.setValue(ipt_frdate.attribute("ref"), "");
- model.setValue(ipt_todate.attribute("ref"), "");
- ipt_frdate.refresh();
- ipt_todate.refresh();
-
- ipt_frdate.disabled = true;
- ipt_todate.disabled = true;
-
- chk_sanctflag.value = "Y";
- chk_sendflag.value = "Y";
- chk_mngtiptflag.value = "Y";
-
- // chk_sanctflag.disabled = true;
- // chk_sendflag.disabled = true;
- // chk_mngtiptflag.disabled = true;
- }
- else
- {
- rdo_reptkind.disabled = false;
- ipt_frdate.disabled = false;
- ipt_todate.disabled = false;
-
- // chk_sanctflag.disabled = false;
- // chk_sendflag.disabled = false;
- // chk_mngtiptflag.disabled = false;
-
- fSetDate();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption16" class="search_name" style="left:305px; top:35px; width:125px; height:17px; ">확정 기간 :</caption>
- <button id="btn_pre" class="icon_pre" navindex="-1" style="left:115px; top:10px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vYYYY = model.getValue(ipt_yyyy.attribute("ref"));
- var vNum = parseInt(vYYYY, 10);
-
- if (vNum != 1)
- {
- vNum--;
- }
- else
- {
- return;
- }
- model.setValue(ipt_yyyy.attribute("ref"), vNum);
- ipt_yyyy.refresh();
- rdo_reptkind.dispatch("xforms-value-changed");
- ]]>
- </script>
- </button>
- <button id="button1" class="icon_next" navindex="-1" style="left:200px; top:10px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vYYYY = model.getValue(ipt_yyyy.attribute("ref"));
- var vNum = parseInt(vYYYY, 10);
-
- if (vNum != 1)
- {
- vNum++;
- }
- else
- {
- return;
- }
- model.setValue(ipt_yyyy.attribute("ref"), vNum);
- ipt_yyyy.refresh();
- rdo_reptkind.dispatch("xforms-value-changed");
- ]]>
- </script>
- </button>
- <caption id="caption17" class="search_name" style="left:305px; top:60px; width:100px; height:17px; ">확인 여부 :</caption>
- <select1 id="combo1" ref="/root/send/retrparam/profcheckyn" class="combo_essential" navindex="4" appearance="minimal" style="left:410px; top:60px; width:130px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>증빙확인</label>
- <value>Y</value>
- </item>
- <item>
- <label>증빙미확인</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select id="chk_sanctflag" ref="/root/send/retrparam/sanctflag" visibility="visible" overflow="visible" appearance="full" style="left:860px; top:60px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>결제</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_sendflag" ref="/root/send/retrparam/sendflag" visibility="visible" overflow="visible" appearance="full" style="left:915px; top:60px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미결</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_mngtiptflag" ref="/root/send/retrparam/mngtiptflag" visibility="visible" overflow="visible" appearance="full" style="left:965px; top:60px; width:145px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>세금계산서 관리 입력</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption18" class="search_name" visibility="visible" style="left:760px; top:60px; width:104px; height:17px; ">상 태 :</caption>
- <input id="ipt_email" ref="/root/hidden/dtimail/email" class="input_essential" visibility="hidden" editable="false" style="left:650px; top:10px; width:115px; height:19px; text-align:right; "/>
- <caption id="caption19" class="search_name" style="left:550px; top:35px; width:125px; height:17px; ">승인여부 :</caption>
- <select1 id="cmb_ntsappryn" ref="/root/send/retrparam/ntsappryn" class="combo_essential" navindex="4" appearance="minimal" style="left:640px; top:35px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>국세청승인</label>
- <value>Y</value>
- </item>
- <item>
- <label>국세청미승인</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(cmb_addtaxpnt.attribute("ref")) != "")
- {
- model.setValue(ipt_frdate.attribute("ref"), "");
- model.setValue(ipt_todate.attribute("ref"), "");
- ipt_frdate.refresh();
- ipt_todate.refresh();
-
- ipt_frdate.disabled = true;
- ipt_todate.disabled = true;
-
- chk_sanctflag.value = "Y";
- chk_sendflag.value = "Y";
- chk_mngtiptflag.value = "Y";
-
- // chk_sanctflag.disabled = true;
- // chk_sendflag.disabled = true;
- // chk_mngtiptflag.disabled = true;
- }
- else
- {
- rdo_reptkind.disabled = false;
- ipt_frdate.disabled = false;
- ipt_todate.disabled = false;
-
- // chk_sanctflag.disabled = false;
- // chk_sendflag.disabled = false;
- // chk_mngtiptflag.disabled = false;
-
- fSetDate();
- }
- ]]>
- </script>
- </select1>
- <select1 id="cmb_ntsautoyn" ref="/root/send/retrparam/ntsautoyn" class="combo_essential" navindex="4" appearance="minimal" style="left:640px; top:60px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>국세청 자동 생성</label>
- <value>1</value>
- </item>
- <item>
- <label>DTI 자동 생성</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(cmb_addtaxpnt.attribute("ref")) != "")
- {
- model.setValue(ipt_frdate.attribute("ref"), "");
- model.setValue(ipt_todate.attribute("ref"), "");
- ipt_frdate.refresh();
- ipt_todate.refresh();
-
- ipt_frdate.disabled = true;
- ipt_todate.disabled = true;
-
- chk_sanctflag.value = "Y";
- chk_sendflag.value = "Y";
- chk_mngtiptflag.value = "Y";
-
- // chk_sanctflag.disabled = true;
- // chk_sendflag.disabled = true;
- // chk_mngtiptflag.disabled = true;
- }
- else
- {
- rdo_reptkind.disabled = false;
- ipt_frdate.disabled = false;
- ipt_todate.disabled = false;
-
- // chk_sanctflag.disabled = false;
- // chk_sendflag.disabled = false;
- // chk_mngtiptflag.disabled = false;
-
- fSetDate();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption20" class="search_name" style="left:550px; top:60px; width:125px; height:17px; ">자동생성 :</caption>
- <select1 id="rdo_billkind" ref="/root/send/retrparam/taxbillkind" class="combo_essential" navindex="4" appearance="minimal" style="left:115px; top:35px; width:160px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/init_taxbillkind/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </select1>
- </group>
- <datagrid id="grd_taxbilllist" nodeset="/root/main/list/taxbilllist" backcoloralternate="#ffffff" caption="선택^기관코드^일련번호^신고년도^신고기간^신고유형(사용않함)^계산서종류^계산서구분^작성일자^사업자등록번호^거래처명^공급가액^부가세^합계^대표자^담당자^거래처 E-mail^국세청승인번호^전자세금계산서
종류^DTI 연동^DTI 상태^DTI 번호^DTI E-mail^DTI 부서코드^DTI 부서명^DTI 사번^DTI 담당자명^업태^종목^주소^발행처^등록번호유헝^구분^증빙확인^발의정보^발의정보^발의정보^승인정보^승인정보^승인정보^전표상태^마감여부^과세유형^고정자산구분^세액공제사항^기타공제매입세액^면세공급가액^면세사업확정비율^기불공제매입세액^재계산경감율^증감면세공급가액비율^비고(품목)" colwidth="30, 35, 35, 55, 55, 35, 35, 35, 85, 100, 140, 100, 100, 100, 0, 66, 100, 100, 90, 60, 100, 100, 100, 0, 100, 0, 100, 80, 80, 0, 80, 80, 70, 55, 77, 37, 60, 58, 36, 70, 80, 70, 80, 110, 129, 120, 120, 120, 120, 120, 130, 120, 0" ellipsis="true" explorerbar="sortshow" frozencols="11" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" tooltip="true" style="left:0px; top:115px; width:1193px; height:495px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(grd_taxbilllist.col == grd_taxbilllist.colRef("chk"))
- {
- if(model.getValue(chk_dtiworkyn.attribute("ref")) != "Y")
- {
- var row = grd_taxbilllist.row;
- var chk = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("chk"));
-
- if (chk == "N")
- {
- model.setValue("/root/main/list/taxbilllist["+ row +"]/addtaxyy","");
- model.setValue("/root/main/list/taxbilllist["+ row +"]/addtaxpnt","");
- }
- if (chk == "Y")
- {
- fSetAddtaxterm(row);
- }
- }
- else if(model.getValue(chk_dtiworkyn.attribute("ref")) == "Y")
- {
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) = "Y";
- grd_taxbilllist.refresh();
- }
- }
- else if(chk_allwork.value == "Y" && grd_taxbilllist.col == grd_taxbilllist.colRef("closyn"))
- {
- var closyn = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("closyn"));
-
- if (closyn == "")
- {
- closyn = "N";
- }
-
- for(var i = grd_taxbilllist.fixedRows ; i < grd_taxbilllist.rows ; i++)
- {
- model.setValue(grd_taxbilllist.nodeset + "[" + (i - grd_taxbilllist.fixedRows + 1) + "]/closyn", closyn);
- grd_taxbilllist.addStatus(i, "update");
- }
- }
- else if(chk_allwork.value == "Y" && grd_taxbilllist.col == grd_taxbilllist.colRef("profcheckyn"))
- {
- var profcheckyn = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("profcheckyn"));
-
- if (profcheckyn == "")
- {
- profcheckyn = "N";
- }
-
- for(var i = grd_taxbilllist.fixedRows ; i < grd_taxbilllist.rows ; i++)
- {
- model.setValue(grd_taxbilllist.nodeset + "[" + (i - grd_taxbilllist.fixedRows + 1) + "]/profcheckyn", profcheckyn);
- grd_taxbilllist.addStatus(i, "update");
- }
- }
- else if(grd_taxbilllist.col == grd_taxbilllist.colRef("dtibillyn")) // DTI 예외처리
- {
- fDtibillynException();
- }
- else if(grd_taxbilllist.col == grd_taxbilllist.colRef("isscust")) // DTI 예외처리
- {
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) = "";
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) = "";
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtideptnm")) = "";
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiname")) = "";
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = "";
-
- fInsertUpdateException();
- }
-
- model.refresh();
- ]]>
- </script>
- <col ref="instcd" visibility="hidden"/>
- <col ref="seqno" visibility="hidden" style="left:55px; top:23px; width:35px; height:23px; "/>
- <col ref="addtaxyy" type="input" style="text-align:center; "/>
- <col ref="addtaxpnt" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>1기예정</label>
- <value>1</value>
- </item>
- <item>
- <label>1기확정</label>
- <value>2</value>
- </item>
- <item>
- <label>2기예정</label>
- <value>3</value>
- </item>
- <item>
- <label>2기확정</label>
- <value>4</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </col>
- <col ref="reptkind" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/init_reptkind/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="taxbillkind" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/init_taxbillkind/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="taxbillflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/init_taxbillflag/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="genrdd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="entrregno" type="inputbutton" format="999-99-99999" style="text-align:center; "/>
- <col ref="custnm" style="text-align:left; "/>
- <col ref="suplamt" type="input" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="valaddtax" type="input" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="amt" type="input" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="custprsd"/>
- <col ref="custdtieacntchrgnm" visibility="hidden" style="left:767px; top:23px; width:79px; height:23px; text-align:left; "/>
- <col ref="custdtiemailaddr" type="inputbutton" visibility="hidden" editable="false" style="text-align:left; "/>
- <col ref="ntsetaxno" visibility="hidden"/>
- <col ref="ebillflag" type="combo">
- <choices>
- <item>
- <label>일반세금계산서</label>
- <value>00</value>
- </item>
- <item>
- <label>전자세금계산서</label>
- <value>01</value>
- </item>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="dtibillyn" type="checkbox" visibility="hidden" style="border-left-width:1px; "/>
- <col disabled="true" ref="proc_flag" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="false" ref="inv_no" type="inputbutton" visibility="hidden" editable="false" style="text-align:left; "/>
- <col disabled="false" ref="dtiemail" type="inputbutton" visibility="hidden" editable="false" style="text-align:left; "/>
- <col ref="dtideptcd" style="text-align:left; "/>
- <col ref="dtideptnm" visibility="hidden" style="text-align:left; "/>
- <col ref="dtiemplno" style="text-align:left; "/>
- <col ref="dtiname" visibility="hidden" style="text-align:left; "/>
- <col ref="custbizcond" style="left:1044px; top:23px; width:80px; height:23px; text-align:left; "/>
- <col ref="custitem" style="text-align:left; "/>
- <col ref="custaddr" style="text-align:left; "/>
- <col ref="isscust" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>매출자발행</label>
- <value>01</value>
- </item>
- <item>
- <label>매입자발행</label>
- <value>02</value>
- </item>
- <item>
- <label>기타</label>
- <value>03</value>
- </item>
- </choices>
- </col>
- <col ref="isskind" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>사업자등록번호발행분</label>
- <value>01</value>
- </item>
- <item>
- <label>주민등록번호발행분</label>
- <value>02</value>
- </item>
- </choices>
- </col>
- <col ref="flagcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/init_flagcd/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="profcheckyn" type="checkbox"/>
- <col ref="unsldd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="unslno" style="text-align:center; "/>
- <col ref="undeciseqno" style="text-align:center; "/>
- <col ref="sanctslipdd"/>
- <col ref="sanctslipno"/>
- <col ref="sanctslipseqno"/>
- <col ref="slipstatus" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="closyn" type="checkbox"/>
- <col ref="taxkind" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>과세</label>
- <value>01</value>
- </item>
- <item>
- <label>영세율</label>
- <value>02</value>
- </item>
- <item>
- <label>대손세액가감</label>
- <value>03</value>
- </item>
- <item>
- <label>비과세</label>
- <value>04</value>
- </item>
- <item>
- <label>면세</label>
- <value>05</value>
- </item>
- </choices>
- </col>
- <col ref="fixasetflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/init_fixasetflag/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="deduyn" type="combo">
- <choices>
- <item>
- <label>불공제- 면세 사업</label>
- <value>00</value>
- </item>
- <item>
- <label>공제</label>
- <value>01</value>
- </item>
- <item>
- <label>불공제- 필요적 기재사항 누락</label>
- <value>02</value>
- </item>
- <item>
- <label>불공제- 사업과 관련 없음</label>
- <value>03</value>
- </item>
- <item>
- <label>불공제- 비영업용 소형승용차 구입 유지</label>
- <value>04</value>
- </item>
- <item>
- <label>불공제- 접대비 및 이와 유사한 비용 관련</label>
- <value>05</value>
- </item>
- <item>
- <label>불공제- 토지의 자본적 지출</label>
- <value>06</value>
- </item>
- <item>
- <label>불공제- 사업자등록 전 매입</label>
- <value>07</value>
- </item>
- <item>
- <label>해당없음</label>
- <value>08</value>
- </item>
- </choices>
- </col>
- <col ref="remintax" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>해당없음</label>
- <value>00</value>
- </item>
- <item>
- <label>신용카드매출전표등수취명세서제출분</label>
- <value>01</value>
- </item>
- <item>
- <label>의제</label>
- <value>02</value>
- </item>
- <item>
- <label>재활용폐자원</label>
- <value>03</value>
- </item>
- <item>
- <label>과세사업전환</label>
- <value>04</value>
- </item>
- <item>
- <label>재고매입</label>
- <value>05</value>
- </item>
- <item>
- <label>변제대손</label>
- <value>06</value>
- </item>
- </choices>
- </col>
- <col ref="exptsuplamt" type="input" style="text-align:left; "/>
- <col ref="expttaxrate" type="input" style="text-align:left; "/>
- <col ref="bfnontax" type="input" style="text-align:left; "/>
- <col ref="lowrate" type="input" style="text-align:left; "/>
- <col ref="elvtsubtrrate" type="input" style="text-align:left; "/>
- <col ref="cmt" type="input" style="text-align:left; "/>
- <col ref="dummy" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_taxbilllist.col == grd_taxbilllist.colRef("entrregno"))
- {
- var vEntrregno = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("entrregno"));
-
- misfOpenPopUpList("14", grd_taxbilllist, "", "entrregno,custnm,custprsd,dummy,custaddr,custbizcond,custitem");
-
- if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("entrregno")) != vEntrregno)
- {
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custdtieacntchrgnm")) = "";
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = "";
- }
- }
- else if(grd_taxbilllist.col == grd_taxbilllist.colRef("custdtiemailaddr"))
- {
- model.makeValue("/root/source/condition/entrregno", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("entrregno")));
- model.makeValue("/root/source/condition/custnm", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custnm")));
- model.makeValue("/root/source/receiveref", "/root/hidden/custdtiemaillist");
- modal("SPRAC01300","","","","","/root/source", "/root/target" );
-
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custdtieacntchrgnm")) = model.getValue("/root/hidden/custdtiemaillist/chrgnm");
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = model.getValue("/root/hidden/custdtiemaillist/chrgemailaddr");
- }
- else if(grd_taxbilllist.col == grd_taxbilllist.colRef("inv_no"))
- {
- model.makeValue("/root/source/condition/entrregno", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("entrregno")));
- model.makeValue("/root/source/condition/custnm", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custnm")));
- model.makeValue("/root/source/condition/taxbillkind", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillkind")));
- model.makeValue("/root/source/condition/taxbillflag", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")));
- model.makeValue("/root/source/condition/isscust", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")));
- model.makeValue("/root/source/receiveref", "/root/hidden/dtiinfo");
-
- modal("SPRAC01200","","","","","/root/source", "/root/target" );
-
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) = model.getValue("/root/hidden/dtiinfo/inv_no");
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) = model.getValue("/root/hidden/dtiinfo/dtiemail");
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = model.getValue("/root/hidden/dtiinfo/custdtiemailaddr");
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtideptnm")) = model.getValue("/root/hidden/dtiinfo/custnm");
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiname")) = model.getValue("/root/hidden/dtiinfo/name");
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) = model.getValue("/root/hidden/dtiinfo/isscust");
-
- if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) != "")
- {
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) = "Y";
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("ebillflag")) = "01";
- }
-
-
- if(grd_taxbilllist.rowStatus(grd_taxbilllist.row) == 1 || grd_taxbilllist.rowStatus(grd_taxbilllist.row) == 3)
- {
- // alert(grd_taxbilllist.rowStatus(grd_taxbilllist.row));
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("suplamt")) = model.getValue("/root/hidden/dtiinfo/suplamt");
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax")) = model.getValue("/root/hidden/dtiinfo/valaddtax");
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("amt")) = model.getValue("/root/hidden/dtiinfo/amt");
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("entrregno")) = model.getValue("/root/hidden/dtiinfo/entrregno");
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custnm")) = model.getValue("/root/hidden/dtiinfo/custnm");
- }
- else
- {
- grd_taxbilllist.addStatus(grd_taxbilllist.row, "update");
- }
- }
- else if(grd_taxbilllist.col == grd_taxbilllist.colRef("dtiemail"))
- {
- alert(grd_taxbilllist.rowStatus(grd_taxbilllist.row));
- misfOpenPopUpList("53", ipt_email, "", "instcd,deptcd,depthngnm,emplno,emplnm,duplcedeptnm,jobrespnm,email");
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) = model.getValue("/root/hidden/dtimail/email");
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtideptnm")) = model.getValue("/root/hidden/dtimail/depthngnm");
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiname")) = model.getValue("/root/hidden/dtimail/emplnm");
-
-
- if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) != "")
- {
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) = "Y";
- }
-
- grd_taxbilllist.addStatus(grd_taxbilllist.row, "update");
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if(grd_taxbilllist.col == grd_taxbilllist.colRef("entrregno"))
- {
- racfCustValidCheck("entrregno,custnm,custprsd,dummy,custaddr,custbizcond,custitem", "code");
- }
- else if(grd_taxbilllist.col == grd_taxbilllist.colRef("custnm"))
- {
- racfCustValidCheck("entrregno,custnm,custprsd,dummy,custaddr,custbizcond,custitem", "name");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- fSetPrntRetrParams();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_taxbilllist.col == grd_taxbilllist.colRef("suplamt") || grd_taxbilllist.col == grd_taxbilllist.colRef("valaddtax"))
- {
-
- var iSuplAmt = 0;
- var iValAddTax = 0;
- if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("suplamt")) == "")
- {
- iSuplAmt = 0;
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("suplamt")) = 0;
- }
- else
- {
- iSuplAmt = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("suplamt"));
-
- if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillkind")) == "4" && grd_taxbilllist.col != grd_taxbilllist.colRef("valaddtax"))
- {
- var taxrate;
- var taxchk = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxkind"));
-
- if ( taxchk == "01") {
- taxrate = 0.1;
- } else
- {
- taxrate = 0 ;
- }
-
- var fValAddTax = parseInt(iSuplAmt * taxrate);
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax")) = fValAddTax;
- }
- }
- if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax")) == "")
- {
- iValAddTax = 0;
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax")) = 0;
- }
- else
- {
- iValAddTax = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax"));
- }
- var iSumAmt = parseFloat(iSuplAmt) + parseFloat(iValAddTax);
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("amt")) = iSumAmt;
-
- }
- else if(grd_taxbilllist.col == grd_taxbilllist.colRef("amt") && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillkind")) == "4")
- {
- var sAmt = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("amt"));
- var iPayAmt = 0;
- var iTax = 0;
- if(sAmt != "")
- {
- iPayAmt = Math.round(parseInt(sAmt, 10) / 11.0 * 10);
- iTax = Math.round(parseInt(sAmt, 10) / 11.0);
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("suplamt")) = iPayAmt;
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax")) = iTax;
- }
- }
- else if(grd_taxbilllist.col == grd_taxbilllist.colRef("ebillflag"))
- {
- if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("ebillflag")) != "01")
- {
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) = "N";
- }
- else
- {
- grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) = "Y";
- }
- fDtibillynException();
- }
-
-
- grd_taxbilllist.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_taxbilllist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- if ( grd_taxbilllist.row > 0 && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("unsldd")) != "")
- {
-
- model.setValue("/root/source/slipinfo/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/source/slipinfo/slipdt", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("unsldd")));
- model.setValue("/root/source/slipinfo/slipno", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("unslno")));
- model.refresh();
-
- modal("SMRAD00100","","","","","/root/source", "/root/target" );
- }
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:110px; x2:1195px; y2:110px; "/>
- <caption id="caption26" class="tit_2" style="left:5px; top:92px; width:100px; height:13px; ">세금 계산서</caption>
- <input id="input8" ref="/root/main/ctrls/total/cnt" class="input_default" editable="false" format="(-)#,###" style="left:641px; top:645px; width:134px; height:19px; text-align:right; "/>
- <input id="input1" ref="/root/main/ctrls/mutualpossible/cnt" class="input_default" editable="false" format="(-)#,###" style="left:641px; top:669px; width:134px; height:19px; text-align:right; "/>
- <input id="input10" ref="/root/main/ctrls/mutualimpossible/cnt" class="input_default" editable="false" format="(-)#,###" style="left:641px; top:694px; width:134px; height:19px; text-align:right; "/>
- <caption id="caption7" class="cell_1" style="left:548px; top:643px; width:90px; height:23px; vertical-align:middle; ">총액</caption>
- <caption id="caption45" class="cell_1" style="left:547px; top:718px; width:90px; height:23px; vertical-align:middle; ">고정자산매입</caption>
- <caption id="caption46" class="cell_1" style="left:548px; top:693px; width:90px; height:23px; vertical-align:middle; ">공제가능</caption>
- <input id="input59" ref="/root/main/ctrls/fixproperty/cnt" class="input_default" editable="false" format="(-)#,###" style="left:641px; top:719px; width:134px; height:19px; text-align:right; "/>
- <caption id="caption11" class="cell_1" style="left:548px; top:668px; width:90px; height:23px; vertical-align:middle; ">공제불능</caption>
- <line id="line5" class="line_2" style="x1:544px; y1:643px; x2:1191px; y2:643px; "/>
- <input id="input2" ref="/root/main/ctrls/total/supamt" class="input_default" editable="false" format="(-)#,###" style="left:780px; top:645px; width:134px; height:19px; text-align:right; "/>
- <input id="input5" ref="/root/main/ctrls/mutualimpossible/supamt" class="input_default" editable="false" format="(-)#,###" style="left:780px; top:694px; width:134px; height:19px; text-align:right; "/>
- <input id="input6" ref="/root/main/ctrls/fixproperty/supamt" class="input_default" editable="false" format="(-)#,###" style="left:780px; top:719px; width:134px; height:19px; text-align:right; "/>
- <input id="input7" ref="/root/main/ctrls/mutualpossible/supamt" class="input_default" editable="false" format="(-)#,###" style="left:780px; top:669px; width:134px; height:19px; text-align:right; "/>
- <input id="input11" ref="/root/main/ctrls/mutualpossible/tax" class="input_default" editable="false" format="(-)#,###" style="left:919px; top:669px; width:134px; height:19px; text-align:right; "/>
- <input id="input12" ref="/root/main/ctrls/total/tax" class="input_default" editable="false" format="(-)#,###" style="left:919px; top:645px; width:134px; height:19px; text-align:right; "/>
- <input id="input13" ref="/root/main/ctrls/mutualimpossible/tax" class="input_default" editable="false" format="(-)#,###" style="left:919px; top:694px; width:134px; height:19px; text-align:right; "/>
- <input id="input14" ref="/root/main/ctrls/fixproperty/tax" class="input_default" editable="false" format="(-)#,###" style="left:919px; top:719px; width:134px; height:19px; text-align:right; "/>
- <input id="input15" ref="/root/main/ctrls/mutualpossible/sum" class="input_default" editable="false" format="(-)#,###" style="left:1058px; top:669px; width:134px; height:19px; text-align:right; "/>
- <input id="input16" ref="/root/main/ctrls/total/sum" class="input_default" editable="false" format="(-)#,###" style="left:1058px; top:645px; width:134px; height:19px; text-align:right; "/>
- <input id="input17" ref="/root/main/ctrls/mutualimpossible/sum" class="input_default" editable="false" format="(-)#,###" style="left:1058px; top:694px; width:134px; height:19px; text-align:right; "/>
- <input id="input18" ref="/root/main/ctrls/fixproperty/sum" class="input_default" editable="false" format="(-)#,###" style="left:1058px; top:719px; width:134px; height:19px; text-align:right; "/>
- <line id="line3" class="line_2" style="x1:545px; y1:666px; x2:1192px; y2:666px; "/>
- <line id="line4" class="line_2" style="x1:545px; y1:691px; x2:1192px; y2:691px; "/>
- <line id="line6" class="line_2" style="x1:545px; y1:716px; x2:1192px; y2:716px; "/>
- <line id="line7" class="line_2" style="x1:545px; y1:741px; x2:1192px; y2:741px; "/>
- <caption id="caption12" class="cell_1" style="left:641px; top:618px; width:135px; height:23px; text-align:center; vertical-align:middle; ">건수</caption>
- <caption id="caption13" class="cell_1" style="left:779px; top:618px; width:135px; height:23px; text-align:center; vertical-align:middle; ">공급가액</caption>
- <caption id="caption14" class="cell_1" style="left:918px; top:618px; width:135px; height:23px; text-align:center; vertical-align:middle; ">부 가 세</caption>
- <caption id="caption15" class="cell_1" style="left:1057px; top:618px; width:135px; height:23px; text-align:center; vertical-align:middle; ">합 계</caption>
- <line id="line8" class="line_2" style="x1:1055px; y1:618px; x2:1055px; y2:742px; "/>
- <line id="line9" class="line_2" style="x1:916px; y1:618px; x2:916px; y2:742px; "/>
- <line id="line11" class="line_2" style="x1:777px; y1:618px; x2:777px; y2:742px; "/>
- <line id="line12" class="line_2" style="x1:639px; y1:618px; x2:639px; y2:742px; "/>
- <button id="btn_addrow" class="btn2_letter3" navindex="8" style="left:1083px; top:87px; width:53px; height:19px; text-align:left; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddDelRow("A");
-
- fInsertUpdateException();
-
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" disabled="false" navindex="9" visibility="visible" style="left:1137px; top:87px; width:53px; height:19px; text-align:left; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if( ((grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "2")
- || (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "1"))
- && (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) != ""))// 발신 데이터 이면서 매핑자료일때는 지울수 없다.
- {
- return false;
- }
-
- if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("unsldd")) == "")
- {
- fAddDelRow("D");
- }
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter4" navindex="10" style="left:1006px; top:87px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // misfSaveExcel(grd_taxbilllist);
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_taxbilllist.saveExcel(fileName,"SheetName:sheet1");
- ]]>
- </script>
- </button>
- <button id="btn_excelinput" class="btn2_letter4" style="left:940px; top:87px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPRAT00100");
- ]]>
- </script>
- </button>
- <button id="ipt_allchk" class="btn2_letter4" style="left:105px; top:87px; width:64px; height:19px; text-align:left; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAllCheck("Y");
- ]]>
- </script>
- </button>
- <button id="ipt_cancelchk" class="btn2_letter4" style="left:175px; top:87px; width:64px; height:19px; text-align:left; ">
- <caption>전체해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAllCheck("N");
- ]]>
- </script>
- </button>
- <select id="chk_allwork" ref="/root/hidden/allwork" visibility="visible" overflow="visible" appearance="full" style="left:245px; top:89px; width:140px; height:20px; text-align:left; vertical-align:middle; border-style:none; ">
- <choices>
- <item>
- <label>일괄작업</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //alert(chk_allwork.value);
- ]]>
- </script>
- </select>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="button11" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPRAT00100", "XMLSTR", "true", "true", "true", "true", "true", "true", "true", "");
- ]]>
- </script>
- </button>
- <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();
- fRetrieve();
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn4_letter2" visibility="hidden" style="left:1080px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrintTaxBill();
- ]]>
- </script>
- </button>
- <button id="btn_dtisend" class="btn4_letter4" disabled="true" visibility="hidden" style="left:995px; top:3px; width:80px; height:22px; ">
- <caption>DTI 전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(grd_taxbilllist.rows > grd_taxbilllist.fixedRows && grd_taxbilllist.valueMatrix(1, grd_taxbilllist.colRef("taxbillflag")) == "2")
- {
- var chkexists = "N";
- for(var i = grd_taxbilllist.fixedRows ; i < grd_taxbilllist.rows ; i++)
- {
- if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("chk")) == "Y")
- {
- chkexists = "Y";
- }
- }
- if(chkexists == "N")
- {
- messageBox("선택된 자료가 없습니다.", "I999");
- return;
- }
- misfSave("TXRAT00103");
- }
-
- ]]>
- </script>
- </button>
- <select id="chk_dtiworkyn" ref="/root/hidden/dtiworkyn" visibility="hidden" overflow="visible" appearance="full" style="left:840px; top:5px; width:115px; height:15px; text-align:left; vertical-align:top; background-color:#99ccff; border-color:#008000; border-style:none; ">
- <choices>
- <item>
- <label>DTI 전송 작업</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(model.getValue(chk_dtiworkyn.attribute("ref")) == "Y")
- {
- for(var i = grd_taxbilllist.fixedRows ; i < grd_taxbilllist.rows ; i++)
- {
- if(grd_taxbilllist.rowStatus(i) != 0)
- {
- messageBox("작업중인 데이터가 있습니다.", "I999");
- model.setValue(chk_dtiworkyn.attribute("ref"), "");
- chk_dtiworkyn.refresh();
- return false;
-
- }
-
- if( (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "1")
- || (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "2") )// 발신 일때
- {
- grd_taxbilllist.isReadOnly(i, grd_taxbilllist.colRef("chk")) = true;
- grd_taxbilllist.rowStyle(i, "data", "background-color") = "#c0c0c0";
- }
- else
- {
- if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("custdtiemailaddr")) == "")
- {
- grd_taxbilllist.isReadOnly(i, grd_taxbilllist.colRef("chk")) = true;
- grd_taxbilllist.cellStyle("background-color", i, grd_taxbilllist.colRef("emailaddr")) = "#ff0000";
- }
-
- if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("dtibillyn")) == "")
- {
- grd_taxbilllist.isReadOnly(i, grd_taxbilllist.colRef("chk")) = true;
- grd_taxbilllist.cellStyle("background-color", i, grd_taxbilllist.colRef("dtibillyn")) = "#ff0000";
- }
-
- if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("inv_no")) != "")
- {
- grd_taxbilllist.isReadOnly(i, grd_taxbilllist.colRef("chk")) = true;
- grd_taxbilllist.cellStyle("background-color", i, grd_taxbilllist.colRef("inv_no")) = "#ffff00";
- }
-
- if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("dtiemail")) == "")
- {
- grd_taxbilllist.isReadOnly(i, grd_taxbilllist.colRef("chk")) = true;
- grd_taxbilllist.cellStyle("background-color", i, grd_taxbilllist.colRef("dtiemail")) = "#ffff00";
- }
- }
-
-
- }
-
-
-
- btn_dtisend.disabled = false;
- btn_addrow.disabled = true;
- btn_delrow.disabled = true;
- ipt_allchk.disabled = true;
- ipt_cancelchk.disabled = true;
- btn_excelinput.disabled = true;
- btn_save.disabled = true;
- grd_taxbilllist.isReadOnly(1, 2, grd_taxbilllist.rows-grd_taxbilllist.fixedRows, grd_taxbilllist.cols-1) = true;
- }
- else
- {
- btn_dtisend.disabled = true;
- grd_taxbilllist.rebuild();
- fRetrieve();
- }
-
-
-
-
- ]]>
- </script>
- </select>
- <button id="button2" class="btn4_letter4" disabled="false" visibility="hidden" style="left:750px; top:3px; width:80px; height:22px; ">
- <caption>DTI 홈</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- radfGetDTIPassword();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|