123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413 |
- <?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>
- <unsl>
- </unsl>
- </main>
- <send>
- <data>
- <instcd/>
- <arngmnunsldd/>
- <arngmnunslno/>
- </data>
- <unsl/>
- <data1>
- <instcd/>
- <drcrflag/>
- <acntcd/>
- </data1>
- <data2>
- <instcd/>
- <mngtcd/>
- </data2>
- </send>
- <hidden>
- <acntcdinfo>
- <instcd/>
- <acntcd/>
- <acntnm/>
- <slipyn/>
- <expsprofyn/>
- <balflag/>
- <custflag/>
- <notecd1/>
- <notecdnm1/>
- <mngtkind1/>
- <inptkind1/>
- <frmt1/>
- <popwnd1/>
- <notecd2/>
- <notecdnm2/>
- <mngtkind2/>
- <inptkind2/>
- <frmt2/>
- <popwnd2/>
- <notecd3/>
- <notecdnm3/>
- <mngtkind3/>
- <inptkind3/>
- <frmt3/>
- <popwnd3/>
- <notecd4/>
- <notecdnm4/>
- <mngtkind4/>
- <inptkind4/>
- <frmt4/>
- <popwnd4/>
- <notecd5/>
- <notecdnm5/>
- <mngtkind5/>
- <inptkind5/>
- <frmt5/>
- <popwnd5/>
- <notecd6/>
- <notecdnm6/>
- <mngtkind6/>
- <inptkind6/>
- <frmt6/>
- <popwnd6/>
- <bugtcostacntcd/>
- <bugtuseyn/>
- <bugtcntryn/>
- <bugtautoaprvyn/>
- <fundscd/>
- <suppitemcd/>
- <option1/>
- <option2/>
- <option3/>
- <option4/>
- <option5/>
- <option6/>
- </acntcdinfo>
- <unsl_one>
- <instcd/>
- <arngmnunsldd/>
- <arngmnunslno/>
- <seqno/>
- <drcrflag>C</drcrflag>
- <acntcd/>
- <acntnm/>
- <bugtcd>01</bugtcd>
- <amt/>
- <costcntrdeptcd/>
- <costcntrdeptnm/>
- <bugtmngtdeptcd/>
- <bugtmngtdeptnm/>
- <slipdeptcd/>
- <slipdeptnm/>
- <notefactnm1/>
- <notefactcd1/>
- <notefactspec1/>
- <notefactnm2/>
- <notefactcd2/>
- <notefactspec2/>
- <notefactnm3/>
- <notefactcd3/>
- <notefactspec3/>
- <notefactnm4/>
- <notefactcd4/>
- <notefactspec4/>
- <notefactnm5/>
- <notefactcd5/>
- <notefactspec5/>
- <notefactnm6/>
- <notefactcd6/>
- <notefactspec6/>
- <etcnotefact/>
- <unslwrit/>
- <slipcmt/>
- </unsl_one>
- <sumamt/>
- <maxseqno/>
- <slipyn>Y</slipyn>
- </hidden>
- <init>
- <condition>
- <instcd/>
- <arngmnunsldd/>
- <arngmnunslno/>
- <amt/>
- <costcntrdeptcd/>
- <costcntrdeptnm/>
- <bugtmngtdeptcd/>
- <slipdeptcd/>
- <bugtcd/>
- </condition>
- <code>
- <codelist/>
- </code>
- </init>
- <temp>
- <returnunslno>
- <returnunslno/>
- </returnunslno>
- </temp>
- <target>
- <slipinfo>
- <instcd/>
- <amt/>
- <arngmnunsldd/>
- <costcntrdeptcd/>
- <costcntrdeptnm/>
- <bugtmngtdeptcd/>
- <bugtmngtdeptnm/>
- <slipdeptcd/>
- <slipdeptnm/>
- <unslwrit/>
- <slipyn/>
- </slipinfo>
- </target>
- </root>
- </instance>
- <submission id="TRZBC00101" method="urlencoded-post" replace="instance"/>
- <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/init/code"/>
- <bind id="bind1" ref="/root/hidden/maxseqno" calculate="max(/root/main/unsl/seqno)"/>
- <submission id="TRRAD00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/acntcdinfo"/>
- <submission id="TXRAD00391" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/unsl" resultref="/root/temp"/>
- <submission id="TRRAD00391" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/unsl"/>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fCheckAuth();//화면 권한체크
- fOpenForm();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth()
- {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
-
- var cashcd = ""; //현금 계정코드 default 값 "11101001"
- var arrCashAcntCd = new Array();
- var arrTransAcntCd = new Array();
- //========================================================================================
- //화면 로드시 초기화 함수
- //========================================================================================
- function fOpenForm()
- {
- model.removeNodeset(grd_unsl.nodeset);
- grd_unsl.rebuild();
-
-
- btn_reset.disabled = false;
- btn_grdadd.disabled = false;
- btn_grdset.disabled = true;
-
- var instcd = model.getValue("/root/target/slipinfo/instcd");
- var arngmnunsldd = model.getValue("/root/target/slipinfo/arngmnunsldd");
- var arngmnunslno = model.getValue("/root/target/slipinfo/arngmnunslno");
- var costcntrdeptcd = model.getValue("/root/target/slipinfo/costcntrdeptcd");
- var costcntrdeptnm = model.getValue("/root/target/slipinfo/costcntrdeptnm");
- var bugtmngtdeptcd = model.getValue("/root/target/slipinfo/bugtmngtdeptcd");
- var bugtmngtdeptnm = model.getValue("/root/target/slipinfo/bugtmngtdeptnm");
- var slipdeptcd = model.getValue("/root/target/slipinfo/slipdeptcd");
- var slipdeptnm = model.getValue("/root/target/slipinfo/slipdeptnm");
- var unslwrit = model.getValue("/root/target/slipinfo/unslwrit");
- var slipyn = model.getValue("/root/target/slipinfo/slipyn");
-
-
-
- if(slipyn == 'Y')
- {
- ipt_arngmnunsldd.disabled = true;
- }
-
- var sToday = getCurrentDate().toString();
- if(arngmnunsldd == "")
- {
- arngmnunsldd = sToday;
- ipt_arngmnunsldd.disabled = false;
- }
-
- if(instance1.selectNodes("/root/target/slipinfo").length != 0)
- {
- model.setValue("/root/hidden/unsl_one/instcd", instcd );
- model.setValue("/root/hidden/unsl_one/arngmnunsldd", arngmnunsldd );
- model.setValue("/root/hidden/unsl_one/arngmnunslno", arngmnunslno );
- model.setValue("/root/hidden/unsl_one/costcntrdeptcd", costcntrdeptcd );
- model.setValue("/root/hidden/unsl_one/costcntrdeptnm", costcntrdeptnm );
- model.setValue("/root/hidden/unsl_one/bugtmngtdeptcd", bugtmngtdeptcd);
- model.setValue("/root/hidden/unsl_one/bugtmngtdeptnm", bugtmngtdeptnm);
- model.setValue("/root/hidden/unsl_one/slipdeptcd", slipdeptcd );
- model.setValue("/root/hidden/unsl_one/slipdeptnm", slipdeptnm );
- model.setValue("/root/hidden/unsl_one/unslwrit", unslwrit );
- }
-
-
-
- // if(sanctyn == "Y")
- // {
- //
- // }
- //=========기초정보(상수값) Loding===================================================
- model.setValue("/root/send/data2/instcd", instcd);
- model.setValue("/root/send/data2/mngtcd", "%");
- model.refresh();
- submit("TRRAZ00001");
-
- for (i=1; i<=instance1.selectNodes("root/init/code/code/codelist").length; i++)
- {
- cdgbn = model.getValue("/root/init/code/code/codelist[" + i + "]/cdgbn");
- if (cdgbn == "cashcd")
- {
- cashcd = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
- cashcdnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
- }
- else if (cdgbn == "cashacntcd")
- {
- arrCashAcntCd[arrCashAcntCd.length] = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
- }
- }
-
- for(var i = 0 ; i < arrCashAcntCd.length ; i++)
- {
- if(arrCashAcntCd[i] != cashcd)
- {
- arrTransAcntCd[arrTransAcntCd.length] = arrCashAcntCd[i];
- }
- }
-
- fSearch();
- }
-
- //========================================================================================
- // 지급 내역 조회
- //========================================================================================
- function fSearch()
- {
- model.removenode(grd_unsl.nodeset);//조회시 기존 데이터 삭제
- grd_unsl.refresh();
- model.setValue("/root/send/data/instcd", model.getValue("/root/hidden/unsl_one/instcd"));
- model.setValue("/root/send/data/arngmnunsldd", model.getValue("/root/hidden/unsl_one/arngmnunsldd"));
- model.setValue("/root/send/data/arngmnunslno", model.getValue("/root/hidden/unsl_one/arngmnunslno"));
-
- submit("TRRAD00391");
-
- if(grd_unsl.fixedRows != grd_unsl.rows)
- {
- model.setValue(ipt_slipcmt.attribute("ref"), grd_unsl.valueMatrix(grd_unsl.fixedRows, grd_unsl.colRef("slipcmt")));
- ipt_slipcmt.refresh();
- }
- fCalcAmt();
- }
-
- //========================================================================================
- // 저장
- //========================================================================================
- function fSave()
- {
- model.setValue("/root/main/unsl", grd_unsl.getUpdateData());
- submit("");
- }
-
- function fNotNullCheck()
- {
- if(model.getValue(ipt_slipcmt.attribute("ref")) == "") { messageBox("전표적요를", "C002"); return false; };
- if(model.getValue(ipt_acntcd.attribute("ref")) == "") { messageBox("계정코드를", "C002"); return false; };
- if(model.getValue(ipt_acntnm.attribute("ref")) == "") { messageBox("계정코드를", "C002"); return false; };
- if(model.getValue(ipt_amt.attribute("ref")) == "") { messageBox("금액을", "C002"); return false; };
- if(model.getValue(ipt_etcnotefact.attribute("ref")) == "") { messageBox("세부적요를", "C002"); return false; };
- return true;
- }
-
- //========================================================================================
- // 행추가
- //========================================================================================
- function fSetGridData()
- {
-
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/instcd", model.getValue("/root/hidden/unsl_one/instcd" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/arngmnunsldd", model.getValue("/root/hidden/unsl_one/arngmnunsldd" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/arngmnunslno", model.getValue("/root/hidden/unsl_one/arngmnunslno" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/drcrflag", model.getValue("/root/hidden/unsl_one/drcrflag" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/acntcd", model.getValue("/root/hidden/unsl_one/acntcd" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/acntnm", model.getValue("/root/hidden/unsl_one/acntnm" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/bugtcd", model.getValue("/root/hidden/unsl_one/bugtcd" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/amt", parseInt(model.getValue("/root/hidden/unsl_one/amt"), 10));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/costcntrdeptcd", model.getValue("/root/hidden/unsl_one/costcntrdeptcd" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/costcntrdeptnm", model.getValue("/root/hidden/unsl_one/costcntrdeptnm" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/bugtmngtdeptcd", model.getValue("/root/hidden/unsl_one/bugtmngtdeptcd" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/bugtmngtdeptnm", model.getValue("/root/hidden/unsl_one/bugtmngtdeptnm" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/slipdeptcd", model.getValue("/root/hidden/unsl_one/slipdeptcd" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/slipdeptnm", model.getValue("/root/hidden/unsl_one/slipdeptnm" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm1", model.getValue("/root/hidden/unsl_one/notefactnm1" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd1", model.getValue("/root/hidden/unsl_one/notefactcd1" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec1", model.getValue("/root/hidden/unsl_one/notefactspec1" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm2", model.getValue("/root/hidden/unsl_one/notefactnm2" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd2", model.getValue("/root/hidden/unsl_one/notefactcd2" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec2", model.getValue("/root/hidden/unsl_one/notefactspec2" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm3", model.getValue("/root/hidden/unsl_one/notefactnm3" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd3", model.getValue("/root/hidden/unsl_one/notefactcd3" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec3", model.getValue("/root/hidden/unsl_one/notefactspec3" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm4", model.getValue("/root/hidden/unsl_one/notefactnm4" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd4", model.getValue("/root/hidden/unsl_one/notefactcd4" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec4", model.getValue("/root/hidden/unsl_one/notefactspec4" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm5", model.getValue("/root/hidden/unsl_one/notefactnm5" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd5", model.getValue("/root/hidden/unsl_one/notefactcd5" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec5", model.getValue("/root/hidden/unsl_one/notefactspec5" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm6", model.getValue("/root/hidden/unsl_one/notefactnm6" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd6", model.getValue("/root/hidden/unsl_one/notefactcd6" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec6", model.getValue("/root/hidden/unsl_one/notefactspec6" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/etcnotefact", model.getValue("/root/hidden/unsl_one/etcnotefact" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/unslwrit", model.getValue("/root/hidden/unsl_one/unslwrit" ));
- model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/slipcmt", model.getValue("/root/hidden/unsl_one/slipcmt" ));
-
- }
-
- function fMakeSeqNo(iRowIdx)
- {
- var sSeqno = "";
- var iSeqNo = 0;
-
- if(model.getValue("/root/hidden/maxseqno") == "")
- {
- sSeqno = "00000";
- }
- else
- {
- sSeqno = model.getValue("/root/hidden/maxseqno");
- }
- var iSeqno = parseFloat(sSeqno);
- if(iSeqno >= 0)
- {
- iSeqno ++ ;
- sSeqno = (iSeqno).toString().getLeftPad(5, "0");
- }
- else
- {
- sSeqno = "00001";
- }
-
- grd_unsl.valueMatrix(iRowIdx, grd_unsl.colRef("seqno")) = sSeqno;
- model.recalculate();
- }
-
- function fResetControls()
- {
- model.setValue("/root/hidden/unsl_one/acntcd", "");
- model.setValue("/root/hidden/unsl_one/acntnm", "");
- model.setValue("/root/hidden/unsl_one/notefactnm1", "");
- model.setValue("/root/hidden/unsl_one/notefactcd1", "");
- model.setValue("/root/hidden/unsl_one/notefactspec1", "");
- model.setValue("/root/hidden/unsl_one/notefactnm2", "");
- model.setValue("/root/hidden/unsl_one/notefactcd2", "");
- model.setValue("/root/hidden/unsl_one/notefactspec2", "");
- model.setValue("/root/hidden/unsl_one/notefactnm3", "");
- model.setValue("/root/hidden/unsl_one/notefactcd3", "");
- model.setValue("/root/hidden/unsl_one/notefactspec3", "");
- model.setValue("/root/hidden/unsl_one/notefactnm4", "");
- model.setValue("/root/hidden/unsl_one/notefactcd4", "");
- model.setValue("/root/hidden/unsl_one/notefactspec4", "");
- model.setValue("/root/hidden/unsl_one/notefactnm5", "");
- model.setValue("/root/hidden/unsl_one/notefactcd5", "");
- model.setValue("/root/hidden/unsl_one/notefactspec5", "");
- model.setValue("/root/hidden/unsl_one/notefactnm6", "");
- model.setValue("/root/hidden/unsl_one/notefactcd6", "");
- model.setValue("/root/hidden/unsl_one/notefactspec6", "");
-
- fCalcAmt();
-
- //기재사항clear
- fSetNoteClear();
- model.refresh();
- }
-
-
- //========================================================================================
- //진행중인 작업 여부 Check
- //========================================================================================
- function fCheckStatus()
- {
- var grd_rows = grd_unsl.rows;
- var grd_fixedRows = grd_unsl.fixedRows;
-
- for(var i = grd_fixedRows ; i <= grd_rows ; i++)
- {
- if(grd_unsl.rowStatus(i) != 0)
- {
- messageBox("진행중인 작업 완료/취소 후 실행하십시요" ,"");
- return false;
- }
- }
- return true;
- }
-
- //========================================================================================
- //저장전 유효성 검사
- //========================================================================================
- function fIsValidForSave()
- {
- var stransacnt = getGridUpdateData(grd_transacnt);
- if(stransacnt == "")
- {
- messageBox("변경된 데이터가","I004");
- return false;
- }
- else if(stransacnt != "")
- {
- return true;
- }
- }
-
- //========================================================================================
- //계정 코드 정보 조회
- //========================================================================================
- function fAcntInfoSelect()
- {
- model.setValue("/root/send/data1/instcd", model.getValue("/root/hidden/unsl_one/instcd"));
- model.setValue("/root/send/data1/acntcd", model.getValue("/root/hidden/unsl_one/acntcd"));
- model.setValue("/root/send/data1/drcrflag", model.getValue("/root/hidden/unsl_one/drcrflag"));
- model.refresh();
-
- submit("TRRAD00103");
-
- //기재사항clear
- fSetNoteClear();
- //기재사항 setting
- fSetNote();
- }
-
- //========================================================================================
- //기재사항 setting
- //========================================================================================
- function fSetNote()
- {
- //기재사항setting
- for (i=1; i<7; i++) {
- var kind = model.getValue("/root/hidden/acntcdinfo/mngtkind"+i);
- var title = model.getValue("/root/hidden/acntcdinfo/notecdnm"+i);
-
- var option = model.getValue("/root/hidden/acntcdinfo/option"+i);
-
- //alert(kind);
- //alert(title);
-
- model.setValue("/root/hidden/unsl_one/notefactnm"+i, title);
- switch (kind)
- {
- case "1": //코드
- model.toggle("case_notecd"+i);
- break;
- case "2": //내역
- model.toggle("case_notenm"+i);
- //format지정
- var cControl = document.controls("ipt_notenm"+i);
- cControl.attribute("format") = model.getValue("/root/hidden/acntcdinfo/frmt"+i);
- cControl.attribute("showmask") = "true";
- break;
- case "3": //콤보
- model.toggle("case_notecombo"+i);
- break;
- default :
- model.toggle("case_noteblank"+i);
- break;
- }
- }
- model.refresh();
- }
-
- //========================================================================================
- //기재사항 clear
- //========================================================================================
- function fSetNoteClear()
- {
- model.getValue("/root/hidden/acntcdinfo/notecd1") == "";
- model.getValue("/root/hidden/acntcdinfo/notecd2") == "";
- model.getValue("/root/hidden/acntcdinfo/notecd3") == "";
- model.getValue("/root/hidden/acntcdinfo/notecd4") == "";
- model.getValue("/root/hidden/acntcdinfo/notecd5") == "";
- model.getValue("/root/hidden/acntcdinfo/notecd6") == "";
-
- //항목 초기화
- for (i=1; i<7; i++)
- {
- model.setValue("/root/hidden/unsl_one/notefactnm"+i,"");
- model.setValue("/root/hidden/unsl_one/notefactcd"+i,"");
- model.setValue("/root/hidden/unsl_one/notefactspec"+i,"");
- model.toggle("case_noteblank"+i);
- }
- model.refresh();
- }
-
- //========================================================================================
- // 출금계좌 일치 예외처리 - 계좌 선택 시 경고만 출력
- //========================================================================================
- function fAactCheck()
- {
- var crrAcntCd = model.getValue("/root/hidden/unsl_one/acntcd");
- var crrDrCrFlag = model.getValue("/root/hidden/unsl_one/drcrflag");
- var bTransAcntCdYN = false;
-
- if(crrDrCrFlag == "C")
- {
- for(var j=0; j<arrTransAcntCd.length; j++)
- {
- if(arrTransAcntCd[j] == crrAcntCd) bTransAcntCdYN = true;
- }
- }
-
- var bExist = false;
-
- if(bTransAcntCdYN == true)
- {
- for(var i=1; i<grd_unsl.rows; i++)
- {
- var sAcntCd = grd_unsl.valueMatrix(i, grd_unsl.colRef("acntcd"));
- var sDrCrFlag = grd_unsl.valueMatrix(i, grd_unsl.colRef("drcrflag"));
-
- if(sDrCrFlag == "C")
- {
- for(var j=0; j<arrTransAcntCd.length; j++)
- {
- if(arrTransAcntCd[j] == sAcntCd) bExist = true;
- }
- }
-
- if(bExist)
- {
- if(grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1")) != model.getValue("/root/hidden/unsl_one/notefactcd1") && grd_unsl.row != i)
- {
- messageBox("하나의 전표에는 하나의 출금계좌만 설정할수 있습니다.\n연번[" + grd_unsl.valueMatrix(i, grd_unsl.colRef("seqno")) + "]와 지출계좌가 다릅니다." ,"I000");
- // model.setValue("/root/main/unsl_one/notefactcd1", grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1")));
- // model.setValue("/root/main/unsl_one/notefactspec1", grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactspec1")));
- // ipt_notecd1.refresh();
- // ipt_notecdnm1.refresh();
- return false;
- }
- else
- {
- bExist = false;
- }
- }
- }
- }
- return true;
- }
-
- //========================================================================================
- // 필수 기재사항 예외처리
- //========================================================================================
- function fcheckAcntOption()
- {
- for (i=1; i<7; i++)
- {
- var kind = model.getValue("/root/hidden/acntcdinfo/mngtkind"+i);
- var title = model.getValue("/root/hidden/acntcdinfo/notecdnm"+i);
- var option = model.getValue("/root/hidden/acntcdinfo/option"+i);
-
- if(option == "Y")
- {
- if((kind == "1" || kind == "3") && model.getValue("/root/hidden/unsl_one/notefactcd" + i) == "")
- {
- messageBox(title + "은(는)","I003");
- return false;
- }
- else if(kind == "2" && model.getValue("/root/hidden/unsl_one/notefactspec" + i) == "")
- {
- messageBox(title + "은(는)","I003");
- return false;
- }
- }
- }
- return true;
- }
-
- //========================================================================================
- //코드 Validation Check
- //========================================================================================
- 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);
- }
- }
- }
-
- //========================================================================================
- //각종 코드 Help Open
- //========================================================================================
- function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
- {
- misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
- model.refresh();
- }
-
- //========================================================================================
- // 입력 금액 계산
- //========================================================================================
- function fCalcAmt()
- {
- var vSumAmt = 0;
-
- for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
- {
- if(grd_unsl.rowStatus(i) != 4 && grd_unsl.rowStatus(i) != 5 && grd_unsl.rowStatus(i) != 6)
- {
- vSumAmt = vSumAmt + parseInt(grd_unsl.valueMatrix(i, grd_unsl.colRef("amt")), 10);
- }
- }
-
- model.setValue(ipt_amt.attribute("ref"), parseInt(model.getValue(opt_amt.attribute("ref")), 10) - parseInt(vSumAmt, 10));
- model.setValue(opt_sumamt.attribute("ref"), parseInt(vSumAmt, 10));
- ipt_amt.refresh();
- opt_sumamt.refresh();
- }
-
- //========================================================================================
- // 합계금액계산
- //========================================================================================
- // function fCalcBalAmt();
- // {
- // var amt = model.getValue("/root/target/slipinfo/amt");
- // var sumamt = 0;
- // for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
- // {
- // sumamt += parseInt(grd_unsl.valueMatrix(i, grd_unsl.colRef("amt")));
- // }
- // model.setValue("/root/hidden/sumamt", sumamt);
- // model.setValue("/root/hidden/unsl_one/amt", parseInt(amt, 10) - parseInt(sumamt, 10));
- // }
- //========================================================================================
- //그리드 삭제
- //========================================================================================
- function fAddDelRow(rowid)
- {
- var tmpStatus;
- tmpStatus = grd_unsl.rowStatus(rowid);
-
- if (tmpStatus == 1 || tmpStatus == 3)
- {
- grd_unsl.deleteRow(rowid);
- } else
- {
- grd_unsl.rowStatus(rowid) = 4;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="910" pageheight="550" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group4" scroll="auto" style="left:0px; top:19px; width:890px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:890px; height:35px; "/>
- <button id="btn_search" class="btn1_letter2" visibility="visible" style="left:824px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" visibility="visible" style="left:2px; top:9px; width:86px; height:17px; ">전표정보 :</caption>
- <output id="opt_arngmnunslno" ref="/root/hidden/unsl_one/arngmnunslno" class="output_fix" visibility="visible" style="left:220px; top:8px; width:50px; height:19px; text-align:center; "/>
- <line id="line5" class="line_4" style="x1:809px; y1:7px; x2:809px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <output id="opt_amt" ref="/root/target/slipinfo/amt" class="output_fix" visibility="visible" format="(-)#,###" style="left:375px; top:8px; width:115px; height:19px; text-align:right; padding-right:5; "/>
- <caption id="caption2" class="search_name" visibility="visible" style="left:280px; top:9px; width:88px; height:17px; ">전표금액 :</caption>
- <input id="ipt_arngmnunsldd" ref="/root/hidden/unsl_one/arngmnunsldd" class="input_s_essential" disabled="true" inputtype="date" style="left:95px; top:8px; width:120px; height:19px; "/>
- </group>
- <group id="group1" style="left:0px; top:0px; width:890px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">지급 내역 등록</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:54px; width:890px; height:441px; ">
- <button id="btn_grdset" class="btn2_letter3" style="left:717px; top:170px; width:53px; height:19px; ">
- <caption>행수정</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(!fNotNullCheck()) return; //저장전 유효성 검사
- if(!fcheckAcntOption()) return; // 필수기재사항 입력 여부 검사
-
- fSetGridData();
- grd_unsl.refresh();
- fResetControls();
- grd_unsl.rowStatus(grd_unsl.row) = 2;
- model.setFocus("btn_save");
- ]]>
- </script>
- </button>
- <line id="line3" class="line_1" style="x1:0px; y1:189px; x2:888px; y2:189px; "/>
- <datagrid id="grd_unsl" nodeset="/root/main/unsl" caption="일련번호^기관코드^발생결재전표일자^발생결재전표번호^일련번호^차/대변구분^계정코드^계정명^예산코드^미결금액^귀속부서코드^귀속부서^예산관리부서코드^예산관리부서명^기표부서코드^기표부서명^기재사항명1^기재사항코드1^기재사항내역1^기재사항명2^기재사항코드2^기재사항내역2^기재사항명3^기재사항코드3^기재사항내역3^기재사항명4^기재사항코드4^기재사항내역4^기재사항명5^기재사항코드5^기재사항내역5^기재사항명6^기재사항코드6^기재사항내역6^기타기재사항^미결전표작성자^전표적요" colsep="^" colwidth="0, 0, 0, 0, 60, 100, 100, 150, 0, 100, 0, 150, 0, 0 ,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 0, 0" dataheight="25" ellipsis="true" focuscolor="#ccffff" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="free" tooltip="true" style="left:0px; top:190px; width:890px; height:218px; ">
- <col ref="seqno"/>
- <col ref="instcd"/>
- <col ref="arngmnunsldd"/>
- <col ref="arngmnunslno"/>
- <col ref="seqno"/>
- <col ref="drcrflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>차변</label>
- <value>D</value>
- </item>
- <item>
- <label>대변</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col ref="acntcd" style="text-align:center; "/>
- <col ref="acntnm" style="text-align:center; "/>
- <col ref="bugtcd"/>
- <col ref="amt" format="(-)#,###" style="text-align:right; "/>
- <col ref="costcntrdeptcd"/>
- <col ref="costcntrdeptnm" style="text-align:left; padding-left:5; "/>
- <col ref="bugtmngtdeptcd"/>
- <col ref="bugtmngtdeptnm"/>
- <col ref="slipdeptcd"/>
- <col ref="slipdeptnm"/>
- <col ref="notefactnm1"/>
- <col ref="notefactcd1"/>
- <col ref="notefactspec1"/>
- <col ref="notefactnm2"/>
- <col ref="notefactcd2"/>
- <col ref="notefactspec2"/>
- <col ref="notefactnm3"/>
- <col ref="notefactcd3"/>
- <col ref="notefactspec3"/>
- <col ref="notefactnm4"/>
- <col ref="notefactcd4"/>
- <col ref="notefactspec4"/>
- <col ref="notefactnm5"/>
- <col ref="notefactcd5"/>
- <col ref="notefactspec5"/>
- <col ref="notefactnm6"/>
- <col ref="notefactcd6"/>
- <col ref="notefactspec6"/>
- <col ref="etcnotefact" style="text-align:left; padding-left:5; "/>
- <col ref="unslwrit"/>
- <col ref="slipcmt"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_unsl.isCell(event.target) && grd_unsl.fixedRows <= grd_unsl.row)
- {
- //fAcntInfoSelect();
-
- btn_reset.disabled = false;
- btn_grdadd.disabled = true;
- btn_grdset.disabled = false;
-
- model.setValue("/root/hidden/unsl_one/instcd", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/instcd" ));
- model.setValue("/root/hidden/unsl_one/arngmnunsldd", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/arngmnunsldd" ));
- model.setValue("/root/hidden/unsl_one/arngmnunslno", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/arngmnunslno" ));
- model.setValue("/root/hidden/unsl_one/drcrflag", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/drcrflag" ));
- model.setValue("/root/hidden/unsl_one/acntcd", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/acntcd" ));
- model.setValue("/root/hidden/unsl_one/acntnm", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/acntnm" ));
- model.setValue("/root/hidden/unsl_one/bugtcd", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/bugtcd" ));
- model.setValue("/root/hidden/unsl_one/amt", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/amt" ));
- model.setValue("/root/hidden/unsl_one/costcntrdeptcd", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/costcntrdeptcd" ));
- model.setValue("/root/hidden/unsl_one/costcntrdeptnm", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/costcntrdeptnm" ));
- model.setValue("/root/hidden/unsl_one/bugtmngtdeptcd", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/bugtmngtdeptcd" ));
- model.setValue("/root/hidden/unsl_one/slipdeptcd", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/slipdeptcd" ));
- model.setValue("/root/hidden/unsl_one/notefactnm1", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm1" ));
- model.setValue("/root/hidden/unsl_one/notefactcd1", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd1" ));
- model.setValue("/root/hidden/unsl_one/notefactspec1", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec1" ));
- model.setValue("/root/hidden/unsl_one/notefactnm2", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm2" ));
- model.setValue("/root/hidden/unsl_one/notefactcd2", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd2" ));
- model.setValue("/root/hidden/unsl_one/notefactspec2", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec2" ));
- model.setValue("/root/hidden/unsl_one/notefactnm3", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm3" ));
- model.setValue("/root/hidden/unsl_one/notefactcd3", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd3" ));
- model.setValue("/root/hidden/unsl_one/notefactspec3", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec3" ));
- model.setValue("/root/hidden/unsl_one/notefactnm4", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm4" ));
- model.setValue("/root/hidden/unsl_one/notefactcd4", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd4" ));
- model.setValue("/root/hidden/unsl_one/notefactspec4", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec4" ));
- model.setValue("/root/hidden/unsl_one/notefactnm5", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm5" ));
- model.setValue("/root/hidden/unsl_one/notefactcd5", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd5" ));
- model.setValue("/root/hidden/unsl_one/notefactspec5", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec5" ));
- model.setValue("/root/hidden/unsl_one/notefactnm6", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm6" ));
- model.setValue("/root/hidden/unsl_one/notefactcd6", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd6" ));
- model.setValue("/root/hidden/unsl_one/notefactspec6", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec6" ));
- model.setValue("/root/hidden/unsl_one/etcnotefact", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/etcnotefact" ));
- model.setValue("/root/hidden/unsl_one/unslwrit", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/unslwrit" ));
- model.setValue("/root/hidden/unsl_one/slipcmt", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/slipcmt" ));
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:171px; width:183px; height:13px; ">지급 내역</caption>
- <output id="opt_sumamt" ref="/root/hidden/sumamt" format="(-)#,###" style="left:761px; top:416px; width:125px; height:19px; "/>
- <caption id="caption3" style="left:671px; top:416px; width:100px; height:20px; ">지급 금액 합계 :</caption>
- <caption id="caption23" class="cell_1" style="left:277px; top:30px; width:110px; height:23px; vertical-align:middle; ">계정과목</caption>
- <caption id="caption24" class="cell_1" style="left:7px; top:30px; width:110px; height:23px; vertical-align:middle; ">차/대 구분</caption>
- <caption id="caption25" class="cell_1" style="left:7px; top:4px; width:110px; height:23px; vertical-align:middle; ">전표적요</caption>
- <caption id="caption4" class="cell_1" style="left:665px; top:30px; width:110px; height:23px; vertical-align:middle; ">금액</caption>
- <line id="line10" class="line_2" style="x1:1px; y1:133px; x2:890px; y2:133px; "/>
- <line id="line1" class="line_2" style="x1:0px; y1:107px; x2:889px; y2:107px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:159px; x2:889px; y2:159px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:54px; x2:889px; y2:54px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:28px; x2:889px; y2:28px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:79px; x2:889px; y2:79px; "/>
- <input id="ipt_slipcmt" ref="/root/hidden/unsl_one/slipcmt" class="input_search" navindex="2" style="left:120px; top:6px; width:765px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {model.setFocus("ipt_acntcd");}
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- for(var i = 1 ; i < grd_unsl.rows - grd_unsl.fixedRows + 1 ; i++)
- {
- model.setValue(grd_unsl.nodeset + "[" + i + "]/slipcmt", model.getValue(ipt_slipcmt.attribute("ref")));
- }
-
- for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
- {
- grd_unsl.addStatus(i, "update");
- }
-
- if(model.getValue(ipt_etcnotefact.attribute("ref")) == "" && model.getValue(ipt_slipcmt.attribute("ref")) != "")
- {
- model.setValue(ipt_etcnotefact.attribute("ref"), model.getValue(ipt_slipcmt.attribute("ref")));
- ipt_etcnotefact.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_amt" ref="/root/hidden/unsl_one/amt" class="input_search" navindex="6" format="(-)#,###" style="left:779px; top:32px; width:106px; height:19px; text-align:right; padding-right:5; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){model.setFocus("ipt_etcnotefact");}
- ]]>
- </script>
- </input>
- <button id="btn_grddel" class="btn2_letter3" style="left:832px; top:170px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fAddDelRow(grd_unsl.row);
- fCalcAmt();
- ]]>
- </script>
- </button>
- <button id="btn_reset" class="btn2_letter3" style="left:662px; top:169px; width:53px; height:19px; text-align:left; ">
- <caption>행정리</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- btn_grdset.disabled = true;
- btn_grdadd.disabled = false;
- fResetControls();
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" navindex="7" style="left:777px; top:170px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(!fNotNullCheck()) return; //저장전 유효성 검사
- if(!fcheckAcntOption()) return; // 필수기재사항 입력 여부 검사
-
- misfGridIUD(grd_unsl, "A");
- if(grd_unsl.valueMatrix(grd_unsl.row, grd_unsl.colRef("seqno")) == "")
- { //alert("1");
- fMakeSeqNo(grd_unsl.row);
- }
-
- fSetGridData();
- grd_unsl.refresh();
- fResetControls();
- fCalcAmt();
- model.setFocus("btn_save");
- ]]>
- </script>
- </button>
- <select1 id="rdo_drcrflag" ref="/root/hidden/unsl_one/drcrflag" disabled="true" navindex="-1" overflow="visible" appearance="full" cellspacing="40" cols="2" style="left:122px; top:32px; width:158px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>차변</label>
- <value>D</value>
- </item>
- <item>
- <label>대변</label>
- <value>C</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_acntnm" ref="/root/hidden/unsl_one/acntnm" class="input_essential" navindex="3" imemode="hangul" style="left:489px; top:32px; width:171px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {model.setFocus("ipt_amt"); }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("05", "acntcd,acntnm", "", "", "ipt_slipyn,ipt_instcd", "slipyn,instcd");
- fAcntInfoSelect();
- ]]>
- </script>
- </input>
- <button id="btn_acntcd" class="icon_search" navindex="-1" style="left:469px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp("05", ipt_acntcd, "acntcd,acntnm", "", "ipt_slipyn,ipt_instcd", "slipyn,instcd");
- fAcntInfoSelect();
- ]]>
- </script>
- </button>
- <input id="ipt_acntcd" ref="/root/hidden/unsl_one/acntcd" class="input_essential" navindex="-1" style="left:390px; top:32px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {model.setFocus("ipt_amt");}
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("05", "acntcd,acntnm", "", "", "ipt_slipyn,ipt_instcd", "slipyn,instcd");
- fAcntInfoSelect();
- ]]>
- </script>
- </input>
- <switch id="switch1" class="sw_no_border" style="left:6px; top:57px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
- <case id="case_notenm1" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
- <caption id="caption34" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
- <output id="opt_notenm1" ref="/root/hidden/unsl_one/notefactnm1" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notenm1" ref="/root/hidden/unsl_one/notefactspec1" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
- </case>
- <case id="case_notecd1" sgetUserInfoelected="true" style="background-color:transparent; ">
- <caption id="caption5" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecd1" ref="/root/hidden/unsl_one/notefactnm1" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notecd1" ref="/root/hidden/unsl_one/notefactcd1" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd1"), "notefactcd1,notefactspec1", "", "ipt_amt", "ipt_acntcd", "acntcd");
- fAactCheck();
- ]]>
- </script>
- </input>
- <input id="ipt_notecdnm1" ref="/root/hidden/unsl_one/notefactspec1" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd1"), "notefactcd1,notefactspec1", "", "ipt_amt", "ipt_acntcd", "acntcd");
- fAactCheck();
- ]]>
- </script>
- </input>
- <button id="btn_notecd1" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd1"), ipt_notecd1, "notefactcd1,notefactspec1", "", "ipt_acntcd", "acntcd");
- fAactCheck();
- ]]>
- </script>
- </button>
- </case>
- <case id="case_notecombo1" style="background-color:transparent; border-color:transparent; ">
- <caption id="caption40" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecombo1" ref="/root/hidden/unsl_one/notefactnm1" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <select1 id="cmb_notecombo1" ref="/root/hidden/unsl_one/notefactcd1" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/acntcdcombo/notecombo1">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case_noteblank1" selected="true">
- <caption id="caption39" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- </case>
- </switch>
- <switch id="switch2" class="sw_no_border" style="left:409px; top:57px; width:402px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
- <case id="case_notenm2" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
- <caption id="caption9" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
- <output id="opt_notenm2" ref="/root/hidden/unsl_one/notefactnm2" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notenm2" ref="/root/hidden/unsl_one/notefactspec2" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
- </case>
- <case id="case_notecd2" style="background-color:transparent; ">
- <caption id="caption20" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecd2" ref="/root/hidden/unsl_one/notefactnm2" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notecd2" ref="/root/hidden/unsl_one/notefactcd2" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd2"), "notefactcd2,notefactspec2", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <input id="ipt_notecdnm2" ref="/root/hidden/unsl_one/notefactspec2" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd2"), "notefactcd2,notefactspec2", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <button id="btn_notecd2" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd2"), ipt_notecd1, "notefactcd2,notefactspec2", "", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </button>
- </case>
- <case id="case_notecombo2" style="background-color:transparent; border-color:transparent; ">
- <caption id="caption21" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecombo2" ref="/root/hidden/unsl_one/notefactnm2" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <select1 id="cmb_notecombo2" ref="/root/hidden/unsl_one/notefactcd2" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/acntcdcombo/notecombo2">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case_noteblank2" selected="true">
- <caption id="caption29" ref="/root/hidden/unsl_one/notefactnm2" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- </case>
- </switch>
- <switch id="switch3" class="sw_no_border" style="left:6px; top:82px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
- <case id="case_notenm3" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
- <caption id="caption31" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
- <output id="opt_notenm3" ref="/root/hidden/unsl_one/notefactnm3" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notenm3" ref="/root/hidden/unsl_one/notefactspec3" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
- </case>
- <case id="case_notecd3" style="background-color:transparent; ">
- <caption id="caption32" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecd3" ref="/root/hidden/unsl_one/notefactnm3" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notecd3" ref="/root/hidden/unsl_one/notefactcd3" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd3"), "notefactcd3,notefactspec3", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <input id="ipt_notecdnm3" ref="/root/hidden/unsl_one/notefactspec3" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd3"), "notefactcd3,notefactspec3", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <button id="btn_notecd3" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd3"), ipt_notecd1, "notefactcd3,notefactspec3", "", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </button>
- </case>
- <case id="case_notecombo3" style="background-color:transparent; border-color:transparent; ">
- <caption id="caption35" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecombo3" ref="/root/hidden/unsl_one/notefactnm3" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <select1 id="cmb_notecombo3" ref="/root/hidden/unsl_one/notefactcd3" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/acntcdcombo/notecombo3">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case_noteblank3" selected="true">
- <caption id="caption36" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- </case>
- </switch>
- <switch id="switch4" class="sw_no_border" style="left:409px; top:82px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
- <case id="case_notenm4" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
- <caption id="caption37" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
- <output id="opt_notenm4" ref="/root/hidden/unsl_one/notefactnm4" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notenm4" ref="/root/hidden/unsl_one/notefactspec4" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
- </case>
- <case id="case_notecd4" style="background-color:transparent; ">
- <caption id="caption38" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecd4" ref="/root/hidden/unsl_one/notefactnm4" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notecd4" ref="/root/hidden/unsl_one/notefactcd4" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd4"), "notefactcd4,notefactspec4", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <input id="ipt_notecdnm4" ref="/root/hidden/unsl_one/notefactspec4" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd4"), "notefactcd4,notefactspec4", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <button id="btn_notecd4" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd4"), ipt_notecd1, "notefactcd4,notefactspec4", "", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </button>
- </case>
- <case id="case_notecombo4" style="background-color:transparent; border-color:transparent; ">
- <caption id="caption41" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecombo4" ref="/root/hidden/unsl_one/notefactnm4" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <select1 id="cmb_notecombo4" ref="/root/hidden/unsl_one/notefactcd4" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/acntcdcombo/notecombo4">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case_noteblank4" selected="true" style="left:0px; top:0px; width:403px; height:25px; ">
- <caption id="caption42" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- </case>
- </switch>
- <switch id="switch5" class="sw_no_border" style="left:6px; top:107px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
- <case id="case_notenm5" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
- <caption id="caption43" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
- <output id="opt_notenm5" ref="/root/hidden/unsl_one/notefactnm5" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notenm5" ref="/root/hidden/unsl_one/notefactspec5" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
- </case>
- <case id="case_notecd5" style="background-color:transparent; ">
- <caption id="caption44" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecd5" ref="/root/hidden/unsl_one/notefactnm5" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notecd5" ref="/root/hidden/unsl_one/notefactcd5" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd5"), "notefactcd5,notefactspec5", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <input id="ipt_notecdnm5" ref="/root/hidden/unsl_one/notefactspec5" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd5"), "notefactcd5,notefactspec5", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <button id="btn_notecd5" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwn5"), ipt_notecd1, "notefactcd5,notefactspec5", "", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </button>
- </case>
- <case id="case_notecombo5" style="background-color:transparent; border-color:transparent; ">
- <caption id="caption45" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecombo5" ref="/root/hidden/unsl_one/notefactnm5" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <select1 id="cmb_notecombo5" ref="/root/hidden/unsl_one/notefactcd5" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/acntcdcombo/notecombo5">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case_noteblank5" selected="true">
- <caption id="caption46" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- </case>
- </switch>
- <switch id="switch6" class="sw_no_border" style="left:409px; top:107px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
- <case id="case_notenm6" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
- <caption id="caption48" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
- <output id="opt_notenm6" ref="/root/hidden/unsl_one/notefactnm6" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notenm6" ref="/root/hidden/unsl_one/notefactspec6" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
- </case>
- <case id="case_notecd6" style="background-color:transparent; ">
- <caption id="caption50" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecd6" ref="/root/hidden/unsl_one/notefactnm6" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notecd6" ref="/root/hidden/unsl_one/notefactcd6" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd6"), "notefactcd6,notefactspec6", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <input id="ipt_notecdnm6" ref="/root/hidden/unsl_one/notefactspec6" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd6"), "notefactcd6,notefactspec6", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <button id="btn_notecd6" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd6"), ipt_notecd1, "notefactcd6,notefactspec6", "", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </button>
- </case>
- <case id="case_notecombo6" style="background-color:transparent; border-color:transparent; ">
- <caption id="caption52" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecombo6" ref="/root/hidden/unsl_one/notefactnm6" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <select1 id="cmb_notecombo6" ref="/root/hidden/unsl_one/notefactcd6" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/acntcdcombo/notecombo6">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case_noteblank6" selected="true">
- <caption id="caption54" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- </case>
- </switch>
- <input id="ipt_etcnotefact" ref="/root/hidden/unsl_one/etcnotefact" class="input_search" navindex="2" style="left:120px; top:136px; width:765px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {model.setFocus("btn_grdadd");}
- ]]>
- </script>
- </input>
- <caption id="caption8" class="cell_1" style="left:7px; top:134px; width:110px; height:23px; vertical-align:middle; ">세부적요</caption>
- <select id="checkbox1" ref="/root/hidden/acntcdinfo/option1" visibility="hidden" overflow="visible" appearance="full" style="left:430px; top:375px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>option1</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox2" ref="/root/hidden/acntcdinfo/option2" visibility="hidden" overflow="visible" appearance="full" style="left:430px; top:390px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>option2</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox3" ref="/root/hidden/acntcdinfo/option3" visibility="hidden" overflow="visible" appearance="full" style="left:430px; top:410px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>option3</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox4" ref="/root/hidden/acntcdinfo/option4" visibility="hidden" overflow="visible" appearance="full" style="left:540px; top:375px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>option3</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox5" ref="/root/hidden/acntcdinfo/option5" visibility="hidden" overflow="visible" appearance="full" style="left:540px; top:390px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>option5</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox6" ref="/root/hidden/acntcdinfo/option6" visibility="hidden" overflow="visible" appearance="full" style="left:540px; top:410px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>option6</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:494px; width:890px; height:27px; ">
- <button id="btn_cancel" class="btn4_letter2" style="left:832px; top:2px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!fCheckStatus()) return;
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:885px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" navindex="8" style="left:770px; top:2px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var vDcnt = 0;
- var vRcnt = grd_unsl.rows - grd_unsl.fixedRows;
-
- for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
- {
- if(grd_unsl.rowStatus(i) == 4 || grd_unsl.rowStatus(i) == 5 || grd_unsl.rowStatus(i) == 6)
- {
- vDcnt = vDcnt + 1;
- }
- }
-
- if(vDcnt == vRcnt)
- {
- messageBox("모두 삭제하면 전표를 생성할 수 없습니다.\n 전표를 삭제하시려면 부채계정을 모두 삭제하시면 됩니다." ,"I000");
- fSearch();
- return false;
- }
-
- if(getGridUpdateData(grd_unsl) == "") return;
- if(!fIsValidForSave) return;
- model.makeValue("/root/send/unsl",grd_unsl.getUpdateData());
-
- misfSave("TXRAD00391");
-
- var receiveref = model.getValue("/root/target/receiveref");
-
- if(opt_arngmnunslno.value == "" && model.getValue("/root/temp/returnunslno/returnunslno") != "")
- {
- model.setValue(opt_arngmnunslno.attribute("ref"), model.getValue("/root/temp/returnunslno/returnunslno"));
- ipt_arngmnunsldd.disabled = true;
- }
-
-
-
- if (checkOpener())
- {
- opener.model.setValue(receiveref + "/payamt" , model.getValue(opt_sumamt.attribute("ref")));
- opener.model.setValue(receiveref + "/payarngmnunsldd" , model.getValue(ipt_arngmnunsldd.attribute("ref")));
- opener.model.setValue(receiveref + "/payarngmnunslno" , model.getValue(opt_arngmnunslno.attribute("ref")));
- opener.model.setValue(receiveref + "/updateflag" , 'Y');
- messageBox("저장이 " ,"I002");
-
- btn_search.dispatch("DOMActivate");
- }
- else
- {
- messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
- }
-
-
- ]]>
- </script>
- </button>
- </group>
- <input id="ipt_slipyn" ref="/root/hidden/slipyn" navindex="-1" visibility="hidden" style="left:825px; top:140px; width:35px; height:19px; "/>
- <input id="ipt_instcd" ref="/root/target/slipinfo/instcd" navindex="-1" visibility="hidden" style="left:835px; top:160px; width:35px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|