123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- <?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>
- <grnt>
- <grntlist1>
- <kydate/>
- <kyseq/>
- <ibgoymd/>
- <ibgoseq/>
- <rmrk/>
- <keumak/>
- <acctid/>
- <custcode/>
- <custnm/>
- <custbankno/>
- <kyejwano/>
- <yekeumju/>
- <cdacnt/>
- <cdbojo1/>
- <ymdwrite/>
- <seqwrite/>
- <ymdacnt/>
- <ymdaction/>
- <rmrk/>
- </grntlist1>
- </grnt>
- </main>
- <send>
- <paydedu>
- <instcd/>
- <kydate/>
- <kyseq/>
- <slipyn/>
- <emplno/>
- <emplnm/>
- <acntcd/>
- <cnt/>
- <amt1/>
- <custcode/>
- <bugtflag/>
- <deptcd/>
- <usedate/>
- <pumno/>
- <pumno1/>
- <pumno2/>
- </paydedu>
- <save>
- <grntlist1/>
- </save>
- </send>
- <custinfo>
- <custlist>
- <aactno/>
- <bankcd/>
- <depor/>
- <custnm/>
- </custlist>
- </custinfo>
- <bugtinfo>
- <bugtlist>
- <bugtamt/>
- <bugtexecamt/>
- <bugtjanamt/>
- </bugtlist>
- </bugtinfo>
- <init>
- <combo1>
- <deptcdcmb>
- <deptcd/>
- <deptnm/>
- </deptcdcmb>
- </combo1>
- <combo2>
- <acntcmb>
- <acntcd/>
- <acntnm/>
- </acntcmb>
- </combo2>
- <combo3>
- <acntcmb>
- <acntcd/>
- <acntnm/>
- </acntcmb>
- </combo3>
- </init>
- <popdata>
- <junpyodate/>
- <makedeptcd/>
- <yogudeptcd/>
- <pumgubun/>
- </popdata>
- <hidden>
- <item>
- <pumno/>
- </item>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- initialize();
- ]]>
- </script>
- <submission id="TRRAD01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo1"/>
- <submission id="TRRAD01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/custinfo"/>
- <submission id="TRRAD01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo2"/>
- <submission id="TRRAD01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo3"/>
- <submission id="TRRAD01505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/bugtinfo"/>
- <submission id="TRRAD01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo4"/>
- <submission id="TRRAD02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
- <submission id="TXRAD02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
- </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" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
- <script type="javascript">
- <![CDATA[
- function fOpenPopupDeptHelp(pControl, pInstance)
- {
- misfOpenPopUpList("02", pControl, "", pInstance);
- model.refresh();
- }
- function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
- {
- misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
- model.refresh();
- }
- function initialize(){
- var curdate = getCurrentDate();
-
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- var deptcd = getUserInfo("dutplcecd");
- var deptnm = getUserInfo("dutplcenm");
- var emplno = getUserInfo("userid");
- var emplnm = getUserInfo("usernm");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- model.setValue("/root/send/paydedu/kydate", curdate);
- misfComboComCdListMulti("R0001","cmb_bankcd");
- //submit("TRRAD01501");
- submit("TRRAD01504");
- //addComboItem("combo1"," ","","above");
- //addComboItem("combo2"," ","","above");
- model.setFocus("input17");
- model.refresh();
- }
- function Popup(){
- var ymd = model.getValue("/root/main/grnt/grntlist1/junpyodate");
- var mdeptcd = model.getValue("/root/main/grnt/grntlist1/makedeptcd");
- var ydeptcd = model.getValue("/root/main/grnt/grntlist1/yogudeptcd");
- if (ymd != "" && mdeptcd != "" && ydeptcd != ""){
- model.setValue("/root/popdata/junpyodate", ymd);
- model.setValue("/root/popdata/makedeptcd", mdeptcd);
- model.setValue("/root/popdata/yogudeptcd", ydeptcd);
- model.setValue("/root/popdata/pumgubun", "3");
- modal("SPRAD00400", "", "", "", "SPRAD00400","/root/popdata","/root/popdata");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">구매지출결의(건별)</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1128px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/grnt/grntlist1");
- submit("TRRAD02301");
- model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/main/grnt/grntlist1/cdacnt"));
- submit("TRRAD01701");
- //addComboItem("combo1"," ","","above");
- //addComboItem("combo2"," ","","above");
- if (model.getValue("/root/main/grnt/grntlist1/kydate") != ""){
- group3.disabled = false;
- btn_save.disabled = false;
- }
- model.refresh();
-
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" visibility="hidden" style="x1:1121px; y1:16px; x2:1121px; y2:38px; "/>
- <select1 id="cmb_instcd" ref="/root/send/paydedu/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:88px; top:17px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:22px; top:18px; width:61px; height:17px; ">기관 :</caption>
- <group id="group3" disabled="true" style="left:0px; top:46px; width:1190px; height:292px; ">
- <input id="ipt_unsldd" ref="/root/main/grnt/grntlist1/ibgoymd" class="input_s_essential" editable="false" inputtype="date" style="left:140px; top:10px; width:120px; height:19px; text-align:center; "/>
- <caption id="caption4" class="search_name" style="left:45px; top:55px; width:86px; height:17px; ">계정과목 :</caption>
- <caption id="caption5" class="search_name" style="left:45px; top:10px; width:86px; height:17px; ">입고일자 :</caption>
- <input id="input15" ref="/root/main/grnt/grntlist1/ibgoseq" disabled="true" editable="false" style="left:270px; top:10px; width:55px; height:19px; text-align:center; "/>
- <caption id="caption1" class="search_name" style="left:360px; top:10px; width:66px; height:17px; ">금액 :</caption>
- <input id="input1" ref="/root/main/grnt/grntlist1/keumak" editable="false" format="(-)#,###" style="left:425px; top:10px; width:100px; height:19px; text-align:right; "/>
- <select1 id="ipt_acntcd" ref="/root/main/grnt/grntlist1/acctid" navindex="3" appearance="minimal" style="left:140px; top:55px; width:160px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/combo3/acntcmb">
- <label ref="acntnm"/>
- <value ref="acntcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //model.setValue("/root/send/paydedu/cdbojo1give", "");
- //submit("TRRAD01701");
- ]]>
- </script>
- </select1>
- <button id="btn_acntcd" class="icon_search" navindex="-1" style="left:305px; top:58px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/hidden/projectidlist");
- fOpenPopupHelp("05", ipt_acntcd, "acctid,acntnm", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
- //model.setValue("/root/send/paydedu/cdbojo1give", "");
- //submit("TRRAD01701");
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:345px; top:55px; width:99px; height:17px; ">거래처코드 :</caption>
- <input id="ipt_custnm" ref="/root/main/grnt/grntlist1/custnm" class="input_essential" editable="false" imemode="hangul" style="left:530px; top:55px; width:355px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var custflag = model.getValue("/root/main/unsl_one/custflag");
-
- switch (custflag) {
- case "1": //거래처
- fValidationCheck("14", "custcd,custnm", "", "", "", "", "name");
- model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
- break;
- // case "2": //은행
- // fValidationCheck("03", "custcd,custnm", "R0001", "");
- // break;
- case "3": //부서
- fValidationCheck("02", "custcd,custnm", "", "");
- break;
- case "4": //교직원
- // fValidationCheck("01-2", "custcd,custnm", "", "");
- model.setValue("/root/hidden/tempnode/emplnm", model.getValue("/root/main/unsl_one/custnm"));
- ipt_emplnm.dispatch("xforms-value-changed");
- break;
- case "5": //개인
- fValidationCheck("31", "custcd,custnm", "", "ipt_amt", "", "", "name");
- break;
- default :
- return;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setFocus("ipt_amt");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_custcd" ref="/root/main/grnt/grntlist1/custcode" class="input_essential" navindex="-1" editable="false" style="left:450px; top:55px; width:56px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/main/grnt/grntlist1/custcode") != ""){
- if (submit("TRRAD01502")){
- model.setValue("/root/main/grnt/grntlist1/custnm", model.getValue("/root/custinfo/custlist/custnm"));
- model.refresh();
- }
- }else{
- model.setValue("/root/send/paydedu/custnm", "");
- }
- ]]>
- </script>
- </input>
- <button id="btn_custcd" class="icon_search" disabled="true" navindex="-1" style="left:510px; top:57px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp("14", ipt_custcd, "custcode,custnm", "", "");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:45px; top:85px; width:86px; height:17px; ">은행코드 :</caption>
- <select1 id="cmb_bankcd" ref="/root/main/grnt/grntlist1/custbankno" navindex="4" appearance="minimal" style="left:140px; top:85px; width:160px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:45px; top:115px; width:86px; height:17px; ">상대계정 :</caption>
- <button id="button1" class="icon_search" navindex="-1" style="left:305px; top:118px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/hidden/projectidlist");
- fOpenPopupHelp("05", ipt_acntcd, "cdacnt,acntnm", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
- //fAcntSelect();
- //fCheckServAcnt();
- model.setValue("/root/main/grnt/grntlist1/cdbojo1", "");
- model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/main/grnt/grntlist1/cdacnt"));
- submit("TRRAD01701");
- //addComboItem("combo2","","","above");
- model.refresh();
- //ipt_amt.dispatch("xforms-value-changed");
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/main/grnt/grntlist1/cdacnt" navindex="7" appearance="minimal" editmode="inputsearch" style="left:140px; top:115px; width:160px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/combo3/acntcmb">
- <label ref="acntnm"/>
- <value ref="acntcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/grnt/grntlist1/cdbojo1", "");
- model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/main/grnt/grntlist1/cdacnt"));
- submit("TRRAD01701");
- //addComboItem("combo2","","","above");
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_slipyn" ref="/root/send/paydedu/slipyn" navindex="-1" visibility="hidden" style="left:1055px; top:70px; width:35px; height:19px; "/>
- <select1 id="combo2" ref="/root/main/grnt/grntlist1/cdbojo1" navindex="8" appearance="minimal" editmode="inputsearch" style="left:450px; top:115px; width:220px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/combo4/acntcmb">
- <label ref="bojonm"/>
- <value ref="bojocd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:345px; top:115px; width:99px; height:17px; ">보조 과목 :</caption>
- <caption id="caption10" class="search_name" style="left:345px; top:85px; width:99px; height:17px; ">계좌 번호 :</caption>
- <input id="input2" ref="/root/main/grnt/grntlist1/kyejwano" navindex="5" style="left:450px; top:85px; width:220px; height:19px; "/>
- <caption id="caption11" class="search_name" style="left:720px; top:85px; width:79px; height:17px; ">예금주 :</caption>
- <input id="input3" ref="/root/main/grnt/grntlist1/yekeumju" navindex="6" style="left:800px; top:85px; width:220px; height:19px; "/>
- <caption id="caption12" class="search_name" style="left:45px; top:145px; width:91px; height:17px; ">작 성 일 :</caption>
- <input id="input4" ref="/root/main/grnt/grntlist1/ymdwrite" class="input_s_essential" navindex="9" inputtype="date" style="left:140px; top:145px; width:120px; height:19px; text-align:center; "/>
- <input id="input5" ref="/root/main/grnt/grntlist1/seqwrite" disabled="true" editable="false" style="left:270px; top:145px; width:55px; height:19px; text-align:center; "/>
- <caption id="caption13" class="search_name" style="left:345px; top:145px; width:99px; height:17px; ">지 급 일 :</caption>
- <input id="input6" ref="/root/main/grnt/grntlist1/ymdacnt" class="input_s_essential" navindex="10" inputtype="date" style="left:450px; top:145px; width:120px; height:19px; text-align:center; "/>
- <caption id="caption14" class="search_name" style="left:720px; top:145px; width:99px; height:17px; ">세금계산서 :</caption>
- <input id="input7" ref="/root/main/grnt/grntlist1/ymdaction" class="input_s_essential" navindex="11" inputtype="date" style="left:825px; top:145px; width:120px; height:19px; text-align:center; "/>
- <caption id="caption15" class="search_name" style="left:45px; top:175px; width:91px; height:17px; ">적 요 :</caption>
- <input id="input8" ref="/root/main/grnt/grntlist1/rmrk" navindex="12" style="left:140px; top:175px; width:880px; height:19px; "/>
- </group>
- <caption id="caption24" class="search_name" style="left:245px; top:18px; width:86px; height:17px; ">계약일자 :</caption>
- <input id="input17" ref="/root/send/paydedu/kydate" class="input_s_essential" navindex="1" inputtype="date" style="left:335px; top:17px; width:120px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/paydedu/kydate") != "" && model.getValue("") != "/root/send/paydedu/kyseq"){
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption25" class="search_name" style="left:495px; top:18px; width:86px; height:17px; ">계약번호 :</caption>
- <input id="input18" ref="/root/send/paydedu/kyseq" navindex="2" format="99999" style="left:585px; top:17px; width:75px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/paydedu/kydate") != "" && model.getValue("") != "/root/send/paydedu/kyseq"){
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" disabled="true" style="left:1139px; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/grnt/grntlist1/ymdwrite") == ""){
- messageBox("작성일은 필수 입력항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/main/grnt/grntlist1/ymdacnt") == ""){
- messageBox("지급일은 필수 선택항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/main/grnt/grntlist1/acctid") == ""){
- messageBox("계정과목은 필수 선택항목입니다.", "E999", "");
- return;
- }
- model.copyNode("/root/send/save/grntlist1", "/root/main/grnt/grntlist1");
- //model.copyNode("/root/send/save/grntlist2", "/root/main/grnt/grntlist2");
- if (submit("TXRAD02301")){
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </button>
- <button id="button35" class="btn4_letter3" style="left:1069px; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/grnt/grntlist1");
- group3.disabled = true;
- btn_save.disabled = true;
- initialize();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|