123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756 |
- <?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>구매건대금지급(신)</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <grnt>
- <grntlist2>
- <kykey/>
- <custcode/>
- <custnm/>
- <rmrk/>
- <keumak/>
- <amtgive/>
- <flagwrite/>
- <flagseq/>
- <custgrade/>
- <custdesc/>
- <ymdgive/>
- <flagbank/>
- <custbankno/>
- <kyejwano/>
- <yekeumju/>
- <ymdwrite/>
- <sekeumdate/>
- <cdacntgive/>
- <kydate/>
- <kyseq/>
- <newgb/>
- </grntlist2>
- </grnt>
- </main>
- <send>
- <paydedu>
- <instcd/>
- <emplno/>
- <emplnm/>
- <acntcd/>
- <cnt/>
- <amt1/>
- <entrregno/>
- <bugtflag/>
- <pumgubun/>
- <deptcd/>
- <usedate/>
- <pumno/>
- <pumno1/>
- <pumno2/>
- <hyubdate/>
- <ymdwrite/>
- <newgb/>
- <ymdgive/>
- <cdbojo1give/>
- <tpbojo/>
- <flagseq/>
- <slipyn/>
- <custcode/>
- <custnm/>
- <kyno/>
- <totamt/>
- </paydedu>
- <save>
- <grntlist1/>
- </save>
- </send>
- <send1>
- <yekeumju/>
- <kyejwano/>
- </send1>
- <custinfo>
- <custlist>
- <aactno/>
- <bankcd/>
- <depor/>
- <custnm/>
- </custlist>
- </custinfo>
- <bugtinfo>
- <bugtlist>
- <bugtamt/>
- <bugtexecamt/>
- <bugtjanamt/>
- </bugtlist>
- </bugtinfo>
- <seqinfo>
- <seqlist>
- <flagseq/>
- </seqlist>
- </seqinfo>
- <init>
- <combo1>
- <deptcdcmb>
- <deptcd/>
- <deptnm/>
- </deptcdcmb>
- </combo1>
- <combo2>
- <acntcmb>
- <acntcd/>
- <acntnm/>
- </acntcmb>
- </combo2>
- <combo3>
- <acntcmb>
- <acntcd/>
- <acntnm/>
- </acntcmb>
- </combo3>
- <combo4>
- <acntcmb>
- <bojocd/>
- <bojonm/>
- </acntcmb>
- </combo4>
- </init>
- <popdata>
- <junpyodate/>
- <makedeptcd/>
- <yogudeptcd/>
- <pumgubun/>
- </popdata>
- <hidden>
- <item>
- <pumno/>
- </item>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- initialize();
- //model.setFocus("input2");
- ]]>
- </script>
- <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="TRRAD01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo4"/>
- <submission id="TRRAD02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/seqinfo"/>
- <submission id="TRRAD02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
- <submission id="TXRAD02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
- <submission id="TXRAD02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" 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[
- var bankcd = "";
- var yekeumju = "";
- var kyejwano = "";
- 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(){
- misfGridInit(grd_grntpsn1);
- misfMsterDetailSet(grd_grntpsn1,null, "TRRAD02202" ,"Y");
-
- 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/hyubdate", curdate);
- model.setValue("/root/send/paydedu/ymdwrite", curdate);
- model.setValue("/root/send/paydedu/acntcd", "11110200");
- //model.setValue("/root/send/paydedu/pumgubun", "3");
- model.setValue("/root/send/paydedu/bugtflag", "2");
- model.setValue("/root/send/paydedu/tpbojo", "1");
- model.setValue("/root/send/paydedu/cdbojo1give", "1113");
- model.setValue("/root/send/paydedu/newgb", "I");
- model.setValue("/root/send/paydedu/slipyn", "Y");
- //misfComboComCdListMulti("R0001","grd_grntpsn1.bankcd");
- misfComboComCdListMulti("R0001","grd_grntpsn1.custbankno");
- //submit("TRRAD01503");
- button1.disabled = false;
- button2.disabled = false;
- submit("TRRAD01504");
- submit("TRRAD01701");
-
- 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");
- }
- }
- function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName, pRetrKind)
- {
- 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, pRetrKind);
- model.refresh();
-
- if (pNextIndex != "") {
- model.setFocus(pNextIndex);
- }
- }
- }
- ]]>
- </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:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" visibility="hidden" style="left:1136px; top:31px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
- grd_grntpsn1.row = 0;
- //model.setFocus("input2");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" visibility="hidden" style="x1:1131px; y1:16px; x2:1131px; y2:68px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:1192px; y2:96px; "/>
- <select1 id="cmb_instcd" ref="/root/send/paydedu/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:78px; top:17px; width:115px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:12px; top:18px; width:61px; height:17px; ">기관 :</caption>
- <datagrid id="grd_grntpsn1" nodeset="/root/main/grnt/grntlist2" caption="계약번호^거래처^거래처^내역^대상금액^지급금액^전표^전표^제외^제외^지급일자^지급처^은행^계좌번호^예금주^caption1^caption2^caption3^caption4^caption5^caption6" colsep="^" colwidth="103, 46, 117, 248, 118, 111, 31, 36, 33, 54, 100, 98, 87, 128, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:102px; width:1192px; height:640px; ">
- <col ref="kykey" style="text-align:center; "/>
- <col ref="custcode"/>
- <col ref="custnm"/>
- <col ref="rmrk"/>
- <col ref="keumak" format="(-)#,###" style="text-align:right; "/>
- <col ref="amtgive" type="input" format="(-)#,###" style="text-align:right; "/>
- <col checkvalue="Y,N" disabled="true" ref="flagwrite" type="checkbox"/>
- <col ref="flagseq" style="text-align:center; "/>
- <col checkvalue="1,0" ref="custgrade" type="checkbox"/>
- <col ref="custdesc"/>
- <col ref="ymdgive" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="flagbank" type="combo">
- <choices>
- <item>
- <label>은행</label>
- <value>1</value>
- </item>
- <item>
- <label>직불</label>
- <value>2</value>
- </item>
- <item>
- <label>자동</label>
- <value>3</value>
- </item>
- <item>
- <label>전자</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col editmode="search" ref="custbankno" type="combo">
- <col ref="timsamtflag" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- </col>
- <col ref="kyejwano" type="input"/>
- <col ref="yekeumju" type="input"/>
- <col ref="ymdwrite" visibility="hidden"/>
- <col ref="sekeumdate" visibility="hidden"/>
- <col ref="cdacntgive" visibility="hidden"/>
- <col ref="kydate" visibility="hidden"/>
- <col ref="kyseq" visibility="hidden"/>
- <col ref="newgb" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "flagwrite" && model.getValue("/root/send/paydedu/newgb") == "I") {
- var flagwrite = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagwrite");
- if (flagwrite == "Y"){
- if (model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/custgrade") == "1"){
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagwrite", "N");
- grd_grntpsn1.rowStatus(grd_grntpsn1.row) = 0;
- messageBox("지급중지된 업체입니다.", "E999", "");
- return;
- }
- var seq = model.getValue("/root/send/paydedu/flagseq");
- if (isNaN(seq) || seq == null || seq == ""){
- seq = 0;
- }
- seq = parseInt(seq) + 1;
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagseq", seq);
- model.setValue("/root/send/paydedu/flagseq", seq);
- }else{
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagseq", "");
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/ymdgive", "");
- }
- model.refresh();
- }
- //model.setFocus("input2");
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "custbankno"){
- bankcd = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/custbankno");
- yekeumju = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/yekeumju");
- kyejwano = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/kyejwano");
- if (bankcd == "04" && yekeumju != "경북대학교병원"){
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/yekeumju", "경북대학교병원");
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/kyejwano", "716-01-234030");
- model.setValue("/root/send1/yekeumju", yekeumju);
- model.setValue("/root/send1/kyejwano", kyejwano);
- }else if (bankcd == "04" && yekeumju == "경북대학교병원"){
- yekeumju = model.getValue("/root/send1/yekeumju");
- kyejwano = model.getValue("/root/send1/kyejwano");
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/yekeumju", yekeumju);
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/kyejwano", kyejwano);
- }
- grd_grntpsn1.rowStatus(grd_grntpsn1.row) = 2;
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_grntpsn1.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <input id="ipt_unsldd" ref="/root/send/paydedu/hyubdate" class="input_s_essential" navindex="1" inputtype="date" style="left:300px; top:44px; width:115px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/junpyodate", model.getValue("/root/main/grnt/grntlist1/junpyodate"));
- }
- model.refresh();
- */
- //model.setFocus("input2");
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:200px; top:45px; width:99px; height:17px; ">세금계산서 :</caption>
- <input id="input17" ref="/root/send/paydedu/ymdwrite" class="input_s_essential" navindex="1" inputtype="date" style="left:530px; top:44px; width:110px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/junpyodate", model.getValue("/root/main/grnt/grntlist1/junpyodate"));
- }
- model.refresh();
- */
- //model.setFocus("input2");
- ]]>
- </script>
- </input>
- <caption id="caption24" class="search_name" style="left:440px; top:45px; width:86px; height:17px; ">작성일자 :</caption>
- <caption id="caption25" class="search_name" style="left:200px; top:18px; width:96px; height:17px; ">지급 계정 :</caption>
- <select1 id="ipt_acntcd" ref="/root/send/paydedu/acntcd" appearance="minimal" style="left:300px; top:17px; width:115px; 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");
- //model.setFocus("input2");
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="tit_2" style="left:5px; top:81px; width:131px; height:14px; ">구매지급대상내역</caption>
- <select1 id="radio1" ref="/root/send/paydedu/newgb" overflow="visible" appearance="full" cols="2" style="left:905px; top:45px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>신규</label>
- <value>I</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/paydedu/newgb") == "I"){
- var ymd = model.getValue("/root/send/paydedu/hyubdate");
- var ymd1 = model.getValue("/root/send/paydedu/ymdwrite");
- var ymd2 = model.getValue("/root/send/paydedu/ymdgive");
- var acntcd = model.getValue("/root/send/paydedu/acntcd");
- var bojocd = model.getValue("/root/send/paydedu/cdbojo1give");
- if (ymd == ""){
- messageBox("세금계산서일자를 입력한 후 처리하시기 바랍니다.", "E999", "");
- return;
- }
- if (ymd1 == ""){
- messageBox("작성일자를 입력한 후 처리하시기 바랍니다.", "E999", "");
- return;
- }
- if (ymd2 == ""){
- messageBox("지급일자를 입력한 후 처리하시기 바랍니다.", "E999", "");
- return;
- }
- if (acntcd == ""){
- messageBox("지급계정을 선택한 후 처리하시기 바랍니다.", "E999", "");
- return;
- }
- if (bojocd == ""){
- messageBox("지급계좌를 선택한 후 처리하시기 바랍니다.", "E999", "");
- return;
- }
- if (submit("TXRAD02202")){
- if(submit("TRRAD02103")){
- var seq = model.getValue("/root/seqinfo/seqlist/flagseq");
- if (isNaN(seq) || seq == null || seq == ""){
- seq = 0;
- }
- model.setValue("/root/send/paydedu/flagseq", seq);
- }
- btn_search.dispatch("DOMActivate");
- }
- button1.disabled = false;
- }else if (model.getValue("/root/send/paydedu/newgb") == "U"){
- btn_search.dispatch("DOMActivate");
- button1.disabled = true;
- }
- //model.setFocus("input2");
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:440px; top:18px; width:86px; height:17px; ">지급계좌 :</caption>
- <select1 id="combo1" ref="/root/send/paydedu/cdbojo1give" appearance="minimal" style="left:530px; top:17px; width:220px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/combo4/acntcmb">
- <label ref="bojonm"/>
- <value ref="bojocd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:650px; top:45px; width:86px; height:17px; ">지급일자 :</caption>
- <input id="input1" ref="/root/send/paydedu/ymdgive" class="input_s_essential" navindex="1" inputtype="date" style="left:740px; top:44px; width:110px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- radio1.dispatch("xforms-value-changed");
- //model.setFocus("input2");
- //submit("TRRAD02103");
- /*
- var seq = model.getValue("/root/seqinfo/seqlist/flagseq");
- if (isNaN(seq) || seq == null || seq == ""){
- seq = 0;
- }
- model.setValue("/root/send/paydedu/flagseq", seq);
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/ymdgive", model.getValue("/root/main/grnt/grntlist1/ymdgive"));
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/flagseq", "");
- }
- model.refresh();
- */
- ]]>
- </script>
- </input>
- <output id="output1" ref="/root/send/paydedu/flagseq" style="left:858px; top:44px; width:40px; height:19px; font-weight:bold; "/>
- <button id="btn_acntcd" class="icon_search" navindex="-1" style="left:420px; top:20px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/hidden/projectidlist");
- fOpenPopupHelp("05", ipt_acntcd, "acntcd,acntnm", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
- //fAcntSelect();
- //fCheckServAcnt();
- model.setValue("/root/send/paydedu/cdbojo1give", "");
- submit("TRRAD01701");
- //ipt_amt.dispatch("xforms-value-changed");
- ]]>
- </script>
- </button>
- <input id="ipt_slipyn" ref="/root/send/paydedu/slipyn" navindex="-1" visibility="hidden" style="left:1055px; top:70px; width:35px; height:19px; "/>
- <caption id="caption7" class="search_name" style="left:760px; top:18px; width:76px; height:17px; ">거래처 :</caption>
- <input id="ipt_custnm" ref="/root/send/paydedu/custnm" class="input_essential" imemode="hangul" style="left:920px; top:17px; width:160px; 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/send/paydedu/custcode" class="input_essential" navindex="-1" style="left:840px; top:17px; width:56px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/paydedu/custcode") != ""){
- if (submit("TRRAD01502")){
- model.setValue("/root/send/paydedu/custnm", model.getValue("/root/custinfo/custlist/custnm"));
- model.refresh();
- }
- }else{
- model.setValue("/root/send/paydedu/custnm", "");
- }
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_custcd" class="icon_search" navindex="-1" style="left:900px; top:19px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp("14", ipt_custcd, "custcode,custnm", "", "");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/send/paydedu/kyno" visibility="hidden" style="left:540px; top:70px; width:130px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var kyno = model.getValue("/root/send/paydedu/kyno");
- var irow = grd_grntpsn1.findRow(kyno, 1, grd_grntpsn1.colRef("kykey"), false, false);
- if (irow > 0){
- if (model.getValue("/root/main/grnt/grntlist2[" + irow + "]/flagwrite") == "N"){
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/flagwrite", "Y");
- grd_grntpsn1.row = irow;
- grd_grntpsn1.topRow = irow;
- if (model.getValue("/root/send/paydedu/newgb") == "I") {
- var flagwrite = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagwrite");
- if (flagwrite == "Y"){
- if (model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/custgrade") == "1"){
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagwrite", "N");
- grd_grntpsn1.rowStatus(grd_grntpsn1.row) = 0;
- messageBox("지급중지된 업체입니다.", "E999", "");
- return;
- }
- var seq = model.getValue("/root/send/paydedu/flagseq");
- if (isNaN(seq) || seq == null || seq == ""){
- seq = 0;
- }
- seq = parseInt(seq) + 1;
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagseq", seq);
- model.setValue("/root/send/paydedu/flagseq", seq);
- }else{
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagseq", "");
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/ymdgive", "");
- }
- }
- model.refresh();
- }
- }
- //model.setFocus("input2");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("input2", "xforms-value-changed");
- ]]>
- </script>
- </input>
- <input id="input3" ref="/root/send/paydedu/totamt" format="(-)#,###" style="left:915px; top:76px; width:120px; height:19px; font-weight:bold; text-align:right; "/>
- <button id="button1" class="btn2_letter4" style="left:1000px; top:45px; width:64px; height:19px; ">
- <caption>지출결정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var totamt = 0;
- var flagwrite = "";
- var flagseq = "";
- var chk = "";
- var grade = "";
- var ymd = model.getValue("/root/send/paydedu/ymdgive");
- var ymd1 = "";
- var kykey = "";
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- flagwrite = model.getValue("/root/main/grnt/grntlist2[" + i + "]/flagwrite");
- flagseq = model.getValue("/root/main/grnt/grntlist2[" + i + "]/flagseq");
- grade = model.getValue("/root/main/grnt/grntlist2[" + i + "]/custgrade");
- ymd1 = model.getValue("/root/main/grnt/grntlist2[" + i + "]/ymdgive");
- kykey = model.getValue("/root/main/grnt/grntlist2[" + i + "]/kykey");
- if (flagwrite == "Y" && flagseq != ""){
- continue;
- }
- if (grade == "1"){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/custgrade", "1");
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/custdesc", "중지");
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/flagwrite", "N");
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/flagseq", "");
- grd_grntpsn1.rowStatus(i) = 0;
- continue;
- }
- if (ymd != ymd1){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/custgrade", "1");
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/custdesc", "일자");
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/flagwrite", "N");
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/flagseq", "");
- grd_grntpsn1.rowStatus(i) = 0;
- continue;
- }
- var seq = model.getValue("/root/send/paydedu/flagseq");
- if (isNaN(seq) || seq == null || seq == ""){
- seq = 0;
- }
- seq = parseInt(seq) + 1;
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/flagseq", seq);
- model.setValue("/root/send/paydedu/flagseq", seq);
- totamt = parseFloat(totamt) + parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/amtgive"));
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/flagwrite", "Y");
- grd_grntpsn1.rowStatus(i) = 2;
- var ii = parseInt(i) + 1;
- var irow = grd_grntpsn1.findRow(kykey, ii, grd_grntpsn1.colRef("kykey"), false, false);
- if (irow > 0){
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/flagseq", seq);
- totamt = parseFloat(totamt) + parseFloat(model.getValue("/root/main/grnt/grntlist2[" + irow + "]/amtgive"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/flagwrite", "Y");
- grd_grntpsn1.rowStatus(irow) = 2;
- }
- }
- model.setValue("/root/send/paydedu/totamt", totamt);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter4" style="left:1065px; top:45px; width:64px; height:19px; ">
- <caption>지출취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- if (model.getValue("/root/main/grnt/grntlist2[" + i + "]/flagwrite") == "Y"){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/flagseq", "");
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/flagwrite", "N");
- if (model.getValue("/root/send/paydedu/newgb") == "I"){
- grd_grntpsn1.rowStatus(i) = 0;
- }else{
- grd_grntpsn1.rowStatus(i) = 2;
- }
- }
- }
- model.setValue("/root/send/paydedu/totamt", "");
- if(submit("TRRAD02103")){
- var seq = model.getValue("/root/seqinfo/seqlist/flagseq");
- if (isNaN(seq) || seq == null || seq == ""){
- seq = 0;
- }
- model.setValue("/root/send/paydedu/flagseq", seq);
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (misfSave("TXRAD02101")){
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </button>
- <button id="button35" class="btn4_letter3" visibility="hidden" 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 = false;
- grd_grntpsn1.disabled = false;
- ipt_unsldd.disabled = false;
- ipt_costcntrdeptcd.disabled = false;
- combo1.disabled = false;
- input4.disabled = false;
- input14.disabled = true;
- input15.disabled = true;
- input10.disabled = true;
- model.setValue("/root/send/paydedu/pumno1", "");
- model.setValue("/root/send/paydedu/pumno2", "");
- initialize();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="button3" class="btn2_letter3" visibility="hidden" style="left:1010px; top:5px; width:53px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( messageBox("출력하시겠습니까" , "Q99" ) == 6 ){
- exeReportPreview("RPRAD01501", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true","","","","","","","","false");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|