123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>비품청구 등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <goodreq>
- <goodreqlist/>
- <goodmaxreqno/>
- </goodreq>
- <goodreqno>
- <goodmaxreqno/>
- </goodreqno>
- <lrg>
- <lrglist/>
- </lrg>
- <mdl>
- <mdllist/>
- </mdl>
- <sml>
- <smllist/>
- </sml>
- <fixasetcd>
- <fixasetcdlist/>
- </fixasetcd>
- </list>
- <goodreq>
- <goodreqlist>
- <reqdd/>
- <reqno/>
- <reqpsnnm/>
- <reqdeptnm/>
- <bugtexpcamt/>
- <reqflagnm/>
- <reqflag/>
- <reqseqno/>
- <workflag/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpycd/>
- <prodcmpynm/>
- <bugtcd/>
- <bugtnm/>
- <bugtyy/>
- <stdysubjno/>
- <reqdeptcd/>
- <installplcecd/>
- <reqpsnid/>
- <reqtm/>
- <delivedeptcd/>
- <delivehopedd/>
- <reqqty/>
- <requnit/>
- <attfilenm/>
- <attfilepathnm/>
- <makeyn/>
- <deptaprvyn/>
- <deptaprvdd/>
- <acptflag/>
- <acptdd/>
- <adjtqty/>
- <adjtrsn/>
- <acptcharid/>
- <plceorddd/>
- <plceordseqno/>
- <deliveqty/>
- <unwinresn/>
- <deliveprcsflag/>
- <cmt/>
- <instcd/>
- <installplcenm/>
- <totamt/>
- <useamt/>
- <remamt/>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <smlnm/>
- <fixasetcd/>
- <bugtflag/>
- <stdysubjnm/>
- <suplplcecd/>
- <suplplcenm/>
- <wncurncyamt/>
- <plceordamt/>
- <cntrdeptcd/>
- <cntrdeptcdnm/>
- <mngtdeptcd/>
- <mngtdeptcdnm/>
- <reqtel/>
- </goodreqlist>
- </goodreq>
- <printdata>
- <data/>
- </printdata>
- <apln>
- <approval11/>
- <approval12/>
- <approval13/>
- <approval14/>
- <approval15/>
- <approval16/>
- <approval21/>
- <approval22/>
- <approval23/>
- <approval24/>
- <approval25/>
- <approval26/>
- <arbitrary1/>
- <arbitrary2/>
- <arbitrary3/>
- <arbitrary4/>
- <arbitrary5/>
- <arbitrary6/>
- <iudflag/>
- <instcd/>
- <deptcd/>
- <expansion/>
- </apln>
- </main>
- <send>
- <save>
- <goodreqlist/>
- </save>
- <goodreq>
- <instcd/>
- <reqdeptcd/>
- <reqdeptnm/>
- <reqflag/>
- <reqfrdd/>
- <deliveprcsflag/>
- <retrmaxreqnoyn/>
- <reqpsnid/>
- <reqpsnnm/>
- <instcdnm/>
- <reqtodd/>
- <reqdd/>
- <acptflag/>
- </goodreq>
- <lrgcd>
- <lrgcd/>
- <mdlcd/>
- <instcd/>
- <goodflag/>
- </lrgcd>
- <fixasetcd>
- <instcd/>
- <goodflag/>
- <cntrdeptcd/>
- </fixasetcd>
- <fileupcolumn>
- <instcd/>
- <reqdd/>
- <fileseqno/>
- <reqflag/>
- <reqno/>
- <reqseqno/>
- <reqpsnid/>
- <attfilenm/>
- <attfilepathnm/>
- <reqdeptcd/>
- <fileupload>
- <file>
- <filename/>
- </file>
- </fileupload>
- </fileupcolumn>
- <init>
- <instcd/>
- <reqflag/>
- <emplno/>
- <reqaprvflag/>
- </init>
- <retrparam>
- <instcd/>
- <frdate/>
- <todate/>
- <prntkind>RPRAD01301</prntkind>
- <searchflag/>
- <aactcd/>
- <aactno/>
- <aactnm/>
- <temp/>
- <slipkind/>
- <slipdeptcd/>
- <refundflag/>
- <aplnflag>1</aplnflag>
- <sanctnofrom/>
- <sanctnoto/>
- <paymethod/>
- <workflag>drawseqno</workflag>
- </retrparam>
- <reqpsn>
- <instcd/>
- <emplno/>
- <reqflag/>
- </reqpsn>
- </send>
- <temp>
- <selectrow/>
- <authinfo/>
- </temp>
- <hidden>
- <rptparams>
- <frdate/>
- <todate/>
- <approval21/>
- <approval22/>
- <approval23/>
- <approval24/>
- <approval25/>
- <approval26/>
- <arbitrary1/>
- <arbitrary2/>
- <arbitrary3/>
- <arbitrary4/>
- <arbitrary5/>
- <arbitrary6/>
- <expansion/>
- <usernm/>
- <sanctnofrom/>
- <sanctnoto/>
- <approval11/>
- <approval12/>
- <approval13/>
- <approval14/>
- <approval15/>
- <approval16/>
- <approval17/>
- </rptparams>
- <reqpsnlist/>
- </hidden>
- </root>
- </instance>
- <bind id="plceordamt" ref="/root/main/goodreq/goodreqlist/plceordamt" calculate="../wncurncyamt *../reqqty"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fCheckAuth();
- fAllControlDisabled("Y")
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSD11101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/goodreq"/>
- <submission id="TRRSD11102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/goodreq/goodreqlist" resultref="/root/main/list/goodreqno"/>
- <submission id="TXRSD11101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TRRSD11104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lrgcd" resultref="/root/main/list/lrg"/>
- <submission id="TRRSD11105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lrgcd" resultref="/root/main/list/mdl"/>
- <submission id="TRRSD11106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lrgcd" resultref="/root/main/list/sml"/>
- <submission id="TRRFC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixasetcd" resultref="/root/main/list/fixasetcd"/>
- <submission id="TXRSD00421" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/fileupcolumn" resultref="/root/temp"/>
- <submission id="TXRSD00422" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/fileupcolumn" resultref="/root/temp"/>
- <submission id="TRRSC06001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/init" resultref="/root/hidden/reqpsnlist"/>
- <submission id="TRRAD00151" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam" resultref="/root/main/apln"/>
- <submission id="TRRSC08100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/RscsysinftLists"/>
- <submission id="TRRSD04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqpsn" resultref="/root/temp/authinfo"/>
- </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/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- model.resetInstanceNode("/root/send");
-
- misfComboComCdListMulti("R0246","cmb_workflag");
-
- rszfComboUnitList (cmb_requnit, getUserInfo("dutplceinstcd"), "G");
-
- rszfComboBugtList(cmb_bugtcd,getUserInfo("dutplceinstcd"));
-
- rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag_search);
- //rszfComboAppendBlankChild("cmb_deliveprceflag");
-
- misfGridInit(grd_goodreq);
- misfGridInit(grd_lrglist);
- misfGridInit(grd_mdllist);
- misfGridInit(grd_smllist);
- misfGridInit(grd_fixasetcdlist);
-
- misfMsterDetailSet(grd_goodreq,null, "TRRSD11101" ,"Y");
-
- //청구날짜 설정
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
- //이번달 1일 과 마지막일을 셋팅하는 부분
- model.setValue(ipt_reqdd_search.attribute("ref") , curdate.substr(0,6)+"01" );
- model.setValue(ipt_reqtodd_search.attribute("ref") , curdate.substr(0,6)+cvtdate.getMonthDay() );
-
- model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm"));
-
- // 사용자의 부서가 하나가 아니면 오류메세지를 호출하며. 부서가 하나이면 부서코드와 부서명을 설정해준다.
- model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(ipt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
- model.setValue(ipt_reqpsnid_search.attribute("ref") , getUserInfo("userid"));
- model.setValue(opt_reqpsnnm.attribute("ref") , getUserInfo("usernm"));
-
- // hidden
- model.setValue(cmb_reqflag_search.attribute("ref") , "D");
- model.setValue(ipt_goodflag.attribute("ref") , "GE");
-
- // 맵을 다른화면에서도 사용하기 때문에 기본값이 되는 reqdd 값을 N 으로 설정함으로써
- // 이화면상의 조회를 가능하게 함.
- model.setValue("/root/send/goodreq/reqdd", "N");
- btn_search.dispatch("DOMActivate");
- // 권한설정.
- fSetReqAuth();
- //권한자 외의 일반 사용자들의 사용부서, 의뢰자 이름 바꾸지 못하게함.
- model.setValue("/root/send/init/instcd", model.getValue("/root/send/goodreq/instcd"));
- model.setValue("/root/send/init/emplno",getUserInfo("userid"));
- ipt_reqflag2.value="D";
- submit("TRRSC06001");
-
- // 구매팀, 구매Unit 의 모든 직원들에게 청구부서를 바꿀수 있는 권한을 줌. 하드코딩_팀 바꾸고 싶다면 부서코드를 바꿔줘야..
- if((grd_reqpsnlist.rows - grd_reqpsnlist.fixedRows)==0 && !fCheckPurcTeam() )
- {
- ipt_reqdeptcd_search.disabled = true;
- btn_reqdept.disabled = true;
- }
- // 구매팀, 구매Unit 직원들만 미접수라는 표시가 뜨며 조회조건과 관계없이 미접수된 청구내역을 볼수 있다.
- if(fCheckPurcTeam())
- chb_acptflag.visible = true;
-
- // 대분류 코드 리스트 초기화
- fInitCodeList();
-
- model.refresh();
- }
-
- function fCheckAuth() {
- //btn_search.disabled = !checkAuth("R") ;
- //btn_save.disabled = !checkAuth("X") ;
- }
-
- // 구매팀, 구매Unit 직원 체크(하드코딩)
- function fCheckPurcTeam(){
- if(getUserInfo("dutplcecd") == "4080100000" || getUserInfo("dutplcecd") == "4080102000" || getUserInfo("dutplcecd") == "4080300000") return true;
- else return false;
- }
-
- function fSetControlDisabled(pDisabled)
- {
- ipt_reqno.disabled = pDisabled;
- }
-
- function fSetReqAuth()
- {
- /* ---------------------------------------------------------------------------------------
- * [2007.12.12 HBH ] 청구주기 추가.
- * 수리,장비등 청구주기가 없는 것들은 '1'로셋팅
- ---------------------------------------------------------------------------------------*/
- rszfGetPurcReqAuthInfo(model.getValue(opt_instcd.attribute("ref")), "D" , model.getValue(ipt_reqdeptcd_search.attribute("ref")), getUserInfo("userid"),"1");
- model.refresh();
- }
-
- /*--------------------------------------------------------------------------------*/
- /* 화면 open시 disable ..행추가시 또는 조회후 값 존재시 enable */
- /*--------------------------------------------------------------------------------*/
- function fAllControlDisabled(pDisableYn)
- {
- if(pDisableYn == "Y")
- {
- ipt_goodnm.disabled ="true";
- ipt_goodspec.disabled ="true";
- ipt_goodmodel.disabled ="true";
- cmb_workflag.disabled ="true";
- rbo_makeyn.disabled ="true";
- cmb_requnit.disabled ="true";
- ipt_prodcmpycd.disabled ="true";
- ipt_reqqty.disabled ="true";
- ipt_installplcecd.disabled ="true";
-
- ipt_reqtel.disabled = "true";
- ipt_reqdd.disabled ="true";
-
- ipt_cntrdeptcd.disabled ="true";
- btn_cntrdeptcd.disabled ="true";
- ipt_cntrdeptcdnm.disabled ="true";
-
- ipt_mngtdeptcd.disabled ="true";
- btn_mngtdeptcd.disabled ="true";
- ipt_mngtdeptcdnm.disabled ="true";
-
- ipt_bugtyy.disabled ="true";
- ipt_bugtexpcamt.disabled ="true";
- // ipt_attfilename.disabled ="true";
- ipt_attfilenm.disabled ="true";
-
- /*-----------------------------------------------------------------*/
- /* 하단은 disable 해놓구 우측에서 선택하게한다. */
- /*-----------------------------------------------------------------*/
- // ipt_lrgcd.disabled ="true";
- opt_lrgnm.disabled ="true";
- // ipt_mdlcd.disabled ="true";
- opt_mdlnm.disabled ="true";
- // ipt_smlcd.disabled ="true";
- opt_smlnm.disabled ="true";
- ipt_fixasetcd.disabled ="true";
- btn_addfile.disabled="true";
- btn_downfile.disabled="true";
-
- txt_cmt.disabled="true";
-
- cmb_bugtcd.disabled="true";
- ipt_stdysubjno.disabled="true";
- ipt_stdysubjnm.disabled="true";
-
- // ipt_wncurncyamt.disabled="true";
- // ipt_plceordamt.disabled="true";
- // ipt_suplplcecd.disabled="true";
- // ipt_suplplcenm.disabled="true";
- // btn_suplplcecd.disabled="true";
- ipt_prodcmpynm.disabled="true";
- ipt_installplcenm.disabled="true";
- }
- else
- {
-
- ipt_goodnm.disabled ="false";
- ipt_goodspec.disabled ="false";
- ipt_goodmodel.disabled ="false";
- cmb_workflag.disabled ="false";
- rbo_makeyn.disabled ="false";
- cmb_requnit.disabled ="false";
- ipt_prodcmpycd.disabled ="false";
- ipt_reqqty.disabled ="false";
- ipt_installplcecd.disabled ="false";
-
- ipt_reqtel.disabled = "false";
- ipt_reqdd.disabled ="true";
-
- ipt_cntrdeptcd.disabled ="false";
- btn_cntrdeptcd.disabled ="false";
- ipt_cntrdeptcdnm.disabled ="false";
-
- ipt_mngtdeptcd.disabled ="false";
- btn_mngtdeptcd.disabled ="false";
- ipt_mngtdeptcdnm.disabled ="false";
-
- ipt_bugtyy.disabled ="true";
- ipt_bugtexpcamt.disabled ="false";
- // ipt_attfilename.disabled ="false";
- ipt_attfilenm.disabled ="true";
-
- btn_addfile.disabled="false";
- btn_downfile.disabled="false";
-
- txt_cmt.disabled="false";
- cmb_bugtcd.disabled="false";
- ipt_stdysubjno.disabled="false";
- ipt_stdysubjnm.disabled="false";
- // ipt_wncurncyamt.disabled="false";
- // ipt_plceordamt.disabled="false";
- // ipt_suplplcecd.disabled="false";
- // ipt_suplplcenm.disabled="false";
- // btn_suplplcecd.disabled="false";
- ipt_prodcmpynm.disabled="false";
- ipt_installplcenm.disabled="false";
- }
- model.refresh();
- }
-
- function fInitCodeList(){
- misfGridInit(grd_lrglist);
- //misfGridInit(grd_mdllist);
- //misfGridInit(grd_smllist);
-
- model.setValue("/root/send/lrgcd/goodflag" , model.getValue(ipt_goodflag.attribute("ref")));
- model.setValue("/root/send/lrgcd/instcd" , model.getValue(opt_instcd.attribute("ref")));
- submit("TRRSD11104");
-
- if(grd_lrglist.rows>1) {
- grd_lrglist.row=1;
- }
- grd_lrglist.dispatch("onrowchanged");
- }
- function fMovecd(pgrid_name)
- {
- if(model.GetValue(cmb_workflag.attribute("ref")).length == 0)
- {
- messageBox("행추가를 먼저하시거나 청구사유를 먼저 " ,"C002");
- //model.setFocus("cmb_instcd_search");
- return;
- }
-
- if(swh_select.selectedIndex == 0)
- {
- if (pgrid_name == "grd_smllist")
- {
- if (grd_smllist.row > 0)
- {
- //model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd",grd_goodlist.valueMatrix(grd_goodlist.row , grd_goodlist.colRef("goodcd")));
-
- /* 대분류 */
- model.setValue(ipt_lrgcd.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgcd")));
- model.setValue(opt_lrgnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")));
- /* 중분류*/
- model.setValue(ipt_mdlcd.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlcd")));
- model.setValue(opt_mdlnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")));
- /* 소분류 */
- model.setValue(ipt_smlcd.attribute("ref"), grd_smllist.valueMatrix(grd_smllist.row , grd_smllist.colRef("smlcd")));
- model.setValue(opt_smlnm.attribute("ref"), grd_smllist.valueMatrix(grd_smllist.row , grd_smllist.colRef("smlnm")));
-
- model.setValue(ipt_goodnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")) + ' / '+
- grd_smllist.valueMatrix(grd_smllist.row , grd_smllist.colRef("smlnm")));
-
- model.refresh();
- }
- }
- else if(pgrid_name == "grd_mdllist")
- {
- if (grd_mdllist.row > 0)
- {
- //model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd",grd_goodlist.valueMatrix(grd_goodlist.row , grd_goodlist.colRef("goodcd")));
-
- /* 대분류 */
- model.setValue(ipt_lrgcd.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgcd")));
- model.setValue(opt_lrgnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")));
- /* 중분류*/
- model.setValue(ipt_mdlcd.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlcd")));
- model.setValue(opt_mdlnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")));
- /* 소분류 */
- model.setValue(ipt_smlcd.attribute("ref"), "");
- model.setValue(opt_smlnm.attribute("ref"), "");
-
- model.setValue(ipt_goodnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")) );
- model.refresh();
- }
- }
- else if(pgrid_name == "grd_lrglist")
- {
- // if (grd_mdllist.row > 0)
- {
- //model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd",grd_goodlist.valueMatrix(grd_goodlist.row , grd_goodlist.colRef("goodcd")));
-
- /* 대분류 */
- model.setValue(ipt_lrgcd.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgcd")));
- model.setValue(opt_lrgnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")));
- /* 중분류*/
- model.setValue(ipt_mdlcd.attribute("ref"), "");
- model.setValue(opt_mdlnm.attribute("ref"), "");
- /* 소분류 */
- model.setValue(ipt_smlcd.attribute("ref"), "");
- model.setValue(opt_smlnm.attribute("ref"), "");
-
- //model.setValue(ipt_goodnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")) );
-
- model.refresh();
- }
- }
- }
- else
- {
- if (grd_fixasetcdlist.row > 0)
- {
- model.setValue(ipt_lrgcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("lrgcd")));
- model.setValue(opt_lrgnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("lrgnm")));
- model.setValue(ipt_mdlcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("mdlcd")));
- model.setValue(opt_mdlnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("mdlnm")));
- model.setValue(ipt_smlcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("smlcd")));
- model.setValue(opt_smlnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("smlnm")));
-
- model.setValue(ipt_fixasetcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("fixasetcd")));
- model.setValue(ipt_goodnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodflaghngnm")));
- model.setValue(ipt_goodspec.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodspec")));
- model.setValue(ipt_goodmodel.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodmodel")));
-
- model.refresh();
- }
- }
- }
-
- function fAfterRetr()
- {
- if ( grd_goodreq.rows - grd_goodreq.fixedRows > 0) {
-
- model.resetInstanceNode("/root/main/goodreq");
-
- /* 조회건수가 있으면 행추가시까지 enable = TRUE HBH */
- fAllControlDisabled("N");
-
- grd_goodreq.dispatch("onrowchanged");
-
- }
- else
- {
- model.resetInstanceNode("/root/main/goodreq");
- if(model.getValue("/root/main/list/goodreq/goodmaxreqno/reqfix") == "Y")
- {
- fSetControlDisabled("true");
- }
- else
- {
- fSetControlDisabled("false");
- }
- model.setValue(ipt_reqno.attribute("ref"),model.getValue("/root/main/list/goodreq/goodmaxreqno/reqno"));
- model.setValue("/root/main/goodreq/goodreqlist/instcd" , model.getValue(opt_instcd.attribute("ref")));
-
- /* 조회건수가 없으면 행추가시까지 enable = false HBH */
- fAllControlDisabled("Y");
- }
-
- /* 청구상태가 아니면 막는다*/
- for(var fRow = grd_goodreq.fixedRows; fRow < grd_goodreq.rows; fRow++)
- {
- if(grd_goodreq.valueMatrix(fRow, grd_goodreq.colRef("acptflag")) == "N" || grd_goodreq.valueMatrix(fRow, grd_goodreq.colRef("acptflag")).length == 0)
- {
- grd_goodreq.isReadOnly(fRow,grd_goodreq.colRef("deptaprvyn")) = false;
- }
- else
- {
- grd_goodreq.isReadOnly(fRow,grd_goodreq.colRef("deptaprvyn")) = true;
- }
- }
-
- model.refresh();
- }
- function fSaveDataSetting()
- {
- model.setValue("/root/main/goodreq/goodreqlist/instcd" , model.getValue(opt_instcd.attribute("ref")));
- }
- function fSetReqNo(pReqControl,pAdd)
- {
- if(pAdd == "Y")
- {
- var reqno = model.getValue(ipt_reqno.attribute("ref"));
- reqno = parseInt(reqno) + 1;
- reqno = "" + reqno;
- reqno = reqno.getLeftPad(4,"0");
- }
- else
- {
- var reqno = model.getValue(ipt_reqno.attribute("ref"));
- reqno = parseInt(reqno) - 1;
- if(reqno == 0)reqno = 1;
- reqno = "" + reqno;
- reqno = reqno.getLeftPad(4,"0");
- }
- model.setValue(pReqControl.attribute("ref"), reqno);
- model.refresh();
- }
- function fRetrByReqNo()
- {
- model.removenode("/root/main/tmplist");
- model.makeNode("/root/main/tmplist/goodreq/goodreqlist");
- model.makeNode("/root/main/tmplist/goodreq/goodmaxreqno");
- model.copyNode("/root/main/tmplist", "/root/main/list");
-
- model.setValue("/root/send/goodreq/retrmaxreqnoyn","N");
-
- misfMsterDetailRetrieve();
-
- var rtncount = grd_goodreq.rows - grd_goodreq.fixedRows;
-
- if(rtncount == 0)
- {
- model.copyNode("/root/main/list","/root/main/tmplist");
- }
-
- return rtncount;
- }
- function fDefaultSetting()
- {
- model.copyNode("/root/main/goodreq/goodreqlist" ,grd_goodreq.nodeset + "["+ grd_goodreq.row + "]");
- model.setValue(ipt_reqdeptcd.attribute("ref") , model.getValue(ipt_reqdeptcd_search.attribute("ref"))); //청구부서
- model.setValue(ipt_reqflag.attribute("ref") , model.getValue(cmb_reqflag_search.attribute("ref"))); //청구구분
- model.setValue(opt_reqdeptnm.attribute("ref") , model.getValue(ipt_reqdeptnm_search.attribute("ref"))); //청구부서명
- model.setValue(ipt_reqdd.attribute("ref") , getCurrentDate()); //청구일자
-
- model.setValue(ipt_reqpsnid.attribute("ref") , model.getValue(ipt_reqpsnid_search.attribute("ref"))); //청구자ID
- model.setValue(rbo_makeyn.attribute("ref") , "N"); //제작여부
- model.setValue(ipt_deliveprcsflag.attribute("ref") , "1"); //진행상태
- model.setValue(cmb_requnit.attribute("ref") , "EA"); //'EACH'로 기본셋팅
- model.setValue("/root/main/goodreq/goodreqlist/instcd" , model.getValue(opt_instcd.attribute("ref")));
- model.setValue("/root/main/goodreq/goodreqlist/acptflag" , "N");
-
- // 귀속부서,관리부서 셋팅
- model.setValue(ipt_mngtdeptcd.attribute("ref"), ipt_reqdeptcd_search.value); //청구부서
- model.setValue(ipt_mngtdeptcdnm.attribute("ref"), ipt_reqdeptnm_search.value); //청구부서명
- model.setValue(ipt_cntrdeptcd.attribute("ref"), ipt_reqdeptcd_search.value); //사용부서
- model.setValue(ipt_cntrdeptcdnm.attribute("ref"), ipt_reqdeptnm_search.value); //사용부서명
-
- submit("TRRSD11102");
- if(model.getValue("/root/main/list/goodreq/goodmaxreqno/reqfix") == "Y")
- {
- fSetControlDisabled("true");
- }
- else
- {
- fSetControlDisabled("false");
- }
-
- model.setValue(ipt_reqno.attribute("ref"),model.getValue("/root/main/list/goodreqno/goodmaxreqno/reqno"));
-
- model.refresh();
- }
- function fCheckRetrieveData(pmsg)
- {
- if(model.getValue(opt_instcd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("opt_instcd");
- }
- return false;
- }
- if(model.getValue(ipt_reqdeptcd_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("청구부서를 " ,"C002");
- model.setFocus("ipt_reqdeptcd_search");
- }
- return false;
- }
-
- if(model.getValue(cmb_reqflag_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("청구구분을 " ,"C001");
- model.setFocus("cmb_reqflag_search");
- }
- return false;
- }
-
- if(model.getValue(ipt_reqdd_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("청구일자를 " ,"C001");
- model.setFocus("ipt_reqdd_search");
- }
- return false;
- }
-
- if(model.getValue(ipt_reqtodd_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("청구일자를 " ,"C001");
- model.setFocus("ipt_reqtodd_search");
- }
- return false;
- }
- return true;
- }
-
- function fCheckSaveData()
- {
- if(model.getValue(opt_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("opt_instcd");
- return false;
- }
- if(model.getValue(ipt_reqdeptcd_search.attribute("ref")).length== 0 )
- {
- messageBox("청구부서를 " ,"C002");
- model.setFocus("ipt_reqdeptcd_search");
- return false;
- }
-
- if(model.getValue(cmb_reqflag_search.attribute("ref")).length== 0 )
- {
- messageBox("청구구분을 " ,"C001");
- model.setFocus("cmb_reqflag_search");
- return false;
- }
-
- if(model.getValue(ipt_reqdd_search.attribute("ref")).length== 0 )
- {
- messageBox("청구일자를 " ,"C001");
- model.setFocus("ipt_reqdd_search");
- return false;
- }
-
- if(model.getValue(ipt_reqtodd_search.attribute("ref")).length== 0 )
- {
- messageBox("청구일자를 " ,"C001");
- model.setFocus("ipt_reqtodd_search");
- return false;
- }
-
- if(model.getValue(ipt_reqno.attribute("ref")).length== 0 )
- {
- messageBox("청구번호를 " ,"C001");
- model.setFocus("ipt_reqno");
- return false;
- }
- if(model.getValue(ipt_goodnm.attribute("ref")).length== 0 )
- {
- messageBox("물품명을 " ,"C001");
- model.setFocus("ipt_goodnm");
- return false;
- }
- if(model.getValue(ipt_reqqty.attribute("ref")).length== 0 )
- {
- messageBox("청구수량을 " ,"C001");
- model.setFocus("ipt_reqqty");
- return false;
- }
- if(model.getValue(cmb_requnit.attribute("ref")).length== 0 )
- {
- messageBox("청구단위를 " ,"C001");
- model.setFocus("cmb_requnit");
- return false;
- }
-
- if(model.getValue(cmb_workflag.attribute("ref")).length== 0 )
- {
- messageBox("청구사유를 " ,"C001");
- model.setFocus("cmb_workflag");
- return false;
- }
- if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드를 " ,"C001");
- model.setFocus("ipt_lrgcd");
- return false;
- }
-
- if(model.getValue(txt_cmt.attribute("ref")).length== 0 )
- {
- messageBox("상세청구사유를 " ,"C001");
- model.setFocus("ipt_mdlcd");
- return false;
- }
- return true;
- }
- function fAttfileAdd(){
- //파일 다운로드 하는 기능
- var maxsize = upd_uploadfile.attribute("filesize");
-
- model.setValue("/root/send/fileupcolumn/instcd" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("instcd") ) );
- model.setValue("/root/send/fileupcolumn/reqdd" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqdd") ) );
- // model.setValue("/root/send/fileupcolumn/fileseqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("fileseqno") ) ); //seqNumber
- model.setValue("/root/send/fileupcolumn/reqflag" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqflag") ) );
- model.setValue("/root/send/fileupcolumn/reqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqno") ) );
- model.setValue("/root/send/fileupcolumn/reqseqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqseqno") ) );
- model.setValue("/root/send/fileupcolumn/reqpsnid" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqpsnid") ) );
- model.setValue("/root/send/fileupcolumn/reqdeptcd" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqdeptcd") ) );
-
- model.setValue("/root/send/fileupcolumn/attfilenm" , model.getValue("/root/main/goodreq/goodreqlist/attfilenm") );
- model.setValue("/root/send/fileupcolumn/attfilepathnm" , model.getValue("/root/send/fileupcolumn/fileupload/file") );
-
- submit("TXRSD00421");
- if (model.getValue(gvErrorMsgPath + "/type") != "error" ){
- messageBox("첨부파일이 업로드" , "I002");
- btn_search.dispatch("DOMActivate");
- }
- //파일 업로드 후 첨부파일 팝업창을 띄워서 해당 파일이 잘 올라갔는지 확인할수 있도록 해준다.?????
- }
- function fAttfileDown(){ //첨부파일 다운로드
-
- model.setValue("/root/send/fileupcolumn/instcd" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("instcd") ) );
- model.setValue("/root/send/fileupcolumn/reqdd" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqdd") ) );
- // model.setValue("/root/send/fileupcolumn/fileseqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("fileseqno") ) ); //seqNumber
- model.setValue("/root/send/fileupcolumn/fileseqno" , model.getValue("/root/main/goodreq/goodreqlist/attfilepathnm") ); //seqNumber
- model.setValue("/root/send/fileupcolumn/reqflag" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqflag") ) );
- model.setValue("/root/send/fileupcolumn/reqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqno") ) );
- model.setValue("/root/send/fileupcolumn/reqseqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqseqno") ) );
- model.setValue("/root/send/fileupcolumn/reqpsnid" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqpsnid") ) );
- model.setValue("/root/send/fileupcolumn/reqdeptcd" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqdeptcd") ) );
-
- model.setValue("/root/send/fileupcolumn/attfilenm" , model.getValue("/root/main/goodreq/goodreqlist/attfilepathnm") );
- model.setValue("/root/send/fileupcolumn/attfilepathnm" , model.getValue("/root/send/fileupcolumn/fileupload/file") );
-
- //첨부파일관련 팝업을 띄워서 첨부파일을 조회도 하고 다운로드 삭제까지 할수 있도록 구현.
- rszfOpenPopUpListByWndName(grd_goodreq,"","","SMRSD00420","instcd,reqdd,reqflag,reqno,reqseqno,reqpsnid,reqdeptcd,attfilepathnm","instcd,reqdd,reqflag,reqno,reqseqno,reqpsnid,reqdeptcd,attfilepathnm", "Y");
-
- //submit("TRRSD00421");
- btn_search.dispatch("DOMActivate");
- }
- function fRetrieve()
- {
- //이현민
-
- model.setValue("/root/send/retrparam/instcd", getUserInfo("dutplceinstcd"));
-
- //model.setValue("/root/send/retrparam/slipdeptcd", getUserInfo("dutplcecd"));
- //비품청구서 출력시 결재라인은 로그인 부서의 결재라인을 가져오는게 아니라 각 기관의 기관별구매시스템기본정보(RSCSYSINFT)에 등록되어 있는
- //구매팀 부서에 해당하는 결재라인으로 가져오도록 한다. 그래서 아래에서 submit하기전에 매핑해준다.
- //-----------------------------------------------------------------------------------------------------------------------
- submit("TRRSC08100"); //각 기관의 기관별구매시스템기본정보(RSCSYSINFT)에 등록되어 있는 구매팀 부서 찾기
- var ApprovalLine_Deptcd = model.getValue("/root/main/RscsysinftLists/rscsysinftlist/purcdept")
- model.setValue("/root/send/retrparam/slipdeptcd", ApprovalLine_Deptcd);
- //-----------------------------------------------------------------------------------------------------------------------
-
- submit("TRRAD00151");
-
- var expansion = radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition3');
-
- model.setValue("/root/hidden/rptparams/frdate", model.getValue("/root/send/retrparam/frdate"));
- model.setValue("/root/hidden/rptparams/todate", model.getValue("/root/send/retrparam/todate"));
- model.setValue("/root/hidden/rptparams/approval21", model.getValue("/root/main/apln/approval21"));
- model.setValue("/root/hidden/rptparams/approval22", model.getValue("/root/main/apln/approval22"));
- model.setValue("/root/hidden/rptparams/approval23", model.getValue("/root/main/apln/approval23"));
- model.setValue("/root/hidden/rptparams/approval24", model.getValue("/root/main/apln/approval24"));
- model.setValue("/root/hidden/rptparams/approval25", model.getValue("/root/main/apln/approval25"));
- model.setValue("/root/hidden/rptparams/approval26", model.getValue("/root/main/apln/approval26"));
- model.setValue("/root/hidden/rptparams/approval11", model.getValue("/root/main/apln/approval11"));
- model.setValue("/root/hidden/rptparams/approval12", model.getValue("/root/main/apln/approval12"));
- model.setValue("/root/hidden/rptparams/approval13", model.getValue("/root/main/apln/approval13"));
- model.setValue("/root/hidden/rptparams/approval14", model.getValue("/root/main/apln/approval14"));
- model.setValue("/root/hidden/rptparams/approval15", model.getValue("/root/main/apln/approval15"));
- model.setValue("/root/hidden/rptparams/approval16", model.getValue("/root/main/apln/approval16"));
- model.setValue("/root/hidden/rptparams/arbitrary1", model.getValue("/root/main/apln/arbitrary1"));
- model.setValue("/root/hidden/rptparams/arbitrary2", model.getValue("/root/main/apln/arbitrary2"));
- model.setValue("/root/hidden/rptparams/arbitrary3", model.getValue("/root/main/apln/arbitrary3"));
- model.setValue("/root/hidden/rptparams/arbitrary4", model.getValue("/root/main/apln/arbitrary4"));
- model.setValue("/root/hidden/rptparams/arbitrary5", model.getValue("/root/main/apln/arbitrary5"));
- model.setValue("/root/hidden/rptparams/arbitrary6", model.getValue("/root/main/apln/arbitrary6"));
-
- model.setValue("/root/hidden/rptparams/expansion", expansion);
- model.setValue("/root/hidden/rptparams/usernm", getUserInfo("usernm"));
-
- //이현민
- exeReportPreview("RPRSD04703", "XMLSTR", "/root/hidden/rptparams");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:14px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">비품청구등록</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:744px; ">
- <line id="line7" class="line_2" style="x1:0px; y1:147px; x2:605px; y2:147px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:123px; x2:605px; y2:123px; "/>
- <line id="line19" class="line_2" style="x1:0px; y1:288px; x2:605px; y2:288px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:241px; x2:605px; y2:241px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:264px; x2:605px; y2:264px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:219px; x2:605px; y2:219px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:195px; x2:605px; y2:195px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:171px; x2:605px; y2:171px; "/>
- <caption id="caption9" class="tit_2" style="left:5px; top:81px; width:100px; height:13px; ">비품청구</caption>
- <caption id="caption52" class="cell_1" style="left:-126px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장단위</caption>
- <caption id="caption54" class="cell_1" style="left:-126px; top:334px; width:108px; height:23px; vertical-align:middle; ">근속기준일/년</caption>
- <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreq/goodreqlist" caption="승인^청구일자^청구번호^청구번호^대분류^중분류^소분류^물품명^모델^규격^청구수량^청구사유^진행상태^상태^접수^청구자^승인자^승인일자^청구부서^사용부서^제작^제조회사^부서승인여부^접수^승인일자^예산금액^물품구분^제조회사코드^예산코드^계정명^예산년도" colsep="^" colwidth="35, 67, 35, 30, 57, 57, 57, 170, 60, 60, 55, 55, 55, 43, 45, 45, 45, 67, 68, 68, 30, 59, 52, 100, 82, 100, 100, 75, 65, 100, 55, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:470px; width:1195px; height:274px; ">
- <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox" style="left:1118px; top:23px; width:59px; height:23px; text-align:center; "/>
- <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="reqno" style="text-align:right; "/>
- <col ref="reqseqno" style="text-align:center; "/>
- <col ref="lrgnm" style="text-align:left; "/>
- <col ref="mdlnm" style="text-align:left; "/>
- <col ref="smlnm" style="text-align:left; "/>
- <col ref="goodnm" style="text-align:left; "/>
- <col ref="goodmodel" style="text-align:left; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="reqqty" format="#,###" style="text-align:right; "/>
- <col ref="workflagnm" style="text-align:center; "/>
- <col disabled="true" ref="deliveprcsflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>청구</label>
- <value>1</value>
- </item>
- <item>
- <label>발주</label>
- <value>3</value>
- </item>
- <item>
- <label>입고완료</label>
- <value>5</value>
- </item>
- <item>
- <label>강제종결</label>
- <value>6</value>
- </item>
- <item>
- <label>입고완료</label>
- <value>7</value>
- </item>
- <item>
- <label>자체제작</label>
- <value>8</value>
- </item>
- <item>
- <label>재고지급</label>
- <value>9</value>
- </item>
- </choices>
- </col>
- <col ref="deliveprcsflagnm" visibility="hidden" style="text-align:center; "/>
- <col ref="acptflagnm" style="text-align:center; "/>
- <col ref="reqpsnnm" style="text-align:center; "/>
- <col ref="deptaprvpsnnm" style="text-align:center; "/>
- <col ref="deptaprvdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="reqdeptnm" style="text-align:left; "/>
- <col ref="mngtdeptcdnm" style="text-align:left; "/>
- <col ref="makeyn" style="text-align:center; "/>
- <col ref="prodcmpynm" visibility="hidden"/>
- <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox" visibility="hidden" style="left:1118px; top:23px; width:59px; height:23px; "/>
- <col checkvalue="Y,N" ref="acptflag" type="checkbox" visibility="hidden" style="left:1330px; top:23px; width:100px; height:23px; "/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="bugtexpcamt" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="prodcmpycd" visibility="hidden"/>
- <col ref="bugtcd" visibility="hidden"/>
- <col ref="bugtnm" visibility="hidden"/>
- <col ref="bugtyy" visibility="hidden"/>
- <col ref="stdysubjno" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <col ref="reqpsnid" visibility="hidden"/>
- <col ref="reqtm" visibility="hidden"/>
- <col ref="delivehopedd" visibility="hidden"/>
- <col ref="requnit" visibility="hidden"/>
- <col ref="attfilenm" visibility="hidden"/>
- <col ref="attfilepathnm" visibility="hidden"/>
- <col ref="deptaprvdd" visibility="hidden"/>
- <col ref="adjtqty" visibility="hidden"/>
- <col ref="adjtrsn" visibility="hidden"/>
- <col ref="acptcharid" visibility="hidden"/>
- <col ref="plceorddd" visibility="hidden"/>
- <col ref="plceordseqno" visibility="hidden"/>
- <col ref="plceordno" visibility="hidden"/>
- <col ref="workflag" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <col ref="deliveqty" visibility="hidden"/>
- <col ref="unwinresn" visibility="hidden"/>
- <col ref="deliveprcsflag" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="stdysubjnm" visibility="hidden"/>
- <col ref="installplcenm" visibility="hidden"/>
- <col ref="purcacptflag" visibility="hidden"/>
- <col ref="purcacptdd" visibility="hidden"/>
- <col ref="wncurncyamt" visibility="hidden"/>
- <col ref="plceordamt" visibility="hidden"/>
- <col ref="suplplcecd" visibility="hidden"/>
- <col ref="suplplcenm" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="cntrdeptcd" visibility="hidden"/>
- <col ref="cntrdeptcdnm" visibility="hidden"/>
- <col ref="mngtdeptcd" visibility="hidden"/>
- <col ref="mngtdeptcdnm" visibility="hidden"/>
- <col ref="reqtel" visibility="hidden"/>
- <col ref="deptaprvpsnid" visibility="hidden"/>
- <col ref="deptaprvpsnnm" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- if( grd_goodreq.rows >= grd_goodreq.fixedRows )
- {
- model.resetInstanceNode("/root/main/goodreq");
- model.copyNode("/root/main/goodreq/goodreqlist" ,grd_goodreq.nodeset + "["+ (grd_goodreq.row-grd_goodreq.fixedrows+1) + "]");
-
- // 부서장 승인이 되어 있으면 disabled = 'Y'
- // 구매과 접수가 접수/부결.되어 있으면 disabled = 'Y'
- if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" ||
- grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" ||
- grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y" )
- fAllControlDisabled("Y");
- else
- fAllControlDisabled("N");
-
- }
- //사용자권한에 따라 바꾸지 못하게 막거나, 진행상황에 따라 수정 가능하게 설정
- if(grd_reqpsnlist.rows - grd_reqpsnlist.fixedRows == 0 && !fCheckPurcTeam())
- {
- ipt_cntrdeptcd.disabled = true;
- btn_cntrdeptcd.disabled = true;
- ipt_cntrdeptcdnm.disabled = true;
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("deptaprvyn")) == "Y"){
- grd_goodreq.rowStyle(grd_goodreq.row,"data","background-color") = "white";
- }else{
- grd_goodreq.rowStyle(grd_goodreq.row,"data","background-color") = "#FFFF66";
- }
-
- if(grd_goodreq.valueMatrix(grd_goodreq.Row,grd_goodreq.colRef("acptflag")) == "Y" )
- {
- messageBox("관리부서에서 접수된건입니다. 접수취소를 하실수 " ,"I004");
- // check box의 반대값을 넣어주고 status를 원위치한다.
- grd_goodreq.rowStatus(grd_goodreq.Row - grd_goodreq.fixedRows + 1) = "0";
- if(grd_goodreq.valueMatrix(grd_goodreq.Row,grd_goodreq.colRef("deptaprvyn")) == "N" )
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvyn" ,"Y");
- else
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvyn" ,"N");
- }
- else
- {
- if(grd_goodreq.valueMatrix(grd_goodreq.Row,grd_goodreq.colRef("deptaprvyn")) == "N" )
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvdd", "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvpsnid" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvpsnnm", "");
-
- }
- else
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvdd", getCurrentDate());
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvpsnid", getUserInfo("userid"));
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvpsnnm", getUserInfo("usernm"));
- //model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/acptdd" , getCurrentDate());
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- for(var i=grd_goodreq.fixedRows;i<grd_goodreq.rows;i++){
- if (grd_goodreq.valueMatrix(i , grd_goodreq.colRef("deptaprvyn")) == "Y"){
- grd_goodreq.rowStyle(i,"all","background-color") = "white";
- }else{
- grd_goodreq.rowStyle(i,"all","background-color") = "#FFFF66";
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:96px; x2:605px; y2:96px; "/>
- <!--</group>-->
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:29px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(false) == false)return;
- model.setValue("/root/send/goodreq/retrmaxreqnoyn","Y");
- // 위의 조건을 변경후 조회하면, 각 조회조건 값들이 이전값이다.
- //fDefaultSetting();
-
- misfMsterDetailRetrieve();
-
- fAfterRetr();
-
- // 저장후 재조회 일 경우 저장시 행을 조회
- var selectrow = model.getValue("/root/temp/selectrow");
-
- if(selectrow != ""){
- grd_goodreq.row = selectrow;
- grd_goodreq.dispatch("onrowchanged");
- }
-
- grd_goodreq.dispatch("onaftersort");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_reqdept" class="icon_search" navindex="-1" style="left:651px; top:20px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, opt_instcd.value, "instcd") ;
- model.refresh();
-
- var instcd = getUserInfo("dutplceinstcd") ;
- if (instcd=="031"){
- // 권한설정.
- fSetReqAuth();
- //
- // // 승인권자별 선택할 수 있는 부서 제한
- grd_reqpsnlist.nodeset= "/root/hidden/reqpsnlist[reqdeptcd='"+ipt_reqdeptcd_search.value+"']";
- if ((grd_reqpsnlist.rows-grd_reqpsnlist.fixedRows)==0 && !fCheckPurcTeam())
- {
- messageBox("권한이 없는 부서입니다.","");
- fInitialize();
- }
- }else{
- model.setValue("/root/send/reqpsn/instcd", getUserInfo("dutplceinstcd") );
- model.setValue("/root/send/reqpsn/emplno", getUserInfo("userid") );
-
- submit("TRRSD04701"); //권한조회
- var cnt1 = model.getValue("/root/temp/authinfo/cnt");
- var userid1 =model.getValue("/root/send/reqpsn/emplno");
-
- if(cnt1 != 0 || userid1 == "93438"){
- }else{
- messageBox("111권한이 없는 부서입니다.","");
- fInitialize();
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:15px; top:19; width:117px; height:17px; ">기관코드 :</caption>
- <line id="line18" class="line_4" style="x1:1110px; y1:20px; x2:1110px; y2:62px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_reqflag_search" ref="/root/send/goodreq/reqflag" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:799px; top:45px; width:90px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_reqdeptcd_search" ref="/root/send/goodreq/reqdeptcd" class="input_s_essential" style="left:551px; top:18px; width:96px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfSearchDept(ipt_reqdeptnm_search);
-
- var instcd = getUserInfo("dutplceinstcd") ;
- if (instcd=="031"){
- // 권한설정.
- fSetReqAuth();
- // 승인권자별 선택할 수 있는 부서 제한
- grd_reqpsnlist.nodeset= "/root/hidden/reqpsnlist[reqdeptcd='"+ipt_reqdeptcd_search.value+"']";
- if ((grd_reqpsnlist.rows-grd_reqpsnlist.fixedRows)==0 && !fCheckPurcTeam())
- {
- messageBox("권한이 없는 부서입니다.","");
- fInitialize();
- }
- }else{
- // model.setValue("/root/send/reqpsn/instcd", getUserInfo("dutplceinstcd") );
- // model.setValue("/root/send/reqpsn/emplno", getUserInfo("userid") );
- //
- // submit("TRRSD04701"); //권한조회
- // var cnt = model.getValue("/root/temp/authinfo/cnt");
- // var userid =model.getValue("/root/send/reqpsn/emplno");
-
- if(cnt1 != 0 || userid1 == "93438"){
- btn_search.dispatch("DOMActivate");
- }else{
- messageBox("권한이 없는 부서입니다.","");
- fInitialize();
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:466px; top:19px; width:86px; height:17px; ">청구부서 :</caption>
- <input id="ipt_reqdeptnm_search" ref="/root/send/goodreq/reqdeptnm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:671px; top:18px; width:239px; height:19px; "/>
- <caption id="caption14" class="search_name" style="left:15px; top:45; width:86px; height:17px; ">청구일자 :</caption>
- <input id="ipt_reqdd_search" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:100px; top:45px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_reqno" ref="/root/main/goodreq/goodreqlist/reqno" class="input_essential" visibility="hidden" editable="false" style="left:535px; top:103px; width:20px; height:19px; "/>
- <output id="ipt_reqdeptcd" ref="/root/main/goodreq/goodreqlist/reqdeptcd" class="output_fix" visibility="hidden" appearance="output" style="left:560px; top:103px; width:30px; height:19px; "/>
- <output id="opt_reqdeptnm" ref="/root/main/goodreq/goodreqlist/reqdeptnm" class="output_fix" visibility="hidden" appearance="output" style="left:510px; top:102px; width:25px; height:19px; "/>
- <caption id="caption67" class="cell_1" style="left:0px; top:173px; width:100px; height:23px; vertical-align:middle; ">물품명칭</caption>
- <input id="ipt_goodnm" ref="/root/main/goodreq/goodreqlist/goodnm" class="input_s_essential" style="left:102px; top:175px; width:503px; height:19px; "/>
- <caption id="caption61" class="cell_1" style="left:304px; top:197px; width:88px; height:21px; vertical-align:middle; ">규격</caption>
- <input id="ipt_goodspec" ref="/root/main/goodreq/goodreqlist/goodspec" class="input_fix" style="left:394px; top:199px; width:211px; height:19px; "/>
- <input id="ipt_goodmodel" ref="/root/main/goodreq/goodreqlist/goodmodel" class="input_default" style="left:102px; top:199px; width:198px; height:19px; "/>
- <caption id="caption59" class="cell_1" style="left:0px; top:197px; width:100px; height:21px; vertical-align:middle; ">모델</caption>
- <button id="btn_prodcmpycd" class="icon_search" visibility="hidden" style="left:582px; top:583px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption66" class="cell_1" visibility="hidden" style="left:445px; top:580px; width:100px; height:22px; vertical-align:middle; ">제조회사</caption>
- <input id="ipt_prodcmpycd" ref="/root/main/goodreq/goodreqlist/prodcmpycd" class="input_default" visibility="hidden" style="left:547px; top:581px; width:33px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_prodcmpycd.value.length == 0)
- {
- ipt_prodcmpynm.value = "";
- }
- else
- rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd",
- "prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref")) ,"","prodcmpycd,prodcmpynm" ,
- ipt_prodcmpycd,"SPRSD00160","","");
- model.refresh();
- model.setFocus("ipt_goodmodel");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_prodplce");
- else model.setFocus("ipt_goodmodel");
- }
- event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_prodcmpynm" ref="/root/main/goodreq/goodreqlist/prodcmpynm" class="input_fix" visibility="hidden" appearance="input" style="left:600px; top:581px; width:40px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_prodcmpynm.value.length == 0)
- {
- ipt_prodcmpycd.value = "";
- }
- else
- rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpynm",
- "prodcmpynm," + ipt_prodcmpynm.value, "", "prodcmpycd,prodcmpynm",
- ipt_prodcmpynm, "SPRSD00160", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <output id="opt_winacntnm" ref="/root/main/goodreq/goodreqlist/bugtnm" class="output_fix" visibility="hidden" appearance="output" style="left:560px; top:125px; width:15px; height:19px; "/>
- <caption id="caption64" class="cell_1" style="left:0px; top:243px; width:100px; height:22px; vertical-align:middle; ">청구수량</caption>
- <input id="ipt_reqqty" ref="/root/main/goodreq/goodreqlist/reqqty" class="input_s_essential" format="#,###" style="left:102px; top:244px; width:86px; height:19px; text-align:right; "/>
- <select1 id="cmb_requnit" ref="/root/main/goodreq/goodreqlist/requnit" class="combo_s_essential" appearance="minimal" style="left:189px; top:244px; width:111px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_bugtyy" ref="/root/main/goodreq/goodreqlist/bugtyy" class="input_search" disabled="true" format="yyyy" style="left:394px; top:244px; width:165px; height:19px; text-align:left; "/>
- <caption id="caption56" class="cell_1" style="left:304px; top:243px; width:88px; height:22px; vertical-align:middle; ">예산년도</caption>
- <input id="ipt_bugtexpcamt" ref="/root/main/goodreq/goodreqlist/bugtexpcamt" class="input_default" visibility="hidden" format="#,###" style="left:100px; top:75px; width:20px; height:19px; text-align:right; "/>
- <caption id="caption48" class="cell_1" visibility="hidden" style="left:75px; top:75px; width:25px; height:23px; vertical-align:middle; ">예산추산액</caption>
- <caption id="caption71" class="cell_1" style="left:0px; top:125px; width:100px; height:23px; vertical-align:middle; ">제작여부</caption>
- <input id="ipt_installplcecd" ref="/root/main/goodreq/goodreqlist/installplcecd" class="input_fix" style="left:103px; top:315px; width:132px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_installplcecd.value.length == 0)
- ipt_installplcenm.value = "";
- else
- rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm,instcd",
- "deptcd," + ipt_installplcecd.value + "," + opt_instcd.value, "", "installplcecd,installplcenm",
- ipt_installplcecd, "PPRAC00700", "instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="rbo_makeyn" ref="/root/main/goodreq/goodreqlist/makeyn" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:102px; top:128px; width:116px; height:16px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>예</label>
- <value>Y</value>
- </item>
- <item>
- <label>아니오</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:0px; top:314px; width:100px; height:23px; vertical-align:middle; ">설치장소</caption>
- <caption id="caption57" class="cell_1" visibility="hidden" style="left:270px; top:75px; width:20px; height:23px; vertical-align:middle; ">예산편성액</caption>
- <caption id="caption60" class="cell_1" style="left:0px; top:338px; width:100px; height:23px; vertical-align:middle; ">첨부파일</caption>
- <input id="ipt_attfilenm" ref="/root/main/goodreq/goodreqlist/attfilenm" class="input_default" disabled="true" style="left:102px; top:340px; width:302px; height:19px; "/>
- <button id="btn_choidel" class="btn2_letter3" style="left:553px; top:75px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //해당 grid중 acptflag 항목(접수)이 Y 인것은 삭제 안되도록 막기
- misfGridIUD(grd_goodreq, "D");
- //20080926
- //그리드 중에서 삭제할 항목들은 이미 D 상태가 되어 있으므로
- //그리드 중 D 상태인것만 acptflag 를 체크해서 Y 인것은 삭제못한다고 메세지 띄우고 원래 상태(0) 로 복원하기.
- // 승인 항목(deptaprvyn)이 Y 인 것도 삭제 불가
- //부서장 승인이 났으므로 삭제 불가해야 함 . 부서장은 승인을 취소하고 삭제 가능함.
- for (var i=grd_goodreq.fixedRows ; i< grd_goodreq.rows ; i++) {
- // alert(grd_goodreq.rowStatus(i) +" "+ grd_goodreq.valueMatrix( i , grd_goodreq.colRef("reqseqno") ) );
- if ( grd_goodreq.rowStatus(i) == '4' || grd_goodreq.rowStatus(i) == '6') { //행이 삭제일 경우(4는 단순삭제 , 6은 승인여부체크후 삭제시 상태값)
- if ( grd_goodreq.valueMatrix( i , grd_goodreq.colRef("acptflag")) == "Y" ||
- grd_goodreq.valueMatrix( i , grd_goodreq.colRef("deptaprvyn")) == "Y") {
- messageBox("해당 항목은 삭제" ,"E001");
- grd_goodreq.removeStatus( i , "delete");
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter3" style="left:498px; top:75px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(fCheckRetrieveData(true) == false)return;
-
- model.resetInstanceNode("/root/main/goodreq");
- misfGridIUD(grd_goodreq, "A");
- grd_goodreq.row = grd_goodreq.rows - grd_goodreq.fixedRows ;
-
- /* 행추가시 enable = TRUE HBH */
- fAllControlDisabled("N");
-
- fDefaultSetting(grd_goodreq.row );
- ]]>
- </script>
- </button>
- <input id="ipt_reqpsnid_search" ref="/root/send/goodreq/reqpsnid" visibility="hidden" style="left:768px; top:45px; width:30px; height:19px; "/>
- <output id="opt_reqpsnnm" ref="/root/send/goodreq/reqpsnnm" class="output_fix" style="left:551px; top:45px; width:130px; height:19px; text-align:center; "/>
- <caption id="caption1" class="search_name" style="left:466px; top:45px; width:84px; height:17px; ">청 구 자 :</caption>
- <caption id="caption2" class="cell_1" style="left:0px; top:101px; width:100px; height:23px; vertical-align:middle; ">청구사유</caption>
- <select1 id="cmb_workflag" ref="/root/main/goodreq/goodreqlist/workflag" class="combo_s_essential" appearance="minimal" style="left:102px; top:103px; width:166px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" class="line_1" style="x1:0px; y1:465px; x2:1195px; y2:465px; "/>
- <caption id="caption5" class="tit_2" style="left:5px; top:450px; width:100px; height:13px; ">비품청구 내역</caption>
- <input id="ipt_reqflag" ref="/root/main/goodreq/goodreqlist/reqflag" visibility="hidden" style="left:500px; top:125px; width:25px; height:19px; "/>
- <input id="ipt_reqdd" ref="/root/main/goodreq/goodreqlist/reqdd" class="output_fix" editable="false" format="yyyy-mm-dd" style="left:351px; top:103px; width:114px; height:19px; "/>
- <input id="ipt_reqpsnid" ref="/root/main/goodreq/goodreqlist/reqpsnid" visibility="hidden" style="left:575px; top:125px; width:20px; height:19px; "/>
- <input id="ipt_instcd" ref="/root/main/goodreq/goodreqlist/instcd" visibility="hidden" style="left:545px; top:125px; width:15px; height:19px; "/>
- <input id="ipt_deliveprcsflag" ref="/root/main/goodreq/goodreqlist/deliveprcsflag" visibility="hidden" style="left:525px; top:125px; width:20px; height:19px; "/>
- <input id="ipt_installplcenm" ref="/root/main/goodreq/goodreqlist/installplcenm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:261px; top:315px; width:296px; height:19px; "/>
- <button id="btn_installplce" class="icon_search" style="left:240px; top:317px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "installplcecd,installplcenm";
- misfOpenPopUpList("19", ipt_installplcecd,"", recv_list, opt_instcd.value, "instcd") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="cell_1" visibility="hidden" style="left:320px; top:75px; width:20px; height:23px; vertical-align:middle; ">예산집행액</caption>
- <caption id="caption12" class="cell_1" visibility="hidden" style="left:375px; top:75px; width:20px; height:23px; vertical-align:middle; ">예산잔액</caption>
- <output id="opt_totamt" ref="/root/main/goodreq/goodreqlist/totamt" class="output_fix" visibility="hidden" style="left:290px; top:75px; width:25px; height:19px; "/>
- <output id="opt_useamt" ref="/root/main/goodreq/goodreqlist/useamt" class="output_fix" style="left:394px; top:268px; width:165px; height:19px; "/>
- <output id="opt_remamt" ref="/root/main/goodreq/goodreqlist/remamt" class="output_fix" style="left:394px; top:292px; width:165px; height:19px; "/>
- <input id="ipt_goodflag" ref="/root/send/lrgcd/goodflag" visibility="hidden" style="left:890px; top:45px; width:30px; height:19px; "/>
- <button id="btnselect" class="btn2_letter9" style="left:231px; top:444px; width:119px; height:19px; ">
- <caption>전체/전체선택 취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var liRow = grd_goodreq.fixedRows; liRow < grd_goodreq.rows ; liRow++)
- {
- //fCheckAprv( (liRow - grd_goodreq.fixedRows + 1) , "false");
-
- ////////////////////////////////////////////////////
- // 일괄처리는 발주상태가 발주중인것만 처리한다.
- ///////////////////////////////////////////////////
- if (grd_goodreq.valueMatrix(liRow,grd_goodreq.colRef("acptflag")) != "Y" )
- {
- if(grd_goodreq.valueMatrix(liRow,grd_goodreq.colRef("deptaprvyn")) == "Y" )
- {
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvyn" , "N");
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvdd" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvpsnid" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvpsnnm" , "");
- grd_goodreq.rowStatus(liRow - grd_goodreq.fixedRows + 1) = "2";
- }
- else
- {
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvyn" , "Y");
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvdd" , getCurrentDate());
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvpsnid" , getUserInfo("userid"));
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvpsnnm" , getUserInfo("usernm"));
- grd_goodreq.rowStatus(liRow - grd_goodreq.fixedRows + 1) = "2";
- }
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_exceldown" class="btn2_letter2" style="left:1151px; top:444px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( (grd_goodreq.rows - grd_goodreq.fixedRows) > 0){
- var fileName = window.fileDialog("save", ",", false, "비품청구내역", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- grd_goodreq.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- }
- else
- messageBox("엑셀 생성 대상 데이터가" ,"I004" );
- ]]>
- </script>
- </button>
- <button id="btn_accept" class="btn2_letter2" style="left:183px; top:444px; width:42px; height:19px; ">
- <caption>승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSave("TXRSD11101");
- if (model.getValue(gvErrorMsgPath + "/type") != "error" )btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <caption id="caption17" class="cell_1" style="left:0px; top:149px; width:100px; height:23px; vertical-align:middle; ">대/중/소분류</caption>
- <output id="opt_lrgnm" ref="/root/main/goodreq/goodreqlist/lrgnm" class="output_fix" style="left:165px; top:151px; width:103px; height:19px; "/>
- <output id="opt_mdlnm" ref="/root/main/goodreq/goodreqlist/mdlnm" class="output_fix" style="left:334px; top:151px; width:103px; height:19px; "/>
- <output id="opt_smlnm" ref="/root/main/goodreq/goodreqlist/smlnm" class="output_fix" style="left:503px; top:151px; width:103px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:0px; top:362px; width:100px; height:78px; vertical-align:middle; ">청구사유</caption>
- <caption id="caption15" class="cell_1" style="left:269px; top:125px; width:80px; height:23px; vertical-align:middle; ">자산코드</caption>
- <input id="ipt_fixasetcd" ref="/root/main/goodreq/goodreqlist/fixasetcd" class="input_fix" style="left:351px; top:127px; width:114px; height:19px; "/>
- <input id="ipt_lrgcd" ref="/root/main/goodreq/goodreqlist/lrgcd" class="input_s_essential" disabled="true" style="left:128px; top:151px; width:36px; height:19px; "/>
- <input id="ipt_mdlcd" ref="/root/main/goodreq/goodreqlist/mdlcd" class="input_fix" disabled="true" style="left:296px; top:151px; width:36px; height:19px; "/>
- <input id="ipt_smlcd" ref="/root/main/goodreq/goodreqlist/smlcd" class="input_fix" disabled="true" style="left:465px; top:151px; width:36px; height:19px; "/>
- <switch id="swh_select" style="left:610px; top:125px; width:585px; height:315px; ">
- <case id="cse_lrgcd" selected="true" style="left:0px; top:0px; width:583px; height:329px; ">
- <datagrid id="grd_mdllist" nodeset="/root/main/list/mdl/mdllist" visibility="hidden" allowuserresize="false" caption="중분류코드^중분류명^계정코드(입고)^계정코드(입고)^계정코드(비용)^계정코드(비용)^물품구분^대분류코드^최초등록자ID^최초등록일시^최종등록자ID^최종등록일시" colsep="^" colwidth="6, 135, 100, 120, 100, 120, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:196px; top:2px; width:190px; height:310px; ">
- <col class="input_essential" disabled="true" ref="mdlcd" type="input" visibility="hidden"/>
- <col ref="mdlnm" type="output"/>
- <col ref="winacnt" visibility="hidden"/>
- <col ref="winacntnm" visibility="hidden"/>
- <col ref="amtacnt" visibility="hidden"/>
- <col ref="amtacntnm" visibility="hidden"/>
- <col ref="instcd" type="output" visibility="hidden"/>
- <col ref="goodflag" type="output" visibility="hidden"/>
- <col ref="lrgcd" type="output" visibility="hidden"/>
- <col ref="fstrgstrid" type="output" visibility="hidden"/>
- <col ref="fstrgstdt" type="output" visibility="hidden"/>
- <col ref="lastupdtrid" type="output" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- model.setValue("/root/send/lrgcd/mdlcd" , grd_mdllist.valueMatrix(grd_mdllist.row, grd_mdllist.colRef("mdlcd")));
- submit("TRRSD11106");
- grd_mdllist.dispatch("onmouseup");
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" ||
- // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" ||
- // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y" ) fMovecd("grd_mdllist");
- if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" || (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y"))
- {
-
- }else{
- fMovecd("grd_mdllist");
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_smllist" nodeset="/root/main/list/sml/smllist" visibility="hidden" allowuserresize="false" caption="소분류코드^소분류명^계정코드(입고)^계정코드(입고)^기관코드^물품구분^대분류코드^중분류코드^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="10, 144, 100, 134, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:392px; top:2px; width:191px; height:310px; ">
- <col class="input_essential" disabled="true" ref="smlcd" type="input" visibility="hidden"/>
- <col ref="smlnm" type="output"/>
- <col ref="winacnt" visibility="hidden"/>
- <col ref="winacntnm" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" ||
- // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" ||
- // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y" ) fMovecd("grd_smllist");
- if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" || (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y"))
- {
-
- }else{
- fMovecd("grd_smllist");
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_lrglist" nodeset="/root/main/list/lrg/lrglist" allowuserresize="false" caption="대분류코드^대분류명^주관부서^주관부서^계정코드(입고)^계정코드(입고)^계정코드(비용)^계정코드(비용)^기관코드^물품구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="6, 103, 130, 135, 130, 135, 130, 135, 100, 100, 130, 120, 150, 120" dataheight="25" extendlastcol="scroll" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:2px; width:583px; height:310px; ">
- <col class="input_essential" disabled="true" ref="lrgcd" type="input" visibility="hidden"/>
- <col ref="lrgnm" type="output"/>
- <col ref="mainmngtdeptcd" visibility="hidden"/>
- <col ref="mainmngtdeptnm" visibility="hidden"/>
- <col ref="winacnt" visibility="hidden"/>
- <col ref="winacntnm" visibility="hidden"/>
- <col ref="amtacnt" visibility="hidden"/>
- <col ref="amtacntnm" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="fstrgstrid" type="output" visibility="hidden"/>
- <col ref="fstrgstdt" type="output" visibility="hidden"/>
- <col ref="lastupdtrid" type="output" visibility="hidden"/>
- <col ref="lastupdtdt" type="output" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- /* 중분류 이하는 사용하지 않음으로 주석처리 */
- /* model.setValue("/root/send/lrgcd/lrgcd" , grd_lrglist.valueMatrix(grd_lrglist.row, grd_lrglist.colRef("lrgcd")));
- submit("TRRSD11105");
- if(grd_mdllist.rows>1) {
- grd_mdllist.row=1;
- }
- grd_mdllist.dispatch("onrowchanged");
-
- grd_lrglist.dispatch("onmouseup");*/
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" || (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y"))
- {
-
- }else{
- fMovecd("grd_lrglist");
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="cse_fixasetcd" style="left:0px; top:0px; width:583px; height:329px; ">
- <datagrid id="grd_fixasetcdlist" nodeset="/root/main/list/fixasetcd/fixasetcdlist" caption="대분류^중분류^소분류^비품코드^비품명^모델^규격^설치장소^청구부서^구입일자" colsep="^" colwidth="63, 58, 56, 91, 128, 85, 82, 74, 75, 71, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:2px; width:583px; height:310px; ">
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="fixasetcd"/>
- <col ref="goodflaghngnm"/>
- <col ref="goodmodel"/>
- <col ref="goodspec"/>
- <col ref="installplcenm"/>
- <col ref="cntrdeptnm"/>
- <col ref="windd" format="yyyy-mm-dd"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //[2008.01.23 HBH] 막음.
- // if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" ||
- // (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" ||
- // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y"))
- // {
- // }else{
- // fMovecd("grd_fixasetcdlist");
- // }
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="button5" class="btn_sw" group="tab" selected="true" style="left:753px; top:103px; width:144px; height:22px; ">
- <caption>부서내 비품코드</caption>
- <toggle case="cse_fixasetcd" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_exceldown.visible = true;
- ]]>
- </script>
- </button>
- <button id="button4" class="btn_sw" group="tab" selected="true" style="left:610px; top:103px; width:144px; height:22px; ">
- <caption>분류코드</caption>
- <toggle case="cse_lrgcd" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_exceldown.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption16" class="cell_1" style="left:101px; top:149px; width:25px; height:23px; vertical-align:middle; ">대</caption>
- <caption id="caption18" class="cell_1" style="left:269px; top:149px; width:25px; height:23px; vertical-align:middle; ">중</caption>
- <caption id="caption19" class="cell_1" style="left:438px; top:149px; width:25px; height:23px; vertical-align:middle; ">소</caption>
- <button id="btn_search_cd" class="btn2_letter2" style="left:1152px; top:105px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(swh_select.selectedIndex == 0)
- {
- fInitCodeList();
- }
- else
- {
- misfGridInit(grd_fixasetcdlist);
-
- model.setValue("/root/send/fixasetcd/goodflag" , model.getValue(ipt_goodflag.attribute("ref")));
- model.setValue("/root/send/fixasetcd/instcd" , model.getValue(opt_instcd.attribute("ref")));
- model.setValue("/root/send/fixasetcd/cntrdeptcd" , model.getValue(ipt_reqdeptcd_search.attribute("ref")));
-
- submit("TRRFC00201"); //임시로 부서내 비품코드 막음(추후 마이그레션 작업후 주석 풀것
- }
- ]]>
- </script>
- </button>
- <line id="line4" class="line_1" style="x1:610px; y1:96px; x2:1195px; y2:96px; "/>
- <caption id="caption10" class="tit_2" style="left:615px; top:81px; width:100px; height:14px; ">비품코드 조회</caption>
- <caption id="caption20" class="cell_1" visibility="hidden" style="left:123px; top:75px; width:22px; height:23px; vertical-align:middle; ">예산계정</caption>
- <select1 id="cmb_bugtcd" ref="/root/main/goodreq/goodreqlist/bugtcd" class="combo_default" visibility="hidden" appearance="minimal" style="left:145px; top:75px; width:25px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption21" class="cell_1" visibility="hidden" style="left:176px; top:75px; width:24px; height:23px; vertical-align:middle; ">연구과제</caption>
- <input id="ipt_stdysubjnm" ref="/root/main/goodreq/goodreqlist/stdysubjnm" class="input_fix" visibility="hidden" appearance="input" style="left:240px; top:75px; width:25px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_stdysubjnm.value.length == 0)
- ipt_stdysubjno.value = "";
- else
- rszfValidationCheck("TRRSD00261", "studylist", "instcd,refcond,stdysubjnm",
- opt_instcd.value + ",stdysubjnm," + ipt_stdysubjnm.value, "", "stdysubjno,stdysubjnm",
- ipt_stdysubjnm, "SPRSD00260", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_stdysubjnm" class="icon_search" visibility="hidden" style="left:225px; top:75px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_stdysubjno,"","stdysubjno,stdysubjnm","SPRSD00260","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_stdysubjno" ref="/root/main/goodreq/goodreqlist/stdysubjno" class="input_search" visibility="hidden" maxlength="4" style="left:200px; top:75px; width:25px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_stdysubjno.value.length == 0)
- ipt_stdysubjnm.value = "";
- else
- rszfValidationCheck("TRRSD00261", "studylist", "instcd,refcond,stdysubjno",
- opt_instcd.value + ",stdysubjno," + ipt_stdysubjno.value, "", "stdysubjno,stdysubjnm",
- ipt_stdysubjno, "SPRSD00260", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <output id="opt_instcd" ref="/root/send/goodreq/instcd" class="output_fix" visibility="hidden" style="left:305px; top:20px; width:25px; height:19px; "/>
- <output id="opt_instcdnm" ref="/root/send/goodreq/instcdnm" class="output_fix" style="left:100px; top:20px; width:200px; height:19px; "/>
- <caption id="cap_cntrdeptcd" class="cell_1" style="left:0px; top:266px; width:100px; height:22px; vertical-align:middle; ">청구부서</caption>
- <caption id="cap_mngtdeptcd" class="cell_1" style="left:0px; top:290px; width:100px; height:23px; vertical-align:middle; ">사용부서</caption>
- <input id="ipt_cntrdeptcdnm" ref="/root/main/goodreq/goodreqlist/cntrdeptcdnm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:194px; top:268px; width:106px; height:19px; "/>
- <input id="ipt_cntrdeptcd" ref="/root/main/goodreq/goodreqlist/cntrdeptcd" class="input_fix" style="left:103px; top:268px; width:73px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfSearchDept(ipt_cntrdeptcdnm);
- ]]>
- </script>
- </input>
- <button id="btn_cntrdeptcd" class="icon_search" style="left:177px; top:269px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "cntrdeptcd,cntrdeptcdnm";
- misfOpenPopUpList("02", ipt_cntrdeptcd,"", recv_list, opt_instcd.value, "instcd") ;
- // 승인권자별 선택할 수 있는 부서 제한
- grd_reqpsnlist.nodeset= "/root/hidden/reqpsnlist[reqdeptcd='"+ipt_cntrdeptcd.value+"']";
- if ((grd_reqpsnlist.rows-grd_reqpsnlist.fixedRows)==0 && !fCheckPurcTeam())
- {
- messageBox("권한이 없는 부서입니다.","");
- ipt_cntrdeptcd.value=ipt_reqdeptcd_search.value;
- ipt_cntrdeptcdnm.value=ipt_reqdeptnm_search.value;
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_mngtdeptcdnm" ref="/root/main/goodreq/goodreqlist/mngtdeptcdnm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:194px; top:292px; width:106px; height:19px; "/>
- <input id="ipt_mngtdeptcd" ref="/root/main/goodreq/goodreqlist/mngtdeptcd" class="input_fix" style="left:103px; top:292px; width:73px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfSearchDept(ipt_mngtdeptcdnm);
- ]]>
- </script>
- </input>
- <button id="btn_mngtdeptcd" class="icon_search" style="left:177px; top:294px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "mngtdeptcd,mngtdeptcdnm";
- misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list, opt_instcd.value, "instcd") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption24" style="left:195px; top:45px; width:15px; height:20px; ">~</caption>
- <input id="ipt_reqtodd_search" ref="/root/send/goodreq/reqtodd" class="input_s_essential" inputtype="date" style="left:210px; top:45px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption25" class="cell_1" style="left:270px; top:101px; width:80px; height:23px; vertical-align:middle; ">청구일자</caption>
- <caption id="cap_reqtel" class="cell_1" style="left:0px; top:220px; width:100px; height:22px; vertical-align:middle; ">부서 연락처</caption>
- <input id="ipt_reqtel" ref="/root/main/goodreq/goodreqlist/reqtel" style="left:102px; top:221px; width:503px; height:19px; text-align:left; "/>
- <textarea id="txt_cmt" ref="/root/main/goodreq/goodreqlist/cmt" class="input_s_essential" maxlength="100" style="left:102px; top:365px; width:503px; height:75px; ">
- <script type="javascript" ev:event="onmaxlength">
- <![CDATA[
- model.setFocus("txt_cmt");
- messageBox("입력 가능한 글자수 초과","I009");
- ]]>
- </script>
- </textarea>
- <line id="line5" class="line_2" style="x1:0px; y1:312px; x2:605px; y2:312px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:336px; x2:605px; y2:336px; "/>
- <line id="line13" class="line_2" style="x1:0px; y1:360px; x2:605px; y2:360px; "/>
- <button id="button1" class="btn2_letter2" visibility="hidden" style="left:1108px; top:105px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- if(swh_select.selectedIndex == 0)
- {
- messageBox("분류코드 선택시에는 엑셀버튼사용" ,"E001" );
- }
- else {
-
- misfSaveExcel(grd_fixasetcdlist , "부서내비품코드");
- }
- */
- if( (grd_fixasetcdlist.rows - grd_fixasetcdlist.fixedRows) > 0)
- misfSaveExcel(grd_fixasetcdlist , "부서내비품코드");
- else
- messageBox("엑셀 생성 대상 데이터가" ,"I004" );
- ]]>
- </script>
- </button>
- <caption id="caption7" class="cell_1" style="left:305px; top:266px; width:88px; height:22px; vertical-align:middle; ">예산집행액</caption>
- <caption id="caption22" class="cell_1" style="left:305px; top:290px; width:88px; height:23px; vertical-align:middle; ">예산잔액</caption>
- <button id="btn_addfile" class="btn2_letter5" style="left:413px; top:340px; width:75px; height:19px; ">
- <caption>파일업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //첨부파일이 이미 있다면 파일 업로드 가 안되도록 막아버리자.
- if ( model.getValue( ipt_attfilenm.attribute("ref")).length > 0) {
- messageBox( "이미 첨부파일이 존재하여 첨부파일을 저장할수" , "I004" );
- return;
- }
-
- //행추가를 통한 비품신규청구일경우 파일 업로드막기(저장후에 업로드가능해짐)
-
- if (model.getValue("/root/main/list/goodreq/goodreqlist["+grd_goodreq.row+"]/reqseqno").length <=0 ) {
- messageBox( "비품청구 저장후에 첨부파일 업로드 하실수" , "I010" );
- return;
- }
-
-
- var files = window.fileDialog("open", "|", false);
- var replacepath = "";
-
- if ( files.length <= 0 ) return;
-
- model.setValue(ipt_uploadfile.attribute("ref") , files); //전체파일경로와이름을 셋팅
- var filename = files.substring(files.lastIndexOf('\\')+1 , files.length ); //파일이름만 나오게 문자정리
- model.setValue(ipt_attfilenm.attribute("ref") , filename);
-
- if (model.getValue( ipt_uploadfile.attribute("ref") ).length >0 && model.getValue( ipt_attfilenm.attribute("ref") ).length>0 ) {
-
-
-
- fAttfileAdd(); //첨부파일 서버로 저장하는 메소드 호출
- }
- //btn_search.dispatch("DOMActivate");
- model.refresh();
-
-
- ]]>
- </script>
- </button>
- <button id="btn_downfile" class="btn2_letter8" style="left:495px; top:340px; width:108px; height:19px; ">
- <caption>파일수정/다운로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //첨부파일이 있는 경우에만 파일 다운로드하는 기능
-
- // if ( ipt_attfilenm.value != '')
- // {
- //첨부파일 다운로드함수 호출
- fAttfileDown();
- // }else{
- // messageBox("첨부된 파일이 없어서 다운로드 할수" , "I004");
- // }
- ]]>
- </script>
- </button>
- <upload id="upd_uploadfile" nodeset="/root/send/fileupcolumn/fileupload/file" filecount="5" validate="true" style="left:565px; top:290px; width:25px; height:20px; "/>
- <input id="ipt_uploadfile" ref="/root/send/fileupcolumn/fileupload/file" visibility="hidden" style="left:565px; top:315px; width:35px; height:19px; "/>
- <select id="chb_acptflag" ref="/root/send/goodreq/acptflag" visibility="hidden" overflow="visible" appearance="full" style="left:939px; top:21px; width:61px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미접수</label>
- <value>N</value>
- </item>
- </choices>
- </select>
- <input id="ipt_reqflag2" ref="/root/send/init/reqflag" visibility="hidden" style="left:75px; top:650px; width:55px; height:19px; "/>
- <input id="ipt_reqaprvflag" ref="/root/send/init/reqaprvflag" visibility="hidden" style="left:195px; top:650px; width:55px; height:19px; "/>
- <input id="ipt_emplno" ref="/root/send/init/emplno" visibility="hidden" style="left:135px; top:650px; width:55px; height:19px; "/>
- <input id="ipt_instcd2" ref="/root/send/init/instcd" visibility="hidden" style="left:15px; top:650px; width:55px; height:19px; "/>
- <datagrid id="grd_reqpsnlist" nodeset="/root/hidden/reqpsnlist" visibility="hidden" caption="청구부서^사원명^청구승인" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:15px; top:575px; width:350px; height:70px; ">
- <col ref="reqdeptcd"/>
- <col ref="emplnm"/>
- <col ref="reqaprvflagnm"/>
- </datagrid>
- <datagrid id="grd_rscsysinft" nodeset="/root/main/RscsysinftLists/rscsysinftlist" visibility="hidden" caption="기관^기관명칭^기관명칭^VER^설치일^가동일^우편번호^주소^구매담당부서^구매담당부서명^구매담당자ID^구매담당자명^구매부서장ID^구매부서장명^구매팀전화번호1^구매팀전화번호2^구매팀FAX^구매최종회계전송일^구매최종마감년월^약제담당부서^약제담당부서명^약제담당자ID^약제담당자명^약제부서장ID^약제부서장명^약제팀전화번호1^약제팀전화번호2^약제팀FAX^약제최종회계전송일^약제최종마감년월^영양담당부서^영양담당부서명^영양담당자ID^영양담당자명^영양부서장ID^영양부서장명^영양팀전화번호1^영양팀전화번호2^영양팀FAX^영양최종회계전송일^영양최종마감년월^수가위원회부서(보험)^수가위원회부서명^연간단가처리일자^연간단가선정여부^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="44, 1, 159, 50, 100, 90, 63, 68, 223, 90, 100, 89, 100, 87, 100, 100, 100, 100, 125, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 116, 100, 92, 100, 100, 100, 100, 100, 100, 100, 100, 118, 100, 120, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:665px; top:200px; width:150px; height:95px; ">
- <col ref="instcd" type="input" style="text-align:center; "/>
- <col ref="instcdnm" visibility="hidden"/>
- <col ref="instnm"/>
- <col ref="version" type="input" style="text-align:center; "/>
- <col ref="installdt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="operationdt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="instzip" type="input" style="text-align:center; "/>
- <col ref="instaddr" type="input"/>
- <col ref="purcdept" type="inputbutton" visibility="visible"/>
- <col ref="purcdeptnm" type="output" visibility="hidden"/>
- <col ref="purcdptjobid" type="inputbutton" visibility="hidden"/>
- <col ref="purcdptjobidnm" type="output" visibility="hidden"/>
- <col ref="purcdptmgrid" type="inputbutton" visibility="hidden"/>
- <col ref="purcdptmgridnm" type="output" visibility="hidden"/>
- <col ref="purcdepttel1" type="input" visibility="hidden"/>
- <col ref="purcdepttel2" type="input" visibility="hidden"/>
- <col ref="purcdeptfax" type="input" visibility="hidden"/>
- <col ref="purcacctdate" type="inputdate" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="purccloseyymm" type="inputdate" visibility="hidden" format="yyyy-mm"/>
- <col ref="drugdept" type="inputbutton" visibility="hidden"/>
- <col ref="drugdeptnm" type="output" visibility="hidden"/>
- <col ref="drugdptjobid" type="inputbutton" visibility="hidden"/>
- <col ref="drugdptjobidnm" type="output" visibility="hidden"/>
- <col ref="drugdptmgrid" type="inputbutton" visibility="hidden"/>
- <col ref="drugdptmgridnm" type="output" visibility="hidden"/>
- <col ref="drugdepttel1" type="input" visibility="hidden"/>
- <col ref="drugdepttel2" type="input" visibility="hidden"/>
- <col ref="drugdeptfax" type="input" visibility="hidden"/>
- <col ref="drugacctdate" type="inputdate" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="drugcloseyymm" type="inputdate" visibility="hidden" format="yyyy-mm"/>
- <col ref="nutrdept" type="inputbutton" visibility="hidden"/>
- <col ref="nutrdeptnm" type="output" visibility="hidden"/>
- <col ref="nutrdptjobid" type="inputbutton" visibility="hidden"/>
- <col ref="nutrdptjobidnm" type="output" visibility="hidden"/>
- <col ref="nutrdptmgrid" type="inputbutton" visibility="hidden"/>
- <col ref="nutrdptmgridnm" type="output" visibility="hidden"/>
- <col ref="nutrdepttel1" type="input" visibility="hidden"/>
- <col ref="nutrdepttel2" type="input" visibility="hidden"/>
- <col ref="nutrdeptfax" type="input" visibility="hidden"/>
- <col ref="nutracctdate" type="inputdate" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="nutrcloseyymm" type="inputdate" visibility="hidden" format="yyyy-mm"/>
- <col ref="insucdeptcd" type="inputbutton" visibility="hidden"/>
- <col ref="insucdeptcdnm" type="output" visibility="hidden"/>
- <col ref="yearcostdt" type="inputdate" visibility="hidden" format="yyyy-mm-dd"/>
- <col checkvalue="Y,N" ref="yearcostyn" type="checkbox" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="button46" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize()
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckSaveData() == false)return;
- if ( grd_goodreq.rows - grd_goodreq.fixedRows == 0) {
- misfGridInit(grd_goodreq);
- misfGridIUD(grd_goodreq, "A");
- model.refresh();
- }
- misfGridRowStatusChange(grd_goodreq,"/root/main/list/goodreq","/root/main/goodreq");
- model.setValue( "/root/main/goodreq/goodreqlist/attfilepathnm" , model.getValue( "/root/send/fileupcolumn/fileupload/file" ) );
-
- model.refresh();
-
- if(model.getValue(ipt_installplcecd.attribute("ref")) == "") {
- messageBox("설치장소코드를 선택하여 주세요.", "I");
- btn_installplce.dispatch("DOMActivate");
- return;
- }
-
- var needAlert = false;
- for(var i=grd_goodreq.fixedRows;i<grd_goodreq.rows;i++){
- if (grd_goodreq.valueMatrix(i , grd_goodreq.colRef("deptaprvyn")) != "Y"){
- needAlert = true;
- }
- }
-
- model.removenode("/root/temp/selectrow");
- var selectrow = grd_goodreq.row;
-
- misfSave("TXRSD11101");
-
- if(needAlert){
- body.disabled = true;
- window.alert( "부서장님의 승인이 필요합니다.", "정보", "64" );
- body.disabled = false;
- }
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error" ){
- model.makeValue("/root/temp/selectrow", selectrow);
- btn_search.dispatch("DOMActivate");
- }
- //fAttfileAdd(); //첨부파일 서버로 저장하는 메소드 호출
-
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter5" style="left:0; top:3px; width:92px; height:22px; ">
- <caption>청구서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPRSD04701", "XMLSTR"); // 기본 폼으로 변경(경북대)
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|