123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473 |
- <?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>
- <addtexlist/>
- <texlist/>
- </list>
- </main>
- <send>
- <taxbillkind>1</taxbillkind>
- <entrregno/>
- <frdate/>
- <todate/>
- <instcd/>
- <custnm/>
- <taxbillflag/>
- <retrparam>
- <frdate/>
- <todate/>
- <title/>
- <instnm/>
- <sumflag/>
- </retrparam>
- <reptkind>entrregno</reptkind>
- <yyyy/>
- <sortflag>entrregno</sortflag>
- <sumflag>Y</sumflag>
- </send>
- <init>
- <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>
- <cardinalnumberinfo>
- <cardinalnumber/>
- </cardinalnumberinfo>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.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/RAM001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- function fInitialize()
- {
- model.setValue("/root/send/yyyy", getCurrentDate().substr(0, 4));
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/retrparam/instnm", getUserInfo("dutplceinstnm"));
- model.removenode("/root/main/list/texlist");
- model.removenode("/root/main/list/addtexlist");
- model.setValue("/root/send/taxbillflag", "1");
- fSetReptKind();
- fSetDate();
- fCheckAuth();
- }
-
- function fSetReptKind()
- {
- var sMonth = getCurrentDate().substr(4, 2);
- if(sMonth == "01" || sMonth == "02" || sMonth == "03")
- {
- model.setValue("/root/send/reptkind", "1");
- }
- else if(sMonth == "04" || sMonth == "05" || sMonth == "06")
- {
- model.setValue("/root/send/reptkind", "2");
- }
- else if(sMonth == "07" || sMonth == "08" || sMonth == "09")
- {
- model.setValue("/root/send/reptkind", "3");
- }
- else if(sMonth == "10" || sMonth == "11" || sMonth == "12")
- {
- model.setValue("/root/send/reptkind", "4");
- }
- model.refresh();
- }
-
- function fSetDate()
- {
- if(model.getValue("/root/send/yyyy").length != 4)
- {
- messageBox("년도가 잘못되었습니다.", "I999");
- return;
- }
- var sReptKind = model.getValue("/root/send/reptkind");
- if(sReptKind == "1")
- {
- model.setValue("/root/send/frdate", model.getValue("/root/send/yyyy") + "0101");
- model.setValue("/root/send/todate", model.getValue("/root/send/yyyy") + "0331");
- }
- else if(sReptKind == "2")
- {
- model.setValue("/root/send/frdate", model.getValue("/root/send/yyyy") + "0101");
- model.setValue("/root/send/todate", model.getValue("/root/send/yyyy") + "0630");
- }
- else if(sReptKind == "3")
- {
- model.setValue("/root/send/frdate", model.getValue("/root/send/yyyy") + "0701");
- model.setValue("/root/send/todate", model.getValue("/root/send/yyyy") + "0930");
- }
- else if(sReptKind == "4")
- {
- model.setValue("/root/send/frdate", model.getValue("/root/send/yyyy") + "0701");
- model.setValue("/root/send/todate", model.getValue("/root/send/yyyy") + "1231");
- }
- model.refresh();
- }
-
- function fRetrieve()
- {
- submit("TRRAT01101");
-
- grd_addtexlist.subtotalposition = "below";
- grd_addtexlist.multitotals = true;
-
- grd_addtexlist.subtotal("sum", -1, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", true);
- grd_addtexlist.subtotal("sum", -1, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", true);
- grd_addtexlist.subtotal("sum", -1, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", true);
- grd_addtexlist.subtotal("sum", -1, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", true);
-
- grd_texlist.subtotalposition = "below";
- grd_texlist.multitotals = true;
-
- grd_texlist.subtotal("sum", -1, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", false);
- grd_texlist.subtotal("sum", -1, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", false);
- grd_texlist.subtotal("sum", -1, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", false);
- grd_texlist.subtotal("sum", -1, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", false);
-
- if(model.getValue(rdo_sumflag.attribute("ref")) == "Y")
- {
- grd_addtexlist.subtotal("sum", 3, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
- grd_addtexlist.subtotal("sum", 3, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
- grd_addtexlist.subtotal("sum", 3, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
- grd_addtexlist.subtotal("sum", 3, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
-
- grd_texlist.subtotal("sum", 3, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
- grd_texlist.subtotal("sum", 3, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
- grd_texlist.subtotal("sum", 3, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
- grd_texlist.subtotal("sum", 3, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
- }
-
- grd_addtexlist.refresh();
- grd_texlist.refresh();
-
- }
-
-
- function fCheckAuth()
- {
- btn_search.disabled = !checkAuth("R") ;
- }
- ]]>
- </script>
- <submission id="TRRAT01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="cap_6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">부가세 명세서</caption>
- <caption id="cap_4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="grp_3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <switch id="swt_1" class="sw_box" style="left:0px; top:125px; width:1195px; height:614px; border-style:solid; ">
- <case id="case1" selected="true">
- <caption id="cap_21" class="tit_2" style="left:5px; top:10px; width:131px; height:14px; ">세금계산서</caption>
- <line id="lin_3" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
- <datagrid id="grd_addtexlist" nodeset="/root/main/list/addtexlist" backcoloralternate="#ffffff" caption="사 업 자 등 록 번 호^상 호 (법 인 명)^subtotal^작 성 일^거 래 횟 수^ 공 급 가 액^세 액^합 계" colwidth="180, 180, 0, 180, 80, 160, 160, 160" mergecells="byrestriccol" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:30px; width:1193px; height:580px; ">
- <col ref="entrregno" format="999-99-99999" style="text-align:center; vertical-align:top; padding-top:3; "/>
- <col ref="custnm" style="text-align:left; vertical-align:top; padding-left:1; padding-top:3; "/>
- <col ref="custnm" visiblity="hidden"/>
- <col ref="genrdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="countnum" style="text-align:center; "/>
- <col ref="suplamt" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="valaddtax" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="amt" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
- </datagrid>
- <button id="btn_5" class="btn2_letter4" style="left:1128px; top:4px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //misfSaveExcel(grd_texlist);
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_texlist.saveExcel(fileName,"SheetName:sheet1");
- ]]>
- </script>
- </button>
- </case>
- <case id="case2">
- <caption id="cap_5" class="tit_2" style="left:5px; top:10px; width:131px; height:14px; ">계 산 서</caption>
- <datagrid id="grd_texlist" nodeset="/root/main/list/texlist" caption="사 업 자 등 록 번 호^상 호 (법 인 명)^subtotal^작 성 일^거 래 횟 수^ 공 급 가 액^세 액^합 계" colwidth="200, 200, 0, 200, 100, 200, 200, 0" mergecells="byrestriccol" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:30px; width:1193px; height:580px; ">
- <col ref="entrregno" format="999-99-99999" style="text-align:center; vertical-align:top; padding-top:3; "/>
- <col ref="custnm" style="text-align:left; vertical-align:top; padding-left:1; padding-top:3; "/>
- <col ref="custnm" visiblity="hidden"/>
- <col ref="genrdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="countnum" style="text-align:center; "/>
- <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; "/>
- </datagrid>
- <line id="lin_1" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
- <button id="btn_7" class="btn2_letter4" style="left:1128px; top:4px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_addtexlist);
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_1" class="btn_sw" group="tab" selected="true" style="left:73px; top:104px; width:73px; height:22px; ">
- <caption>계 산 서</caption>
- <toggle case="case2" ev:event="onclick"/>
- </button>
- <button id="btn_65" class="btn_sw" group="tab" selected="true" style="left:0px; top:104px; width:73px; height:22px; ">
- <caption>세금계산서</caption>
- <toggle case="case1" ev:event="onclick"/>
- </button>
- <group id="group4" style="left:0px; top:10px; width:1195px; height:90px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption9" class="search_name" style="left:295px; 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:938px; top:11px; width:15px; height:20px; ">~</caption>
- <caption id="caption10" class="search_name" style="left:750px; top:10px; width:86px; height:17px; ">작성일자 :</caption>
- <caption id="caption1" class="search_name" style="left:295px; top:36px; width:99px; height:17px; ">사업자번호 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1120px; top:31px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
- //alert(model.getValue("/root/send/entrregno"));
- ]]>
- </script>
- </button>
- <line id="line10" class="line_4" style="x1:1107px; y1:5px; x2:1107px; y2:86px; "/>
- <caption id="caption5" class="search_name" style="left:10px; top:36px; width:109px; height:17px; ">계산서구분 :</caption>
- <select1 id="rdo_reptkind" ref="/root/send/reptkind" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:400px; top:10px; 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[
- fSetDate();
- fRetrieve();
- ]]>
- </script>
- </select1>
- <input id="ipt_frdate" ref="/root/send/frdate" class="input_s_essential" editable="false" inputtype="date" style="left:840px; top:9px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </input>
- <input id="ipt_todate" ref="/root/send/todate" class="input_s_essential" editable="false" inputtype="date" style="left:952px; top:9px; width:95px; height:19px; "/>
- <select1 id="rdo_billflag" ref="/root/send/taxbillflag" class="radio_search" navindex="4" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:115px; top:36px; 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[
- fRetrieve();
- ]]>
- </script>
- </select1>
- <button id="btn_entregnohelp" class="icon_search" style="left:504px; 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/entrregno" navindex="5" format="999-99-99999" style="left:400px; top:36px; width:100px; 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/custnm" navindex="6" imemode="hangul" style="left:524px; top:36px; width:160px; 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/yyyy" class="input_s_essential" navindex="1" maxlength="4" style="left:115px; top:9px; width:135px; height:19px; text-align:center; "/>
- <select1 id="radio1" ref="/root/send/sortflag" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:840px; top:36px; width:265px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <item>
- <label>사업자등록번호</label>
- <value>entrregno</value>
- </item>
- <item>
- <label>상호</label>
- <value>custnm</value>
- </item>
- <item>
- <label>작성일</label>
- <value>genrdd</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetDate();
- fRetrieve();
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:750px; top:36px; width:106px; height:17px; ">정렬기준 :</caption>
- <caption id="caption4" class="search_name" style="left:750px; top:61px; width:106px; height:17px; ">합계출력 :</caption>
- <select1 id="rdo_sumflag" ref="/root/send/sumflag" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="20" cols="2" style="left:840px; top:61px; width:265px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <item>
- <label>합계 출력</label>
- <value>Y</value>
- </item>
- <item>
- <label>합계 출력 안함</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- </group>
- </group>
- <group id="grp_4" 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="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fRetrieve();
- model.setValue("/root/send/reptkind",rdo_reptkind.label);
- model.setValue("/root/send/retrparam/frdate",model.getValue("/root/send/frdate").substr(0,4) + "-" + model.getValue("/root/send/frdate").substr(4,2) + "-" + model.getValue("/root/send/frdate").substr(6,2));
- model.setValue("/root/send/retrparam/todate",model.getValue("/root/send/todate").substr(0,4) + "-" + model.getValue("/root/send/todate").substr(4,2) + "-" + model.getValue("/root/send/todate").substr(6,2));
-
- model.setValue("/root/send/retrparam/sumflag", model.getValue(rdo_sumflag.attribute("ref")));
-
- if(swt_1.selectedIndex == 0)//세금계산서
- {
- //alert(instance1.selectNodes("/root/main/list/addtexlist").length);
-
- if(grd_addtexlist.rows == grd_addtexlist.fixedRows)
- {
- messageBox("출력할 내용이" ,"I004");
- return;
- }
-
- if(rdo_billflag.value == '2')//매출처별
- {
- model.setValue("/root/send/retrparam/title", " 매출처별 세금계산서 명세서 ");
- }
- else//매입처별
- {
- model.setValue("/root/send/retrparam/title", " 매입처별 세금계산서 명세서 ");
- }
- exeReportPreview("RPRAT01101", "XMLSTR", "/root/send/retrparam");
- }
- else//계산서
- {
- if(grd_texlist.rows == grd_texlist.fixedRows)
- {
- messageBox("출력할 내용이" ,"I004");
- return;
- }
-
- if(rdo_billflag.value == '2')//매출처별
- {
- model.setValue("/root/send/retrparam/title", " 매출처별 계산서 명세서 ");
- }
- else//매입처별
- {
- model.setValue("/root/send/retrparam/title", " 매입처별 계산서 명세서 ");
- }
-
- exeReportPreview("RPRAT01102", "XMLSTR", "/root/send/retrparam");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|