123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560 |
- <?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>DTI-NU 중복 Mapping 검증</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <taxsum>
- <taxsumlist/>
- </taxsum>
- </main>
- <send>
- <condition>
- <instcd/>
- <yyyy/>
- <taxbillkind>4</taxbillkind>
- <taxbillflag>1</taxbillflag>
- <reptkind/>
- <entrregno/>
- <custnm/>
- <isscust/>
- <ntsappryn/>
- </condition>
- <taxsum>
- <taxsumlist/>
- </taxsum>
- </send>
- <init>
- <init_taxbillkind>
- <item>
- <label>세금계산서</label>
- <value>4</value>
- </item>
- <item>
- <label>계산서</label>
- <value>5</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>
- <temp/>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- model.removeNodeset(grd_taxsumlist.nodeset);
-
- model.setValue("/root/send/condition/instcd", getUserInfo("dutplceinstcd"));
- grd_taxsumlist.rowHeight(0) = 35;
-
- model.setValue(ipt_yyyy.attribute("ref"), getCurrentDate().substr(0, 4));
- fSetReptKind();
- model.refresh();
- }
-
- function fSetReptKind()
- {
- var sMonth = getCurrentDate().substr(4, 2);
- if(sMonth == "01" || sMonth == "02" || sMonth == "03")
- {
- model.setValue(rdo_reptkind.attribute("ref"), "1");
- }
- else if(sMonth == "04" || sMonth == "05" || sMonth == "06")
- {
- model.setValue(rdo_reptkind.attribute("ref"), "2");
- }
- else if(sMonth == "07" || sMonth == "08" || sMonth == "09")
- {
- model.setValue(rdo_reptkind.attribute("ref"), "3");
- }
- else if(sMonth == "10" || sMonth == "11" || sMonth == "12")
- {
- model.setValue(rdo_reptkind.attribute("ref"), "4");
- }
- model.refresh();
- }
-
- function fInputExcel(pGrid)
- {
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if(fileName != "") {
- pGrid.loadExcel(fileName, 1, true);
-
- pGrid.deleteRow(1);
- pGrid.rebuild();
- return true;
- }
- return false;
- }
-
- function fAutoSearch(vRow, SearchFlag)
- {
- if(SearchFlag == "Y")
- {
- if(model.getValue("/root/hidden/condition/autodate") == "Y")
- {
- model.setValue(ipt_fromdd_1.attribute("ref"), grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("makedd")));
- model.setValue(ipt_todd_1.attribute("ref"), grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("makedd")));
- }
- model.setValue(ipt_entrregno.attribute("ref"), grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("custcd")));
- model.setValue(ipt_custnm.attribute("ref"), grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("custnm")));
- model.setValue(rdo_taxbillflag.attribute("ref"), grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("etaxbillflag")));
- model.refresh();
- btn_search_1.dispatch("DOMActivate");
- }
-
- for(var i = grd_connectablelist.fixedRows ; i < grd_connectablelist.rows ; i++)
- {//alert(grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("suplamt")));
- //alert(grd_connectablelist.valueMatrix(i, grd_connectablelist.colRef("suplamt")));
- if( grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("custcd")) == grd_connectablelist.valueMatrix(i, grd_connectablelist.colRef("entrregno"))
- && grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("suplamt")) == grd_connectablelist.valueMatrix(i, grd_connectablelist.colRef("suplamt"))
- && grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("valaddtax")) == grd_connectablelist.valueMatrix(i, grd_connectablelist.colRef("valaddtax"))
- && grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("amt")) == grd_connectablelist.valueMatrix(i, grd_connectablelist.colRef("amt")))
- { //alert();
- grd_connectablelist.rowstyle(i, "data", "background-color") = "#ffff00";
- grd_disconnectedlist.rowstyle(vRow, "data", "background-color") = "#ffff00";
- }
- }
- model.refresh();
- }
-
-
- ]]>
- </script>
- <bind id="bindSecPageCnt" ref="/root/send/printparams/secPageCnt" calculate="count(/root/main/printlist/secpage)"/>
- <bind id="bindAllEtcProf" ref="/root/send/printparams/allEtcProf" calculate="count(/root/main/list/etcproflist)"/>
- <bind id="bindAllCount" ref="/root/send/printparams/allCount" calculate="sum(/root/main/list/etcproflist/cnt)"/>
- <bind id="bindPayTotAmt" ref="/root/send/printparams/payTotAmt" calculate="sum(/root/main/list/etcproflist/paytotamt)"/>
- <bind id="bindProfTax" ref="/root/send/printparams/profTax" calculate="sum(/root/main/list/etcproflist/proftax)"/>
- <bind id="bindIncmTax" ref="/root/send/printparams/incmTax" calculate="sum(/root/main/list/etcproflist/incmtax)"/>
- <bind id="bindResdnTax" ref="/root/send/printparams/resdnTax" calculate="sum(/root/main/list/etcproflist/resdntax)"/>
- <bind id="bindSumAmt" ref="/root/send/printparams/sumAmt" calculate="sum(/root/main/list/etcproflist/sumamt)"/>
- <bind id="bindPayAmt" ref="/root/send/printparams/payAmt" calculate="sum(/root/main/list/etcproflist/payamt)"/>
- <bind id="bindChkCnt" ref="/root/hidden/checkedcnt" calculate="count(/root/main/list/etcproflist[chk='Y']/chk)"/>
- <submission id="TRRAT00312" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition2" resultref="/root/main/connectable"/>
- <submission id="TXRAT00312" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/connectable/connectablelist" resultref="/root/temp"/>
- <submission id="TXRAT00313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition1" resultref="/root/temp"/>
- <submission id="TXRAT00314" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/disconnected/disconnectedlist" resultref="/root/temp"/>
- <submission id="TRRAT00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/taxsum"/>
- <submission id="TXRAT00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/taxsum/taxsumlist" resultref="/root/temp"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">세금계산서 합계표 관리</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:762px; ">
- <group id="grp_sea" style="left:0px; top:30px; width:1193px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line5" class="line_4" style="x1:1099px; y1:19px; x2:1099px; y2:42px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:505px; top:10px; width:105px; height:17px; ">조 회 일 자 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1115px; top:20px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset(grd_taxsumlist.nodeset);
- grd_taxsumlist.refresh();
- submit("TRRAT00111");
-
- for(var i = grd_taxsumlist.fixedRows ; i < grd_taxsumlist.rows ; i++)
- {
- if(grd_taxsumlist.valueMatrix(i, grd_taxsumlist.colRef("custnm")) == "")
- {
- grd_taxsumlist.cellStyle("background-color", i, grd_taxsumlist.colRef("custcd")) = "#ff6600";
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="rdo_billflag" ref="/root/send/condition/taxbillflag" class="radio_search" disabled="false" navindex="4" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:330px; top:34px; 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[
- model.setValue(rdo_billflag.attribute("ref"), model.getValue(rdo_billflag.attribute("ref")));
- rdo_billflag.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption8" class="search_name" style="left:225px; top:35px; width:109px; height:17px; ">계산서구분 :</caption>
- <caption id="caption3" class="search_name" style="left:505px; top:35px; width:104px; height:17px; ">사업자번호 :</caption>
- <input id="ipt_regnm" ref="/root/send/condition/custnm" navindex="6" imemode="hangul" style="left:727px; top:34px; width:148px; 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>
- <button id="btn_entregnohelp" class="icon_search" style="left:709px; top:34px; 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/condition/entrregno" navindex="5" format="999-99-99999" style="left:610px; top:34px; 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>
- <select1 id="rdo_reptkind" ref="/root/send/condition/reptkind" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="10" cols="4" style="left:610px; top:10px; width:275px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/init_reptkind/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <button id="button5" class="icon_next" navindex="-1" style="left:195px; top:11px; 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="caption11" class="search_name" style="left:5px; top:10px; width:101px; height:17px; ">년 도 :</caption>
- <input id="ipt_yyyy" ref="/root/send/condition/yyyy" class="input_s_essential" navindex="1" maxlength="4" style="left:125px; top:10px; width:68px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rdo_reptkind.dispatch("xforms-value-changed");
- ]]>
- </script>
- </input>
- <button id="btn_pre" class="icon_pre" navindex="-1" style="left:110px; top:11px; 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="caption2" class="search_name" style="left:225px; top:10px; width:99px; height:17px; ">계산서종류 :</caption>
- <select1 id="rdo_billkind" ref="/root/send/condition/taxbillkind" class="radio_search" navindex="3" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:330px; top:10px; width:165px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/init_taxbillkind/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_isscust" ref="/root/send/condition/isscust" class="combo_essential" navindex="4" appearance="minimal" style="left:985px; top:35px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>매출자발행</label>
- <value>01</value>
- </item>
- <item>
- <label>매입자발행</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_ntsappryn" ref="/root/send/condition/ntsappryn" class="combo_essential" navindex="4" appearance="minimal" style="left:985px; top:10px; 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>
- </select1>
- <caption id="caption20" class="search_name" style="left:895px; top:35px; width:125px; height:17px; ">발급구분 :</caption>
- <caption id="caption19" class="search_name" style="left:895px; top:10px; width:125px; height:17px; ">승인여부 :</caption>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:120px; x2:1193px; y2:120px; "/>
- <datagrid id="grd_taxsumlist" nodeset="/root/main/taxsum/taxsumlist" backcoloralternate="#ffffff" caption="기관코드^국세청구분^신고년도^신고기간^계산서종류^계산서구분^발급구분^사업자등록번호^거래처명^공급가액^부가세액^합계^매수" colsep="^" colwidth="0, 100, 70, 60, 0, 0, 150, 100, 270, 100, 100, 100, 50" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:125px; width:1193px; height:630px; ">
- <col ref="instcd"/>
- <col checkvalue="Y,N" ref="ntsflag" type="checkbox"/>
- <col ref="addtaxyy" style="text-align:left; "/>
- <col ref="addtaxpnt" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/init_reptkind/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="taxbillkind" type="combo">
- <choices>
- <itemset nodeset="/root/init/init_taxbillkind/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="taxbillflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/init_taxbillflag/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </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="entrregno" style="text-align:center; "/>
- <col ref="custnm"/>
- <col ref="suplamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="valaddtax" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="amt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="cnt"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- if(grd_disconnectedlist.col == grd_disconnectedlist.colRef("custcd"))
- {
- model.setValue(ipt_regno.attribute("ref"), grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("custcd")));
- model.setValue(ipt_regnm.attribute("ref"), grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("custnm")));
- ipt_regno.refresh();
- ipt_regnm.refresh();
- }
- else
- {
- fAutoSearch(grd_disconnectedlist.row, "Y");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("custregflag")) == "N")
- {
- messageBox("거래처가 등록되어 있지 않습니다.", "I000");
- grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("chk")) = "";
- grd_disconnectedlist.rowStatus(grd_disconnectedlist.row) = 0;
- return false;
- }
- //alert(grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("chk")));
- if(grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("chk")) == "Y")
- {
- //alert(grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("chk")));
- grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("instaxknd")) = "01";
- grd_disconnectedlist.isReadOnly(grd_disconnectedlist.row, grd_disconnectedlist.colRef("instaxknd")) = false;
- }
- else
- {
- //alert(grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("chk")));
- grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("instaxknd")) = "";
- grd_disconnectedlist.isReadOnly(grd_disconnectedlist.row, grd_disconnectedlist.colRef("instaxknd")) = true;
- grd_disconnectedlist.removeStatus(grd_disconnectedlist.row, "update");
- }
- grd_disconnectedlist.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_disconnectedlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption21" class="tit_2" style="left:5px; top:102px; width:310px; height:13px; ">세금계산서 합계표 목록</caption>
- <group id="group2" scroll="auto" style="left:0px; top:0px; width:1195px; height:27px; ">
- <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_print" class="btn4_letter2" visibility="hidden" style="left:5px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </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>
- </group>
- <button id="btn_excel" class="btn2_letter4" style="left:1062px; top:98px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var sTitle = "세금계산서 합계표 " + model.getValue(ipt_yyyy.attribute("ref")) + " 년 " + rdo_reptkind.label;
- grd_taxsumlist.rebuild();
- misfSaveExcel(grd_taxsumlist, sTitle);
- ]]>
- </script>
- </button>
- <button id="btn_excelupload" class="btn2_letter4" style="left:995px; top:98px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removeNodeset(grd_taxsumlist.nodeset);
- grd_taxsumlist.refresh();
-
- if(fInputExcel(grd_taxsumlist))
- {
- if(grd_taxsumlist.rows > grd_taxsumlist.fixedRows)
- {
- for(var i = grd_taxsumlist.fixedRows ; i < grd_taxsumlist.rows ; i++)
- {
- grd_taxsumlist.rowStatus(i) = 1;
- grd_taxsumlist.valueMatrix(i, grd_taxsumlist.colRef("taxbillkind")) = model.getValue(rdo_billkind.attribute("ref"));
- grd_taxsumlist.valueMatrix(i, grd_taxsumlist.colRef("taxbillflag")) = model.getValue(rdo_billflag.attribute("ref"));
- grd_taxsumlist.valueMatrix(i, grd_taxsumlist.colRef("instcd")) = model.getValue("/root/send/condition/instcd");
- }
- model.setValue("/root/send/taxsum/taxsumlist", grd_taxsumlist.getUpdateData());
- submit("TXRAT00111");
- }
- }
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" disabled="false" navindex="9" visibility="visible" style="left:1140px; top:98px; 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>
- </group>
- </xhtml:body>
- </xhtml:html>
|