123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440 |
- <?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>
- <ndedlist>
- <data1/>
- <data2/>
- <data3/>
- </ndedlist>
- <list>
- <temp/>
- </list>
- </main>
- <send>
- <instcd/>
- <addtaxyy/>
- <addtaxpnt/>
- <flagcd/>
- <save>
- <data1/>
- <data2/>
- <data3/>
- </save>
- <yyyy/>
- <reptkind/>
- </send>
- <target/>
- <init>
- <addtaxpnt>
- <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>
- </addtaxpnt>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fCheckAuth();
- fInitialize();
- ]]>
- </script>
- <submission id="TXRAT01321" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/data1" resultref="/root/main/temp"/>
- <submission id="TRRAT01322" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ndedlist"/>
- <submission id="TXRAT01322" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/data2" resultref="/root/main/list/temp"/>
- <submission id="TXRAT01323" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/data3" resultref="/root/main/list/temp"/>
- <submission id="TRRAT01324" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- </model>
- <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">
- <![CDATA[
- //========================================================================================
- //초기화
- //========================================================================================
- function fInitialize() {
- var sToday = getCurrentDate().toString();
-
- model.removenode("/root/main/ndedlist/data1");
- model.removenode("/root/main/ndedlist/data2");
- model.removenode("/root/main/ndedlist/data3");
-
- model.refresh();
-
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/addtaxyy", model.getValue("/root/target/yyyy"));
-
- model.setValue("/root/init/addtaxpnt", model.getValue("/root/target/reptkind"));
- model.setValue("/root/send/addtaxpnt", model.getValue("/root/target/reptkind"));
- model.refresh();
- datagrid1.rowheight(0) = 35;
- datagrid2.rowheight(0) = 35;
- datagrid3.rowheight(0) = 35;
- fRetrieve();
- }
-
- //========================================================================================
- //화면 권한 체크
- //========================================================================================
- function fCheckAuth() {
- //btn_search.disabled = !checkAuth("R") ;
- //btn_aprv.disabled = !checkAuth("X") ;
- //btn_delete.disabled = !checkAuth("X") ;
- //btn_prt.disabled = !checkAuth("P") ;
- }
-
- //========================================================================================
- //각종 코드 Help Open
- //========================================================================================
- function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
- {
- misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
- model.refresh();
- }
-
- //========================================================================================
- //코드 Validation Check
- //========================================================================================
- function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName)
- {
- if(event.keyCode == 13 || event.name == "xforms-value-changed")
- {
- document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
- misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName);
- model.refresh();
-
- model.setFocus(pNextIndex);
- }
- }
- //========================================================================================
- // 조회
- //========================================================================================
- function fRetrieve()
- {
- // model.reset("/root/main/ndedlist/data1");
- // model.reset("/root/main/ndedlist/data2");
- // model.reset("/root/main/ndedlist/data3");
- // model.refresh();
- submit("TRRAT01322");
- }
- //========================================================================================
- // 저장
- //========================================================================================
- function fSave()
- {
- model.reset("/root/main/list/temp");
- model.reset("/root/send/save/data1");
- model.setValue("/root/send/save/data1", datagrid1.getUpdateData());
- model.refresh();
- misfSave("TXRAT01321");
-
- model.reset("/root/send/save/data2");
- model.setValue("/root/send/save/data2", datagrid2.getUpdateData());
- model.refresh();
- misfSave("TXRAT01322");
- model.reset("/root/send/save/data3");
- model.setValue("/root/send/save/data3", datagrid3.getUpdateData());
- model.refresh();
- misfSave("TXRAT01323");
-
-
- //submit("TXRAT01321");
- fRetrieve();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1185" pageheight="684" guideline="1,1213;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:20px; width:1163px; height:640px; ">
- <group id="group4" style="left:5px; top:50px; width:1150px; height:55px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:5px; width:1140px; height:45px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line10" class="line_4" style="x1:1045px; y1:5px; x2:1045px; y2:53px; "/>
- <caption id="caption3" class="search_name" style="left:10px; top:20px; width:101px; height:20px; ">년 도 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1060px; top:16px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
- ]]>
- </script>
- </button>
- <caption id="caption9" class="search_name" style="left:295px; top:20px; width:106px; height:20px; ">신고 유형 :</caption>
- <input id="ipt_yyyy" ref="/root/send/addtaxyy" class="input_s_essential" navindex="1" maxlength="4" style="left:115px; top:20px; width:135px; height:20px; text-align:center; "/>
- <select1 id="rdo_reptkind" ref="/root/send/addtaxpnt" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:400px; top:20px; width:455px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/addtaxpnt/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption35" class="tit_2" style="left:5px; top:124px; width:183px; height:13px; ">공통매입세액 안분계산 내역</caption>
- <group id="grp_4" scroll="auto" style="left:0px; top:10px; width:1158px; height:35px; ">
- <line id="line3" class="line_6" style="x1:0px; y1:30px; x2:1151px; y2:30px; "/>
- <button id="btn_print" class="btn6_letter2" style="left:10px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/yyyy", model.getValue("/root/send/addtaxyy"));
- model.setValue("/root/send/reptkind", model.getValue("/root/send/addtaxpnt"));
-
- submit("TRRAT01324");
- exeReportPreview("RPRAT01321", "XMLSTR");
-
- ]]>
- </script>
- </button>
- <button id="button39" class="btn4_letter2" style="left:1065px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //fInsAactcdprtlist();
- fSave();
- ]]>
- </script>
- </button>
- </group>
- <button id="button1" class="btn2_letter3" style="left:445px; top:124px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfGridIUD(datagrid1, "A");
- var rowid = datagrid1.row;
- datagrid1.valueMatrix(rowid, datagrid1.colRef("instcd")) = model.getValue("/root/send/instcd");
- datagrid1.valueMatrix(rowid, datagrid1.colRef("addtaxyy")) = model.getValue("/root/send/addtaxyy");
- datagrid1.valueMatrix(rowid, datagrid1.colRef("addtaxpnt")) = model.getValue("/root/send/addtaxpnt");
- datagrid1.valueMatrix(rowid, datagrid1.colRef("flagcd")) = "1";
- //model.setValue("/root/main/ndedlist/data1/instcd", model.getValue("/root/send/instcd"));
- //model.setValue("/root/main/ndedlist/data1/addtaxyy", model.getValue("/root/send/addtaxyy"));
- //model.setValue("/root/main/ndedlist/data1/addtaxpnt", model.getValue("/root/send/addtaxpnt"));
- //model.setValue("/root/main/ndedlist/data1/flagcd","1");
- //model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button18" class="btn2_letter3" style="left:499px; top:124px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(datagrid1, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:1040px; top:124px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfGridIUD(datagrid2, "A");
- var rowid = datagrid2.row;
- datagrid2.valueMatrix(rowid, datagrid2.colRef("instcd")) = model.getValue("/root/send/instcd");
- datagrid2.valueMatrix(rowid, datagrid2.colRef("addtaxyy")) = model.getValue("/root/send/addtaxyy");
- datagrid2.valueMatrix(rowid, datagrid2.colRef("addtaxpnt")) = model.getValue("/root/send/addtaxpnt");
- datagrid2.valueMatrix(rowid, datagrid2.colRef("flagcd")) = "2";
-
-
-
- //model.setValue("/root/main/ndedlist/data2/instcd", model.getValue("/root/send/instcd"));
- //model.setValue("/root/main/ndedlist/data2/addtaxyy", model.getValue("/root/send/addtaxyy"));
- //model.setValue("/root/main/ndedlist/data2/addtaxpnt", model.getValue("/root/send/addtaxpnt"));
- //model.setValue("/root/main/ndedlist/data2/flagcd","2");
-
- //model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter3" style="left:1094px; top:124px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(datagrid2, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption5" class="tit_2" style="left:595px; top:124px; width:183px; height:13px; ">공통매입세액의 정산 내역</caption>
- <line id="line4" class="line_1" style="x1:595px; y1:147px; x2:1150px; y2:148px; "/>
- <button id="button4" class="btn2_letter3" style="left:1040px; top:383px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfGridIUD(datagrid3, "A");
- var rowid = datagrid3.row;
- datagrid3.valueMatrix(rowid, datagrid3.colRef("instcd")) = model.getValue("/root/send/instcd");
- datagrid3.valueMatrix(rowid, datagrid3.colRef("addtaxyy")) = model.getValue("/root/send/addtaxyy");
- datagrid3.valueMatrix(rowid, datagrid3.colRef("addtaxpnt")) = model.getValue("/root/send/addtaxpnt");
- datagrid3.valueMatrix(rowid, datagrid3.colRef("flagcd")) = "3";
-
-
- /*
- model.setValue("/root/main/ndedlist/data3/instcd", model.getValue("/root/send/instcd"));
- model.setValue("/root/main/ndedlist/data3/addtaxyy", model.getValue("/root/send/addtaxyy"));
- model.setValue("/root/main/ndedlist/data3/addtaxpnt", model.getValue("/root/send/addtaxpnt"));
- model.setValue("/root/main/ndedlist/data3/flagcd","3");
- model.refresh();
- */
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter3" style="left:1094px; top:383px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(datagrid3, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="tit_2" style="left:595px; top:383px; width:237px; height:13px; ">납부세액 또는 환급 세액 재계산 내역</caption>
- <line id="line5" class="line_1" style="x1:595px; y1:405px; x2:1150px; y2:406px; "/>
- <datagrid id="datagrid3" nodeset="/root/main/ndedlist/data3" caption="기관코드^년도^기간^구분^일련번호^해당재화의 매입세액^경감률^증/감 면세공급가액비율^가산/공제 매입세액" colsep="^" colwidth="0,0,0,0, 61, 130, 74, 120, 120" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="30" rowsep="|" style="left:595px; top:410px; width:560px; height:215px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="addtaxyy" visibility="hidden"/>
- <col ref="addtaxpnt" visibility="hidden"/>
- <col ref="flagcd" visibility="hidden"/>
- <col ref="seqid"/>
- <col ref="item1" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="item2" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="item3" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="item4" type="input" format="(-)#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var intItem1 = 0;
- var intItem2 = 0;
- var intItem3 = 0;
-
- intItem1 = datagrid3.valueMatrix(datagrid3.row, datagrid3.colRef("item1"));
- intItem2 = datagrid3.valueMatrix(datagrid3.row, datagrid3.colRef("item2"));
- intItem3 = datagrid3.valueMatrix(datagrid3.row, datagrid3.colRef("item3"));
-
- if ( intItem1 != 0 && intItem2 != 0 && intItem3 != 0 ) {
- datagrid3.valueMatrix(datagrid3.row, datagrid3.colRef("item4")) = intItem1 * intItem2/100 * intItem3/100;
- }
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/main/ndedlist/data2" autoresize="true" autosizemouse="true" caption="기관코드^년도^기간^구분^일련번호^총공통매입세액^면세사업확정비율^불공제매입 세액 총액^기불공제매입세액^가산 또는 공제되는 매입세액" colsep="^" colwidth="0, 0, 0, 0, 59, 90, 74, 73, 100, 112" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="300" rowsep="|" style="left:595px; top:155px; width:560px; height:210px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="addtaxyy" visibility="hidden"/>
- <col ref="addtaxpnt" visibility="hidden"/>
- <col ref="flagcd" visibility="hidden"/>
- <col ref="seqid"/>
- <col ref="item1" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="item2" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="item3" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="item4" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="item5" type="input" format="(-)#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var intItem1 = 0;
- var intItem2 = 0;
- var intItem3 = 0;
- var intItem4 = 0;
-
- intItem1 = datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("item1"));
- intItem2 = datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("item2"));
-
-
- if ( intItem1 != 0 && intItem2 != 0 ) {
- datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("item3")) = intItem1 * intItem2/100;
- }
-
- intItem3 = datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("item3"));
- intItem4 = datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("item4"));
- if ( intItem3 != 0 ) {
- datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("item5")) = intItem3 - intItem4;
- }
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid1" nodeset="/root/main/ndedlist/data1" caption="기관코드^년도^기간^구분^일련번호^공급가액^세액^총공급가액 등^면세공급가액 등^불공제 매입세액" colsep="^" colwidth="0,0,0,0, 55, 90, 90, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:6px; top:155px; width:560px; height:470px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="addtaxyy" visibility="hidden"/>
- <col ref="addtaxpnt" visibility="hidden"/>
- <col ref="flagcd" visibility="hidden"/>
- <col ref="seqid"/>
- <col ref="item1" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="item2" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="item3" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="item4" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="item5" type="input" format="(-)#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var intItem2 = 0;
- var intItem3 = 0;
- var intItem4 = 0;
-
- intItem2 = datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("item2"));
- intItem3 = datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("item3"));
- intItem4 = datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("item4"));
-
- if ( intItem2 != 0 && intItem3 != 0 && intItem4 != 0 ) {
- datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("item5")) = intItem2 * (intItem4/intItem3);
- }
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_6" style="x1:10px; y1:635px; x2:1155px; y2:635px; "/>
- <line id="line1" class="line_1" style="x1:11px; y1:147px; x2:561px; y2:148px; "/>
- </group>
- <caption id="caption1" class="tit_1" style="left:90px; top:45px; width:255px; height:13px; vertical-align:middle; ">공제받지 못할 매입세액 내역</caption>
- </xhtml:body>
- </xhtml:html>
|