123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488 |
- <?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>
- <unsllist>
- <instcd/>
- <selchk/>
- <slipdt/>
- <slipno/>
- <unslwrit/>
- <usernm/>
- <unsldt/>
- <unslno/>
- <slipflag/>
- <checkyn/>
- <slipkind/>
- <slipdeptcd/>
- <slipdeptnm/>
- <etcnotefact/>
- </unsllist>
- <apsllist>
- <instcd/>
- <slipdt/>
- <slipno/>
- <unslwrit/>
- <usernm/>
- <unsldt/>
- <unslno/>
- <slipflag/>
- <checkyn/>
- <slipkind/>
- <slipdeptcd/>
- <slipdeptnm/>
- <etcnotefact/>
- </apsllist>
- <unsllistinfo>
- <slipseqno/>
- <acntcd/>
- <acntnm/>
- <custnm/>
- <etcnotefact/>
- <dramt/>
- <cramt/>
- <amt/>
- <drcrflag/>
- <suppitemcd/>
- <custflag/>
- <custcd/>
- <notefactspec1/>
- <notefactspec2/>
- <notefactspec3/>
- <notefactspec4/>
- <notefactspec5/>
- <notefactspec6/>
- <slipdt/>
- <slipno/>
- <instcd/>
- <slipdd/>
- <profflag/>
- <custbalyn/>
- <defrayreqdd/>
- </unsllistinfo>
- <apsllistinfo>
- <slipseqno/>
- <acntcd/>
- <acntnm/>
- <custnm/>
- <etcnotefact/>
- <dramt/>
- <cramt/>
- <amt/>
- <drcrflag/>
- <suppitemcd/>
- <custflag/>
- <custcd/>
- <notefactspec1/>
- <notefactspec2/>
- <notefactspec3/>
- <notefactspec4/>
- <notefactspec5/>
- <notefactspec6/>
- <slipdt/>
- <slipno/>
- <instcd/>
- <profflag/>
- <custbalyn/>
- <defrayreqdd/>
- </apsllistinfo>
- <acntyylist>
- <frdd/>
- <todd/>
- </acntyylist>
- </main>
- <send>
- <data1>
- <instcd/>
- <ddkind/>
- <slipfr/>
- <slipto/>
- <slipkind/>
- <checkyn/>
- <slipdeptcd/>
- <slipgubn/>
- <framt/>
- <toamt/>
- <unslno/>
- </data1>
- <data2>
- <instcd/>
- <slipdt/>
- <slipno/>
- </data2>
- <data3>
- <instcd/>
- <unsldd/>
- <unslno/>
- <sanctyn/>
- <refreshyn/>
- </data3>
- <data4>
- <chkacntyy/>
- </data4>
- <unsllistinfo/>
- <apsllistinfo/>
- <data5>
- <status/>
- <instcd/>
- <unsldd/>
- <unslno/>
- <checkyn/>
- <slipstatus/>
- </data5>
- <condition>
- <instcd/>
- <unsldd/>
- <unslno/>
- </condition>
- </send>
- <hidden>
- <condition>
- <ddkind>wd</ddkind>
- <slipfr/>
- <slipto/>
- <slipgubn>R</slipgubn>
- <slipkind/>
- <slipdeptcd/>
- <slipdeptnm/>
- <slipdt/>
- <instcd/>
- <framt/>
- <toamt/>
- <unslno/>
- <checkyn/>
- <drawseqno>1</drawseqno>
- </condition>
- <unsl>
- <drsum/>
- <crsum/>
- <totdrsum/>
- <totcrsum/>
- </unsl>
- <apsl>
- <drsum/>
- <crsum/>
- <totdrsum/>
- <totcrsum/>
- </apsl>
- <maxdrawcnt>
- <maxdrawcnt/>
- </maxdrawcnt>
- <drawrestriction/>
- </hidden>
- <temp/>
- </root>
- </instance>
- <submission id="TRRAD00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/unsllist"/>
- <submission id="TRRAD00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/apsllist"/>
- <submission id="TRRAD00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/unsllistinfo"/>
- <submission id="TRRAD00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/apsllistinfo"/>
- <submission id="TXRAD00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/unsllistinfo" resultref="/root/temp"/>
- <submission id="TXRAD00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/apsllistinfo" resultref="/root/temp"/>
- <submission id="TXRAD00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/temp"/>
- <bind id="bind_cpt_apdrsum" ref="/root/hidden/apsl/drsum" calculate="sum(/root/main/apsllistinfo/dramt)"/>
- <bind id="bind_cpt_apcrsum" ref="/root/hidden/apsl/crsum" calculate="sum(/root/main/apsllistinfo/cramt)"/>
- <bind id="bind_cpt_undrsum" ref="/root/hidden/unsl/drsum" calculate="sum(/root/main/unsllistinfo/dramt)"/>
- <bind id="bind_cpt_uncrsum" ref="/root/hidden/unsl/crsum" calculate="sum(/root/main/unsllistinfo/cramt)"/>
- <bind id="bind1" ref="/root/hidden/apsl/totdrsum" calculate="sum(/root/main/apsllist/dramt)"/>
- <bind id="bind2" ref="/root/hidden/apsl/totcrsum" calculate="sum(/root/main/apsllist/cramt)"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fCheckAuth();
- fInitialize();
- ]]>
- </script>
- <submission id="TRRAD00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data4/chkacntyy" resultref="/root/main/acntyylist"/>
- <submission id="TXRAD00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/unsllistinfo" resultref="/root/temp"/>
- <submission id="TXRAD00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" resultref="/root/temp"/>
- <submission id="TRRAD00206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/condition" resultref="/root/hidden/maxdrawcnt"/>
- </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/acntcommonweb/js/RAD001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //초기화
- //========================================================================================
- function fInitialize() {
- var sToday = getCurrentDate().toString();
-
- model.removenode("/root/main/unsllist");
- model.removenode("/root/main/unsllistinfo");
- model.removenode("/root/main/apsllist");
- model.removenode("/root/main/apsllistinfo");
- model.refresh();
-
- model.setValue("/root/hidden/condition/slipfr", sToday);
- model.setValue("/root/hidden/condition/slipto", sToday);
- model.setValue("/root/hidden/condition/slipdt", sToday);
-
- if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition7') == "Y")
- {
- misfComboComCdList("R0360", rdo_slipkind, "Y");
- }
- else
- {
- misfComboComCdList("R0359", rdo_slipkind, "Y");
- }
-
- fbtnSetting();
- fCheckAcountClose();
-
- if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition9') == "Y")
- {
- model.setValue("/root/hidden/drawrestriction", "Y");
-
- ipt_drawseqno.disabled = true;
- btn_pre.disabled = true;
- btn_next.disabled = true;
- }
- else
- {
- model.setValue("/root/hidden/drawrestriction", "N");
- }
-
- model.setValue("/root/hidden/condition/instcd", getUserInfo("dutplceinstcd"));
- model.refresh();
- }
-
- //========================================================================================
- //화면 권한 체크
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- //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);
- }
- }
-
- //========================================================================================
- //회계 마감 Check
- //========================================================================================
- function fCheckAcountClose()
- {
- if(radfcheckAcountClose(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/slipdt")) == 'close')
- {
- btn_allreq.disabled = true;
- btn_req.disabled = true;
-
- btn_allaprv.disabled = true;
-
- btn_aprv.disabled = true;
- ipt_drawseqno.disabled = true;
- btn_pre.disabled = true;
-
- btn_next.disabled = true;
- btn_reqcanceal.disabled = true;
-
- btn_aprvcanceal.disabled = true;
- }
- }
-
- //========================================================================================
- //버튼 setting
- //========================================================================================
- function fbtnSetting()
- {
- var gubn = model.getValue("/root/hidden/condition/slipgubn");
-
- if (gubn == "U") {
- model.removeNodeset("/root/main/apsllist");
- model.removeNodeset("/root/main/apsllistinfo");
- //caption5.attribute("text") = "작성일자";
- caption35.attribute("text") = "미승인전표 목록";
-
-
- btn_allreq.visible = true;
- btn_req.visible = true;
-
- btn_allaprv.visible = false;
- btn_aprv.visible = false;
- ipt_drawseqno.visible = false;
- btn_pre.visible = false;
- btn_next.visible = false;
- btn_reqcanceal.visible = false;
-
- btn_aprvcanceal.visible = false;
-
-
- grd_unsllist.visible = true;
- grd_unsllistinfo.visible = true;
- grd_apsllist.visible = false;
- grd_apsllistinfo.visible = false;
-
- cpt_undrsum.visible = true;
- cpt_uncrsum.visible = true;
- cpt_apdrsum.visible = false;
- cpt_apcrsum.visible = false;
-
- cpt_totundrsum.visible = true;
- cpt_totuncrsum.visible = true;
- cpt_totapdrsum.visible = false;
- cpt_totapcrsum.visible = false;
-
- cap_slipdt.value = "전표승인요청일자";
-
- // grd_unsllist.colHidden(grd_unsllist.colRef("aprvreqdd")) = true;
- // sColWidth = "0, 30, 66, 65, 0, 0, 66, 0, 0, 60, 0, 0, 110, 0";
- //
- // var arrColWidth = sColWidth.split(",");
- // for(var i=0; i<arrColWidth.length; i++)
- // {
- // grd_unsllist.colWidth(i+1) = parseFloat(arrColWidth[i]);
- // }
-
- btn_search.dispatch("DOMActivate");
- model.removeNodeset("/root/main/unsllistinfo");
- model.refresh();
- }
- else if(gubn == "R") {
- model.removeNodeset("/root/main/apsllist");
- model.removeNodeset("/root/main/apsllistinfo");
- //caption5.attribute("text") = "승인요청일자";
- caption35.attribute("text") = "미승인전표 목록";
-
-
- btn_allreq.visible = false;
- btn_req.visible = false;
-
- btn_allaprv.visible = true;
- btn_aprv.visible = true;
- ipt_drawseqno.visible = true;
- btn_pre.visible = true;
- btn_next.visible = true;
- btn_reqcanceal.visible = true;
-
- btn_aprvcanceal.visible = false;
-
-
- grd_unsllist.visible = true;
- grd_unsllistinfo.visible = true;
- grd_apsllist.visible = false;
- grd_apsllistinfo.visible = false;
-
- cpt_undrsum.visible = true;
- cpt_uncrsum.visible = true;
- cpt_apdrsum.visible = false;
- cpt_apcrsum.visible = false;
-
- cpt_totundrsum.visible = true;
- cpt_totuncrsum.visible = true;
- cpt_totapdrsum.visible = false;
- cpt_totapcrsum.visible = false;
-
- cap_slipdt.value = "전표승인일자";
-
- // grd_unsllist.colHidden(grd_unsllist.colRef("aprvreqdd")) = false;
- // sColWidth = "0, 30, 66, 55, 0, 66, 50, 0, 0, 55, 0, 0, 125, 0";
- //
- // var arrColWidth = sColWidth.split(",");
- // for(var i=0; i<arrColWidth.length; i++)
- // {
- // grd_unsllist.colWidth(i+1) = parseFloat(arrColWidth[i]);
- // }
- // 출금번호 예외처리
- ipt_slipdt.dispatch("xforms-value-changed");
-
- btn_search.dispatch("DOMActivate");
- model.removeNodeset("/root/main/unsllistinfo");
- model.refresh();
- }
- else
- {
- model.removeNodeset("/root/main/unsllist");
- model.removeNodeset("/root/main/unsllistinfo");
- //caption5.attribute("text") = "승인일자";
- caption35.attribute("text") = "승인전표 목록";
-
-
- btn_allreq.visible = false;
- btn_req.visible = false;
-
- btn_allaprv.visible = false;
- btn_aprv.visible = false;
- ipt_drawseqno.visible = false;
- btn_pre.visible = false;
- btn_next.visible = false;
- btn_reqcanceal.visible = false;
-
- btn_aprvcanceal.visible = true;
-
-
- grd_unsllist.visible = false;
- grd_unsllistinfo.visible = false;
- grd_apsllist.visible = true;
- grd_apsllistinfo.visible = true;
-
- cpt_undrsum.visible = false;
- cpt_uncrsum.visible = false;
- cpt_apdrsum.visible = true;
- cpt_apcrsum.visible = true;
-
- cpt_totundrsum.visible = false;
- cpt_totuncrsum.visible = false;
- cpt_totapdrsum.visible = true;
- cpt_totapcrsum.visible = true;
-
- cap_slipdt.value = "전표승인일자";
-
- btn_search.dispatch("DOMActivate");
- model.removeNodeset("/root/main/apsllistinfo");
- model.refresh();
- }
- }
-
- //========================================================================================
- //날짜 형식 CHECK
- //========================================================================================
- function fCheckDate()
- {
- if(ipt_slipdt.value.length != 8)
- {
- messageBox("날짜 형식이 올바르지 않습니다.","I000");
- return false;
- }
- return true;
- }
-
- //========================================================================================
- //CHECK 금액 합산
- //========================================================================================
- function fSumCheckAmt()
- {
- var vSumDrAmt = 0;
- var vSumCrAmt = 0;
-
- for(var i = grd_unsllist.fixedRows ; i < grd_unsllist.rows ; i++)
- {
- if(grd_unsllist.valueMatrix(i, grd_unsllist.colRef("selchk")) == "Y")
- {
- vSumDrAmt = vSumDrAmt + parseFloat(grd_unsllist.valueMatrix(i, grd_unsllist.colRef("dramt")));
- vSumCrAmt = vSumCrAmt + parseFloat(grd_unsllist.valueMatrix(i, grd_unsllist.colRef("cramt")));
- }
- }
-
- cpt_totundrsum.value = vSumDrAmt;
- cpt_totuncrsum.value = vSumCrAmt;
- cpt_totundrsum.refresh();
- cpt_totuncrsum.refresh();
- }
-
- //========================================================================================
- //CHECK 금액 합산
- //========================================================================================
- function fSlipCheck(gridlist, slipstatus)
- {
- if(gridlist.isCell(event.target) && gridlist.col == gridlist.colRef("checkyn"))
- {
- var cur_row = gridlist.row;
-
- model.setValue("/root/send/data5/status", "u");
- model.setValue("/root/send/data5/instcd", model.getValue(gridlist.nodeset + "["+cur_row+"]/instcd"));
- model.setValue("/root/send/data5/unsldd", model.getValue(gridlist.nodeset + "["+cur_row+"]/slipdt"));
- model.setValue("/root/send/data5/unslno", model.getValue(gridlist.nodeset + "["+cur_row+"]/slipno"));
- model.setValue("/root/send/data5/checkyn", model.getValue(gridlist.nodeset + "["+cur_row+"]/checkyn"));
- model.setValue("/root/send/data5/slipstatus", slipstatus);
-
- submit("TXRAD00204");
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">전표승인</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13; width:1195px; height:744px; ">
- <datagrid id="grd_apsllistinfo" nodeset="/root/main/apsllistinfo" visibility="hidden" caption="연번^발의부서코드^귀속부서코드^귀속부서명^계정코드^계정과목^상대처^적요^차변금액^대변금액^금액^차/대변구분^보조과목코드^거래처구분^거래처코드^기재사항1^기재사항2^기재사항3^기재사항4^기재사항5^기재사항6^미결전표일자^미결전표번호^기관코드^증빙구분^거래처잔액여부^출금요청일^전표구분" colsep="^" colwidth="48, 0, 0, 0, 71, 152, 80, 155, 92, 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:485px; top:41px; width:710px; height:678px; ">
- <col ref="slipseqno"/>
- <col ref="slipdeptcd"/>
- <col ref="costcntrdeptcd"/>
- <col ref="costcntrdeptnm"/>
- <col ref="acntcd"/>
- <col ref="acntnm"/>
- <col ref="custnm"/>
- <col ref="etcnotefact"/>
- <col ref="dramt" format="(-)#,###" style="text-align:right; "/>
- <col ref="cramt" format="(-)#,###" style="text-align:right; "/>
- <col ref="amt" visibility="hidden"/>
- <col ref="drcrflag" visibility="hidden"/>
- <col ref="suppitemcd" visibility="hidden"/>
- <col ref="custflag" visibility="hidden"/>
- <col ref="custcd" visibility="hidden"/>
- <col ref="notefact1" visibility="hidden"/>
- <col ref="notefact2" visibility="hidden"/>
- <col ref="notefact3" visibility="hidden"/>
- <col ref="notefact4" visibility="hidden"/>
- <col ref="notefact5" visibility="hidden"/>
- <col ref="notefact6" visibility="hidden"/>
- <col ref="slipdt" visibility="hidden"/>
- <col ref="slipno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="profflag" visibility="hidden"/>
- <col ref="custbalyn" visibility="hidden"/>
- <col ref="defrayreqdd" visibility="hidden"/>
- <col ref="slipflag" visibility="hidden"/>
- </datagrid>
- <datagrid id="grd_unsllistinfo" nodeset="/root/main/unsllistinfo" caption="연번^발의부서코드^귀속부서코드^귀속부서명^계정코드^계정과목^상대처^적요^차변금액^대변금액^금액^차/대변구분^보조과목코드^거래처구분^거래처코드^기재사항1^기재사항2^기재사항3^기재사항4^기재사항5^기재사항6^미결전표일자^미결전표번호^기관코드^승인일자^증빙구분^거래처잔액여부^출금요청일^승인요청일^승인요청여부^전표구분^자동분개구분" colsep="^" colwidth="48, 0, 0, 0, 71, 152, 80, 155, 92, 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:485px; top:41px; width:710px; height:678px; ">
- <col ref="slipseqno"/>
- <col ref="slipdeptcd"/>
- <col ref="costcntrdeptcd"/>
- <col ref="costcntrdeptnm"/>
- <col ref="acntcd"/>
- <col ref="acntnm"/>
- <col ref="custnm"/>
- <col ref="etcnotefact"/>
- <col ref="dramt" format="(-)#,###" style="text-align:right; "/>
- <col ref="cramt" format="(-)#,###" style="text-align:right; "/>
- <col ref="amt" visibility="hidden"/>
- <col ref="drcrflag" visibility="hidden"/>
- <col ref="suppitemcd" visibility="hidden"/>
- <col ref="custflag" visibility="hidden"/>
- <col ref="custcd" visibility="hidden"/>
- <col ref="notefact1" visibility="hidden"/>
- <col ref="notefact2" visibility="hidden"/>
- <col ref="notefact3" visibility="hidden"/>
- <col ref="notefact4" visibility="hidden"/>
- <col ref="notefact5" visibility="hidden"/>
- <col ref="notefact6" visibility="hidden"/>
- <col ref="slipdt" visibility="hidden"/>
- <col ref="slipno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="slipdd" visibility="hidden"/>
- <col ref="profflag" visibility="hidden"/>
- <col ref="custbalyn" visibility="hidden"/>
- <col ref="defrayreqdd" visibility="hidden"/>
- <col ref="aprvreqdd" visibility="hidden"/>
- <col ref="aprvreqyn" visibility="hidden"/>
- <col ref="slipflag" visibility="hidden"/>
- <col ref="autjournflag" visibility="hidden"/>
- <col ref="drawseqno" visibility="hidden"/>
- </datagrid>
- <button id="btn_allreq" class="btn2_letter6" disabled="false" style="left:393px; top:125px; width:86px; height:19px; ">
- <caption>일괄승인요청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(radfCheckAcntAuth(getUserInfo("dutplceinstcd"), getUserId(), "slipreqapproval", "Y") != "Y")
- {
- messageBox("권한이 없습니다.","I000");
- return false;
- }
-
- if(!fCheckDate())return;
-
- if (model.getValue("/root/hidden/condition/slipgubn") == "U")
- {
- var iFindrow = grd_unsllist.findRow("Y",1,2);
-
- if (iFindrow == -1) {
- messageBox("일괄승인요청할 항목을 선택하세요.","I000");
- return;
- }
-
- if (messageBox("전표 일괄승인요청 작업을","Q004") != "6") {
- return;
- }
-
- grd_unsllist.col = 3;
- for (i=1; i<grd_unsllist.rows; i++)
- {
- selchk = grd_unsllist.valueMatrix(i,2); //grd_unsllist.findRow("Y", 1, 2, false, false);
- if (selchk == "Y") {
- grd_unsllist.row = i;
- grd_unsllist.dispatch("onrowchanged");
- //btn_aprv.dispatch("DOMActivate");
- if (model.getValue("/root/hidden/condition/slipgubn") == "U")
- {
- for (j=1; j<grd_unsllistinfo.rows; j++) {
- grd_unsllistinfo.addStatus(j, "update");
- model.setValue("/root/main/unsllistinfo["+j+"]/aprvreqyn","Y");
- model.setValue("/root/main/unsllistinfo["+j+"]/aprvreqdd",ipt_slipdt.value);
- }
- model.refresh();
-
- model.setValue("/root/send/unsllistinfo",grd_unsllistinfo.getUpdateData());
-
- if (submit("TXRAD00203"))
- {
- grd_unsllistinfo.clearStatus();
- model.setValue("/root/send/unsllistinfo","");
- grd_unsllist.valueMatrix(i,2) = "N";
- model.removeNodeset("/root/main/unsllistinfo");
- model.refresh();
- }
- }
- }
- }
-
-
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_apsllist" nodeset="/root/main/apsllist" visibility="hidden" caption="기관코드^발의일자^전표번호^승인일자^승인번호^미결전표작성자^승인자^전표구분^확인^전표유형^발의부서^발의부서^적요^차변금액^대변금액^출금차수" colsep="^" colwidth="0, 74, 57, 74, 57, 0, 75, 90, 30, 0, 0, 125, 0, 0, 0, 65" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:152px; width:484px; height:566px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="unsldt" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="unslno"/>
- <col ref="slipdt" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="slipno"/>
- <col ref="unslwrit" visibility="hidden"/>
- <col ref="usernm"/>
- <col ref="slipflag"/>
- <col checkvalue="Y,N" ref="checkyn" type="checkbox"/>
- <col ref="slipkind" visibility="hidden"/>
- <col ref="slipdeptcd" visibility="hidden"/>
- <col ref="slipdeptnm"/>
- <col ref="etcnotefact" visibility="hidden"/>
- <col ref="dramt" visibility="hidden"/>
- <col ref="cramt" visibility="hidden"/>
- <col ref="drawseqno" style="text-align:center; "/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var cur_row = grd_apsllist.row;
-
- if ( cur_row > 0 ) {
- model.setValue("/root/send/data2/instcd", model.getValue("/root/main/apsllist["+cur_row+"]/instcd"));
- model.setValue("/root/send/data2/slipdt", model.getValue("/root/main/apsllist["+cur_row+"]/slipdt"));
- model.setValue("/root/send/data2/slipno", model.getValue("/root/main/apsllist["+cur_row+"]/slipno"));
- model.refresh();
-
- submit("TRRAD00204");
- model.setFocus("grd_apsllistinfo");
- }
-
- model.setValue("/root/hidden/condition/slipdt", grd_apsllist.valueMatrix(grd_apsllist.row, grd_apsllist.colRef("slipdt")));
- ipt_slipdt.refresh();
- ipt_slipdt.dispatch("xforms-value-changed");
- grd_apsllist.dispatch("onmouseup");
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_apsllist.row > 0) {
- model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/apsllist["+grd_apsllist.row+"]/instcd"));
- model.makeValue("/root/source/slipinfo/slipdt", model.getValue("/root/main/apsllist["+grd_apsllist.row+"]/unsldt"));
- model.makeValue("/root/source/slipinfo/slipno", model.getValue("/root/main/apsllist["+grd_apsllist.row+"]/unslno"));
-
- model.refresh();
- modal("SMRAD00100","","","","","/root/source", "/root/target" );
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSlipCheck(grd_apsllist, "A");
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_unsllist" nodeset="/root/main/unsllist" caption="기관코드^선택^발의일자^전표번호^미결전표작성자^요청일자^발의자^미결전표일자^미결전표번호^전표구분^전표유형^발의부서^발의부서^확인^차변금액^대변금액^예산사용계정^압류거래처여부" colsep="^" colwidth="0, 30, 66, 55, 0, 66, 50, 0, 0, 55, 0, 0, 105, 30, 0, 0, 100, 0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:152px; width:480px; height:566px; ">
- <col ref="instcd" visibility="hidden"/>
- <col checkvalue="Y,N" ref="selchk" type="checkbox"/>
- <col ref="slipdt" type="output" format="yyyy-mm-dd"/>
- <col ref="slipno"/>
- <col ref="unslwrit" visibility="hidden"/>
- <col ref="aprvreqdd" type="output" format="yyyy-mm-dd"/>
- <col ref="usernm"/>
- <col ref="unsldt" visibility="hidden"/>
- <col ref="unslno" visibility="hidden"/>
- <col ref="slipflag"/>
- <col ref="slipkind" visibility="hidden"/>
- <col ref="slipdeptcd" visibility="hidden"/>
- <col ref="slipdeptnm" style="left:342px; top:23px; width:105px; height:23px; "/>
- <col checkvalue="Y,N" ref="checkyn" type="checkbox" style="left:447px; top:23px; width:30px; height:23px; "/>
- <col ref="dramt" visibility="hidden"/>
- <col ref="cramt" visibility="hidden"/>
- <col ref="bugtacntyn" visibility="hidden"/>
- <col ref="seizureyn" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- if(grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("slipdt")) > model.getValue("/root/hidden/condition/slipdt"))
- {
- model.setValue("/root/hidden/condition/slipdt", grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("slipdt")))
- }
-
-
- var cur_row = grd_unsllist.row;
- if (grd_unsllist.col == 2)
- {
- return;
- }
- if ( cur_row > 0)
- {
- model.setValue("/root/send/data2/instcd", model.getValue("/root/main/unsllist["+cur_row+"]/instcd"));
- model.setValue("/root/send/data2/slipdt", model.getValue("/root/main/unsllist["+cur_row+"]/slipdt"));
- model.setValue("/root/send/data2/slipno", model.getValue("/root/main/unsllist["+cur_row+"]/slipno"));
- model.refresh();
-
- submit("TRRAD00203");
-
- model.setFocus("grd_unsllistinfo");
- }
-
- grd_unsllist.dispatch("onmouseup");
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_unsllist.isCell(event.target) && grd_unsllist.row > 0) {
- model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/unsllist["+grd_unsllist.row+"]/instcd"));
- model.makeValue("/root/source/slipinfo/slipdt", model.getValue("/root/main/unsllist["+grd_unsllist.row+"]/slipdt"));
- model.makeValue("/root/source/slipinfo/slipno", model.getValue("/root/main/unsllist["+grd_unsllist.row+"]/slipno"));
-
- model.refresh();
- modal("SMRAD08100","","","","","/root/source", "/root/target" );
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // if(grd_unsllist.col == grd_unsllist.colRef("selchk") && model.getValue("/root/hidden/condition/slipgubn") == "U")
- // {
- // if(grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("selchk")) == "Y")
- // {
- // if(model.getValue("/root/main/unsllist[" + grd_unsllist.row + "]/bugtaprvyn") == "N" && model.getValue("/root/main/unsllist[" + grd_unsllist.row + "]/bugtautoaprvyn") == "N")
- // {
- // messageBox("기획팀 예산 승인되지 않은 항목을 승인", "E001");
- //
- // grd_unsllist.rowStatus(grd_unsllist.row) = 0;
- // grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("selchk")) = "N";
- // }
- // }
- // } --> 한출 씩 검색해야 한다. 계산식을 오른쪽 그리드로 빼야한다.
- fSumCheckAmt();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- fSlipCheck(grd_unsllist, "U");
-
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:147px; x2:478px; y2:147px; "/>
- <group id="group4" style="left:0px; top:10px; width:480px; height:110px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:1px; top:0px; width:479px; height:109px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_name" style="left:11px; top:10px; width:17px; height:17px; ">발의일자 :</caption>
- <caption id="caption7" class="search_name" style="left:11px; top:33px; width:87px; height:17px; ">전표종류 :</caption>
- <line id="line30" class="line_4" style="x1:411px; y1:8px; x2:411px; y2:49px; "/>
- <caption id="caption8" class="search_name" style="left:11px; top:57px; width:87px; height:17px; ">전표유형 :</caption>
- <caption id="caption37" class="search_name" style="left:11px; top:81px; width:87px; height:17px; ">발의부서 :</caption>
- <input id="input6" ref="/root/hidden/condition/slipfr" class="input_s_essential" inputtype="date" style="left:105px; top:8px; width:100px; height:19px; "/>
- <input id="input2" ref="/root/hidden/condition/slipto" class="input_s_essential" inputtype="date" style="left:255px; top:8px; width:100px; height:19px; "/>
- <caption id="caption38" style="left:225px; top:10px; width:15px; height:20px; ">~</caption>
- <select1 id="rdo_gubn" ref="/root/hidden/condition/slipgubn" class="radio_search" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:105px; top:32px; width:225px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <item>
- <label>미승인</label>
- <value>U</value>
- </item>
- <item>
- <label>승인요청</label>
- <value>R</value>
- </item>
- <item>
- <label>승인</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // if(rdo_gubn.value == 'U')
- // {
- // model.setValue(cmb_checkyn.attribute("ref"), "");
- // cmb_checkyn.disabled = false;
- // }
- // else
- // {
- // model.setValue(cmb_checkyn.attribute("ref"), "");
- // cmb_checkyn.disabled = true;
- // }
- // cmb_checkyn.refresh();
-
- fbtnSetting();
- fCheckAcountClose();
-
-
- ]]>
- </script>
- </select1>
- <select1 id="rdo_slipkind" ref="/root/hidden/condition/slipkind" class="radio_search" overflow="visible" appearance="full" cellspacing="10" cols="5" style="left:105px; top:56px; width:290px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_slipdeptnm" ref="/root/hidden/condition/slipdeptnm" class="input_essential" navindex="7" style="left:209px; top:81px; width:166px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("02", "slipdeptcd,slipdeptnm", "", "btn_search");
- ]]>
- </script>
- </input>
- <button id="btn_slipdeptcd" class="icon_search" style="left:189px; top:83px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp("02", ipt_slipdeptcd, "slipdeptcd,slipdeptnm", "");
- model.setFocus("rdo_profflag");
- ]]>
- </script>
- </button>
- <input id="ipt_slipdeptcd" ref="/root/hidden/condition/slipdeptcd" class="input_essential" navindex="6" style="left:105px; top:81px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("02", "slipdeptcd,slipdeptnm", "", "btn_search");
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:417px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/data1/instcd", model.getValue("/root/hidden/condition/instcd"));
- model.setValue("/root/send/data1/ddkind", model.getValue("/root/hidden/condition/ddkind"));
- model.setValue("/root/send/data1/slipfr", model.getValue("/root/hidden/condition/slipfr"));
- model.setValue("/root/send/data1/slipto", model.getValue("/root/hidden/condition/slipto"));
- model.setValue("/root/send/data1/slipkind", model.getValue("/root/hidden/condition/slipkind"));
- model.setValue("/root/send/data1/checkyn", model.getValue("/root/hidden/condition/checkyn"));
- model.setValue("/root/send/data1/slipdeptcd", model.getValue("/root/hidden/condition/slipdeptcd"));
- model.setValue("/root/send/data1/slipgubn", model.getValue("/root/hidden/condition/slipgubn"));
- model.setValue("/root/send/data1/framt", model.getValue("/root/hidden/condition/framt"));
- model.setValue("/root/send/data1/toamt", model.getValue("/root/hidden/condition/toamt"));
- model.setValue("/root/send/data1/unslno", model.getValue("/root/hidden/condition/unslno"));
- model.refresh();
-
- model.removeNodeset("/root/main/unsllistinfo");
- model.removeNodeset("/root/main/apsllistinfo");
- model.refresh();
-
- if (model.getValue("/root/hidden/condition/slipgubn") == "U" || model.getValue("/root/hidden/condition/slipgubn") == "R")
- {
- submit("TRRAD00201");
- ipt_slipdt.disabled = false;
- }
- else
- {
- submit("TRRAD00202");
- ipt_slipdt.disabled = true;
- }
-
- ipt_slipdt.dispatch("xforms-value-changed");
- ]]>
- </script>
- </button>
- <input id="ipt_instcd" ref="/root/hidden/condition/instcd" class="input_essential" navindex="6" visibility="hidden" style="left:420px; top:56px; width:10px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("02", "slipdeptcd,slipdeptnm", "", "btn_search");
- ]]>
- </script>
- </input>
- <input id="input1" ref="/root/hidden/condition/framt" class="input_essential" navindex="6" visibility="hidden" format="(-)#,###" style="left:400px; top:56px; width:10px; height:19px; text-align:right; "/>
- <input id="input3" ref="/root/hidden/condition/toamt" class="input_essential" navindex="6" visibility="hidden" format="(-)#,###" style="left:410px; top:56px; width:10px; height:19px; text-align:right; "/>
- <select1 id="cmb_ddkind" ref="/root/hidden/condition/ddkind" appearance="minimal" style="left:31px; top:8px; width:75px; height:19px; font-family:굴림체; font-size:8pt; font-weight:bold; ">
- <choices>
- <item>
- <label>발의일자</label>
- <value>wd</value>
- </item>
- <item>
- <label>출금일자</label>
- <value>od</value>
- </item>
- <item>
- <label>요청일자</label>
- <value>rd</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_unslno" ref="/root/hidden/condition/unslno" class="input_essential" navindex="7" style="left:426px; top:81px; width:46px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- if (event.keyCode == "13")
- {
- model.setFocus("btn_search");
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var vUnslno = model.getValue("/root/hidden/condition/unslno").getLeftPad(4,"0");
- if(vUnslno != "0000")
- {
- model.setValue("/root/hidden/condition/unslno",vUnslno);
- }
- else
- {
- model.setValue("/root/hidden/condition/unslno","");
- }
- ipt_unslno.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <output id="output1" style="left:430px; top:60px; width:40px; height:19px; text-align:center; vertical-align:middle; ">번호</output>
- <select1 id="cmb_checkyn" ref="/root/hidden/condition/checkyn" appearance="minimal" style="left:330px; top:32px; width:75px; height:19px; font-family:굴림체; font-size:8pt; font-weight:bold; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>확인</label>
- <value>Y</value>
- </item>
- <item>
- <label>미확인</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- </group>
- <line id="line4" class="line_1" style="x1:486px; y1:33px; x2:1193px; y2:33px; "/>
- <caption id="cap_slipdt" class="cell_1" style="left:486px; top:10px; width:150px; height:23px; text-align:center; vertical-align:middle; ">전표승인일자</caption>
- <input id="ipt_slipdt" ref="/root/hidden/condition/slipdt" class="input_essential" inputtype="date" style="left:638px; top:12px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCheckAcountClose();
-
- // 출금번호 예외처리
- if(model.getValue("/root/hidden/drawrestriction") == "Y" && rdo_gubn.value == 'R')
- {
- submit("TRRAD00206");
- model.setValue(ipt_drawseqno.attribute("ref"), model.getValue("/root/hidden/maxdrawcnt/maxdrawcnt"));
- ipt_drawseqno.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption35" class="tit_2" style="left:5px; top:131px; width:118px; height:13px; ">전표 목록</caption>
- <line id="line9" class="line_3" style="x1:486px; y1:9px; x2:1193px; y2:9px; "/>
- <caption id="caption10" class="cell_1" style="left:830px; top:719px; width:120px; height:23px; text-align:center; vertical-align:middle; ">금액합계</caption>
- <caption id="cpt_undrsum" ref="/root/hidden/unsl/drsum" format="(-)#,###" style="left:951px; top:719px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcccc; "/>
- <caption id="cpt_apdrsum" ref="/root/hidden/apsl/drsum" visibility="hidden" format="(-)#,###" style="left:951px; top:719px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcccc; "/>
- <caption id="cpt_uncrsum" ref="/root/hidden/unsl/crsum" format="(-)#,###" style="left:1072px; top:719px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcc99; "/>
- <caption id="cpt_apcrsum" ref="/root/hidden/apsl/crsum" visibility="hidden" format="(-)#,###" style="left:1072px; top:719px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcc99; "/>
- <button id="btn_allaprv" class="btn2_letter4" disabled="false" style="left:415px; top:125px; width:64px; height:19px; ">
- <caption>일괄승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ipt_slipdt.dispatch("xforms-value-changed"); // 출금번호 예외처리
- if(radfCheckAcntAuth(getUserInfo("dutplceinstcd"), getUserId(), "sliprecognition", "Y") != "Y")
- {
- messageBox("권한이 없습니다.","I000");
- return false;
- }
-
- if(!fCheckDate())return;
-
-
- var vDD = model.getValue("/root/hidden/condition/slipdt");
-
- if (model.getValue("/root/hidden/condition/slipgubn") == "R")
- {
- var i,j;
- var selchk;
-
- var iFindrow = grd_unsllist.findRow("Y",1,2);
-
- if (iFindrow == -1) {
- messageBox("일괄승인할 항목을 선택하세요.","I000");
- return;
- }
-
- if (messageBox("전표 일괄승인 작업을","Q004") != "6") {
- return;
- }
-
-
-
- for (i=1; i<grd_unsllist.rows; i++) {
- selchk = grd_unsllist.valueMatrix(i,grd_unsllist.colRef("selchk"));
- if (selchk == "Y")
- {
- model.setValue("/root/send/data4/chkacntyy", grd_unsllist.valueMatrix(i, grd_unsllist.colRef("slipdt")));
- submit("TRRAD00205");
-
- if(grd_unsllist.valueMatrix(i, grd_unsllist.colRef("bugtacntyn")) == "Y" && (model.getValue("/root/hidden/condition/slipdt") < model.getValue("/root/main/acntyylist/frdd") || model.getValue("/root/hidden/condition/slipdt") > model.getValue("/root/main/acntyylist/todd") || model.getValue("/root/main/acntyylist/frdd") == "" || model.getValue("/root/main/acntyylist/todd") == ""))
- {
- messageBox("회계년도가 다름", "I000");
- return;
- }
- }
- }
-
- grd_unsllist.col = 3;
- for (i=1; i<grd_unsllist.rows; i++)
- {
- selchk = grd_unsllist.valueMatrix(i,2); //grd_unsllist.findRow("Y", 1, 2, false, false);
- if (selchk == "Y") {
- grd_unsllist.row = i;
- grd_unsllist.dispatch("onrowchanged");
- //btn_aprv.dispatch("DOMActivate");
- if (model.getValue("/root/hidden/condition/slipgubn") == "R")
- {
- var drsumamt = 0;
- var crsumamt = 0;
-
- for(var m = grd_unsllistinfo.fixedRows ; m < grd_unsllistinfo.rows ; m ++)
- {
- drsumamt += parseInt(grd_unsllistinfo.valueMatrix(m, grd_unsllistinfo.colRef("dramt")));
- crsumamt += parseInt(grd_unsllistinfo.valueMatrix(m, grd_unsllistinfo.colRef("cramt")));
-
- if(grd_unsllistinfo.valueMatrix(i, grd_unsllistinfo.colRef("custflag")) == "1")
- {
- if(radfseizureynCheck(getUserInfo("dutplceinstcd"), grd_unsllistinfo.valueMatrix(m, grd_unsllistinfo.colRef("custcd")), "N") == "Y")
- {
- messageBox("연번[" + grd_unsllistinfo.valueMatrix(m, grd_unsllistinfo.colRef("slipseqno")) + "] " + grd_unsllistinfo.valueMatrix(m, grd_unsllistinfo.colRef("custnm")) + "(은)는 압류 거래처입니다." ,"I000");
- }
- }
- }
-
- if(drsumamt != crsumamt)
- {
- alert("차대변금액이 일치하지 않습니다.");
- return;
- }
-
- //alert(grd_unsllist.valueMatrix(i, grd_unsllist.colRef("slipdt")));
- //alert(model.getValue("/root/hidden/condition/slipdt"));
-
- if(grd_unsllist.valueMatrix(i, grd_unsllist.colRef("slipdt")) > vDD)
- {
- // 출금번호 예외처리
- if (model.getValue("/root/hidden/drawrestriction") != "Y" && messageBox("승인일이 전송일보다 빠릅니다.\n승인일을 전송일로 설정하시겠습니까?\n (예 : 승인일->" + grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("slipdt")) + " 아니오->" + vDD + ")", "Q000") == "6")
- {
- model.setValue("/root/hidden/condition/slipdt", grd_unsllist.valueMatrix(i, grd_unsllist.colRef("slipdt")))
- }
- else
- {
- model.setValue("/root/hidden/condition/slipdt", vDD);
- }
- }
-
- for (j=1; j<grd_unsllistinfo.rows; j++) {
- grd_unsllistinfo.addStatus(j, "insert");
- model.setValue("/root/main/unsllistinfo["+j+"]/slipdd",model.getValue("/root/hidden/condition/slipdt"));
- model.setValue("/root/main/unsllistinfo["+j+"]/drawseqno",model.getValue("/root/hidden/condition/drawseqno"));
- }
- model.refresh();
-
- model.setValue("/root/send/unsllistinfo",grd_unsllistinfo.getUpdateData());
-
- if (submit("TXRAD00201"))
- {
- grd_unsllistinfo.clearStatus();
- model.setValue("/root/send/unsllistinfo","");
- grd_unsllist.valueMatrix(i,2) = "N";
- model.removeNodeset("/root/main/unsllistinfo");
- model.refresh();
- }
- }
- }
- }
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="btn_unsltrans" class="btn2_letter4" visibility="hidden" style="left:1129px; top:13px; width:64px; height:19px; ">
- <caption>전송취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var row = grd_unsllist.row;
-
- if (row == -1) {
- messageBox("취소할 전표를 선택하세요.","I000");
- return;
- }
-
- ret = messageBox("재무팀으로 전송된 내역을 취소합니다.\n\n작업을","Q004");
- if (ret == "6") {
- model.setValue("/root/send/data3/instcd",model.getValue("/root/main/unsllist["+ row +"]/instcd"));
- model.setValue("/root/send/data3/unsldd",model.getValue("/root/main/unsllist["+ row +"]/unsldt"));
- model.setValue("/root/send/data3/unslno",model.getValue("/root/main/unsllist["+ row +"]/unslno"));
- model.setValue("/root/send/data3/sanctyn","N");
- model.setValue("/root/send/data3/refreshyn","N");
- model.refresh();
-
- if (submit("TXRAD00102")) {
- btn_search.dispatch("DOMActivate");
- model.removeNodeset("/root/main/unsllistinfo");
- model.refresh();
- }
- } else {
- return;
- }
- ]]>
- </script>
- </button>
- <button id="btn_aprvcanceal" class="btn2_letter4" disabled="false" style="left:763px; top:13px; width:64px; height:19px; ">
- <caption>승인취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(radfCheckAcntAuth(getUserInfo("dutplceinstcd"), getUserId(), "slipcancel", "Y") != "Y")
- {
- messageBox("권한이 없습니다.","I000");
- return false;
- }
-
- if (model.getValue("/root/hidden/condition/slipgubn") == "A")
- {
- if (grd_apsllistinfo.rows == 1) {
- messageBox("승인취소할 전표를 선택하세요.","I000");
- return;
- }
- for (i=1; i<grd_apsllistinfo.rows; i++) {
- grd_apsllistinfo.addStatus(i, "delete");
- }
- model.refresh();
-
- model.setValue("/root/send/apsllistinfo",grd_apsllistinfo.getUpdateData());
-
- if (submit("TXRAD00202"))
- {
- grd_apsllistinfo.clearStatus();
- model.setValue("/root/send/apsllistinfo","");
- btn_search.dispatch("DOMActivate");
- model.removeNodeset("/root/main/apsllistinfo");
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_req" class="btn2_letter6" disabled="false" style="left:763px; top:13px; width:86px; height:19px; ">
- <caption>전표승인요청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!fCheckDate())return;
- if(radfCheckAcntAuth(getUserInfo("dutplceinstcd"), getUserId(), "slipreqapproval", "Y") != "Y")
- {
- messageBox("권한이 없습니다.","I000");
- return false;
- }
-
- if (model.getValue("/root/hidden/condition/slipgubn") == "U")
- {
- if (grd_unsllistinfo.rows == 1) {
- messageBox("승인요청할 전표를 선택하세요.","I000");
- return;
- }
-
- for (i=1; i<grd_unsllistinfo.rows; i++)
- {
- grd_unsllistinfo.addStatus(i, "update");
- model.setValue("/root/main/unsllistinfo["+i+"]/aprvreqyn","Y");
- model.setValue("/root/main/unsllistinfo["+i+"]/aprvreqdd",ipt_slipdt.value);
- }
- model.refresh();
-
- model.setValue("/root/send/unsllistinfo",grd_unsllistinfo.getUpdateData());
-
- if (submit("TXRAD00203"))
- {
- grd_unsllistinfo.clearStatus();
- model.setValue("/root/send/unsllistinfo","");
- btn_search.dispatch("DOMActivate");
- model.removeNodeset("/root/main/unsllistinfo");
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_aprv" class="btn2_letter4" disabled="false" style="left:848px; top:13px; width:64px; height:19px; ">
- <caption>전표승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ipt_slipdt.dispatch("xforms-value-changed"); // 출금번호 예외처리
- if(radfCheckAcntAuth(getUserInfo("dutplceinstcd"), getUserId(), "sliprecognition", "Y") != "Y")
- {
- messageBox("권한이 없습니다.","I000");
- return false;
- }
-
- if (model.getValue("/root/hidden/condition/slipgubn") == "R")
- {
- if (grd_unsllistinfo.rows == 1) {
- messageBox("승인할 전표를 선택하세요.","I000");
- return;
- }
-
- if(grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("slipdt")) > model.getValue("/root/hidden/condition/slipdt"))
- {
- // 출금번호 예외처리
- if (model.getValue("/root/hidden/drawrestriction") != "Y" && messageBox("승인일이 전송일보다 빠릅니다.\n승인일을 전송일로 설정하시겠습니까?\n (예 : 승인일->" + grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("slipdt")) + " 아니오->" + model.getValue("/root/hidden/condition/slipdt") + ")", "Q000") == "6")
- {
- model.setValue("/root/hidden/condition/slipdt", grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("slipdt")))
- }
- }
-
- model.setValue("/root/send/data4/chkacntyy", grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("slipdt")));
- submit("TRRAD00205");
- if(grd_unsllist.valueMatrix(i, grd_unsllist.colRef("bugtacntyn")) == "Y" && (model.getValue("/root/hidden/condition/slipdt") < model.getValue("/root/main/acntyylist/frdd") || model.getValue("/root/hidden/condition/slipdt") > model.getValue("/root/main/acntyylist/todd") || model.getValue("/root/main/acntyylist/frdd") == "" || model.getValue("/root/main/acntyylist/todd") == ""))
- {
- messageBox("회계년도가 다름", "I000");
- return;
- }
- var drsumamt = 0;
- var crsumamt = 0;
-
- for(var i = grd_unsllistinfo.fixedRows ; i < grd_unsllistinfo.rows ; i ++)
- {
- drsumamt += parseInt(grd_unsllistinfo.valueMatrix(i, grd_unsllistinfo.colRef("dramt")));
- crsumamt += parseInt(grd_unsllistinfo.valueMatrix(i, grd_unsllistinfo.colRef("cramt")));
-
- if(grd_unsllistinfo.valueMatrix(i, grd_unsllistinfo.colRef("custflag")) == "1")
- {
- if(radfseizureynCheck(getUserInfo("dutplceinstcd"), grd_unsllistinfo.valueMatrix(i, grd_unsllistinfo.colRef("custcd")), "N") == "Y")
- {
- messageBox("연번[" +grd_unsllistinfo.valueMatrix(i, grd_unsllistinfo.colRef("slipseqno")) + "] " + grd_unsllistinfo.valueMatrix(i, grd_unsllistinfo.colRef("custnm")) + "(은)는 압류 거래처입니다." ,"I000");
- }
- }
- }
-
- if(drsumamt != crsumamt)
- {
- messageBox("차대변금액이 일치하지 않습니다.", "I000");
- return;
- }
-
- for (i=1; i<grd_unsllistinfo.rows; i++)
- {
- grd_unsllistinfo.addStatus(i, "insert");
- model.setValue("/root/main/unsllistinfo["+i+"]/slipdd",model.getValue("/root/hidden/condition/slipdt"));
- model.setValue("/root/main/unsllistinfo["+i+"]/drawseqno",model.getValue("/root/hidden/condition/drawseqno"));
- }
- model.refresh();
-
- model.setValue("/root/send/unsllistinfo",grd_unsllistinfo.getUpdateData());
-
- submit("TRRAD00203");
-
- if (submit("TXRAD00201"))
- {
- grd_unsllistinfo.clearStatus();
- model.setValue("/root/send/unsllistinfo","");
- btn_search.dispatch("DOMActivate");
- model.removeNodeset("/root/main/unsllistinfo");
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_reqcanceal" class="btn2_letter6" disabled="false" style="left:915px; top:13px; width:86px; height:19px; ">
- <caption>승인요청취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(radfCheckAcntAuth(getUserInfo("dutplceinstcd"), getUserId(), "slipreqcancel", "Y") != "Y")
- {
- messageBox("권한이 없습니다.","I000");
- return;
- }
-
- if (model.getValue("/root/hidden/condition/slipgubn") == "R")
- {
- if (grd_unsllistinfo.rows == 1)
- {
- messageBox("승인요청을 취소할 전표를 선택하세요.","I000");
- return;
- }
- for (i=1; i<grd_unsllistinfo.rows; i++)
- {
- grd_unsllistinfo.addStatus(i, "update");
- model.setValue("/root/main/unsllistinfo["+i+"]/aprvreqyn","N");
- model.setValue("/root/main/unsllistinfo["+i+"]/aprvreqdd","");
- }
- model.refresh();
- model.setValue("/root/send/unsllistinfo",grd_unsllistinfo.getUpdateData());
- if (submit("TXRAD00203"))
- {
- grd_unsllistinfo.clearStatus();
- model.setValue("/root/send/unsllistinfo","");
- btn_search.dispatch("DOMActivate");
- model.removeNodeset("/root/main/unsllistinfo");
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_all" class="btn2_letter4" style="left:125px; top:125px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = 1 ; i <= model.instance1.selectNodes(grd_unsllist.nodeset).length ; i++)
- {
- model.setValue(grd_unsllist.nodeset + "[" + i + "]/selchk", "Y");
- }
- grd_unsllist.rebuild();
- fSumCheckAmt();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn2_letter4" style="left:195px; top:125px; width:64px; height:19px; ">
- <caption>전체해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = 1 ; i <= model.instance1.selectNodes(grd_unsllist.nodeset).length ; i++)
- {
- model.setValue(grd_unsllist.nodeset + "[" + i + "]/selchk", "N");
- }
- grd_unsllist.rebuild();
- fSumCheckAmt();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="cell_1" style="left:5px; top:717px; width:120px; height:23px; text-align:center; vertical-align:middle; ">금액합계</caption>
- <caption id="cpt_totuncrsum" ref="/root/hidden/unsl/totcrsum" format="(-)#,###" style="left:247px; top:717px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcc99; "/>
- <caption id="cpt_totundrsum" ref="/root/hidden/unsl/totdrsum" format="(-)#,###" style="left:126px; top:717px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcccc; "/>
- <caption id="cpt_totapcrsum" ref="/root/hidden/apsl/totcrsum" visibility="hidden" format="(-)#,###" style="left:247px; top:717px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcc99; "/>
- <caption id="cpt_totapdrsum" ref="/root/hidden/apsl/totdrsum" visibility="hidden" format="(-)#,###" style="left:126px; top:717px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcccc; "/>
- <button id="button1" visibility="hidden" style="left:1030px; top:10px; width:100px; height:20px; ">
- <caption>button1</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- alert(getUserId());
- ]]>
- </script>
- </button>
- <input id="ipt_drawseqno" ref="/root/hidden/condition/drawseqno" class="input_essential" disabled="false" navindex="6" visibility="visible" format="9" style="left:779px; top:12px; width:49px; height:19px; text-align:center; vertical-align:middle; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(model.getValue(ipt_drawseqno.attribute("ref")) == "0" || model.getValue(ipt_drawseqno.attribute("ref")) == "")
- {
- model.setValue(ipt_drawseqno.attribute("ref"), "1");
- ipt_drawseqno.refresh();
- }
-
- ]]>
- </script>
- </input>
- <button id="btn_next" class="icon_next" disabled="false" navindex="-1" visibility="visible" style="left:830px; top:15px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vDrawseqno = model.getValue(ipt_drawseqno.attribute("ref"));
- var vNum = parseInt(vDrawseqno, 10);
-
- if (vNum != 9)
- {
- vNum++;
- }
- else
- {
- return;
- }
- model.setValue(ipt_drawseqno.attribute("ref"), vNum);
- ipt_drawseqno.refresh();
-
-
- ]]>
- </script>
- </button>
- <button id="btn_pre" class="icon_pre" disabled="false" navindex="-1" visibility="visible" style="left:764px; top:15px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vDrawseqno = model.getValue(ipt_drawseqno.attribute("ref"));
- var vNum = parseInt(vDrawseqno, 10);
-
- if (vNum != 1)
- {
- vNum--;
- }
- else
- {
- return;
- }
- model.setValue(ipt_drawseqno.attribute("ref"), vNum);
- ipt_drawseqno.refresh();
-
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:757; width:1195px; height:27px; ">
- <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|