123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317 |
- <?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>
- <pumlist>
- <kyymd/>
- <custcode/>
- <custname/>
- <pumamt/>
- <amt1/>
- <amt2/>
- <seamt3/>
- <noseq/>
- <naeyong/>
- <pumno2/>
- <taxlist/>
- <dateflag/>
- <status/>
- <no/>
- <sekeumdate/>
- </pumlist>
- </list>
- </main>
- <send>
- <code/>
- <savelist>
- <save/>
- </savelist>
- </send>
- <init>
- <combo1>
- <codeinfo>
- <code/>
- <codename/>
- </codeinfo>
- </combo1>
- <combo2>
- <deptinfo>
- <deptcd/>
- <deptnm/>
- </deptinfo>
- </combo2>
- </init>
- <pop3data>
- <pumgubun/>
- <pumno/>
- <pumamt/>
- <taxlist/>
- <custcode/>
- <custname/>
- <kyymd/>
- <pumno2/>
- <naeyong/>
- <sekeumdate/>
- </pop3data>
- </root>
- </instance>
- <bind id="bind_totamt" ref="/root/hidden/totamt" calculate="(/root/main/orch_one/paytotamt) - (/root/main/orch_one/incmtax) -(/root/main/orch_one/resdntax)"/>
- <bind id="bind_amt" ref="/root/hidden/orchreturn/amt" calculate="sum(/root/main/list/orchlist/paytotamt)"/>
- <bind id="bind_incmtax" ref="/root/hidden/orchreturn/incmtax" calculate="sum(/root/main/list/orchlist/incmtax)"/>
- <bind id="bind_resdntax" ref="/root/hidden/orchreturn/resdntax" calculate="sum(/root/main/list/orchlist/resdntax)"/>
- <submission id="TRRAD01515" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/pop3data" resultref="/root/main/list"/>
- <submission id="TXRAD01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savelist" resultref="/root/hidden"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //opener의 값을 받기
- //window.opener.javaScript
- //var dd = opener.javascript.getParameter("aa");
- //참고
- //opener 로 값던지기
- //opener.javascript.setParameter("aa","");
- function fInitialize()
- {
- if(model.getValue("/root/pop3data/taxlist") == "1"){
- input5.visible = false;
- input1.visible = true;
- input2.visible = true;
- caption2.visible = true;
- }else{
- input5.visible = true;
- input1.visible = false;
- input2.visible = false;
- caption2.visible = false;
- }
- var pumamt = model.getValue("/root/pop3data/pumamt");
- var amt1 = 0;
- var amt2 = 0;
- var seamt3 = 0;
- //등록된 증빙서인지 조회
- submit("TRRAD01515");
- if(model.getValue("/root/main/list/pumlist/noseq") == ""){
- model.makeValue("/root/main/list/pumlist/kyymd", model.getValue("/root/pop3data/kyymd"));
- model.makeValue("/root/main/list/pumlist/custcode", model.getValue("/root/pop3data/custcode"));
- model.makeValue("/root/main/list/pumlist/custname", model.getValue("/root/pop3data/custname"));
- model.makeValue("/root/main/list/pumlist/pumamt", model.getValue("/root/pop3data/pumamt"));
- model.makeValue("/root/main/list/pumlist/naeyong", model.getValue("/root/pop3data/naeyong"));
- model.makeValue("/root/main/list/pumlist/pumno2", model.getValue("/root/pop3data/pumno").substr(8,4));
- model.makeValue("/root/main/list/pumlist/taxlist", model.getValue("/root/pop3data/taxlist"));
- model.makeValue("/root/main/list/pumlist/sekeumdate", model.getValue("/root/pop3data/sekeumdate"));
- model.makeValue("/root/main/list/pumlist/no", "");
- model.makeValue("/root/main/list/pumlist/status", "i");
-
- // 1: 세금계산서이면..
- if(model.getValue("/root/pop3data/taxlist") == "1"){
- amt1 = Math.round(parseFloat(pumamt) / 11.0 * 10);
- seamt3 = parseFloat(pumamt) - parseFloat(amt1);
- model.makeValue("/root/main/list/pumlist/amt1", amt1);
- model.makeValue("/root/main/list/pumlist/amt2", "0");
- model.makeValue("/root/main/list/pumlist/seamt3", seamt3);
-
- var dateflag = model.getValue("/root/pop3data/sekeumdate").substr(4,2);
- if(dateflag >= '01' && dateflag<= '03'){
- model.makeValue("/root/main/list/pumlist/dateflag", "1");
- }else if(dateflag >= '04' && dateflag<= '06'){
- model.makeValue("/root/main/list/pumlist/dateflag", "2");
- }else if(dateflag >= '07' && dateflag<= '09'){
- model.makeValue("/root/main/list/pumlist/dateflag", "3");
- }else if(dateflag >= '10' && dateflag<= '12'){
- model.makeValue("/root/main/list/pumlist/dateflag", "4");
- }
- }else{
- model.makeValue("/root/main/list/pumlist/amt1", "0");
- model.makeValue("/root/main/list/pumlist/amt2", model.getValue("/root/pop3data/pumamt"));
- model.makeValue("/root/main/list/pumlist/seamt3", "0");
- }
- }
- model.refresh();
- }
-
- function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
- {
- misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
- model.refresh();
- }
-
- function fSaveDate()
- {
-
-
- var kyymd = model.getValue("/root/main/list/pumlist/kyymd");
- var custcode = model.getValue("/root/main/list/pumlist/custcode");
- var pumamt = model.getValue("/root/main/list/pumlist/pumamt");
- var amt1 = model.getValue("/root/main/list/pumlist/amt1");
- var amt2 = model.getValue("/root/main/list/pumlist/amt2");
- var seamt3 = model.getValue("/root/main/list/pumlist/seamt3");
- var noseq = model.getValue("/root/main/list/pumlist/noseq");
- var naeyong = model.getValue("/root/main/list/pumlist/naeyong");
- var pumno2 = model.getValue("/root/main/list/pumlist/pumno2");
- var taxlist = model.getValue("/root/main/list/pumlist/taxlist");
- var dateflag = model.getValue("/root/main/list/pumlist/dateflag");
- var status = model.getValue("/root/main/list/pumlist/status");
- var no = model.getValue("/root/main/list/pumlist/no");
- var sekeumdate = model.getValue("/root/main/list/pumlist/sekeumdate");
-
-
- //2011.07.08 CYW 거래처가 9000번일 경우(기타) Return
- if( custcode == "9000"){
- messageBox("거래처 정보를 다시 입력해 주십시오.( [ 9000 / 기타 ]는 입력불가능 )", "E000", "");
- return;
- }
-
- var save = "status" + "▦"
- + "kyymd" + "▦"
- + "custcode" + "▦"
- + "pumamt" + "▦"
- + "amt1" + "▦"
- + "amt2" + "▦"
- + "seamt3" + "▦"
- + "noseq" + "▦"
- + "naeyong" + "▦"
- + "pumno2" + "▦"
- + "taxlist" + "▦"
- + "no" + "▦"
- + "sekeumdate" + "▦"
- + "dateflag" + "▩"
-
- + status + "▦"
- + kyymd + "▦"
- + custcode + "▦"
- + pumamt + "▦"
- + amt1 + "▦"
- + amt2 + "▦"
- + seamt3 + "▦"
- + noseq + "▦"
- + naeyong + "▦"
- + pumno2 + "▦"
- + taxlist + "▦"
- + no + "▦"
- + sekeumdate + "▦"
- + dateflag + "▩" ;
- model.setValue("/root/send/savelist/save", save);
- if(submit("TXRAD01503")){
- if(model.getValue("/root/main/list/pumlist/status") == "i"){
- messageBox("저장되었습니다.", "I000");
- }else if(model.getValue("/root/main/list/pumlist/status") == "u"){
- messageBox("수정되었습니다.", "I000");
- }
- submit("TRRAD01515");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="650" pageheight="300" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:580px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:190px; height:14px; ">증빙서유형</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:16px; width:590px; height:199px; ">
- <input id="ipt_unsldd" ref="/root/main/list/pumlist/sekeumdate" class="input_s_essential" navindex="1" inputtype="date" style="left:120px; top:20px; width:120px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:15px; top:20px; width:100px; height:17px; ">거래발생일 :</caption>
- <button id="button2" class="icon_search" navindex="-1" style="left:219px; top:50px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fOpenPopupHelp("56", ipt_custcd, "custcode,custname", "", "");
- ]]>
- </script>
- </button>
- <input id="ipt_custcd" ref="/root/main/list/pumlist/custcode" class="input_essential" navindex="8" maxlength="11" style="left:120px; top:50px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </input>
- <caption id="caption13" class="search_name" style="left:15px; top:50px; width:86px; height:17px; ">거 래 처 :</caption>
- <input id="input3" ref="/root/main/list/pumlist/custname" class="input_essential" disabled="true" style="left:239px; top:50px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <input id="input10" ref="/root/main/list/pumlist/pumamt" disabled="true" format="(-)#,###" style="left:120px; top:80px; width:120px; height:19px; text-align:right; "/>
- <caption id="caption18" class="search_name" style="left:15px; top:80px; width:101px; height:17px; ">금 액 :</caption>
- <input id="input1" ref="/root/main/list/pumlist/amt1" format="(-)#,###" style="left:120px; top:110px; width:120px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 1: 세금계산서이면..
- if(model.getValue("/root/pop3data/taxlist") == "1"){
- input10.value = parseInt(input1.value) + parseInt(input2.value); //금액 = 공급가액 + 세액
- }
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:15px; top:110px; width:101px; height:17px; ">공급가액 :</caption>
- <caption id="caption2" class="search_name" style="left:15px; top:140px; width:101px; height:17px; ">세 액 :</caption>
- <input id="input2" ref="/root/main/list/pumlist/seamt3" format="(-)#,###" style="left:120px; top:140px; width:120px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 1: 세금계산서이면..
- if(model.getValue("/root/pop3data/taxlist") == "1"){
- input10.value = parseInt(input1.value) + parseInt(input2.value); //금액 = 공급가액 + 세액
- }
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:255px; top:20px; width:101px; height:17px; ">확인번호 :</caption>
- <input id="input4" ref="/root/main/list/pumlist/no" disabled="true" format="(-)#,###" appearance="input" style="left:350px; top:20px; width:120px; height:19px; text-align:center; "/>
- <input id="input5" ref="/root/main/list/pumlist/amt2" format="(-)#,###" style="left:120px; top:110px; width:120px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 세금계산서가 아니면.
- if(model.getValue("/root/pop3data/taxlist") != "1"){
- input10.value = parseInt(input1.value) + parseInt(input5.value); //금액 = 공급가액
- }
- ]]>
- </script>
- </input>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:213px; width:590px; height:27px; ">
- <button id="btn_close" class="btn4_letter2" navindex="6" style="left:530px; top:3px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" navindex="6" style="left:470px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveDate();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|