123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet ype="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>장비청구관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init>
- <instutcnstrneedyn>
- <label>예</label>
- <value>Y</value>
- <label>아니오</label>
- <value>N</value>
- </instutcnstrneedyn>
- <calcscorgenryn>
- <label>예</label>
- <value>Y</value>
- <label>아니오</label>
- <value>N</value>
- </calcscorgenryn>
- <installspcepossnyn>
- <label>예</label>
- <value>Y</value>
- <label>아니오</label>
- <value>N</value>
- </installspcepossnyn>
- <instcd/>
- <reqdd/>
- <reqseqno/>
- <usemthd>
- <label>과전용</label>
- <value>1</value>
- <label>공동사용</label>
- <value>2</value>
- <label>중앙과</label>
- <value>3</value>
- </usemthd>
- <prcsstat>
- <label>신청</label>
- <value>A</value>
- <label>접수</label>
- <value>C</value>
- <label>발주</label>
- <value>P</value>
- <label>입고</label>
- <value>W</value>
- </prcsstat>
- <qchgrate>
- <label>환율조회</label>
- <value>http://spd.wooribank.com</value>
- </qchgrate>
- <cstgoodflag/>
- </init>
- <send>
- <sendlist>
- <instcd/>
- <reqdeptcd/>
- <reqdeptnm/>
- <workflag/>
- <reqfrmdd/>
- <reqtodd/>
- <prcsstat/>
- <goodflag/>
- <cntrdeptcd/>
- <reqflag/>
- <instcdnm/>
- <cmbinstcd/>
- <mngtdeptcd/>
- </sendlist>
- <save>
- <reqeqmtlist/>
- <publusedeptlist/>
- <smlartyeqmtlist/>
- <recmeqmtlist/>
- <psgedeptlist/>
- </save>
- <grid>
- <reqeqmtlist_row/>
- </grid>
- </send>
- <main>
- <list>
- <reqeqmtlist/>
- <publusedeptlist/>
- <smlartyeqmtlist/>
- <recmeqmtlist/>
- <psgedeptlist/>
- <fixasetcd>
- <fixasetcdlist/>
- <fixasetcdlistv/>
- </fixasetcd>
- <mon1cdlist/>
- <mon2cdlist/>
- </list>
- <reqeqmtlist>
- <instcd/>
- <reqdd/>
- <reqseqno/>
- <reqdeptcd/>
- <reqdeptnm/>
- <workflag>1</workflag>
- <goodflagengnm/>
- <goodflaghngnm/>
- <reqpsnid/>
- <reqpsnnm/>
- <appqty/>
- <bugtyy/>
- <bugtflag/>
- <usemthd/>
- <cntrdeptcd/>
- <cntrdeptnm/>
- <mngtdeptcd/>
- <mngtdeptnm/>
- <installplcecd/>
- <installplcenm/>
- <presteqmtmmexeccnt/>
- <neweqmtmmexeccnt/>
- <calcscorprctnmpresteqmt/>
- <calcscorprctnmneweqmt/>
- <presteqmtmnpwr/>
- <prestneweqmtmnpwr/>
- <usgepurcneed/>
- <instutcnstrneedyn/>
- <installspcepossnyn/>
- <addmnpwrdr/>
- <addmnpwrnurs/>
- <addmnpwrengr/>
- <addmnpwretc/>
- <calcscorgenryn/>
- <bugtwncurncy/>
- <bugtforgnamt/>
- <bugtforgnamtunit/>
- <medcare/>
- <actamtincl/>
- <undecicurematr/>
- <medcareinsu/>
- <reqqty/>
- <acptflag/>
- <acptdd/>
- <acptseqno/>
- <prcsstat/>
- <plceorddd/>
- <plceordseqno/>
- <attfilenm/>
- <attfilepathnm/>
- <stdysubjno/>
- <stdysubjnm/>
- <fixasetcd/>
- <etccostrt/>
- <subestbcmt/>
- <machcmt/>
- <eleccmt/>
- <mutplecmt/>
- <compucmt/>
- <etccmt/>
- <iopsnflag/>
- <chgrate/>
- <installplcecmt/>
- <onemodelcmt/>
- <fcstuseyearno/>
- <possesdocucd/>
- <goodunitcost/>
- <welfcd/>
- </reqeqmtlist>
- <calc/>
- <report>
- <reqeqmtlist/>
- </report>
- </main>
- <hidden/>
- <temp>
- <qchgrate/>
- <selectrow/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSC11901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/list/reqeqmtlist"/>
- <submission id="TRRSC11902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/publusedeptlist"/>
- <submission id="TRRSC11903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/smlartyeqmtlist"/>
- <submission id="TRRSC11904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/recmeqmtlist"/>
- <submission id="TRRSC11906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/psgedeptlist"/>
- <submission id="TXRSC11901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TXRSC11903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRFC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/list/fixasetcd"/>
- <submission id="TRRSC11908" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/mon1cdlist"/>
- <submission id="TRRSC11909" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/reqeqmtlist_row" resultref="/root/main/list/mon2cdlist"/>
- <submission id="TRRFC00208" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/list/fixasetcd"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.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="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
-
- misfGridInit(grd_reqeqmtlist);
- misfGridInit(grd_publusedeptlist);
- misfGridInit(grd_smlartyeqmtlist);
- misfGridInit(grd_recmeqmtlist);
- misfGridInit(grd_psgedeptlist);
- misfGridInit(grd_fixasetcdlistv);
- misfGridInit(grd_fixasetcdlist);
-
- misfGridInit(grd_mon1cdlist);
- misfGridInit(grd_mon2cdlist);
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main/reqeqmtlist");
-
- misfGridComboComCdList("R0035", grd_recmeqmtlist, "prodplce");
- misfGridComboComCdList("R0047", grd_recmeqmtlist, "curncyunit");
- // misfGridComboComCdList("M0044", grd_mon1cdlist, "insu_nopyyn"); // 급여,비급여.
-
- misfComboComCdList("030R0005", chk_possesdocu); //구비서류
- misfComboComCdListMulti("Z0007,R0050,R0047,R0052,R0116","cmb_instcd,cmb_workflag_search,cmb_bugtforgnamtunit,cmb_usemthd,cmb_prcsstat_search");
- // rszfUserReqInstList(opt_instcd,getUserInfo("userid"),"4","C"); // preqpgmgubun : '4' :장비
-
- //misfComboCopyItemSet(cmb_workflag_search, "", cmb_workflag, ""); //물품코드
- //rszfComboBugtList(cmb_bugtflag,getUserInfo("dutplceinstcd"));
-
- // 전체
- rszfComboAppendBlankChild("cmb_prcsstat_search");
- rszfComboAppendBlankChild("cmb_workflag_search");
-
-
- cmb_instcd.value = getUserInfo("dutplceinstcd");
- model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
-
- /* 2009/01/23 기관코드 설정으로 주석처리
- if(getUserInfo("dutplceinstcd") == '001'){
- cmb_instcd.disabled = false;
- }else{
- cmb_instcd.disabled = true;
- }
- */
-
- if ( getUserInfo("dutplceinstcd") != "" )
- {
- model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- opt_instcd.dispatch("xforms-value-changed");
- }
- else {
- model.setValue(opt_instcd.attribute("ref") , "012");
- opt_instcd.dispatch("xforms-value-changed");
- }
-
-
- // 사용자의 부서가 하나가 아니면 오류메세지를 호출하며. 부서가 하나이면 부서코드와 부서명을 설정해준다.
- var fcheck = rszfGetUserInfo(getUserInfo("userid"), getUserInfo("dutplceinstcd")) ;
- if( ( fcheck > 1 ) || ( fcheck == 0 ) ){
- model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(opt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
- }else{
- model.setValue(ipt_reqdeptcd_search.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptcd"));
- model.setValue(opt_reqdeptnm_search.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptnm"));
- }
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
-
- model.setValue(ipt_reqfrmdd_search.attribute("ref"), cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD") );
- model.setValue(ipt_reqtodd_search.attribute("ref"), curdate );
- // hidden
- model.setValue(ipt_reqflag.attribute("ref") , "G");
- model.setValue(ipt_goodflag_search.attribute("ref"), "EQ" );
-
- model.setValue(opt_cstgoodflag.attribute("ref"), "Y" );
- misfMsterDetailSet(grd_reqeqmtlist ,null, "TRRSC11901", "Y");
- misfMsterDetailSet(grd_publusedeptlist, grd_reqeqmtlist, "TRRSC11902", "Y");
- misfMsterDetailSet(grd_smlartyeqmtlist, grd_reqeqmtlist, "TRRSC11903", "Y");
- misfMsterDetailSet(grd_recmeqmtlist, grd_reqeqmtlist, "TRRSC11904", "Y");
- misfMsterDetailSet(grd_psgedeptlist, grd_reqeqmtlist, "TRRSC11906", "Y");
- misfMsterDetailSet(grd_mon1cdlist, grd_reqeqmtlist, "TRRSC11908", "Y");
-
- // 컨트롤의 자동 초기화로 인하여 월간재료비 그리드만 Master에 연결하지 않고 따로 관리합니다.(Submit을 따로 보내야함.)
- misfMsterDetailSet(grd_mon2cdlist, null, "TRRSC11909", "Y");
-
- fAllControlDisabled("Y");
-
- btn_search.dispatch("DOMActivate");
- // 권한설정.
- //fSetReqAuth();
-
- // rdo_medcare.select(0);
- // rdo_undecicurematr.select(0);
- model.refresh();
-
- }
-
- function fAfterRetr()
- {
- /* 접수부서의 접수가 되었으면*/
- for(var fRow = grd_reqeqmtlist.fixedRows; fRow < grd_reqeqmtlist.rows; fRow++)
- {
- if(grd_reqeqmtlist.valueMatrix(fRow, grd_reqeqmtlist.colRef("acptflag")) == "Y")
- {
- grd_reqeqmtlist.isReadOnly(fRow,grd_reqeqmtlist.colRef("deptaprvyn")) = true;
- }
- else
- {
- grd_reqeqmtlist.isReadOnly(fRow,grd_reqeqmtlist.colRef("deptaprvyn")) = false;
- }
- }
-
- }
-
- /*--------------------------------------------------------------------------------*/
- /* 화면 open시 disable ..행추가시 또는 조회후 값 존재시 enable */
- /*--------------------------------------------------------------------------------*/
- function fAllControlDisabled(pDisableYn)
- {
- if(pDisableYn == "Y")
- {
- cmb_workflag.disabled="true"
- ipt_reqdeptcd.disabled="true"
- // ipt_reqpsnid.disabled="true"
- ipt_goodflagengnm.disabled="true"
- ipt_goodflaghngnm.disabled="true"
-
- ipt_installplcecmt.disabled="true"
-
- cmb_bugtflag.disabled="true"
- ipt_stdysubjno.disabled="true"
- ipt_bugtyy.disabled="true"
- ipt_reqdeptcd.disabled="true"
- ipt_mngtdeptcd.disabled="true"
- cmb_usemthd.disabled="true"
- ipt_installplcecd.disabled="true"
- ipt_appqty.disabled="true"
- cmb_bugtforgnamtunit.disabled="true"
- ipt_bugtwncurncy.disabled="true"
- ipt_bugtforgnamt.disabled="true"
- ipt_addmnpwrdr.disabled="true"
- ipt_addmnpwrnurs.disabled="true"
- ipt_addmnpwrengr.disabled="true"
- ipt_addmnpwretc.disabled="true"
- rdo_instutcnstrneedyn.disabled="true"
- rdo_calcscorgenryn.disabled="true"
- rdo_installspcepossnyn.disabled="true"
- tar_usgepurcneed.disabled="true"
- ipt_presteqmtmmexeccnt.disabled="true"
- ipt_neweqmtmmexeccnt.disabled="true"
- ipt_calcscorprctnmpresteqmt.disabled="true"
- ipt_calcscorprctnmneweqmt.disabled="true"
- ipt_presteqmtmnpwr.disabled="true"
- ipt_prestneweqmtmnpwr.disabled="true"
- ipt_etccostrt.disabled="true"
- btn_goodflagengnm.disabled="true"
- btn_stdysubjnm.disabled="true"
- btn_reqdeptcd.disabled="true"
- btn_mngtdeptcd.disabled="true"
- btn_installplcecd.disabled="true"
- ipt_chgrate.disabled="true"
- cmb_iopsnflag.disabled="true"
- ipt_stdysubjnm.disabled="true"
- ipt_mngtdeptnm.disabled="true"
- ipt_installplcenm.disabled="true"
- ipt_reqdeptnm.disabled="true"
-
- tar_subestbcmt.disabled="true"
- tar_machcmt.disabled="true"
- tar_eleccmt.disabled="true"
- tar_mutplecmt.disabled="true"
- tar_compucmt.disabled="true"
- tar_etccmt.disabled="true"
- tar_onemodelcmt.disabled = "true"
-
- ipt_fcstuseyearno.disabled="true"
- chk_possesdocu.disabled="true"
-
- ipt_goodunitcost.disabled="true"
- ipt_welfcd.disabled="true"
- }
- else
- {
-
- cmb_workflag.disabled="false"
- ipt_reqdeptcd.disabled="false"
- // ipt_reqpsnid.disabled="false"
- ipt_goodflagengnm.disabled="false"
- ipt_goodflaghngnm.disabled="false"
-
- ipt_installplcecmt.disabled="false"
-
- cmb_bugtflag.disabled="false"
- ipt_stdysubjno.disabled="false"
- ipt_bugtyy.disabled="false"
- ipt_reqdeptcd.disabled="false"
- ipt_mngtdeptcd.disabled="false"
- cmb_usemthd.disabled="false"
- ipt_installplcecd.disabled="false"
- ipt_appqty.disabled="false"
- cmb_bugtforgnamtunit.disabled="false"
- ipt_bugtwncurncy.disabled="false"
- ipt_bugtforgnamt.disabled="false"
- ipt_addmnpwrdr.disabled="false"
- ipt_addmnpwrnurs.disabled="false"
- ipt_addmnpwrengr.disabled="false"
- ipt_addmnpwretc.disabled="false"
- rdo_instutcnstrneedyn.disabled="false"
- rdo_calcscorgenryn.disabled="false"
- rdo_installspcepossnyn.disabled="false"
- tar_usgepurcneed.disabled="false"
- ipt_presteqmtmmexeccnt.disabled="false"
- ipt_neweqmtmmexeccnt.disabled="false"
- ipt_calcscorprctnmpresteqmt.disabled="false"
- ipt_calcscorprctnmneweqmt.disabled="false"
- ipt_presteqmtmnpwr.disabled="false"
- ipt_prestneweqmtmnpwr.disabled="false"
- ipt_etccostrt.disabled="false"
- btn_goodflagengnm.disabled="false"
- btn_stdysubjnm.disabled="false"
- btn_reqdeptcd.disabled="false"
- btn_mngtdeptcd.disabled="false"
- btn_installplcecd.disabled="false"
- ipt_chgrate.disabled="false"
- cmb_iopsnflag.disabled="false"
- ipt_stdysubjnm.disabled="false"
- ipt_mngtdeptnm.disabled="false"
- ipt_installplcenm.disabled="false"
- ipt_reqdeptnm.disabled="false"
-
- tar_subestbcmt.disabled="false"
- tar_machcmt.disabled="false"
- tar_eleccmt.disabled="false"
- tar_mutplecmt.disabled="false"
- tar_compucmt.disabled="false"
- tar_etccmt.disabled="false"
- tar_onemodelcmt.disabled = "false"
-
- ipt_fcstuseyearno.disabled="false"
- chk_possesdocu.disabled="false"
-
- ipt_goodunitcost.disabled="false"
- ipt_welfcd.disabled="false"
- }
- model.refresh();
- }
- function fSettingGoodList(pnode, nodename)
- {
- var codynode = instance1.selectNodes(pnode + "/*");
-
- var addRow = grd_mon2cdlist.rows - grd_mon2cdlist.fixedRows;
-
- if(model.getValue(grd_mon2cdlist.nodeset + "[" + addRow + "]/goodcd").length > 0)addRow = addRow + 1;
- for (var j = 1; j <= codynode.length ; j++) {
-
- if((grd_mon2cdlist.rows - grd_mon2cdlist.fixedRows == 0) || (addRow > grd_mon2cdlist.rows - grd_mon2cdlist.fixedRows))
- {
- misfGridIUD(grd_mon2cdlist,"A");
- // grd_mon2cdlist.addRow(true, true);
- // misfGridDefaultSet(grd_mon2cdlist);
-
- addRow = grd_mon2cdlist.rows - grd_mon2cdlist.fixedRows;
- }
-
- model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/cstcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
- model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/cstcdnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
- model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/suplplce" , model.getValue(pnode +"/" + nodename + "[" + j + "]/maincustlastsuplplce"));
- model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/suplplcenm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/maincustlastsuplplcenm"));
- model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/purcunitcost" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost"));
-
- // [2011.04.04] by J.woo
- // 내용: 월간재료비 추가로 인한 REQDD 세팅
-
- model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/reqdd" , model.getValue(opt_reqdd.attribute("ref")));
-
- addRow = addRow + 1;
-
-
- }
-
- //model.removenode(pnode);
- 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;
- }
-
- //pmsg == "fselect" --> 조회시
- //pmsg == "true" --> 행추가시
- //구매팀에서 부서코드 없이 조회시 전체를 조회해서 볼수있도록 조건을 바꾸고 행추가시에는 구매팀이더라도 부서를 세팅하고 행추가 할수 있도록 수정함
-
- var ideptcd = getUserInfo("dutplcecd");
- if( (ideptcd=="4080101000" || ideptcd=="4080100000" || ideptcd=="4080102000"|| ideptcd=="4080300000") && pmsg == "fselect" ){
- }else{
- if(model.getValue(ipt_reqdeptcd_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true || pmsg == "fselect")
- {
-
- messageBox("청구부서를 " ,"C002");
- model.setFocus("ipt_reqdeptcd_search");
- }
- return false;
- }
- }
-
-
-
- if(model.getValue(ipt_reqfrmdd_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("청구조회시작일자를 " ,"C001");
- model.setFocus("ipt_reqfrmdd_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 fDataCheck( ) {
- if ( grd_reqeqmtlist.rows > 1 )
- misfGridRowStatusChange(grd_reqeqmtlist,"/root/main/list","/root/main");
- var updtdata = getGridUpdateData(grd_reqeqmtlist);
-
- model.refresh();
- if (updtdata != "" ) return true;
- updtdata = getGridUpdateData(grd_publusedeptlist);
- if (updtdata != "" ) return true;
- updtdata = getGridUpdateData(grd_smlartyeqmtlist);
- if (updtdata != "" ) return true;
- updtdata = getGridUpdateData(grd_recmeqmtlist);
- if (updtdata != "" ) return true;
- updtdata = getGridUpdateData(grd_psgedeptlist);
- if (updtdata != "" ) return true;
- updtdata = getGridUpdateData(grd_mon1cdlist);
- if (updtdata != "" ) return true;
- updtdata = getGridUpdateData(grd_mon2cdlist);
- if (updtdata != "" ) return true;
- else return false;
- }
-
- function fSetAddRow( grd_temp ) {
- misfGridIUD(grd_temp,"A","N");
- // grd_temp.addRow(false);
- model.setValue( grd_temp.attribute("nodeset")+"["+grd_temp.row+"]/instcd", model.getValue(opt_instcd.attribute("ref")) );
- model.setValue( grd_temp.attribute("nodeset")+"["+grd_temp.row+"]/reqdd", model.getValue(opt_reqdd.attribute("ref")) );
- model.setValue( grd_temp.attribute("nodeset")+"["+grd_temp.row+"]/reqseqno", model.getValue(opt_reqseqno.attribute("ref")) );
- }
-
- function fCheckSaveData()
- {
- if(model.getValue(ipt_reqdeptcd.attribute("ref")).length==0)
- {
- messageBox("신청부서는" ,"I003");
- model.setFocus("ipt_reqdeptcd");
- return false;
- }
- if(model.getValue(cmb_workflag.attribute("ref")).length==0)
- {
- messageBox("청구구분은","I003");
- model.setFocus("cmb_workflag");
- return false;
- }
- if(model.getValue(ipt_appqty.attribute("ref")).length==0 || model.getValue(ipt_appqty.attribute("ref"))==0)
- {
- messageBox("청구수량은","I003");
- model.setFocus("ipt_appqty");
- return false;
- }
-
- if(model.getValue(ipt_goodflagengnm.attribute("ref")).length==0)
- {
- messageBox("장비영문명을","I003");
- model.setFocus("ipt_goodflagengnm");
- return false;
- }
- if(model.getValue(ipt_mngtdeptcd.attribute("ref")).length==0)
- {
- messageBox("관리부서를","I003");
- model.setFocus("ipt_mngtdeptcd");
- return false;
- }
- if(model.getValue(ipt_reqdeptcd.attribute("ref")).length==0)
- {
- messageBox("청구부서를","I003");
- model.setFocus("ipt_reqdeptcd");
- return false;
- }
- if(model.getValue(ipt_goodunitcost.attribute("ref")) < 0)
- {
- messageBox("단가를","I003");
- model.setFocus("ipt_goodunitcost");
- return false;
- }
-
- if( checkKeyColumn("grd_recmeqmtlist") == false) return;
- if( checkKeyColumn("grd_smlartyeqmtlist") == false) return;
- if( checkKeyColumn("grd_psgedeptlist") == false) return;
- if( checkKeyColumn("grd_publusedeptlist") == false) return;
- if( checkKeyColumn("grd_mon1cdlist") == false) return;
- if( checkKeyColumn("grd_mon2cdlist") == false) return;
-
- return true;
- }
-
- function fDefaultSetting()
- {
- model.copyNode("/root/main/reqeqmtlist" , grd_reqeqmtlist.nodeset + "["+ (grd_reqeqmtlist.row-grd_reqeqmtlist.fixedrows+1) + "]");
-
- model.setValue(opt_reqdd.attribute("ref"), getCurrentDate() );
- model.setValue(ipt_reqdeptcd.attribute("ref"), ipt_reqdeptcd_search.value);
- model.setValue(ipt_reqpsnid.attribute("ref"), getUserInfo("userid"));
- model.setValue(opt_reqpsnnm.attribute("ref"), getUserInfo("usernm"));
-
- // 진행상태 "1" :청구
- model.setValue(ipt_prcsstat.attribute("ref"), "1");
- model.setValue(cmb_iopsnflag.attribute("ref"), "H");
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
-
- model.setValue(ipt_bugtyy.attribute("ref"), cvtdate.getYear());
-
- // 청구부서,관리부서 셋팅
- model.setValue(ipt_mngtdeptcd.attribute("ref"), ipt_reqdeptcd_search.value);
- model.setValue(ipt_mngtdeptnm.attribute("ref"), opt_reqdeptnm_search.value);
- model.setValue(ipt_reqdeptcd.attribute("ref"), ipt_reqdeptcd_search.value);
- model.setValue(ipt_reqdeptnm.attribute("ref"), opt_reqdeptnm_search.value);
- model.refresh();
- }
- function fMovecd(pgrid_name)
- {
- if(model.GetValue(cmb_workflag.attribute("ref")).length == 0)
- {
- messageBox("행추가를 먼저하시거나 '청구구분' 란을 먼저 " ,"C002");
- //model.setFocus("opt_instcd");
- return;
- }
-
- if (grd_fixasetcdlist.row > 0)
- {
- //model.setValue(ipt_fixasetcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("fixasetcd")));
- model.setValue(ipt_goodflaghngnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodflaghngnm")));
- model.setValue(ipt_goodflagengnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodflagengnm")));
-
- model.refresh();
- }
-
- }
-
- function fSetAmt()
- {
- if(cmb_iopsnflag.value == "H")
- {
- ipt_bugtwncurncy.disabled="false";
- ipt_bugtforgnamt.disabled="true";
- ipt_chgrate.disabled="true";
- ipt_etccostrt.disabled="true";
- model.setValue(ipt_chgrate.attribute("ref"),"0" );
- model.setValue(ipt_bugtforgnamt.attribute("ref"),"0" );
- model.setValue(ipt_etccostrt.attribute("ref"),"0" );
- }
- else
- {
- ipt_bugtwncurncy.disabled="true";
- ipt_bugtforgnamt.disabled="false";
- ipt_chgrate.disabled="false";
- ipt_etccostrt.disabled="false";
-
- // 원화 := 외화*환율 + ((외화*환율*부대비용율)/100)
- var bugtwncurncy = ( parseInt(ipt_bugtforgnamt.value) * parseInt(ipt_chgrate.value) ) +
- ( ( parseInt(ipt_bugtforgnamt.value) * parseInt(ipt_chgrate.value) * parseInt(ipt_etccostrt.value) ) / 100 ) ;
- //var bugtwncurncy = ( parseInt(ipt_bugtforgnamt.value) * parseInt(ipt_chgrate.value) ) ;
-
- model.setValue(ipt_bugtwncurncy.attribute("ref"),bugtwncurncy );
- }
- model.refresh();
- }
- function fSetReqAuth()
- {
- if(getUserInfo("dutplceinstcd") == '001')
- {
- return;
- }
- /* ---------------------------------------------------------------------------------------
- * [2007.12.12 HBH ] 청구주기 추가.
- * 수리,장비등 청구주기가 없는 것들은 '1'로셋팅
- ---------------------------------------------------------------------------------------*/
- rszfGetPurcReqAuthInfo(model.getValue(opt_instcd.attribute("ref")), model.getValue(ipt_reqflag.attribute("ref")) , ipt_reqdeptcd_search.value, getUserInfo("userid"),"1");
- /*
- if(purcGetPurcAuthInfoByCond("reqauth") != "Y")btn_save.disabled = true;
- else btn_save.disabled = false;
- if(purcGetPurcAuthInfoByCond("reqaprvflag") != "2")btn_accept.disabled = true;
- else btn_accept.disabled = false;
- */
- btn_accept.disabled = true;
- // btn_save.disabled = true;
- btnselect.disabled = true;
-
- // if(rszfGetPurcAuthInfoByCond("reqaprvflag") =="1" || (getUserInfo("dutplcecd") == '4080102000'))
- if(rszfGetPurcAuthInfoByCond("reqaprvflag") =="1" || (rszfGetPurcDeptCd(cmb_instcd.value) == getUserInfo("dutplcecd")))
- {
- btn_save.disabled = false;
-
- for(var fRow = grd_reqeqmtlist.fixedRows; fRow < grd_reqeqmtlist.rows; fRow++)
- {
- grd_reqeqmtlist.isReadOnly(fRow, grd_reqeqmtlist.colRef("deptaprvyn")) = true;
- }
- }
-
- if(rszfGetPurcAuthInfoByCond("reqaprvflag") == "2" || (rszfGetPurcDeptCd(cmb_instcd.value) == getUserInfo("dutplcecd")))
- // if(rszfGetPurcAuthInfoByCond("reqaprvflag") == "2" || (getUserInfo("dutplcecd") == '4080102000'))
- {
- btn_save.disabled = false;
- btn_accept.disabled = false;
- btnselect.disabled = false;
- }
- model.refresh();
- }
-
- function fControlDisabled(fBool)
- {
- button13.disabled = fBool;
- button14.disabled = fBool;
- grd_recmeqmtlist.disabled = fBool;
-
- button16.disabled = fBool;
- button18.disabled = fBool;
- grd_smlartyeqmtlist.disabled = fBool;
-
- button17.disabled = fBool;
- button15.disabled = fBool;
- grd_psgedeptlist.disabled = fBool;
-
- button6.disabled = fBool;
- button4.disabled = fBool;
- grd_publusedeptlist.disabled = fBool;
-
- button12.disabled = fBool;
- button11.disabled = fBool;
- grd_mon1cdlist.disabled = fBool;
-
- button20.disabled = fBool;
- button19.disabled = fBool;
- grd_mon2cdlist.disabled = fBool;
-
- grd_fixasetcdlist.disabled = fBool;
- }
- function fSetNum(grd_temp, node)
- {
- var num = new String(grd_temp.row);
- if(num.length == 1){
- num = "00" + num;
- }
- else if(num.length == 2){
- num = "0" + num;
- }
-
- grd_temp.valueMatrix(grd_temp.row, grd_temp.colRef(node)) = num;
- }
-
- function fDispCalc()
- {
-
- // 그룹위치 설정.
- var pos = event.y + 360;
-
- //group3.disabled = true;
- //grp_btn.disabled= true;
-
- grd_calc.valueMatrix(grd_calc.rows-1, grd_calc.colRef("money")) = grd_recmeqmtlist.valueMatrix(grd_recmeqmtlist.row, grd_recmeqmtlist.colRef("forgncurncyamt"));
- grd_calc.valueMatrix(grd_calc.rows-1, grd_calc.colRef("persent")) = 0;
- grd_calc.valueMatrix(grd_calc.rows-1, grd_calc.colRef("exchange")) = 0;
- grd_calc.valueMatrix(grd_calc.rows-1, grd_calc.colRef("currency")) = 0;
-
- grd_calc.isReadOnly(grd_calc.rows-1, grd_calc.colRef("money")) = false;
-
- gro_calc.attribute("style") = 'left:500px; width:375px; height:99px; top:' + pos + 'px';
- gro_calc.attribute("visibility") = 'visible';
- grd_calc.col = grd_calc.colRef("persent");
- grd_calc.editCell();
-
- model.refresh();
- }
-
- function fOpenPopupUserHelp(pCtrl, pInstance)
- {
- misfOpenPopUpList("01", pCtrl, "", pInstance);
- model.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,-12;" 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:38; width:1195; height:744; ">
- <line id="line4" class="line_3" style="x1:0px; y1:501px; x2:545px; y2:501px; "/>
- <line id="line19" class="line_2" style="x1:0px; y1:476px; x2:1195px; y2:476px; "/>
- <line id="line16" class="line_2" style="x1:0px; y1:525px; x2:1190px; y2:525px; "/>
- <line id="line21" class="line_2" style="x1:0px; y1:355px; x2:1195px; y2:355px; "/>
- <line id="line20" class="line_2" style="x1:0px; y1:427px; x2:1195px; y2:427px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:403px; x2:1195px; y2:403px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:531px; x2:1195px; y2:531px; "/>
- <caption id="caption9" class="tit_2" style="left:5px; top:79px; width:100px; height:13px; ">장비청구 목록</caption>
- <button id="btn_del" class="btn2_letter3" navindex="9" visibility="visible" style="left:920px; top:73px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( grd_reqeqmtlist.row >= grd_reqeqmtlist.fixedRows ) {
-
- if( model.getValue(grd_reqeqmtlist.nodeset+"[" + grd_reqeqmtlist.row + "]/deptaprvyn") == "Y" ) {
- messageBox("청구가 승인상태로 청구 삭제를 할 수 ","I004");
- return;
- }
- if ( model.getValue(grd_reqeqmtlist.nodeset+"[" + grd_reqeqmtlist.row + "]/acptflag") != "Y" ) {
-
- var ret = messageBox("행삭제를 선택하면 세부내역 전체가 삭제할 대상으로 상태가 바뀝니다. 행삭제를","Q009");
- if (ret != 6) { // not OK
- return;
- }
- for (var t = grd_recmeqmtlist.fixedRows ; t < grd_recmeqmtlist.rows; t++) {
- grd_recmeqmtlist.rowstatus(t) = 4;
- }
- for (var t = grd_mon1cdlist.fixedRows ; t < grd_mon1cdlist.rows; t++) {
- grd_mon1cdlist.rowstatus(t) = 4;
- }
- for (var t = grd_smlartyeqmtlist.fixedRows ; t < grd_smlartyeqmtlist.rows; t++) {
- grd_smlartyeqmtlist.rowstatus(t) = 4;
- }
- for (var t = grd_mon2cdlist.fixedRows ; t < grd_mon2cdlist.rows; t++) {
- grd_mon2cdlist.rowstatus(t) = 4;
- }
- for (var t = grd_publusedeptlist.fixedRows ; t < grd_publusedeptlist.rows; t++) {
- grd_publusedeptlist.rowstatus(t) = 4;
- }
-
- misfGridIUD(grd_reqeqmtlist, "D");
-
- model.refresh();
- } else {
- messageBox("청구가 접수상태로 청구 삭제를 할 수 ","I004");
- }
- }
- ]]>
- </script>
- </button>
- <line id="line9" class="line_1" style="x1:0px; y1:254px; x2:1195px; y2:254px; "/>
- <input id="ipt_goodflagengnm" ref="/root/main/reqeqmtlist/goodflagengnm" class="input_s_essential" navindex="16" style="left:103px; top:285px; width:417px; height:19px; "/>
- <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_reqeqmtlist" nodeset="/root/main/list/reqeqmtlist" caption="진행상태^입고예정일^접수^청구번호^신청자^신청자연락처^장비명^모델^제조회사^원화총금액^외화금액^설치장소^신청수량^승인^청구수량^예산년도^예산구분^사용방법^귀속부서^관리부서^설치장소^월간시행건수(현장비)^월간시행건수(신장비)^수가처방코드명(현장비)^수가처방코드명(신장비)^현장비운영인력(현장비)^현장비운영인력(신장비)^용도및구입필요성^시설공사필요여부^설치공간확보여부^추가인력의사^추가인력간호사^추가인력기사^추가인력기타^수가신설여부^예산원화^예산외화^예산외화화폐단위^요양급여^행위료포함^미결정치료재료^의료보험^접수여부^접수일자^접수순번^발주일자^발주순번^첨부파일명^첨부파일경로명^caption1^caption2^caption3^caption4^caption5" colsep="^" colwidth="55, 72, 42, 82, 50, 79, 230, 112, 114, 72, 73, 98, 55, 38, 100, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 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" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="13" style="left:0px; top:99px; width:1195px; height:151px; ">
- <col ref="prcsstatnm"/>
- <col ref="realwinschedd" format="yyyy-mm-dd"/>
- <col ref="acptflagnm"/>
- <col ref="reqno"/>
- <col ref="reqpsnnm"/>
- <col ref="mpphonno"/>
- <col ref="goodflagengnm"/>
- <col ref="model"/>
- <col ref="prodcmpynm"/>
- <col ref="wncurncyamt" format="#,###" style="text-align:right; "/>
- <col ref="forgncurncyamt" format="#,###" style="text-align:right; "/>
- <col ref="installplcenm"/>
- <col ref="appqty" format="#,###" style="text-align:right; "/>
- <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox"/>
- <col ref="reqqty" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="bugtyy" visibility="hidden"/>
- <col ref="bugtflag" visibility="hidden"/>
- <col ref="usemthd" visibility="hidden"/>
- <col ref="cntrdeptcd" visibility="hidden"/>
- <col ref="mngtdeptcd" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <col ref="presteqmtmmexeccnt" visibility="hidden"/>
- <col ref="neweqmtmmexeccnt" visibility="hidden"/>
- <col ref="calcscorprctnmpresteqmt" visibility="hidden"/>
- <col ref="calcscorprctnmneweqmt" visibility="hidden"/>
- <col ref="presteqmtmnpwr" visibility="hidden"/>
- <col ref="prestneweqmtmnpwr" visibility="hidden"/>
- <col ref="usgepurcneed" visibility="hidden"/>
- <col ref="instutcnstrneedyn" visibility="hidden"/>
- <col ref="installspcepossnyn" visibility="hidden"/>
- <col ref="addmnpwrdr" visibility="hidden"/>
- <col ref="addmnpwrnurs" visibility="hidden"/>
- <col ref="addmnpwrengr" visibility="hidden"/>
- <col ref="addmnpwretc" visibility="hidden"/>
- <col ref="calcscorgenryn" visibility="hidden"/>
- <col ref="bugtwncurncy" visibility="hidden"/>
- <col ref="bugtforgnamt" visibility="hidden"/>
- <col ref="bugtforgnamtunit" visibility="hidden"/>
- <col ref="medcare" visibility="hidden"/>
- <col ref="actamtincl" visibility="hidden"/>
- <col ref="undecicurematr" visibility="hidden"/>
- <col ref="medcareinsu" visibility="hidden"/>
- <col ref="acptflag" visibility="hidden"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="acptseqno" visibility="hidden"/>
- <col ref="plceorddd" visibility="hidden"/>
- <col ref="plceordseqno" visibility="hidden"/>
- <col ref="attfilenm" visibility="hidden"/>
- <col ref="attfilepathnm" visibility="hidden"/>
- <col ref="stdysubjno" visibility="hidden"/>
- <col ref="stdysubjnm" visibility="hidden"/>
- <col ref="prcsstat" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="workflag" visibility="hidden"/>
- <col ref="goodflaghngnm" visibility="hidden"/>
- <col ref="reqpsnid" visibility="hidden"/>
- <col ref="deptaprvdd" visibility="hidden"/>
- <col ref="etccostrt" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <col ref="iopsnflag" visibility="hidden"/>
- <col ref="chgrate" visibility="hidden"/>
- <col ref="subestbcmt" visibility="hidden"/>
- <col ref="machcmt" visibility="hidden"/>
- <col ref="eleccmt" visibility="hidden"/>
- <col ref="mutplecmt" visibility="hidden"/>
- <col ref="compucmt" visibility="hidden"/>
- <col ref="onemodelcmt" visibility="hidden"/>
- <col ref="etccmt" visibility="hidden"/>
- <col ref="cntrdeptnm" visibility="hidden"/>
- <col ref="mngtdeptnm" visibility="hidden"/>
- <col ref="reqdeptnm" visibility="hidden"/>
- <col ref="installplcecmt" visibility="hidden"/>
- <col ref="fcstuseyearno" visibility="hidden"/>
- <col ref="possesdocucd" visibility="hidden"/>
- <col ref="goodunitcost" visibility="hidden"/>
- <col ref="welfcd" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- //행변경을 했을 경우 rowstatus가 'D'인 상태로 남아있는 것들을 정상으로 바꾸어준다. 이유는 'D'로 남아있는 상태에서 다른것을 선택하고 행추가
- //또는 행삭제 했을때 최초에 'D' 였던 대상에 대한 청구테이블 내역은 지워지지만 그에 해당하는 청구테이블에 물려있는
- //하위상세테이블(추천장비,월간시행예상건수,부서동일유사장비,월간재료비,공동사용부서) 관련테이블은 삭제되지 않기때문이다
-
- for (var t = grd_reqeqmtlist.fixedRows ; t < grd_reqeqmtlist.rows; t++) {
- if(grd_reqeqmtlist.rowstatus(t) == 4){
- grd_reqeqmtlist.rowstatus(t) = 0 ;
- }
- }
- fAllControlDisabled("Y");
- if( grd_reqeqmtlist.rows >= grd_reqeqmtlist.fixedRows )
- {
- model.copyNode("/root/main/reqeqmtlist" , grd_reqeqmtlist.nodeset + "["+ (grd_reqeqmtlist.row-grd_reqeqmtlist.fixedrows+1) + "]");
- model.setValue( opt_instcd.attribute("ref") , model.getValue( grd_reqeqmtlist.nodeset + "[" + (grd_reqeqmtlist.row-grd_reqeqmtlist.fixedrows+1) + "]/instcd") );
- model.setValue( opt_reqdd.attribute("ref") , model.getValue( grd_reqeqmtlist.nodeset + "[" + (grd_reqeqmtlist.row-grd_reqeqmtlist.fixedrows+1) + "]/reqdd") );
- model.setValue( opt_reqseqno.attribute("ref") , model.getValue( grd_reqeqmtlist.nodeset + "[" + (grd_reqeqmtlist.row-grd_reqeqmtlist.fixedrows+1) + "]/reqseqno") );
-
- // 화면 오픈시 월간재료비의 그리드만 Master에 연결하지 않고 따로 관리하기 위하여 설정되어 있음으로 조회시 조건의 값이 되는 데이터를 Send할 Node에 복사합니다.
- model.copyNode("/root/send/grid/reqeqmtlist_row", grd_reqeqmtlist.attribute("nodeset") + "["+ grd_reqeqmtlist.row +"]");
-
- model.refresh();
- misfGridInit(grd_recmeqmtlist);
- misfGridInit(grd_smlartyeqmtlist);
- misfGridInit(grd_fixasetcdlistv);
- misfGridInit(grd_publusedeptlist);
- misfGridInit(grd_mon1cdlist);
- misfGridInit(grd_mon2cdlist);
-
- misfMsterDetailRetrieve();
-
- // 월간재료비 Load
- submit("TRRSC11909");
- btn_eqip.dispatch("DOMActivate");
- //if (grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("deptaprvyn")) == "Y")
- //{
- // fAllControlDisabled("Y");
- // fControlDisabled(false);
- //}else if(grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("acptflag")) == "Y")
- if(grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("acptflag")) == "Y")
- {
- fAllControlDisabled("Y");
- // 행추가,삭제 변경 설정.
- fControlDisabled(true);
-
- }else{
- fAllControlDisabled("N");
-
- // 행추가,삭제 변경 설정.
- fControlDisabled(false);
-
- fSetAmt();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.Row,grd_reqeqmtlist.colRef("acptflag")) == "Y" )
- {
- messageBox("관리부서에서 접수된건입니다. 접수취소를 하실수 " ,"I004");
- // check box의 반대값을 넣어주고 status를 원위치한다.
- grd_reqeqmtlist.rowStatus(grd_reqeqmtlist.Row - grd_reqeqmtlist.fixedRows + 1) = "0";
- if(grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.Row,grd_reqeqmtlist.colRef("deptaprvyn")) == "N" )
- model.setValue(grd_reqeqmtlist.nodeset + "[" + (grd_reqeqmtlist.Row - grd_reqeqmtlist.fixedrows+ 1) + "]/deptaprvyn" ,"Y");
- else
- model.setValue(grd_reqeqmtlist.nodeset + "[" + (grd_reqeqmtlist.Row - grd_reqeqmtlist.fixedrows+ 1) + "]/deptaprvyn" ,"N");
- }
- else
- {
- if(grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.Row,grd_reqeqmtlist.colRef("deptaprvyn")) == "N" )
- {
- model.setValue(grd_reqeqmtlist.nodeset + "[" + (grd_reqeqmtlist.Row - grd_reqeqmtlist.fixedrows+ 1) + "]/deptaprvdd" , "");
- }
- else
- {
- model.setValue(grd_reqeqmtlist.nodeset + "[" + (grd_reqeqmtlist.Row - grd_reqeqmtlist.fixedrows+ 1) + "]/deptaprvdd" , getCurrentDate());
- //model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/acptdd" , getCurrentDate());
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_reqeqmtlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:96px; "/>
- <caption id="caption22" class="cell_1" style="left:0px; top:259px; width:101px; height:23px; vertical-align:middle; ">청구구분</caption>
- <select1 id="cmb_workflag" ref="/root/main/reqeqmtlist/workflag" class="combo_s_essential" navindex="14" appearance="minimal" style="left:103px; top:261px; width:157px; height:19px; ">
- <choices>
- <item>
- <label>신규</label>
- <value>1</value>
- </item>
- <item>
- <label>수량부족</label>
- <value>2</value>
- </item>
- <item>
- <label>노후교체</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption23" class="cell_1" style="left:0px; top:307px; width:101px; height:23px; vertical-align:middle; ">장비명(한)</caption>
- <caption id="caption27" class="cell_1" style="left:263px; top:259px; width:100px; height:23px; vertical-align:middle; ">신청자</caption>
- <caption id="caption28" class="cell_1" style="left:235px; top:428px; width:70px; height:23px; vertical-align:middle; ">청구수량</caption>
- <caption id="caption65" class="cell_1" style="left:0px; top:283px; width:101px; height:23px; vertical-align:middle; ">장비명(영)</caption>
- <input id="ipt_goodflaghngnm" ref="/root/main/reqeqmtlist/goodflaghngnm" class="input_default" navindex="18" style="left:103px; top:309px; width:442px; height:19px; "/>
- <!--</group>-->
- <input id="ipt_neweqmtmmexeccnt" ref="/root/main/reqeqmtlist/neweqmtmmexeccnt" class="input_default" visibility="hidden" style="left:1060px; top:210px; width:10px; height:19px; text-align:right; "/>
- <input id="ipt_presteqmtmmexeccnt" ref="/root/main/reqeqmtlist/presteqmtmmexeccnt" class="input_default" visibility="hidden" style="left:1070px; top:210px; width:6px; height:19px; text-align:right; "/>
- <input id="ipt_calcscorprctnmpresteqmt" ref="/root/main/reqeqmtlist/calcscorprctnmpresteqmt" class="input_default" visibility="hidden" style="left:1050px; top:210px; width:6px; height:19px; text-align:right; "/>
- <input id="ipt_calcscorprctnmneweqmt" ref="/root/main/reqeqmtlist/calcscorprctnmneweqmt" class="input_default" visibility="hidden" style="left:1040px; top:210px; width:5px; height:19px; text-align:right; "/>
- <input id="ipt_presteqmtmnpwr" ref="/root/main/reqeqmtlist/presteqmtmnpwr" class="input_default" visibility="hidden" style="left:1030px; top:210px; width:6px; height:19px; text-align:right; "/>
- <input id="ipt_prestneweqmtmnpwr" ref="/root/main/reqeqmtlist/prestneweqmtmnpwr" class="input_default" visibility="hidden" style="left:1020px; top:210px; width:10px; height:19px; text-align:right; "/>
- <caption id="caption17" class="cell_1" style="left:550px; top:283px; width:118px; height:23px; vertical-align:middle; ">설치공간 확보여부</caption>
- <caption id="caption21" class="cell_1" style="left:876px; top:283px; width:110px; height:23px; vertical-align:middle; ">수가신설여부</caption>
- <caption id="caption24" class="cell_1" style="left:550px; top:259px; width:118px; height:23px; vertical-align:middle; ">소요인력</caption>
- <input id="ipt_addmnpwrengr" ref="/root/main/reqeqmtlist/addmnpwrengr" class="input_default" navindex="42" style="left:939px; top:261px; width:35px; height:19px; text-align:right; "/>
- <caption id="caption15" style="left:674px; top:262px; width:34px; height:19px; vertical-align:middle; ">의사 :</caption>
- <caption id="caption37" style="left:787px; top:262px; width:46px; height:19px; vertical-align:middle; ">간호사 :</caption>
- <caption id="caption40" style="left:905px; top:262px; width:38px; height:20px; vertical-align:middle; ">기사 :</caption>
- <caption id="caption41" style="left:1014px; top:262px; width:38px; height:20px; vertical-align:middle; ">기타 :</caption>
- <input id="ipt_addmnpwretc" ref="/root/main/reqeqmtlist/addmnpwretc" class="input_default" navindex="43" style="left:1048px; top:261px; width:35px; height:19px; text-align:right; "/>
- <input id="ipt_addmnpwrnurs" ref="/root/main/reqeqmtlist/addmnpwrnurs" class="input_default" navindex="41" style="left:833px; top:261px; width:35px; height:19px; text-align:right; "/>
- <input id="ipt_addmnpwrdr" ref="/root/main/reqeqmtlist/addmnpwrdr" class="input_default" navindex="40" style="left:709px; top:261px; width:35px; height:19px; text-align:right; "/>
- <caption id="caption43" style="left:748px; top:263px; width:14px; height:20px; vertical-align:middle; ">명</caption>
- <caption id="caption44" style="left:871px; top:263px; width:14px; height:20px; vertical-align:middle; ">명</caption>
- <caption id="caption46" style="left:982px; top:263px; width:14px; height:20px; vertical-align:middle; ">명</caption>
- <caption id="caption47" style="left:1086px; top:263px; width:14px; height:20px; vertical-align:middle; ">명</caption>
- <select1 id="rdo_instutcnstrneedyn" ref="/root/main/reqeqmtlist/instutcnstrneedyn" visibility="hidden" overflow="visible" appearance="full" cols="1" style="left:985px; top:215px; width:15px; height:16px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/instutcnstrneedyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:61px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1124px; top:29px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(fCheckRetrieveData("fselect") == false)return;
-
- if ( fDataCheck() )
- {
-
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- } else {
-
- misfMsterDetailRetrieve();
- }
- } else
- {
- misfMsterDetailRetrieve();
-
- // 저장후 재조회 일 경우 저장시 행을 조회
- var selectrow = model.getValue("/root/temp/selectrow");
-
- if(selectrow != ""){
- grd_reqeqmtlist.row = selectrow;
- grd_reqeqmtlist.dispatch("onrowchanged");
- }
- }
-
- fAfterRetr();
-
- if ( grd_reqeqmtlist.rows <= grd_reqeqmtlist.fixedRows ) {
- model.resetInstanceNode("/root/main/reqeqmtlist");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="icon_search" disabled="false" navindex="5" style="left:553px; top:21px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, cmb_instcd.value, "instcd") ;
- model.refresh();
- // 권한설정.
- //fSetReqAuth();
-
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:340px; top:45; width:117px; height:17px; ">청구구분 :</caption>
- <caption id="caption4" class="search_name" style="left:15px; top:19px; width:117px; height:17px; ">기관코드 :</caption>
- <line id="line18" class="line_4" style="x1:1109px; y1:20px; x2:1109px; y2:62px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_workflag_search" ref="/root/send/sendlist/workflag" class="combo_default" navindex="6" appearance="minimal" style="left:425px; top:44px; width:120px; 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/sendlist/reqdeptcd" class="input_s_essential" disabled="false" navindex="4" style="left:425px; top:20px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptcd_search.value.length == 0)
- opt_reqdeptnm_search.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd" );
-
- model.refresh();
-
- // 권한설정.
- //fSetReqAuth();
-
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:340px; top:20px; width:117px; height:17px; ">청구부서 :</caption>
- <output id="opt_reqdeptnm_search" ref="/root/send/sendlist/reqdeptnm" class="output_fix" appearance="output" style="left:574px; top:20px; width:191px; height:19px; "/>
- <input id="ipt_reqdeptcd" ref="/root/main/reqeqmtlist/reqdeptcd" class="input_essential" visibility="hidden" style="left:1010px; top:210px; width:9px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- model.refresh();
- model.setFocus("ipt_reqdeptcd");
- ]]>
- </script>
- </input>
- <input id="ipt_appqty" ref="/root/main/reqeqmtlist/appqty" class="input_s_essential" navindex="30" format="#,###" style="left:307px; top:430px; width:53px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var amt = parseFloat(model.getValue(ipt_goodunitcost.attribute("ref"))) * parseFloat(model.getValue(ipt_appqty.attribute("ref")))
-
- if(cmb_iopsnflag.value == "H") {
- model.setValue(ipt_bugtwncurncy.attribute("ref") , amt);
- } else if (cmb_iopsnflag.value == "F"){
- model.setValue(ipt_bugtforgnamt.attribute("ref") , amt);
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_reqpsnid" ref="/root/main/reqeqmtlist/reqpsnid" class="input_s_essential" disabled="true" navindex="15" style="left:365px; top:261px; width:63px; height:19px; "/>
- <output id="opt_reqpsnnm" ref="/root/main/reqeqmtlist/reqpsnnm" class="output_fix" appearance="output" style="left:430px; top:261px; width:115px; height:19px; "/>
- <caption id="caption31" class="cell_1" style="left:337px; top:476px; width:93px; height:23px; vertical-align:middle; ">총금액(내자)</caption>
- <caption id="caption35" class="cell_1" visibility="hidden" style="left:800px; top:210px; width:40px; height:23px; vertical-align:middle; ">예산계정</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:404px; width:101px; height:23px; vertical-align:middle; ">사용부서</caption>
- <caption id="caption18" class="cell_1" style="left:0px; top:331px; width:101px; height:23px; vertical-align:middle; ">청구부서</caption>
- <caption id="caption20" class="cell_1" visibility="visible" style="left:182px; top:478px; width:69px; height:23px; vertical-align:middle; ">예산년도</caption>
- <caption id="caption25" class="cell_1" style="left:0px; top:452px; width:101px; height:23px; vertical-align:middle; ">내,외자/부대비용</caption>
- <caption id="caption29" class="cell_1" style="left:0px; top:355px; width:101px; height:23px; vertical-align:middle; ">설치장소</caption>
- <caption id="caption32" class="cell_1" style="left:0px; top:428px; width:101px; height:23px; vertical-align:middle; ">사용방법</caption>
- <input id="ipt_bugtforgnamt" ref="/root/main/reqeqmtlist/bugtforgnamt" class="input_default" navindex="34" format="#,###" style="left:433px; top:454px; width:112px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetAmt()
- ]]>
- </script>
- </input>
- <caption id="caption34" class="cell_1" style="left:337px; top:452px; width:93px; height:23px; vertical-align:middle; ">총금액(외자)</caption>
- <select1 id="cmb_usemthd" ref="/root/main/reqeqmtlist/usemthd" class="combo_default" navindex="29" appearance="minimal" style="left:103px; top:430px; width:127px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/usemthd">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (cmb_usemthd.value== "2") btn_publusedeptcd_case.dispatch("onclick");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_bugtflag" ref="/root/main/reqeqmtlist/bugtflag" class="combo_default" visibility="hidden" appearance="minimal" style="left:840px; top:210px; width:25px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_bugtforgnamtunit" ref="/root/main/reqeqmtlist/bugtforgnamtunit" class="combo_default" navindex="37" appearance="minimal" style="left:140px; top:504px; width:165px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_bugtwncurncy" ref="/root/main/reqeqmtlist/bugtwncurncy" class="input_default" navindex="36" format="#,###" style="left:433px; top:477px; width:112px; height:19px; text-align:right; "/>
- <input id="ipt_bugtyy" ref="/root/main/reqeqmtlist/bugtyy" class="input_search" navindex="31" visibility="visible" format="yyyy" style="left:254px; top:480px; width:76px; height:19px; text-align:center; "/>
- <button id="btn_mngtdeptcd" class="icon_search" navindex="27" style="left:235px; top:405px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "mngtdeptcd,mngtdeptnm";
- misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list, opt_instcd.value, "instcd") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_mngtdeptcd" ref="/root/main/reqeqmtlist/mngtdeptcd" class="input_s_essential" navindex="26" style="left:103px; top:405px; width:127px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "mngtdeptcd,mngtdeptnm", opt_instcd.value, "instcd");
- model.refresh();
- model.setFocus("ipt_mngtdeptcd");
- ]]>
- </script>
- </input>
- <input id="ipt_installplcecd" ref="/root/main/reqeqmtlist/installplcecd" class="input_search" navindex="22" style="left:103px; top:357px; width:127px; 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>
- <button id="btn_installplcecd" class="icon_search" navindex="23" style="left:235px; top:359px; 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="caption14" class="search_name" style="left:15px; top:45; width:117px; height:17px; ">청구일자 :</caption>
- <input id="ipt_reqfrmdd_search" ref="/root/send/sendlist/reqfrmdd" class="input_s_essential" navindex="2" inputtype="date" style="left:100px; top:44; width:95px; height:19px; "/>
- <caption id="caption42" style="left:199px; top:45px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <input id="ipt_reqtodd_search" ref="/root/send/sendlist/reqtodd" class="input_s_essential" navindex="3" inputtype="date" style="left:215px; top:44; width:95px; height:19px; "/>
- <select1 id="cmb_prcsstat_search" ref="/root/send/sendlist/prcsstat" class="combo_default" navindex="7" appearance="minimal" style="left:724px; top:44px; width:123px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_installspcepossnyn" ref="/root/main/reqeqmtlist/installspcepossnyn" navindex="44" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:682px; top:286px; width:117px; height:16px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/installspcepossnyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_calcscorgenryn" ref="/root/main/reqeqmtlist/calcscorgenryn" navindex="45" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:998px; top:286px; width:116px; height:16px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/calcscorgenryn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <button id="button3" class="btn_sw" group="tab2" selected="true" style="left:0px; top:530px; width:144px; height:22px; ">
- <caption>추천장비</caption>
- <toggle case="recmeqmt_case" ev:event="onclick"/>
- </button>
- <button id="button2" class="btn_sw" group="tab2" style="left:143px; top:530px; width:144px; height:22px; ">
- <caption>부서동일유사장비</caption>
- <toggle case="smlartyeqmt_case" ev:event="onclick"/>
- </button>
- <switch id="switch1" style="left:0px; top:553px; width:1195px; height:182px; ">
- <case id="recmeqmt_case" selected="true" style="left:0px; top:0px; width:1193px; height:173px; ">
- <button id="button13" class="btn2_letter3" navindex="54" style="left:1085px; top:4px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSetAddRow( grd_recmeqmtlist );
- fSetNum(grd_recmeqmtlist, "recmseqno");
-
- /* ----------------------------------------------------------------------------
- 추천장비 입력시 제일 처음건에 대하여 금액 및 단위를 기본으로 뿌려달라
- ----------------------------------------------------------------------------*/
- if ( grd_recmeqmtlist.row == 1 )
- {
- model.setValue(grd_recmeqmtlist.nodeset + "[" + (grd_recmeqmtlist.row - grd_recmeqmtlist.fixedRows + 1) + "]/wncurncyamt" ,
- model.getValue(ipt_bugtwncurncy.attribute("ref") ) );
- model.setValue(grd_recmeqmtlist.nodeset + "[" + (grd_recmeqmtlist.row - grd_recmeqmtlist.fixedRows + 1) + "]/forgncurncyamt" ,
- model.getValue(ipt_bugtforgnamt.attribute("ref") ) );
- model.setValue(grd_recmeqmtlist.nodeset + "[" + (grd_recmeqmtlist.row - grd_recmeqmtlist.fixedRows + 1) + "]/curncyunit" ,
- model.getValue(cmb_bugtforgnamtunit.attribute("ref") ) );
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button14" class="btn2_letter3" navindex="55" style="left:1140px; top:4px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_recmeqmtlist,"D");
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
- <caption id="caption19" class="tit_2" style="left:5px; top:7px; width:95px; height:13px; ">추천장비</caption>
- <datagrid id="grd_recmeqmtlist" nodeset="/root/main/list/recmeqmtlist" caption="추천순위^모델^화폐단위^외화금액[계산기]^원화금액^원화총금액^제조회사^제조국^거래처^담당자^담당자전화번호^담당자핸드폰" colsep="^" colwidth="58, 116, 100, 102, 18, 100, 122, 120, 130, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" navindex="53" style="left:0px; top:30px; width:1193px; height:130px; ">
- <col ref="recmseqno"/>
- <col imemode="alpha" ref="model" type="input" maxlength="64" _key="true"/>
- <col class="gridcombo" ref="curncyunit" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="forgncurncyamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="calc" type="inputbutton"/>
- <col ref="wncurncyamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="prodcmpynm" type="inputbutton"/>
- <col class="gridcombo" ref="prodplce" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="innatiagtplcenm" type="inputbutton" style="left:767px; top:23px; width:130px; height:23px; "/>
- <col ref="chrgpsnid" type="input" style="left:725px; top:23px; width:130px; height:23px; "/>
- <col ref="chrgtel" type="input" maxlength="15"/>
- <col ref="chrghptel" type="input" maxlength="15"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_recmeqmtlist.col == grd_recmeqmtlist.colRef("prodcmpynm") ) {// 그리드 제조회사명 클릭
- rszfOpenPopUpListByWndName(grd_recmeqmtlist,"","prodcmpy,prodcmpynm","SPRSD00160","","");
- model.refresh();
- } else if (grd_recmeqmtlist.col == grd_recmeqmtlist.colRef("innatiagtplcenm")) {// 그리드 제조회사명 클릭
- rszfOpenPopUpListByWndName(grd_recmeqmtlist,"","innatiagtplce,innatiagtplcenm","SPRSD00220","instcd","opt_instcd");
- model.refresh();
- }
- /// 추가 사항 계산기
- else if(grd_recmeqmtlist.col == grd_recmeqmtlist.colRef("calc"))
- {
- fDispCalc();
- }
-
-
-
- ]]>
- </script>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="prodcmpy" visibility="hidden"/>
- <col ref="innatiagtplce" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_recmeqmtlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(grd_recmeqmtlist.col == grd_recmeqmtlist.colRef("forgncurncyamt"))
- {
- fDispCalc();
- }
- else if(grd_recmeqmtlist.col == grd_recmeqmtlist.colRef("curncyunit"))
- {
- if (grd_recmeqmtlist.valueMatrix(grd_recmeqmtlist.row, grd_recmeqmtlist.colRef("curncyunit")) == "13" )
- {
- grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("forgncurncyamt")) = true
- grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("calc")) = true
- }
- else
- {
- grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("forgncurncyamt")) = false
- grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("calc")) = false
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- if (grd_recmeqmtlist.valueMatrix(grd_recmeqmtlist.row, grd_recmeqmtlist.colRef("curncyunit")) == "13" )
- {
- grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("forgncurncyamt")) = true
- grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("calc")) = true
- }
- else
- {
- grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("forgncurncyamt")) = false
- grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("calc")) = false
- }
-
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="smlartyeqmt_case">
- <datagrid id="grd_smlartyeqmtlist" nodeset="/root/main/list/smlartyeqmtlist" caption="장비코드^장비명^모델^입고일자^설치일자^제조회사^거래처^금액" colsep="^" colwidth="95, 200, 140, 80, 80, 90, 90, 77, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" navindex="63" style="left:0px; top:30px; width:800; height:130px; ">
- <col ref="eqmtcd" type="inputbutton" _key="true"/>
- <col ref="eqmtnm" style="left:115px; top:23px; width:200px; height:23px; "/>
- <col ref="goodmodel"/>
- <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col visibility="hidden"/>
- <col ref="prodcmpynm"/>
- <col ref="suplplcenm"/>
- <col ref="possnamt" format="#,###" style="text-align:right; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="cntrdeptcd" visibility="hidden"/>
- <col ref="installplcenm" visibility="hidden"/>
- <col ref="possnflagcd" visibility="hidden"/>
- <col ref="possnflagcdnm" visibility="hidden"/>
- <col ref="prodcmpy" visibility="hidden"/>
- <col ref="suplplcecd" visibility="hidden"/>
- <col ref="empthnm" visibility="hidden"/>
- <col ref="forgncurncyamt" visibility="hidden"/>
- <col ref="possnamt" visibility="hidden"/>
- <col ref="curncyunit" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_smlartyeqmtlist.col == grd_smlartyeqmtlist.colRef("eqmtcd"))
- {
- rszfOpenPopUpListByWndName(grd_smlartyeqmtlist,"","eqmtcd,empthnm,goodmodel,cntrdeptcd,installplcenm,prodcmpy,prodcmpynm,windd,suplplcecd,suplplcenm,possnflagcd,possnflagcdnm,forgncurncyamt,possnamt,eqmtnm,curncyunit","SPRSD00240","instcd,goodflag","opt_instcd,ipt_goodflag_search");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_smlartyeqmtlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_fixasetcdlistv" nodeset="/root/main/list/fixasetcd/fixasetcdlistv" caption="^품목영문명^규격^모델^입고일^제조사^거래처^수량^자산코드^대분류^중분류^소분류^caption1" colsep="^" colwidth="26, 160, 80, 102, 190, 80, 110, 100, 100, 100, 48, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" navindex="62" style="left:830; top:30px; width:363; height:130px; ">
- <col checkvalue="Y,N" ref="che" type="checkbox"/>
- <col ref="goodflagengnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="windd" visibility="hidden"/>
- <col ref="prodcmpynm" visibility="hidden"/>
- <col ref="suplplcenm" visibility="hidden"/>
- <col ref="goodqty" visibility="hidden" style="text-align:right; "/>
- <col ref="fixasetcd" visibility="hidden"/>
- <col ref="lrgnm" visibility="hidden"/>
- <col ref="mdlnm" visibility="hidden"/>
- <col ref="smlnm" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <col ref="possnamt" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_fixasetcdlistv.gridToInstance();
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption10" class="tit_2" style="left:830px; top:10px; width:113px; height:14px; ">부서내 보유장비</caption>
- <caption id="caption5" class="tit_2" style="left:5px; top:10px; width:113px; height:14px; ">동일유사장비</caption>
- <line id="line25" class="line_1" style="x1:0px; y1:25px; x2:800; y2:25px; "/>
- <button id="btn_eqip" class="btn2_letter2" style="left:1150px; top:4px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/sendlist/mngtdeptcd" , model.getValue(ipt_reqdeptcd_search.attribute("ref")));
- model.setValue("/root/send/sendlist/reqdeptcd" , model.getValue(ipt_reqdeptcd_search.attribute("ref")));
- model.setValue("/root/send/sendlist/cntrdeptcd" , model.getValue(ipt_reqdeptcd_search.attribute("ref")));
- submit("TRRFC00208");
- ]]>
- </script>
- </button>
- <button id="button16" class="btn2_letter3" navindex="59" style="left:690; top:4px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetAddRow( grd_smlartyeqmtlist );
- // model.refresh();
- ]]>
- </script>
- </button>
- <button id="button18" class="btn2_letter3" navindex="60" style="left:745; top:4px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_smlartyeqmtlist,"D");
- ]]>
- </script>
- </button>
- <line id="line23" class="line_1" style="x1:830; y1:25px; x2:1193; y2:25px; "/>
- <button id="button22" class="icon_left" navindex="61" style="left:802px; top:105px; width:42px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_fixasetcdlistv.rows - grd_fixasetcdlistv.fixedRows == 0)
- {
- messageBox("적용할 내역이","I004");
- return;
- }
-
- for(var row = grd_fixasetcdlistv.fixedRows ; row < grd_fixasetcdlistv.rows; row++)
- {
- if(grd_fixasetcdlistv.valueMatrix(row, grd_fixasetcdlistv.colRef("che")) == 'Y')
- {
-
- var sGoodflagengnm = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/goodflagengnm");
- var sGoodmodel = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/goodmodel");
- var sFixasetcd = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/fixasetcd");
- var sWindd = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/windd");
- var sProdcmpynm = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/prodcmpynm");
- var sSuplplcenm = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/suplplcenm");
- var sPossnamt = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/possnamt");
-
- fSetAddRow( grd_smlartyeqmtlist );
-
- model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/eqmtcd" , sFixasetcd );
- model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/eqmtnm" , sGoodflagengnm );
- model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/goodmodel" , sGoodmodel );
-
- model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/windd" , sWindd );
- model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/prodcmpynm" , sProdcmpynm );
- model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/suplplcenm" , sSuplplcenm );
- model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/possnamt" , sPossnamt );
-
- grd_fixasetcdlistv.valueMatrix(row, grd_fixasetcdlistv.colRef("che")) = 'N';
- }
- }
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- </case>
- <case id="psge_case">
- <button id="button15" class="btn2_letter3" navindex="65" style="left:1140px; top:4px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_psgedeptlist,"D");
- ]]>
- </script>
- </button>
- <button id="button17" class="btn2_letter3" navindex="64" style="left:1085px; top:4px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetAddRow( grd_psgedeptlist );
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_psgedeptlist" nodeset="/root/main/list/psgedeptlist" caption="기관코드^신청일자^신청순번^경유부서코드^ 경유부서^접수^의견 및 평가" colsep="^" colwidth="21, 17, 16, 16, 130, 72, 869" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" navindex="66" style="left:0px; top:30px; width:1193px; height:130px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="psgedeptcd" visibility="hidden"/>
- <col ref="psgedeptnm" type="inputbutton" _key="true"/>
- <col ref="psgedeptaprvnm"/>
- <col ref="psgecmt" type="input"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_psgedeptlist.col == grd_psgedeptlist.colRef("psgedeptnm") ) {// 그리드 부서명 버튼 클릭
- var recv_list = "psgedeptcd,psgedeptnm";
- // misfOpenPopUpList("02", grd_psgedeptlist,"", recv_list,cmb_instcd_search.value,"instcd") ;
- misfOpenPopUpList("02", grd_psgedeptlist,"", recv_list) ;
- var cur_row = grd_psgedeptlist.row;
- var status = grd_psgedeptlist.valueMatrix(cur_row, grd_psgedeptlist.colRef("m"));
- if(status !="insert" && status !="delete") grd_psgedeptlist.addStatus(cur_row,"update");
- }
- // model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_psgedeptlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption11" class="tit_2" style="left:5px; top:10px; width:95px; height:13px; ">경유부서</caption>
- <line id="line28" class="line_1" style="x1:0; y1:25px; x2:1193; y2:25px; "/>
- </case>
- <case id="publusedeptcd_case">
- <button id="button4" class="btn2_letter3" navindex="68" style="left:1130px; top:4px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_publusedeptlist,"D");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter3" navindex="67" style="left:1075px; top:4px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetAddRow( grd_publusedeptlist );
- fSetNum(grd_publusedeptlist, "useseq");
- // model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption13" class="tit_2" style="left:5px; top:10px; width:95px; height:13px; ">공동사용부서</caption>
- <datagrid id="grd_publusedeptlist" nodeset="/root/main/list/publusedeptlist" caption="기관코드^신청일자^신청순번^순번^사용부서^사용부서^책임자^책임자^전화번호^비율^용도" colsep="^" colwidth="21, 17, 16, 51, 100, 79, 93, 83, 100, 80, 516" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" navindex="69" style="left:0px; top:30px; width:1185px; height:130px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="useseq"/>
- <col ref="usedeptcd" type="inputbutton" _key="true"/>
- <col ref="usedeptnm"/>
- <col ref="usepsnid" type="inputbutton"/>
- <col ref="usepsnidnm"/>
- <col ref="usechrgtel" type="input" maxlength="15"/>
- <col ref="rate" type="input" style="text-align:right; "/>
- <col ref="usecmt" type="input" maxlength="100"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_publusedeptlist.col == grd_publusedeptlist.colRef("usedeptcd") ) {// 그리드 부서명 버튼 클릭
- var recv_list = "usedeptcd,usedeptnm";
- misfOpenPopUpList("02", grd_publusedeptlist,"", recv_list,opt_instcd.value,"instcd") ;
- //misfOpenPopUpList("02", grd_publusedeptlist,"", recv_list) ;
- var cur_row = grd_publusedeptlist.row;
- var status = grd_publusedeptlist.valueMatrix(cur_row, grd_publusedeptlist.colRef("m"));
- if(status !="insert" && status !="delete") grd_publusedeptlist.addStatus(cur_row,"update");
- }
- else if(grd_publusedeptlist.col == grd_publusedeptlist.colRef("usepsnid"))
- {
- var recv_list = "usepsnid,usepsnidnm";
- //misfOpenPopUpList("12", cmb_emplno,"", recv_list, "%","instcd") ;
- //misfOpenPopUpList("12", grd_publusedeptlist,"", recv_list, "%","instcd") ;
- misfOpenPopUpList("12", grd_publusedeptlist, "", recv_list, opt_instcd.value + "," + grd_publusedeptlist.valueMatrix(grd_publusedeptlist.row, grd_publusedeptlist.colRef("usedeptcd")) + "," + grd_publusedeptlist.valueMatrix(grd_publusedeptlist.row, grd_publusedeptlist.colRef("usedeptnm")), "instcd,deptcd,depthngnm");
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(grd_publusedeptlist.col == grd_publusedeptlist.colRef("usedeptcd"))
- {
- var recv_list = "usedeptcd,usedeptnm";
- //misfOpenPopUpList("12", cmb_emplno,"", recv_list, "%","instcd") ;
- misfValidationCheck("02","", recv_list, opt_instcd.value + "," + getUserInfo("dutplcecd") + "," + getUserInfo("dutplcenm"), "instcd,deptcd,depthngnm") ;
- model.refresh();
- }
- else if(grd_publusedeptlist.col == grd_publusedeptlist.colRef("usepsnid"))
- {
- var recv_list = "usepsnid,usepsnidnm";
- //misfOpenPopUpList("12", cmb_emplno,"", recv_list, "%","instcd") ;
- rszfValidationCheckS("12","", recv_list, opt_instcd.value + "," +grd_publusedeptlist.valueMatrix(grd_publusedeptlist.row, grd_publusedeptlist.colRef("usedeptcd")) + "," + grd_publusedeptlist.valueMatrix(grd_publusedeptlist.row, grd_publusedeptlist.colRef("usedeptnm")), "instcd,deptcd,depthngnm") ;
- model.refresh();
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_publusedeptlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line6" class="line_1" style="x1:0px; y1:25px; x2:1185px; y2:25px; "/>
- </case>
- <case id="moncd_1_case">
- <button id="button11" class="btn2_letter3" navindex="71" style="left:1140px; top:4px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_mon1cdlist,"D");
- ]]>
- </script>
- </button>
- <button id="button12" class="btn2_letter3" navindex="70" style="left:1085px; top:4px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetAddRow( grd_mon1cdlist );
- // model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption50" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">월간시행건수</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1193; y2:25px; "/>
- <datagrid id="grd_mon1cdlist" nodeset="/root/main/list/mon1cdlist" caption="수가코드^수가명^급여^금액^월건수^소요시간^주처방의사^주처방의사" colsep="^" colwidth="124, 449, 129, 100, 100, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" navindex="77" style="left:0; top:30px; width:1193; height:130; ">
- <col ref="cstcd" type="input" _key="true"/>
- <col ref="cstcdnm" type="input"/>
- <col ref="insu_nopyyn" type="combo">
- <choices>
- <item>
- <label>급여</label>
- <value>0</value>
- </item>
- <item>
- <label>비급여</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col ref="purcunitcost" type="input" format="#,###" style="text-align:right; "/>
- <col ref="mmuseqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="usetm" type="input" style="text-align:center; "/>
- <col class="text_center" ref="mainprcpdrid" type="inputbutton" style="text-align:center; "/>
- <col ref="mainprcpdrnm" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="cstflag" visibility="hidden"/>
- <col ref="reqseq" visibility="hidden"/>
- <col ref="suplplce" visibility="hidden"/>
- <col ref="suplplcenm" visibility="hidden"/>
- <col ref="mainusge" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
-
- grd_mon1cdlist.gridToInstance();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- if(grd_mon1cdlist.col == grd_mon1cdlist.colRef("mainprcpdrid"))
- {
- fOpenPopupUserHelp(grd_mon1cdlist, "mainprcpdrid,mainprcpdrnm");
- }
-
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="moncd_2_case">
- <caption id="caption49" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">월간재료비</caption>
- <line id="line14" class="line_1" style="x1:0px; y1:25px; x2:1193; y2:25px; "/>
- <button id="button19" class="btn2_letter3" navindex="74" style="left:1140px; top:4px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_mon2cdlist,"D");
- ]]>
- </script>
- </button>
- <button id="button20" class="btn2_letter3" navindex="73" style="left:1085px; top:4px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetAddRow( grd_mon2cdlist );
- // model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_mon2cdlist" nodeset="/root/main/list/mon2cdlist" caption="재료코드^품명^급여^월소요량^구입단가^공급업체^공급업체명^주요용도^caption1" colsep="^" colwidth="111, 332, 90, 64, 110, 94, 100, 224, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" navindex="72" style="left:0px; top:30px; width:1193; height:130; ">
- <col ref="cstcd" type="inputbutton" _chartype="upper" _key="true"/>
- <col ref="cstcdnm"/>
- <col ref="insu_nopyyn" type="combo">
- <choices>
- <item>
- <label>급여</label>
- <value>0</value>
- </item>
- <item>
- <label>비급여</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col ref="mmuseqty" type="input"/>
- <col ref="purcunitcost" type="input" format="#,###" style="text-align:right; "/>
- <col ref="suplplce" type="inputbutton"/>
- <col ref="suplplcenm"/>
- <col ref="mainusge" type="input" style="text-align:left; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="cstflag" visibility="hidden"/>
- <col ref="reqseq" visibility="hidden"/>
- <col ref="goodcd" visibility="hidden"/>
- <col ref="goodnm" visibility="hidden"/>
- <col ref="goodunitcost" visibility="hidden"/>
- <col ref="maincustlastsuplplce" visibility="hidden"/>
- <col ref="maincustlastsuplplcenm" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_mon2cdlist.col == grd_mon2cdlist.colRef("cstcd") && grd_mon2cdlist.rowStatus(grd_mon2cdlist.row) == "1" ) {//구성물품코드를 눌렀을 경우
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- // rszfOpenPopUpListByWndName(grd_mon2cdlist,"","goodcd,goodnm,goodunitcost,maincustlastsuplplce","SPRSD00190","instcd,goodflag","opt_instcd,opt_cstgoodflag");
-
- rszfOpenPopUpListByWndName(grd_mon2cdlist,"","goodcd,goodnm,goodunitcost,maincustlastsuplplce","SPRSD00190","instcd","opt_instcd");
-
- var cur_row = grd_mon2cdlist.row;
- var status = grd_mon2cdlist.valueMatrix(cur_row, grd_mon2cdlist.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "goodreqlist");
-
- fSettingGoodList("/root/copynode", "goodreqlist");
- }else if (grd_mon2cdlist.col == grd_mon2cdlist.colRef("suplplce")) {// 그리드 제조회사명 클릭
- rszfOpenPopUpListByWndName(grd_mon2cdlist,"","suplplce,suplplcenm","SPRSD00220","instcd","opt_instcd");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_mon2cdlist.col == grd_mon2cdlist.colRef("cstcd") && grd_mon2cdlist.valueMatrix(grd_mon2cdlist.row, grd_mon2cdlist.colRef("cstcd")).length> 0)
- {
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- // purfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm,workflag","cstcd," + model.getValue(cmb_instcd_search.attribute("ref")) + ",," + model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/goodcd") + ",,,,," ,"goodcd,goodnm",grd_mon2cdlist,"SPRSD00190","instcd","cmb_instcd_search" ,"Y");
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd","goodcd," + opt_instcd + "," + opt_cstgoodflag + "," +model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/cstcd") ,"","goodcd,goodnm,goodunitcost,maincustlastsuplplce,maincustlastsuplplcenm",grd_mon2cdlist,"SPRSD00190","instcd,goodflag","opt_instcd,opt_cstgoodflag","Y");
-
- var sGoodunitcost = model.getValue(grd_mon2cdlist.nodeset + "[" + grd_mon2cdlist.row + "]/goodunitcost");
-
- model.setValue(grd_mon2cdlist.nodeset + "[" + grd_mon2cdlist.row + "]/purcunitcost", sGoodunitcost);
- model.refresh();
-
- var cur_row = grd_mon2cdlist.row;
- var status = grd_mon2cdlist.valueMatrix(cur_row, grd_mon2cdlist.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
-
- if (CSV.length == 0 && grd_mon2cdlist.valueMatrix(cur_row, grd_mon2cdlist.colRef("goodnm")).length == 0)
- {
- model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/cstcd" , "");
- model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/cstcdnm" , "");
- model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/suplplce" , "");
- model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/suplplcenm" , "");
- grd_mon2cdlist.col = grd_mon2cdlist.colRef("cstcd");
- grd_mon2cdlist.editCell();
- }
- else if (CSV.length == 0 && grd_mon2cdlist.valueMatrix(cur_row, grd_mon2cdlist.colRef("goodnm")).length > 0)
- {
- model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/cstcd" , model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/goodcd") );
- model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/cstcdnm" , model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/goodnm") );
- model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/suplplce" , model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/maincustlastsuplplce") );
- model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/suplplcenm" , model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/maincustlastsuplplcenm") );
- grd_mon2cdlist.col = grd_mon2cdlist.colRef("insu_nopyyn");
- grd_mon2cdlist.editCell();
- }
- else if (CSV.length > 0)
- {
- model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/cstcd","");
- setCSVToNode("/root/copynode", CSV, "goodreqlist");
-
- fSettingGoodList("/root/copynode", "goodreqlist" );
- }
- }else if(grd_mon2cdlist.col == grd_mon2cdlist.colRef("suplplce"))
- {
-
- if(grd_mon2cdlist.valueMatrix(grd_mon2cdlist.row, grd_mon2cdlist.colRef("suplplce")) != ""){
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- opt_instcd.value + ",," + grd_mon2cdlist.valueMatrix(grd_mon2cdlist.row, grd_mon2cdlist.colRef("suplplce"))
- ,"","suplplce,suplplcenm",grd_mon2cdlist,"SPRSD00220","instcd","opt_intcd");
- }else{
- grd_mon2cdlist.valueMatrix(grd_mon2cdlist.row, grd_mon2cdlist.colRef("suplplcenm")) = "";
- }
-
- }
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_mon2cdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="fixasetcd_case">
- <button id="button21" class="btn2_letter2" navindex="76" style="left:1150px; top:4px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridInit(grd_fixasetcdlist);
- model.setValue("/root/send/sendlist/reqdeptcd" , model.getValue(ipt_reqdeptcd_search.attribute("ref")));
- submit("TRRFC00201");
- ]]>
- </script>
- </button>
- <line id="line8" class="line_1" style="x1:0px; y1:25px; x2:1193; y2:25; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:113px; height:13px; ">부서내 자산코드</caption>
- <datagrid id="grd_fixasetcdlist" nodeset="/root/main/list/fixasetcd/fixasetcdlist" caption="대분류^중분류^소분류^품목영문명^규격^모델^입고일^제조사^거래처^수량" colsep="^" colwidth="88, 87, 93, 287, 132, 110, 100, 100, 100, 48, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" navindex="75" style="left:0px; top:30px; width:1193px; height:130px; ">
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="goodflagengnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="windd" format="yyyy-mm-dd"/>
- <col ref="prodcmpynm"/>
- <col ref="suplplcenm"/>
- <col ref="goodqty" style="text-align:right; "/>
- <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[
- fMovecd("grd_fixasetcdlist");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_fixasetcdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="button1" class="btn_sw" visibility="hidden" group="tab" style="left:1007px; top:454px; width:130px; height:22px; ">
- <caption>경유부서</caption>
- <toggle case="psge_case" ev:event="onclick"/>
- </button>
- <button id="btn_publusedeptcd_case" class="btn_sw" group="tab2" style="left:574px; top:530px; width:144px; height:22px; ">
- <caption>공동사용부서</caption>
- <toggle case="publusedeptcd_case" ev:event="onclick"/>
- </button>
- <caption id="caption3" class="cell_1" visibility="hidden" style="left:870px; top:210px; width:30px; height:23px; vertical-align:middle; ">연구과제</caption>
- <input id="ipt_stdysubjno" ref="/root/main/reqeqmtlist/stdysubjno" class="input_search" visibility="hidden" maxlength="4" style="left:900px; top:210px; width:20px; 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", "instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_stdysubjnm" class="icon_search" visibility="hidden" style="left:920px; top:210px; 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>
- <button id="btn_ins" class="btn2_letter3" navindex="10" style="left:976px; top:73px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(true) == false)return;
- var updtdata = getGridUpdateData(grd_reqeqmtlist);
- if (updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 신규 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- model.resetInstanceNode("/root/main/reqeqmtlist");
- // fDisableCheck( false );
- misfGridIUD(grd_reqeqmtlist, "A");
-
- grd_reqeqmtlist.dispatch("onrowchanged");
- // fAllControlDisabled("N")
-
- fDefaultSetting(grd_reqeqmtlist.row );
-
- fSetAmt();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption45" class="search_name" style="left:639px; top:45px; width:117px; height:17px; ">진행상태 :</caption>
- <button id="btn_accept" class="btn2_letter2" navindex="12" style="left:1152px; top:73px; width:42px; height:19px; ">
- <caption>승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.refresh();
-
- var updtdata = getGridUpdateData(grd_reqeqmtlist);
- if (updtdata = "" )
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
- model.setValue("/root/send/save/reqeqmtlist", grd_reqeqmtlist.getUpdateData());
- submit("TXRSC11903");
-
- // misfSave("TXRSC11901");
- if (model.getValue(gvErrorMsgPath + "/type") != "error" ) misfMsterDetailRetrieve(); //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btnselect" class="btn2_letter9" navindex="11" style="left:1032px; top:73px; width:119px; height:19px; ">
- <caption>전체/전체선택 취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var flag = "";
-
- for(var liRow = grd_reqeqmtlist.fixedRows; liRow < grd_reqeqmtlist.rows ; liRow++){
- ////////////////////////////////////////////////////
- // 일괄처리는 발주상태가 발주중인것만 처리한다.
- ///////////////////////////////////////////////////
-
- if (grd_reqeqmtlist.valueMatrix(liRow,grd_reqeqmtlist.colRef("acptflag")) != "Y")
- {
- if(flag == "")flag = grd_reqeqmtlist.valueMatrix(liRow,grd_reqeqmtlist.colRef("deptaprvyn")) == "Y" ? "Y":"N";
-
- if(flag == "Y"){
- model.setValue(grd_reqeqmtlist.nodeset + "[" + (liRow - grd_reqeqmtlist.fixedRows + 1) + "]/deptaprvyn" , "N");
- model.setValue(grd_reqeqmtlist.nodeset + "[" + (liRow - grd_reqeqmtlist.fixedRows + 1) + "]/deptaprvdd" , "");
- } else {
- model.setValue(grd_reqeqmtlist.nodeset + "[" + (liRow - grd_reqeqmtlist.fixedRows + 1) + "]/deptaprvyn" , "Y");
- model.setValue(grd_reqeqmtlist.nodeset + "[" + (liRow - grd_reqeqmtlist.fixedRows + 1) + "]/deptaprvdd" , getCurrentDate());
- }
- grd_reqeqmtlist.rowStatus(liRow - grd_reqeqmtlist.fixedRows + 1) = "2";
- }
- }
- grd_reqeqmtlist.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodflag_search" ref="/root/send/sendlist/goodflag" visibility="hidden" style="left:975px; top:15px; width:35px; height:19px; "/>
- <input id="ipt_prcsstat" ref="/root/main/reqeqmtlist/prcsstat" class="input_essential" visibility="hidden" style="left:1000px; top:210px; width:9px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- model.refresh();
- model.setFocus("ipt_reqdeptcd");
- ]]>
- </script>
- </input>
- <button id="btn_goodflagengnm" class="icon_search" navindex="17" style="left:525px; top:285px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_goodflagengnm,"", "goodflaghngnm,goodflagengnm","SPRSD00240","instcd,goodflag","opt_instcd,ipt_goodflag_search", "Y");
- // rszfOpenPopUpListByWndName(ipt_goodflagengnm,"", "goodflaghngnm,goodflagengnm","SPRSD00240","instcd,goodflag","cmb_instcd_search,ipt_goodflag_search","Y");
-
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button10" class="btn_sw" visibility="hidden" group="tab" style="left:867px; top:453px; width:144px; height:22px; ">
- <caption>부서내 장비현황</caption>
- <toggle case="fixasetcd_case" ev:event="onclick"/>
- </button>
- <caption id="caption12" class="cell_1" style="left:0px; top:502px; width:139px; height:23px; vertical-align:middle; ">화폐단위/환율/부대비용</caption>
- <input id="ipt_etccostrt" ref="/root/main/reqeqmtlist/etccostrt" class="input_default" navindex="39" format="#,###" style="left:435px; top:504px; width:95px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetAmt()
- ]]>
- </script>
- </input>
- <select1 id="cmb_iopsnflag" ref="/root/main/reqeqmtlist/iopsnflag" class="combo_default" navindex="32" appearance="minimal" style="left:103px; top:454px; width:147px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>내자</label>
- <value>H</value>
- </item>
- <item>
- <label>외자</label>
- <value>F</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetAmt();
- ]]>
- </script>
- </select1>
- <input id="ipt_chgrate" ref="/root/main/reqeqmtlist/chgrate" class="input_default" navindex="38" format="#,###" style="left:310px; top:504px; width:120px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fSetAmt()
- ]]>
- </script>
- </input>
- <caption id="caption48" class="search_no_b" style="left:530px; top:505px; width:17px; height:17px; font-size:12pt; ">%</caption>
- <button id="button7" class="btn_sw" group="tab2" style="left:287px; top:530px; width:144px; height:22px; ">
- <caption>월간시행예상건수</caption>
- <toggle case="moncd_1_case" ev:event="onclick"/>
- </button>
- <button id="button9" class="btn_sw" group="tab2" style="left:430px; top:530px; width:144px; height:22px; ">
- <caption>월간재료비</caption>
- <toggle case="moncd_2_case" ev:event="onclick"/>
- </button>
- <input id="ipt_reqflag" ref="/root/send/sendlist/reqflag" visibility="hidden" style="left:975px; top:45px; width:40px; height:19px; "/>
- <output id="opt_instcd" ref="/root/send/sendlist/instcd" class="output_fix" visibility="hidden" style="left:1020px; top:15px; width:40px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_instcd.value = opt_instcd.value;
- ]]>
- </script>
- </output>
- <output id="opt_instcdnm" ref="/root/send/sendlist/instcdnm" class="output_fix" visibility="hidden" style="left:850px; top:15px; width:120px; height:19px; text-align:center; "/>
- <input id="ipt_stdysubjnm" ref="/root/main/reqeqmtlist/stdysubjnm" class="input_fix" visibility="hidden" appearance="input" style="left:940px; top:210px; width:20px; 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", "instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_mngtdeptnm" ref="/root/main/reqeqmtlist/mngtdeptnm" class="input_fix" navindex="28" appearance="input" style="left:255px; top:405px; width:290px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_mngtdeptnm.value.length == 0)
- ipt_mngtdeptcd.value = "";
- else
- misfValidationCheck("02", "", "mngtdeptcd,mngtdeptnm", opt_instcd.value, "instcd" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_installplcenm" ref="/root/main/reqeqmtlist/installplcenm" class="input_fix" navindex="24" appearance="input" style="left:255px; top:357px; width:290px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_installplcenm.value.length == 0)
- ipt_installplcecd.value = "";
- else
- rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm,instcd",
- "deptnm," + ipt_installplcenm.value + "," + opt_instcd.value, "", "installplcecd,installplcenm",
- ipt_installplcenm, "PPRAC00700", "instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="button8" class="btn_sw" group="tab" selected="true" style="left:672px; top:378px; width:80px; height:22px; ">
- <caption>2. 부대시설</caption>
- <toggle case="subestbcmt_case" ev:event="onclick"/>
- </button>
- <button id="button24" class="btn_sw" group="tab" style="left:752px; top:378px; width:70px; height:22px; ">
- <caption>3. 기계장치</caption>
- <toggle case="machcmt_case" ev:event="onclick"/>
- </button>
- <button id="button25" class="btn_sw" group="tab" style="left:822px; top:378px; width:55px; height:22px; ">
- <caption>전 원</caption>
- <toggle case="eleccmt_case" ev:event="onclick"/>
- </button>
- <button id="button26" class="btn_sw" group="tab" style="left:877px; top:378px; width:51px; height:22px; ">
- <caption>배 관</caption>
- <toggle case="mutplecmt_case" ev:event="onclick"/>
- </button>
- <button id="button27" class="btn_sw" group="tab" style="left:928px; top:378px; width:122px; height:22px; ">
- <caption>전산화EMR/PACS</caption>
- <toggle case="compucmt_case" ev:event="onclick"/>
- </button>
- <button id="button30" class="btn_sw" group="tab" style="left:1050px; top:378px; width:90px; height:22px; ">
- <caption>단일모델사유</caption>
- <toggle case="onemodelcmt_case" ev:event="onclick"/>
- </button>
- <button id="button28" class="btn_sw" group="tab" style="left:1140px; top:378px; width:45px; height:22px; ">
- <caption>etc</caption>
- <toggle case="etccmt_case" ev:event="onclick"/>
- </button>
- <switch id="switch2" style="left:670px; top:400px; width:517px; height:72px; ">
- <case id="subestbcmt_case" selected="true">
- <textarea id="tar_subestbcmt" ref="/root/main/reqeqmtlist/subestbcmt" navindex="47" style="left:0px; top:0px; width:515px; height:70px; "/>
- </case>
- <case id="machcmt_case">
- <textarea id="tar_machcmt" ref="/root/main/reqeqmtlist/machcmt" navindex="48" style="left:0px; top:0px; width:515px; height:70px; "/>
- </case>
- <case id="eleccmt_case">
- <textarea id="tar_eleccmt" ref="/root/main/reqeqmtlist/eleccmt" navindex="49" style="left:0px; top:0px; width:515px; height:70px; "/>
- </case>
- <case id="mutplecmt_case">
- <textarea id="tar_mutplecmt" ref="/root/main/reqeqmtlist/mutplecmt" navindex="79" style="left:0px; top:0px; width:515px; height:70px; "/>
- </case>
- <case id="compucmt_case">
- <textarea id="tar_compucmt" ref="/root/main/reqeqmtlist/compucmt" navindex="50" style="left:0px; top:0px; width:515px; height:70px; "/>
- </case>
- <case id="onemodelcmt_case">
- <textarea id="tar_onemodelcmt" ref="/root/main/reqeqmtlist/onemodelcmt" navindex="51" style="left:0px; top:0px; width:515px; height:70px; "/>
- </case>
- <case id="etccmt_case">
- <textarea id="tar_etccmt" ref="/root/main/reqeqmtlist/etccmt" navindex="78" style="left:0px; top:0px; width:515px; height:70px; "/>
- </case>
- </switch>
- <select id="chk_qchgrate" ref="/root/temp/qchgrate" navindex="33" overflow="visible" appearance="full" style="left:250px; top:455px; width:80px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="root//init/qchgrate">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var filePath = "http://spd.wooribank.com/spd/speed_frame_02.jsp?IN=MZ07";
- // var filePath = chk_qchgrate.value;
-
- window.load(filePath,"html","");
-
- ]]>
- </script>
- </select>
- <output id="opt_cstgoodflag" ref="/root/init/cstgoodflag" visibility="hidden" style="left:1020px; top:45px; width:30px; height:19px; "/>
- <select1 id="cmb_instcd" ref="/root/send/sendlist/cmbinstcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:100px; top:20px; width:210px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- opt_instcd.value = cmb_instcd.value;
- ]]>
- </script>
- </select1>
- <button id="btn_reqdeptcd" class="icon_search" navindex="20" style="left:235px; top:334px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list, opt_instcd.value, "instcd") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_reqdeptnm" ref="/root/main/reqeqmtlist/reqdeptnm" class="input_fix" navindex="21" appearance="input" style="left:255px; top:332px; width:290px; height:19px; ">
- <script type="javascript" ev:event="xforms-valid">
- <![CDATA[
- if(ipt_reqdeptnm.value.length == 0)
- ipt_reqdeptcd.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="input1" ref="/root/main/reqeqmtlist/reqdeptcd" class="input_s_essential" navindex="19" style="left:103px; top:332px; width:127px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd");
- model.refresh();
- model.setFocus("ipt_reqdeptcd");
- ]]>
- </script>
- </input>
- <line id="line5" class="line_2" style="x1:0px; y1:378px; x2:1195px; y2:378px; "/>
- <caption id="caption16" class="cell_1" style="left:550px; top:308px; width:118px; height:67px; vertical-align:middle; ">
- <![CDATA[1. 기 대 효 과
- (500자 이하)]]>
- </caption>
- <textarea id="tar_usgepurcneed" ref="/root/main/reqeqmtlist/usgepurcneed" navindex="46" style="left:671px; top:309px; width:514px; height:66px; "/>
- <caption id="caption26" class="cell_1" style="left:550px; top:377px; width:118px; height:95px; vertical-align:middle; ">구 매 시 고 려 사 항</caption>
- <caption id="caption30" class="cell_1" style="left:0px; top:379px; width:101px; height:23px; vertical-align:middle; ">설치장소(기타)</caption>
- <input id="ipt_installplcecmt" ref="/root/main/reqeqmtlist/installplcecmt" class="input_fix" navindex="25" appearance="input" style="left:103px; top:380px; width:257px; height:19px; "/>
- <caption id="caption33" class="cell_1" style="left:0px; top:477px; width:101px; height:23px; vertical-align:middle; ">예상 운용연수</caption>
- <caption id="caption36" class="cell_1" style="left:550px; top:474px; width:118px; height:50px; vertical-align:middle; ">구비서류</caption>
- <select id="chk_possesdocu" ref="/root/main/reqeqmtlist/possesdocucd" disabled="false" navindex="52" visibility="visible" overflow="visible" appearance="full" cols="3" sep="," vcellspacing="2" style="left:670px; top:480px; width:520px; height:50px; text-align:left; border-style:none; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- var bfworkstatmulti = model.getValue("/root/temp/bfworkstatmulti");
- var workstatmulti = model.getValue(chk_workstatmulti.attribute("ref"));
-
- if (isSearchString(bfworkstatmulti, 'A')){
- model.setValue(chk_workstatmulti.attribute("ref"), workstatmulti.replace("A", ""));
- }else{
- workstatmultiArr = workstatmulti.split(",");
- for (var i=0; i< workstatmultiArr.length; i++){
- if (workstatmultiArr[i] == "A"){
- model.setValue(chk_workstatmulti.attribute("ref"), "A");
- break;
- }
- }
- }
- model.makeValue("/root/temp/bfworkstatmulti", model.getValue(chk_workstatmulti.attribute("ref")));
- chk_workstatmulti.refresh();*/
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- ]]>
- </script>
- </select>
- <input id="ipt_fcstuseyearno" ref="/root/main/reqeqmtlist/fcstuseyearno" class="input_fix" navindex="35" maxlength="2" format="#,###" style="left:105px; top:480px; width:75px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fSetAmt()
- ]]>
- </script>
- </input>
- <caption id="caption38" class="cell_1" style="left:363px; top:428px; width:67px; height:23px; vertical-align:middle; ">단가</caption>
- <input id="ipt_goodunitcost" ref="/root/main/reqeqmtlist/goodunitcost" class="input_s_essential" navindex="34" format="#,###" style="left:433px; top:431px; width:112px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var amt = parseFloat(model.getValue(ipt_goodunitcost.attribute("ref"))) * parseFloat(model.getValue(ipt_appqty.attribute("ref")))
-
- if(cmb_iopsnflag.value == "H") {
- model.setValue(ipt_bugtwncurncy.attribute("ref") , amt);
- } else if (cmb_iopsnflag.value == "F"){
- model.setValue(ipt_bugtforgnamt.attribute("ref") , amt);
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption39" class="cell_1" style="left:360px; top:379px; width:72px; height:23px; vertical-align:middle; ">복지부코드</caption>
- <input id="ipt_welfcd" ref="/root/main/reqeqmtlist/welfcd" class="input_default" navindex="34" style="left:433px; top:381px; width:112px; height:19px; text-align:right; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( fDataCheck() ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- } else {
- fInitialize();
- }
- } else {
- 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() ) {
- if ( grd_reqeqmtlist.rows <= 1 ) {
- misfGridInit(grd_reqeqmtlist);
- misfGridIUD(grd_reqeqmtlist, "A");
- model.refresh();
-
- }
- //추천장비,월간시행건수,동일사용장비 TAB에서 필수 입력항목설정
- //동일유사장비는 신규일경우 필수제외
- if(grd_recmeqmtlist.rows <=1) {
- messageBox("추천장비는","I003");
- return false;
- }
- /*if(grd_mon1cdlist.rows <=1){
- messageBox("월간시행예상건수는","I003");
- return false;
- }*/
- /*if(grd_smlartyeqmtlist.rows <=1 && cmb_workflag.value !=="1"){
- messageBox("부서동일유사장비는","I003");
- return false;
- }*/
-
- if ( fDataCheck() ) {
- model.removenode("/root/temp/selectrow");
- var selectrow = grd_reqeqmtlist.row;
-
- misfSave("TXRSC11901");
- if (model.getValue(gvErrorMsgPath + "/type") != "error") {
- model.makeValue("/root/temp/selectrow", selectrow);
-
- messageBox("청구가 정상적으로 되었습니다.", "I");
- btn_search.dispatch("DOMActivate");
- }
- } else {
- messageBox("변경된 데이터가","I004");
- return;
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
- <caption>청구서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.copynode("/root/main/report/reqeqmtlist", "/root/main/list/reqeqmtlist[" + grd_reqeqmtlist.row + "]");
- model.makeValue("/root/main/report/reqeqmtlist/usebugt",grd_recmeqmtlist.valueMatrix(1,grd_recmeqmtlist.colRef("wncurncyamt")));
- exeReportPreview("RPRSC11901", "XMLSTR");
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/main/reqeqmtlist/instcd" class="output_fix" visibility="hidden" appearance="output" style="left:490px; top:5px; width:78px; height:19px; "/>
- <output id="opt_reqdd" ref="/root/main/reqeqmtlist/reqdd" class="output_fix" visibility="hidden" appearance="output" style="left:575px; top:5px; width:78px; height:19px; "/>
- <output id="opt_reqseqno" ref="/root/main/reqeqmtlist/reqseqno" class="output_fix" visibility="hidden" appearance="output" style="left:660px; top:5px; width:78px; height:19px; "/>
- <button id="button29" class="btn4_letter6" visibility="visible" style="left:965px; top:3px; width:104px; height:22px; ">
- <caption>거래처 관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modalUrl("../../../mis/acntbaseinfoweb/xrw/SMRAC00600_거래처관리.xrw", 1, 0, 0, "", "", "");
- ]]>
- </script>
- </button>
- </group>
- <group id="gro_calc" visibility="hidden" style="left:390px; top:640px; width:375px; height:99px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:375px; height:96px; "/>
- <line id="line24" class="line_3" style="x1:2px; y1:20px; x2:372px; y2:20px; "/>
- <datagrid id="grd_calc" nodeset="/root/main/calc" caption="외화금액^부대비용(%)^환율^원화금액" colsep="^" colwidth="100, 75, 93, 93" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" navindex="56" style="left:0px; top:18px; width:373px; height:50px; ">
- <col ref="money" visibility="visible" format="#,###" style="text-align:center; "/>
- <col ref="persent" type="input" format="#,###" style="text-align:center; "/>
- <col ref="exchange" type="input" format="#,###" style="text-align:center; "/>
- <col disabled="true" ref="currency" format="#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- // 원화 := 외화*환율 + ((외화*환율*부대비용율)/100)
- grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("currency")) = ( grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("money")) * grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("exchange")) )
- + ( ( grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("money")) * grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("persent")) * grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("exchange"))) /100 );
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="cap_calc" class="tit_1" style="left:0px; top:0px; width:111px; height:14px; ">원화금액 계산기</caption>
- <button id="btn_calc" class="btn6_letter10" navindex="57" style="left:35px; top:70px; width:156px; height:22px; ">
- <caption>확 인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- gro_calc.attribute("visibility") = 'hidden';
-
- grd_recmeqmtlist.valueMatrix(grd_recmeqmtlist.row, grd_recmeqmtlist.colRef("wncurncyamt")) = grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("currency"));
-
- gro_calc.visible = false;
- group3.disabled = false;
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button23" class="btn6_letter10" navindex="58" style="left:205px; top:70px; width:156px; height:22px; ">
- <caption>취 소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- gro_calc.attribute("visibility") = 'hidden';
-
- gro_calc.visible = false;
- group3.disabled = false;
-
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|