1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>비품청구 등록(성의교정)</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <goodreq>
- <goodreqlist/>
- <goodmaxreqno/>
- </goodreq>
- <goodreqno>
- <goodmaxreqno/>
- </goodreqno>
- <lrg>
- <lrglist/>
- </lrg>
- <mdl>
- <mdllist/>
- </mdl>
- <sml>
- <smllist/>
- </sml>
- <fixasetcd>
- <fixasetcdlist/>
- </fixasetcd>
- </list>
- <goodreq>
- <goodreqlist>
- <reqdd/>
- <reqno/>
- <reqpsnnm/>
- <reqdeptnm/>
- <bugtexpcamt/>
- <reqflagnm/>
- <reqflag/>
- <reqseqno/>
- <workflag/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpycd/>
- <prodcmpynm/>
- <bugtcd/>
- <bugtnm/>
- <bugtyy/>
- <stdysubjno/>
- <reqdeptcd/>
- <installplcecd/>
- <reqpsnid/>
- <reqtm/>
- <delivedeptcd/>
- <delivehopedd/>
- <reqqty/>
- <requnit/>
- <attfilenm/>
- <attfilepathnm/>
- <makeyn/>
- <deptaprvyn/>
- <deptaprvdd/>
- <acptflag/>
- <acptdd/>
- <adjtqty/>
- <adjtrsn/>
- <acptcharid/>
- <plceorddd/>
- <plceordseqno/>
- <deliveqty/>
- <unwinresn/>
- <deliveprcsflag/>
- <cmt/>
- <instcd/>
- <installplcenm/>
- <totamt/>
- <useamt/>
- <remamt/>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <smlnm/>
- <fixasetcd/>
- <bugtflag/>
- <stdysubjnm/>
- <suplplcecd/>
- <suplplcenm/>
- <wncurncyamt/>
- <plceordamt/>
- <cntrdeptcd/>
- <cntrdeptcdnm/>
- <mngtdeptcd/>
- <mngtdeptcdnm/>
- <reqtel/>
- </goodreqlist>
- </goodreq>
- <printdata>
- <data/>
- </printdata>
- </main>
- <send>
- <save>
- <goodreqlist/>
- </save>
- <goodreq>
- <instcd/>
- <reqdeptcd/>
- <reqdeptnm/>
- <reqflag/>
- <reqfrdd/>
- <deliveprcsflag/>
- <retrmaxreqnoyn/>
- <reqpsnid/>
- <reqpsnnm/>
- <instcdnm/>
- <reqtodd/>
- <reqdd/>
- <studyinstcd/>
- <view>
- <viewinstcd/>
- <deptinstcd/>
- </view>
- <groupbugt/>
- </goodreq>
- <lrgcd>
- <lrgcd/>
- <mdlcd/>
- <instcd/>
- <goodflag/>
- </lrgcd>
- <fixasetcd>
- <instcd/>
- <goodflag/>
- <cntrdeptcd/>
- </fixasetcd>
- </send>
- <init>
- <instcd>
- <label>성의교정</label>
- <value>103</value>
- <label>산학협력단</label>
- <value>114</value>
- <label>가톨릭의과학연구원</label>
- <value>032</value>
- </instcd>
- </init>
- </root>
- </instance>
- <bind id="plceordamt" ref="/root/main/goodreq/goodreqlist/plceordamt" calculate="../wncurncyamt *../reqqty"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fCheckAuth();
- fAllControlDisabled("Y")
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSD05601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/goodreq"/>
- <submission id="TRRSD05602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/goodreq/goodreqlist" resultref="/root/main/list/goodreqno"/>
- <submission id="TRRSD11104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lrgcd" resultref="/root/main/list/lrg"/>
- <submission id="TRRSD11105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lrgcd" resultref="/root/main/list/mdl"/>
- <submission id="TRRSD11106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lrgcd" resultref="/root/main/list/sml"/>
- <submission id="TRRFC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixasetcd" resultref="/root/main/list/fixasetcd"/>
- <submission id="TXRSD11101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- model.resetInstanceNode("/root/send");
-
- misfComboComCdListMulti("R0246,Z0007,R0316","cmb_workflag,cmb_studyinstcd,cmb_fundorigin");
-
- rszfComboUnitList (cmb_requnit, getUserInfo("dutplceinstcd"), "G");
-
- //szfComboBugtList(cmb_bugtcd,getUserInfo("dutplceinstcd"));
-
- rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag_search);
-
- misfGridInit(grd_goodreq);
-
- misfGridInit(grd_lrglist);
- misfGridInit(grd_mdllist);
- misfGridInit(grd_smllist);
-
- misfGridInit(grd_fixasetcdlist);
-
- misfMsterDetailSet(grd_goodreq,null, "TRRSD05601" ,"Y");
-
- model.setValue(ipt_reqdd_search.attribute("ref") , getCurrentDate());
- model.setValue(ipt_reqtodd_search.attribute("ref") , getCurrentDate());
-
- // model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- // model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm"));
- rdo_instcd.select(0);
- fInstcdCheck();
- //rdo_instcd.dispatch("xforms-value-changed");
-
- //기관코드를 선택할때 그 기관에 맞는 예산을 가져오는데 의과학연구원같은경우 성의교정의 예산을 쓸수있게 요청함 - 성의교정 여서경팀장 20100218
- if(rdo_instcd.value=='032'){
- rszfComboBgcdBugtList("cmb_groupbugt", '103', '3');
- }else{
- rszfComboBgcdBugtList("cmb_groupbugt", rdo_instcd.value, '3');
- }
- // if(rdo_instcd.value != '103')
- // {
- // rszfComboBugtList(cmb_bugtcd,rdo_instcd.value, '', '3');
- // }else{
- // rszfComboBugtList(cmb_bugtcd,rdo_instcd.value, cmb_groupbugt.value, '3');
- // }
-
-
- // 사용자의 부서가 하나가 아니면 오류메세지를 호출하며. 부서가 하나이면 부서코드와 부서명을 설정해준다.
- var fcheck = rszfGetUserInfo(getUserInfo("userid"), getUserInfo("dutplceinstcd")) ;
- if( ( fcheck > 1 ) || ( fcheck == 0 ) ){
- model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(ipt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
- }else{
- model.setValue(ipt_reqdeptcd_search.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptcd"));
- model.setValue(ipt_reqdeptnm_search.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptnm"));
- }
-
- // model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
- // model.setValue(ipt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
-
- model.setValue(ipt_reqpsnid_search.attribute("ref") , getUserInfo("userid"));
- model.setValue(opt_reqpsnnm.attribute("ref") , getUserInfo("usernm"));
-
- // hidden
- model.setValue(cmb_reqflag_search.attribute("ref") , "D");
- model.setValue(ipt_goodflag.attribute("ref") , "G");
-
- // 맵을 다른화면에서도 사용하기 때문에 기본값이 되는 reqdd 값을 N 으로 설정함으로써
- // 이화면상의 조회를 가능하게 함.
- model.setValue("/root/send/goodreq/reqdd", "N");
- btn_search.dispatch("DOMActivate");
-
- // 권한설정.
- fSetReqAuth();
- //
- model.refresh();
- }
-
- function fInstcdCheck()
- {
- misfGridInit(grd_goodreq);
- model.resetInstanceNode("/root/main/goodreq");
- if(rdo_instcd.value == '103' || rdo_instcd.value == '032')
- {
- cmb_groupbugt.value = '';
- //cmb_bugtcd.value = '';
- model.setValue(opt_instcd.attribute("ref"), rdo_instcd.value);
- model.setValue(opt_deptinstcd.attribute("ref"), rdo_instcd.value);
- // 사용자의 부서가 하나가 아니면 오류메세지를 호출하며. 부서가 하나이면 부서코드와 부서명을 설정해준다.
- var fcheck = rszfGetUserInfo(getUserInfo("userid"), getUserInfo("dutplceinstcd")) ;
- if( ( fcheck > 1 ) || ( fcheck == 0 ) ){
- model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(ipt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
- }else{
- model.setValue(ipt_reqdeptcd_search.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptcd"));
- model.setValue(ipt_reqdeptnm_search.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptnm"));
- }
- // model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
- // model.setValue(ipt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
- cmb_studyinstcd.value = '';
- cmb_studyinstcd.disabled = true;
- }else if(rdo_instcd.value == '114'){
- cmb_groupbugt.value = '';
- //cmb_bugtcd.value = '';
- model.setValue(opt_instcd.attribute("ref"), rdo_instcd.value);
- model.setValue(opt_deptinstcd.attribute("ref"), cmb_studyinstcd.value);
- model.setValue(ipt_reqdeptcd_search.attribute("ref") , "");
- model.setValue(ipt_reqdeptnm_search.attribute("ref") , "");
- cmb_studyinstcd.disabled = false;
- cmb_studyinstcd.select(0);
- //cmb_studyinstcd.value ='114';
-
- }
-
- model.refresh();
- }
-
-
-
-
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- //btn_save.disabled = !checkAuth("X") ;
- }
-
-
- function fSetControlDisabled(pDisabled)
- {
- ipt_reqno.disabled = pDisabled;
- }
-
-
- function fSetReqAuth()
- {
- /* ---------------------------------------------------------------------------------------
- * [2007.12.12 HBH ] 청구주기 추가.
- * 수리,장비등 청구주기가 없는 것들은 '1'로셋팅
- ---------------------------------------------------------------------------------------*/
- // rszfGetPurcReqAuthInfo(model.getValue(opt_instcd.attribute("ref")), model.getValue(cmb_reqflag_search.attribute("ref")) , getUserInfo("dutplcecd"), getUserInfo("userid"),"1");
- rszfGetPurcReqAuthInfo(model.getValue(opt_instcd.attribute("ref")), model.getValue(cmb_reqflag_search.attribute("ref")) , ipt_reqdeptcd_search.value, getUserInfo("userid"),"1");
- /*
- if(rszfGetPurcAuthInfoByCond("reqauth") != "Y")btn_save.disabled = true;
- else btn_save.disabled = false;
- if(rszfGetPurcAuthInfoByCond("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")btn_save.disabled =false;
- if(rszfGetPurcAuthInfoByCond("reqaprvflag") == "2")
- {
- btn_save.disabled = false;
- btn_accept.disabled = false;
- btnselect.disabled = false;
- }
-
-
- //구매에서 부서청구한건에 대한 부서승인권한은 과별로 권한을 주게 되어 있다. 그러나 성의교정은 부서청구를 구매팀에서 대행하기 때문에
- //구매팀분들에게 각 부서의 승인권한을 하나씩 다 넣어주어야 한다. 그래서 구매팀요청으로 구매팀은 각 부서승인을 할수 있도록 부서로
- //아래서 권한 주었음
-
- //if(getUserInfo("userid")=="94030942" || getUserInfo("userid")=="84040451" || getUserInfo("userid")=="99057308" || getUserInfo("userid")=="93025068" )
- //if(getUserInfo("userid")=="94030942" || getUserInfo("userid")=="84040451" || getUserInfo("userid")=="99057308" )
-
-
- if(getUserInfo("dutplcecd") =="4080100000" )
- {
- btn_save.disabled = false;
- btn_accept.disabled = false;
- btnselect.disabled = false;
- }
- model.refresh();
- }
-
-
- function fDisabledComboflag()
- {
- if( rdo_instcd.value == '103' || rdo_instcd.value == '032')
- {
- cmb_groupbugt.disabled = false;
-
- // if(cmb_groupbugt.value == '')
- // {
- // cmb_bugtcd.disabled = true;
- // }else
- // {
- // cmb_bugtcd.disabled = false;
- // }
-
- }else{
- cmb_groupbugt.disabled = true;
- // cmb_bugtcd.disabled = false;
- }
- }
-
- /*--------------------------------------------------------------------------------*/
- /* 화면 open시 disable ..행추가시 또는 조회후 값 존재시 enable */
- /*--------------------------------------------------------------------------------*/
- function fAllControlDisabled(pDisableYn)
- {
- if(pDisableYn == "Y")
- {
- ipt_goodnm.disabled ="true";
- ipt_goodspec.disabled ="true";
- ipt_goodmodel.disabled ="true";
- cmb_workflag.disabled ="true";
- rbo_makeyn.disabled ="true";
- cmb_requnit.disabled ="true";
- ipt_prodcmpycd.disabled ="true";
- ipt_reqqty.disabled ="true";
- ipt_installplcecd.disabled ="true";
-
-
- ipt_reqtel.disabled = "true";
- ipt_reqdd.disabled ="true";
-
- ipt_cntrdeptcd.disabled ="true";
- btn_cntrdeptcd.disabled ="true";
- ipt_cntrdeptcdnm.disabled ="true";
-
- ipt_mngtdeptcd.disabled ="true";
- btn_mngtdeptcd.disabled ="true";
- ipt_mngtdeptcdnm.disabled ="true";
-
- ipt_bugtyy.disabled ="true";
- ipt_bugtexpcamt.disabled ="true";
- // ipt_attfilename.disabled ="true";
- ipt_attfilepathnm.disabled ="true";
-
- /*-----------------------------------------------------------------*/
- /* 하단은 disable 해놓구 우측에서 선택하게한다. */
- /*-----------------------------------------------------------------*/
- // ipt_lrgcd.disabled ="true";
- opt_lrgnm.disabled ="true";
- // ipt_mdlcd.disabled ="true";
- opt_mdlnm.disabled ="true";
- // ipt_smlcd.disabled ="true";
- opt_smlnm.disabled ="true";
- ipt_fixasetcd.disabled ="true";
- btn_addfile.disabled="true";
- txt_cmt.disabled="true";
-
- cmb_groupbugt.disabled="true";
- // cmb_bugtcd.disabled="true";
-
- ipt_stdysubjno.disabled="true";
- ipt_stdysubjnm.disabled="true";
-
- // ipt_wncurncyamt.disabled="true";
- // ipt_plceordamt.disabled="true";
- // ipt_suplplcecd.disabled="true";
- // ipt_suplplcenm.disabled="true";
- // btn_suplplcecd.disabled="true";
- ipt_prodcmpynm.disabled="true";
- ipt_installplcenm.disabled="true";
-
- ipt_bugtnm.disabled="true";
- btn_bugtcd.disabled="true";
- opt_projectnm.disabled="true";
-
- cmb_fundorigin.disabled="true";
- }
- else
- {
-
- ipt_goodnm.disabled ="false";
- ipt_goodspec.disabled ="false";
- ipt_goodmodel.disabled ="false";
- cmb_workflag.disabled ="false";
- rbo_makeyn.disabled ="false";
- cmb_requnit.disabled ="false";
- ipt_prodcmpycd.disabled ="false";
- ipt_reqqty.disabled ="false";
- ipt_installplcecd.disabled ="false";
-
- ipt_reqtel.disabled = "false";
- ipt_reqdd.disabled ="false";
-
- ipt_cntrdeptcd.disabled ="false";
- btn_cntrdeptcd.disabled ="false";
- ipt_cntrdeptcdnm.disabled ="false";
-
- ipt_mngtdeptcd.disabled ="false";
- btn_mngtdeptcd.disabled ="false";
- ipt_mngtdeptcdnm.disabled ="false";
-
- ipt_bugtyy.disabled ="false";
- ipt_bugtexpcamt.disabled ="false";
- // ipt_attfilename.disabled ="false";
- ipt_attfilepathnm.disabled ="false";
-
- btn_addfile.disabled="false";
- txt_cmt.disabled="false";
-
- // if( rdo_instcd.value == '103')
- // {
- // cmb_groupbugt.disabled="false";
- //
- // if(cmb_groupbugt.value == '')
- // {
- // cmb_bugtcd.disabled="true";
- // }
- // }else{
- // cmb_groupbugt.disabled="true";
- // cmb_bugtcd.disabled="false";
- //
- // }
- fDisabledComboflag();
-
- ipt_stdysubjno.disabled="false";
- ipt_stdysubjnm.disabled="false";
- // ipt_wncurncyamt.disabled="false";
- // ipt_plceordamt.disabled="false";
- // ipt_suplplcecd.disabled="false";
- // ipt_suplplcenm.disabled="false";
- // btn_suplplcecd.disabled="false";
- ipt_prodcmpynm.disabled="false";
- ipt_installplcenm.disabled="false";
-
- ipt_bugtnm.disabled="false";
- btn_bugtcd.disabled="false";
- opt_projectnm.disabled="false";
-
- cmb_fundorigin.disabled="false";
- }
- model.refresh();
- }
- function fMovecd(pgrid_name)
- {
- if(model.GetValue(cmb_workflag.attribute("ref")).length == 0)
- {
- messageBox("행추가를 먼저하시거나 청구사유를 먼저 " ,"C002");
- //model.setFocus("cmb_instcd_search");
- return;
- }
- if(swh_select.selectedIndex == 0)
- {
- if (pgrid_name == "grd_smllist")
- {
- if (grd_smllist.row > 0)
- {
- //model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd",grd_goodlist.valueMatrix(grd_goodlist.row , grd_goodlist.colRef("goodcd")));
-
- /* 대분류 */
- model.setValue(ipt_lrgcd.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgcd")));
- model.setValue(opt_lrgnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")));
- /* 중분류*/
- model.setValue(ipt_mdlcd.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlcd")));
- model.setValue(opt_mdlnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")));
- /* 소분류 */
- model.setValue(ipt_smlcd.attribute("ref"), grd_smllist.valueMatrix(grd_smllist.row , grd_smllist.colRef("smlcd")));
- model.setValue(opt_smlnm.attribute("ref"), grd_smllist.valueMatrix(grd_smllist.row , grd_smllist.colRef("smlnm")));
-
- model.setValue(ipt_goodnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")) + ' / '+
- grd_smllist.valueMatrix(grd_smllist.row , grd_smllist.colRef("smlnm")));
-
- model.refresh();
- }
- }
- else if(pgrid_name == "grd_mdllist")
- {
- if (grd_mdllist.row > 0)
- {
- //model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd",grd_goodlist.valueMatrix(grd_goodlist.row , grd_goodlist.colRef("goodcd")));
-
- /* 대분류 */
- model.setValue(ipt_lrgcd.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgcd")));
- model.setValue(opt_lrgnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")));
- /* 중분류*/
- model.setValue(ipt_mdlcd.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlcd")));
- model.setValue(opt_mdlnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")));
- /* 소분류 */
- model.setValue(ipt_smlcd.attribute("ref"), "");
- model.setValue(opt_smlnm.attribute("ref"), "");
-
- model.setValue(ipt_goodnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")) );
- model.refresh();
- }
- }
- else if(pgrid_name == "grd_lrglist")
- {
- if (grd_mdllist.row > 0)
- {
- //model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd",grd_goodlist.valueMatrix(grd_goodlist.row , grd_goodlist.colRef("goodcd")));
-
- /* 대분류 */
- model.setValue(ipt_lrgcd.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgcd")));
- model.setValue(opt_lrgnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")));
- /* 중분류*/
- model.setValue(ipt_mdlcd.attribute("ref"), "");
- model.setValue(opt_mdlnm.attribute("ref"), "");
- /* 소분류 */
- model.setValue(ipt_smlcd.attribute("ref"), "");
- model.setValue(opt_smlnm.attribute("ref"), "");
-
- //model.setValue(ipt_goodnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")) );
-
- model.refresh();
- }
- }
- }
- else
- {
-
-
- if (grd_fixasetcdlist.row > 0)
- {
- model.setValue(ipt_lrgcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("lrgcd")));
- model.setValue(opt_lrgnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("lrgnm")));
- model.setValue(ipt_mdlcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("mdlcd")));
- model.setValue(opt_mdlnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("mdlnm")));
- model.setValue(ipt_smlcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("smlcd")));
- model.setValue(opt_smlnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("smlnm")));
-
- model.setValue(ipt_fixasetcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("fixasetcd")));
- model.setValue(ipt_goodnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodflaghngnm")));
- model.setValue(ipt_goodspec.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodspec")));
- model.setValue(ipt_goodmodel.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodmodel")));
-
- model.refresh();
- }
- }
-
- }
-
- function fAfterRetr()
- {
- if ( grd_goodreq.rows - grd_goodreq.fixedRows > 0) {
-
- model.resetInstanceNode("/root/main/goodreq");
-
- /* 조회건수가 있으면 행추가시까지 enable = TRUE HBH */
- fAllControlDisabled("N");
-
- grd_goodreq.dispatch("onrowchanged");
-
- }
- else
- {
- model.resetInstanceNode("/root/main/goodreq");
- if(model.getValue("/root/main/list/goodreq/goodmaxreqno/reqfix") == "Y")
- {
- fSetControlDisabled("true");
- }
- else
- {
- fSetControlDisabled("false");
- }
- model.setValue(ipt_reqno.attribute("ref"),model.getValue("/root/main/list/goodreq/goodmaxreqno/reqno"));
- model.setValue("/root/main/goodreq/goodreqlist/instcd" , model.getValue(opt_instcd.attribute("ref")));
-
- /* 조회건수가 없으면 행추가시까지 enable = false HBH */
- fAllControlDisabled("Y");
- }
-
- /* 청구상태가 아니면 막는다*/
- for(var fRow = grd_goodreq.fixedRows; fRow < grd_goodreq.rows; fRow++)
- {
- if(grd_goodreq.valueMatrix(fRow, grd_goodreq.colRef("acptflag")) == "N" || grd_goodreq.valueMatrix(fRow, grd_goodreq.colRef("acptflag")).length == 0)
- {
- grd_goodreq.isReadOnly(fRow,grd_goodreq.colRef("deptaprvyn")) = false;
- }
- else
- {
- grd_goodreq.isReadOnly(fRow,grd_goodreq.colRef("deptaprvyn")) = true;
- }
- }
-
- model.refresh();
- }
- function fSaveDataSetting()
- {
- model.setValue("/root/main/goodreq/goodreqlist/instcd" , model.getValue(opt_instcd.attribute("ref")));
- }
- function fSetReqNo(pReqControl,pAdd)
- {
- if(pAdd == "Y")
- {
- var reqno = model.getValue(ipt_reqno.attribute("ref"));
- reqno = parseInt(reqno) + 1;
- reqno = "" + reqno;
- reqno = reqno.getLeftPad(4,"0");
- }
- else
- {
- var reqno = model.getValue(ipt_reqno.attribute("ref"));
- reqno = parseInt(reqno) - 1;
- if(reqno == 0)reqno = 1;
- reqno = "" + reqno;
- reqno = reqno.getLeftPad(4,"0");
- }
- model.setValue(pReqControl.attribute("ref"), reqno);
- model.refresh();
- }
- function fRetrByReqNo()
- {
- model.removenode("/root/main/tmplist");
- model.makeNode("/root/main/tmplist/goodreq/goodreqlist");
- model.makeNode("/root/main/tmplist/goodreq/goodmaxreqno");
- model.copyNode("/root/main/tmplist", "/root/main/list");
-
- model.setValue("/root/send/goodreq/retrmaxreqnoyn","N");
-
- misfMsterDetailRetrieve();
-
- var rtncount = grd_goodreq.rows - grd_goodreq.fixedRows;
-
- if(rtncount == 0)
- {
- model.copyNode("/root/main/list","/root/main/tmplist");
- }
-
- return rtncount;
- }
- function fDefaultSetting()
- {
- model.copyNode("/root/main/goodreq/goodreqlist" ,grd_goodreq.nodeset + "["+ grd_goodreq.row + "]");
- model.setValue(ipt_reqdeptcd.attribute("ref") , model.getValue(ipt_reqdeptcd_search.attribute("ref")));
-
- model.setValue(ipt_reqflag.attribute("ref") , model.getValue(cmb_reqflag_search.attribute("ref")));
- model.setValue(opt_reqdeptnm.attribute("ref") , model.getValue(ipt_reqdeptnm_search.attribute("ref")));
-
- model.setValue(ipt_reqdd.attribute("ref") , getCurrentDate());
- // model.setValue(ipt_reqdd.attribute("ref") , model.getValue(ipt_reqdd_search.attribute("ref")));
-
- // 귀속부서,관리부서 셋팅
- model.setValue(ipt_mngtdeptcd.attribute("ref"), ipt_reqdeptcd_search.value);
- model.setValue(ipt_mngtdeptcdnm.attribute("ref"), ipt_reqdeptnm_search.value);
- model.setValue(ipt_cntrdeptcd.attribute("ref"), ipt_reqdeptcd_search.value);
- model.setValue(ipt_cntrdeptcdnm.attribute("ref"), ipt_reqdeptnm_search.value);
-
-
- model.setValue(ipt_reqpsnid.attribute("ref") , model.getValue(ipt_reqpsnid_search.attribute("ref")));
- model.setValue(rbo_makeyn.attribute("ref") , "N"); //제작여부
- model.setValue(ipt_deliveprcsflag.attribute("ref") , "1"); //진행상태
- model.setValue(cmb_requnit.attribute("ref") , "EA"); //'EACH'로 기본셋팅
- model.setValue("/root/main/goodreq/goodreqlist/instcd" , model.getValue(opt_instcd.attribute("ref")));
- model.setValue("/root/main/goodreq/goodreqlist/acptflag" , "N");
-
- submit("TRRSD05602");
- if(model.getValue("/root/main/list/goodreq/goodmaxreqno/reqfix") == "Y")
- {
- fSetControlDisabled("true");
- }
- else
- {
- fSetControlDisabled("false");
- }
- model.setValue(ipt_reqno.attribute("ref"),model.getValue("/root/main/list/goodreqno/goodmaxreqno/reqno"));
-
- model.refresh();
- }
- function fCheckRetrieveData(pmsg)
- {
- if(model.getValue(opt_instcd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("opt_instcd");
- }
- return false;
- }
- if(model.getValue(ipt_reqdeptcd_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("청구부서를 " ,"C002");
- model.setFocus("ipt_reqdeptcd_search");
- }
- return false;
- }
-
- if(model.getValue(cmb_reqflag_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("청구구분을 " ,"C001");
- model.setFocus("cmb_reqflag_search");
- }
- return false;
- }
-
- if(model.getValue(ipt_reqdd_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("청구일자를 " ,"C001");
- model.setFocus("ipt_reqdd_search");
- }
- return false;
- }
-
- if(model.getValue(ipt_reqtodd_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("청구일자를 " ,"C001");
- model.setFocus("ipt_reqtodd_search");
- }
- return false;
- }
-
-
- return true;
- }
-
- function fCheckSaveData()
- {
- if(model.getValue(opt_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("opt_instcd");
- return false;
- }
- if(model.getValue(ipt_reqdeptcd_search.attribute("ref")).length== 0 )
- {
- messageBox("청구부서를 " ,"C002");
- model.setFocus("ipt_reqdeptcd_search");
- return false;
- }
-
- if(model.getValue(cmb_reqflag_search.attribute("ref")).length== 0 )
- {
- messageBox("청구구분을 " ,"C001");
- model.setFocus("cmb_reqflag_search");
- return false;
- }
-
- if(model.getValue(ipt_reqdd_search.attribute("ref")).length== 0 )
- {
- messageBox("청구일자를 " ,"C001");
- model.setFocus("ipt_reqdd_search");
- return false;
- }
-
- if(model.getValue(ipt_reqtodd_search.attribute("ref")).length== 0 )
- {
- messageBox("청구일자를 " ,"C001");
- model.setFocus("ipt_reqtodd_search");
- return false;
- }
-
- if(model.getValue(ipt_reqno.attribute("ref")).length== 0 )
- {
- messageBox("청구번호를 " ,"C001");
- model.setFocus("ipt_reqno");
- return false;
- }
- if(model.getValue(ipt_goodnm.attribute("ref")).length== 0 )
- {
- messageBox("물품명을 " ,"C001");
- model.setFocus("ipt_goodnm");
- return false;
- }
- if(model.getValue(ipt_reqqty.attribute("ref")).length== 0 )
- {
- messageBox("청구수량을 " ,"C001");
- model.setFocus("ipt_reqqty");
- return false;
- }
- if(model.getValue(cmb_requnit.attribute("ref")).length== 0 )
- {
- messageBox("청구단위를 " ,"C001");
- model.setFocus("cmb_requnit");
- return false;
- }
-
- if(model.getValue(cmb_workflag.attribute("ref")).length== 0 )
- {
- messageBox("청구사유를 " ,"C001");
- model.setFocus("cmb_workflag");
- return false;
- }
- if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드를 " ,"C001");
- model.setFocus("ipt_lrgcd");
- return false;
- }
- if(model.getValue(ipt_mdlcd.attribute("ref")).length== 0 )
- {
- messageBox("중분류코드를 " ,"C001");
- model.setFocus("ipt_mdlcd");
- return false;
- }
- return true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:14px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">비품청구(성의교정)</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:647px; ">
- <line id="line7" class="line_2" style="x1:0px; y1:147px; x2:605px; y2:147px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:123px; x2:605px; y2:123px; "/>
- <line id="line19" class="line_2" style="x1:0px; y1:288px; x2:605px; y2:288px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:241px; x2:605px; y2:241px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:265px; x2:605px; y2:265px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:219px; x2:605px; y2:219px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:195px; x2:605px; y2:195px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:171px; x2:605px; y2:171px; "/>
- <caption id="caption9" class="tit_2" style="left:5px; top:81px; width:100px; height:13px; ">비품청구</caption>
- <caption id="caption52" class="cell_1" style="left:-126px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장단위</caption>
- <caption id="caption54" class="cell_1" style="left:-126px; top:334px; width:108px; height:23px; vertical-align:middle; ">근속기준일/년</caption>
- <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreq/goodreqlist" caption="진행상태^접수^청구일자^청구번호^청구자^청구부서^청구사유^제작^대분류^중분류^소분류^물품명^규격^모델^제조회사^청구수량^승인^접수^승인일자^예산금액^예산편성액^예산추산액^예산집행액^예산잔액" colsep="^" colwidth="54, 43, 72, 61, 58, 86, 63, 33, 74, 84, 84, 191, 89, 66, 66, 55, 59, 52, 100, 82, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:470px; width:1195px; height:165px; ">
- <col ref="deliveprcsflagnm" style="text-align:center; "/>
- <col ref="acptflagnm"/>
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="reqno" style="text-align:center; "/>
- <col ref="reqpsnnm"/>
- <col ref="reqdeptnm"/>
- <col ref="workflagnm"/>
- <col ref="makeyn"/>
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="prodcmpynm" visibility="hidden"/>
- <col ref="reqqty" format="#,###" style="text-align:right; "/>
- <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox" style="left:1118px; top:23px; width:59px; height:23px; "/>
- <col checkvalue="Y,N" ref="acptflag" visibility="hidden"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="totamt" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="bugtexpcamt" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="useamt" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="remamt" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="prodcmpycd" visibility="hidden"/>
- <col ref="bugtcd" visibility="hidden"/>
- <col ref="bugtnm" visibility="hidden"/>
- <col ref="bugtyy" visibility="hidden"/>
- <col ref="stdysubjno" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <col ref="reqpsnid" visibility="hidden"/>
- <col ref="reqtm" visibility="hidden"/>
- <col ref="delivehopedd" visibility="hidden"/>
- <col ref="requnit" visibility="hidden"/>
- <col ref="attfilenm" visibility="hidden"/>
- <col ref="attfilepathnm" visibility="hidden"/>
- <col ref="deptaprvdd" visibility="hidden"/>
- <col ref="adjtqty" visibility="hidden"/>
- <col ref="adjtrsn" visibility="hidden"/>
- <col ref="acptcharid" visibility="hidden"/>
- <col ref="plceorddd" visibility="hidden"/>
- <col ref="plceordseqno" visibility="hidden"/>
- <col ref="plceordno" visibility="hidden"/>
- <col ref="workflag" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <col ref="deliveqty" visibility="hidden"/>
- <col ref="unwinresn" visibility="hidden"/>
- <col ref="deliveprcsflag" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="stdysubjnm" visibility="hidden"/>
- <col ref="installplcenm" visibility="hidden"/>
- <col ref="purcacptflag" visibility="hidden"/>
- <col ref="purcacptdd" visibility="hidden"/>
- <col ref="wncurncyamt" visibility="hidden"/>
- <col ref="plceordamt" visibility="hidden"/>
- <col ref="suplplcecd" visibility="hidden"/>
- <col ref="suplplcenm" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="cntrdeptcd" visibility="hidden"/>
- <col ref="cntrdeptcdnm" visibility="hidden"/>
- <col ref="mngtdeptcd" visibility="hidden"/>
- <col ref="mngtdeptcdnm" visibility="hidden"/>
- <col ref="reqtel" visibility="hidden"/>
- <col ref="deptaprvpsnid" visibility="hidden"/>
- <col ref="deptaprvpsnnm" visibility="hidden"/>
- <col ref="studyinstcd" visibility="hidden"/>
- <col ref="projectnm" visibility="hidden"/>
- <col ref="projectid" visibility="hidden"/>
- <col ref="fundorigin" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- if( grd_goodreq.rows >= grd_goodreq.fixedRows )
- {
- model.resetInstanceNode("/root/main/goodreq");
-
- if(grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("instcd")) =='032'){
- cmb_groupbugt.value = rszfComboBgcdBugtList( "", '103', '3', grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("bugtcd")), "Y");
- }else{
- cmb_groupbugt.value = rszfComboBgcdBugtList( "", grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("instcd")), '3', grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("bugtcd")), "Y");
- }
-
-
-
- // cmb_groupbugt.dispatch("xforms-value-changed");
-
- model.copyNode("/root/main/goodreq/goodreqlist" ,grd_goodreq.nodeset + "["+ (grd_goodreq.row-grd_goodreq.fixedrows+1) + "]");
-
- // 부서장 승인이 되어 있으면 disabled = 'Y'
- // 구매과 접수가 접수/부결.되어 있으면 disabled = 'Y'
- if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" ||
- grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" ||
- grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y" )
- fAllControlDisabled("Y");
- else
- fAllControlDisabled("N");
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(grd_goodreq.valueMatrix(grd_goodreq.Row,grd_goodreq.colRef("acptflag")) == "Y" )
- {
- messageBox("관리부서에서 접수된건입니다. 접수취소를 하실수 " ,"I004");
- // check box의 반대값을 넣어주고 status를 원위치한다.
- grd_goodreq.rowStatus(grd_goodreq.Row - grd_goodreq.fixedRows + 1) = "0";
- if(grd_goodreq.valueMatrix(grd_goodreq.Row,grd_goodreq.colRef("deptaprvyn")) == "N" )
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvyn" ,"Y");
- else
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvyn" ,"N");
- }
- else
- {
- if(grd_goodreq.valueMatrix(grd_goodreq.Row,grd_goodreq.colRef("deptaprvyn")) == "N" )
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvdd", "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvpsnid" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvpsnnm", getUserInfo("usernm"));
-
- }
- else
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvdd", getCurrentDate());
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvpsnid", getUserInfo("userid"));
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvpsnnm", getUserInfo("usernm"));
- //model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/acptdd" , getCurrentDate());
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:96px; x2:605px; y2:96px; "/>
- <!--</group>-->
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:29px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(false) == false)return;
- model.setValue("/root/send/goodreq/retrmaxreqnoyn","Y");
- // 위의 조건을 변경후 조회하면, 각 조회조건 값들이 이전값이다.
- //fDefaultSetting();
-
- misfMsterDetailRetrieve();
-
- fAfterRetr();
- ]]>
- </script>
- </button>
- <button id="btn_reqdept" class="icon_search" style="left:889px; top:20px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, opt_deptinstcd.value, "instcd") ;
- model.refresh();
- // 권한설정.
- fSetReqAuth();
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:15px; top:19; width:117px; height:17px; ">기관코드 :</caption>
- <line id="line18" class="line_4" style="x1:1110px; y1:20px; x2:1110px; y2:62px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_reqflag_search" ref="/root/send/goodreq/reqflag" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:788px; top:45px; width:90px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_reqdeptcd_search" ref="/root/send/goodreq/reqdeptcd" class="input_s_essential" style="left:790px; top:18px; width:96px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptcd_search.value.length == 0)
- ipt_reqdeptnm_search.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_deptinstcd.value, "instcd" );
-
- model.refresh();
-
- // 권한설정.
- fSetReqAuth();
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:705px; top:19px; width:86px; height:17px; ">청구부서 :</caption>
- <input id="ipt_reqdeptnm_search" ref="/root/send/goodreq/reqdeptnm" class="input_fix" appearance="input" style="left:909px; top:18px; width:170px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptnm_search.value.length == 0)
- ipt_reqdeptcd_search.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_deptinstcd.value, "instcd" );
-
- model.refresh();
- // 권한설정.
- fSetReqAuth();
-
- ]]>
- </script>
- </input>
- <caption id="caption14" class="search_name" style="left:15px; top:45; width:86px; height:17px; ">청구일자 :</caption>
- <input id="ipt_reqdd_search" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:100px; top:45; width:120; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_reqno" ref="/root/main/goodreq/goodreqlist/reqno" class="input_essential" visibility="hidden" editable="false" style="left:125px; top:76px; width:20px; height:19px; "/>
- <output id="ipt_reqdeptcd" ref="/root/main/goodreq/goodreqlist/reqdeptcd" class="output_fix" visibility="hidden" appearance="output" style="left:150px; top:76px; width:30px; height:19px; "/>
- <output id="opt_reqdeptnm" ref="/root/main/goodreq/goodreqlist/reqdeptnm" class="output_fix" visibility="hidden" appearance="output" style="left:100px; top:75px; width:25px; height:19px; "/>
- <caption id="caption67" class="cell_1" style="left:223px; top:125px; width:100px; height:23px; vertical-align:middle; ">물품명칭</caption>
- <input id="ipt_goodnm" ref="/root/main/goodreq/goodreqlist/goodnm" class="input_s_essential" style="left:325px; top:127px; width:280px; height:19px; "/>
- <caption id="caption61" class="cell_1" style="left:0px; top:195px; width:100px; height:23px; vertical-align:middle; ">규격</caption>
- <input id="ipt_goodspec" ref="/root/main/goodreq/goodreqlist/goodspec" class="input_fix" style="left:102px; top:199px; width:198px; height:19px; "/>
- <input id="ipt_goodmodel" ref="/root/main/goodreq/goodreqlist/goodmodel" class="input_default" style="left:102px; top:175px; width:503px; height:19px; "/>
- <caption id="caption59" class="cell_1" style="left:0px; top:173px; width:100px; height:21px; vertical-align:middle; ">모델</caption>
- <button id="btn_prodcmpycd" class="icon_search" style="left:172px; top:223px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption66" class="cell_1" style="left:0px; top:220px; width:100px; height:22px; vertical-align:middle; ">제조회사</caption>
- <input id="ipt_prodcmpycd" ref="/root/main/goodreq/goodreqlist/prodcmpycd" class="input_default" style="left:102px; top:221px; width:67px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_prodcmpycd.value.length == 0)
- {
- ipt_prodcmpynm.value = "";
- }
- else
- rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd",
- "prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref")) ,"","prodcmpycd,prodcmpynm" ,
- ipt_prodcmpycd,"SPRSD00160","","");
- model.refresh();
- model.setFocus("ipt_goodmodel");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_prodplce");
- else model.setFocus("ipt_goodmodel");
- }
- event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_prodcmpynm" ref="/root/main/goodreq/goodreqlist/prodcmpynm" class="input_fix" appearance="input" style="left:190px; top:221px; width:110px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_prodcmpynm.value.length == 0)
- {
- ipt_prodcmpycd.value = "";
- }
- else
- rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpynm",
- "prodcmpynm," + ipt_prodcmpynm.value, "", "prodcmpycd,prodcmpynm",
- ipt_prodcmpynm, "SPRSD00160", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <output id="opt_winacntnm" ref="/root/main/goodreq/goodreqlist/bugtnm" class="output_fix" visibility="hidden" appearance="output" style="left:245px; top:75px; width:15px; height:19px; "/>
- <caption id="caption64" class="cell_1" style="left:0px; top:243px; width:100px; height:22px; vertical-align:middle; ">청구수량</caption>
- <input id="ipt_reqqty" ref="/root/main/goodreq/goodreqlist/reqqty" class="input_s_essential" format="#,###" style="left:102px; top:246px; width:86px; height:19px; text-align:right; "/>
- <select1 id="cmb_requnit" ref="/root/main/goodreq/goodreqlist/requnit" class="combo_s_essential" appearance="minimal" style="left:189px; top:246px; width:111px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_bugtyy" ref="/root/main/goodreq/goodreqlist/bugtyy" class="input_search" disabled="true" format="yyyy" style="left:102px; top:293px; width:88px; height:19px; text-align:left; "/>
- <caption id="cap_bugtyy" class="cell_1" style="left:0px; top:291px; width:100px; height:23px; vertical-align:middle; ">예산년도</caption>
- <input id="ipt_bugtexpcamt" ref="/root/main/goodreq/goodreqlist/bugtexpcamt" class="output_fix" format="#,###" style="left:102px; top:340px; width:97px; height:19px; text-align:right; "/>
- <caption id="caption48" class="cell_1" style="left:0px; top:339px; width:100px; height:23px; vertical-align:middle; ">예산추산액</caption>
- <caption id="caption71" class="cell_1" style="left:426px; top:101px; width:57px; height:23px; vertical-align:middle; ">제작여부</caption>
- <input id="ipt_installplcecd" ref="/root/main/goodreq/goodreqlist/installplcecd" class="input_fix" style="left:393px; top:268px; width:77px; 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_deptinstcd.value, "", "installplcecd,installplcenm",
- ipt_installplcecd, "PPRAC00700", "instcd","opt_deptinstcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="rbo_makeyn" ref="/root/main/goodreq/goodreqlist/makeyn" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:485px; top:106px; width:116px; height:16px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>예</label>
- <value>Y</value>
- </item>
- <item>
- <label>아니오</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:304px; top:267px; width:88px; height:23px; vertical-align:middle; ">설치장소</caption>
- <caption id="caption57" class="cell_1" style="left:406px; top:315px; width:99px; height:23px; vertical-align:middle; ">예산편성액</caption>
- <caption id="caption60" class="cell_1" style="left:304px; top:363px; width:86px; height:23px; vertical-align:middle; ">첨부파일</caption>
- <input id="ipt_attfilepathnm" ref="/root/main/goodreq/goodreqlist/attfilepathnm" class="input_default" style="left:392px; top:365px; width:146px; height:19px; "/>
- <button id="btn_choidel" class="btn2_letter3" style="left:553px; top:75px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_goodreq, "D");
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter3" style="left:498px; top:75px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(fCheckRetrieveData(true) == false)return;
-
- model.resetInstanceNode("/root/main/goodreq");
- misfGridIUD(grd_goodreq, "A");
- grd_goodreq.row = grd_goodreq.rows - grd_goodreq.fixedRows ;
-
- /* 행추가시 enable = TRUE HBH */
- fAllControlDisabled("N");
-
- fDefaultSetting(grd_goodreq.row );
-
- if(rdo_instcd.value=='032'){
- rszfComboBgcdBugtList("cmb_groupbugt", '103', '3');
- }else{
- rszfComboBgcdBugtList("cmb_groupbugt", rdo_instcd.value, '3');
- }
- // if(rdo_instcd.value != '103')
- // {
- // rszfComboBugtList(cmb_bugtcd,rdo_instcd.value, '', '3');
- // }else{
- // rszfComboBugtList(cmb_bugtcd,rdo_instcd.value, cmb_groupbugt.value, '3');
- // }
-
- fDisabledComboflag();
-
- ]]>
- </script>
- </button>
- <input id="ipt_reqpsnid_search" ref="/root/send/goodreq/reqpsnid" visibility="hidden" style="left:757px; top:45px; width:30px; height:19px; "/>
- <output id="opt_reqpsnnm" ref="/root/send/goodreq/reqpsnnm" class="output_fix" style="left:500px; top:45px; width:130px; height:19px; text-align:center; "/>
- <caption id="caption1" class="search_name" style="left:415px; top:45px; width:84px; height:17px; ">청 구 자 :</caption>
- <caption id="caption2" class="cell_1" style="left:0px; top:101px; width:100px; height:23px; vertical-align:middle; ">청구사유</caption>
- <select1 id="cmb_workflag" ref="/root/main/goodreq/goodreqlist/workflag" class="combo_s_essential" appearance="minimal" style="left:102px; top:103px; width:143px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" class="line_1" style="x1:0px; y1:465px; x2:1195px; y2:465px; "/>
- <caption id="caption5" class="tit_2" style="left:5px; top:450px; width:100px; height:13px; ">비품청구 내역</caption>
- <input id="ipt_reqflag" ref="/root/main/goodreq/goodreqlist/reqflag" visibility="hidden" style="left:185px; top:75px; width:25px; height:19px; "/>
- <input id="ipt_reqdd" ref="/root/main/goodreq/goodreqlist/reqdd" disabled="true" inputtype="date" style="left:309px; top:103px; width:114px; height:19px; "/>
- <input id="ipt_reqpsnid" ref="/root/main/goodreq/goodreqlist/reqpsnid" visibility="hidden" style="left:260px; top:75px; width:20px; height:19px; "/>
- <input id="ipt_instcd" ref="/root/main/goodreq/goodreqlist/instcd" visibility="hidden" style="left:230px; top:75px; width:15px; height:19px; "/>
- <input id="ipt_deliveprcsflag" ref="/root/main/goodreq/goodreqlist/deliveprcsflag" visibility="hidden" style="left:210px; top:75px; width:20px; height:19px; "/>
- <button id="btn_addfile" class="btn2_letter4" style="left:541px; top:365px; width:64px; height:19px; ">
- <caption>addfile</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var files = window.fileDialog("open", "|", false);
- var replacepath = "";
- /* file 명과 dir을 따로 했다가 하나로 합침......아래로 수정 ..HBH */
- /* file name setting */
- // filelist = files.split("\\");
- // model.setValue(ipt_attfilename.attribute("ref") , filelist[filelist.length-1]);
- /* file path setting */
-
- // for(var i = 0 ; i < filelist.length -1 ; i++ ) // -1은 화일제거
- // {
- // if(filelist[i].length>0)
- // {
- // if (i == 0) replacepath = replacepath + filelist[i];
- // else replacepath = replacepath + '\\'+filelist[i];
- // }
- // }
- //
- // model.setValue(ipt_attfilepathnm.attribute("ref") , replacepath);
- model.setValue(ipt_attfilepathnm.attribute("ref") , files);
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_installplcenm" ref="/root/main/goodreq/goodreqlist/installplcenm" class="input_fix" appearance="input" style="left:494px; top:269px; width:112px; 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_deptinstcd.value, "", "installplcecd,installplcenm",
- ipt_installplcenm, "PPRAC00700", "instcd","opt_deptinstcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="button3" class="icon_search" style="left:477px; top:268px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "installplcecd,installplcenm";
- misfOpenPopUpList("19", ipt_installplcecd,"", recv_list, opt_deptinstcd.value, "instcd") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="cell_1" style="left:204px; top:339px; width:99px; height:23px; vertical-align:middle; ">예산집행액</caption>
- <caption id="caption12" class="cell_1" style="left:406px; top:339px; width:99px; height:23px; vertical-align:middle; ">예산잔액</caption>
- <output id="opt_totamt" ref="/root/main/goodreq/goodreqlist/totamt" class="output_fix" format="#,###" style="left:507px; top:317px; width:99px; height:19px; text-align:right; "/>
- <output id="opt_useamt" ref="/root/main/goodreq/goodreqlist/useamt" class="output_fix" format="#,###" style="left:305px; top:341px; width:99px; height:19px; text-align:right; "/>
- <output id="opt_remamt" ref="/root/main/goodreq/goodreqlist/remamt" class="output_fix" format="#,###" style="left:507px; top:341px; width:99px; height:19px; text-align:right; "/>
- <input id="ipt_goodflag" ref="/root/send/lrgcd/goodflag" visibility="hidden" style="left:879px; top:45px; width:30px; height:19px; "/>
- <button id="btnselect" class="btn2_letter9" style="left:1032px; top:444px; width:119px; height:19px; ">
- <caption>전체/전체선택 취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var liRow = grd_goodreq.fixedRows; liRow < grd_goodreq.rows ; liRow++)
- {
- //fCheckAprv( (liRow - grd_goodreq.fixedRows + 1) , "false");
-
- ////////////////////////////////////////////////////
- // 일괄처리는 발주상태가 발주중인것만 처리한다.
- ///////////////////////////////////////////////////
- if (grd_goodreq.valueMatrix(liRow,grd_goodreq.colRef("acptflag")) != "Y" )
- {
- if(grd_goodreq.valueMatrix(liRow,grd_goodreq.colRef("deptaprvyn")) == "Y" )
- {
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvyn" , "N");
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvdd" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvpsnid" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvpsnnm" , "");
- grd_goodreq.rowStatus(liRow - grd_goodreq.fixedRows + 1) = "2";
- }
- else
- {
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvyn" , "Y");
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvdd" , getCurrentDate());
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvpsnid" , getUserInfo("userid"));
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvpsnnm" , getUserInfo("usernm"));
- grd_goodreq.rowStatus(liRow - grd_goodreq.fixedRows + 1) = "2";
- }
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_accept" class="btn2_letter2" style="left:1152px; top:444px; width:42px; height:19px; ">
- <caption>승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSave("TXRSD11101");
- if (model.getValue(gvErrorMsgPath + "/type") != "error" )btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <caption id="caption17" class="cell_1" style="left:0px; top:149px; width:100px; height:23px; vertical-align:middle; ">대/중/소분류</caption>
- <output id="opt_lrgnm" ref="/root/main/goodreq/goodreqlist/lrgnm" class="output_fix" style="left:165px; top:151px; width:103px; height:19px; "/>
- <output id="opt_mdlnm" ref="/root/main/goodreq/goodreqlist/mdlnm" class="output_fix" style="left:334px; top:151px; width:103px; height:19px; "/>
- <output id="opt_smlnm" ref="/root/main/goodreq/goodreqlist/smlnm" class="output_fix" style="left:503px; top:151px; width:103px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:0px; top:387px; width:100px; height:53px; vertical-align:middle; ">청구사유</caption>
- <caption id="caption15" class="cell_1" style="left:0px; top:125px; width:100px; height:23px; vertical-align:middle; ">자산코드</caption>
- <input id="ipt_fixasetcd" ref="/root/main/goodreq/goodreqlist/fixasetcd" class="input_fix" style="left:102px; top:127px; width:114px; height:19px; "/>
- <input id="ipt_lrgcd" ref="/root/main/goodreq/goodreqlist/lrgcd" class="input_s_essential" disabled="true" style="left:128px; top:151px; width:36px; height:19px; "/>
- <input id="ipt_mdlcd" ref="/root/main/goodreq/goodreqlist/mdlcd" class="input_s_essential" disabled="true" style="left:296px; top:151px; width:36px; height:19px; "/>
- <input id="ipt_smlcd" ref="/root/main/goodreq/goodreqlist/smlcd" class="input_essential" disabled="true" style="left:465px; top:151px; width:36px; height:19px; "/>
- <switch id="swh_select" style="left:610px; top:125px; width:585px; height:310px; ">
- <case id="cse_lrgcd" selected="true" style="left:0px; top:0px; width:583px; height:329px; ">
- <datagrid id="grd_mdllist" nodeset="/root/main/list/mdl/mdllist" allowuserresize="false" caption="중분류코드^중분류명^계정코드(입고)^계정코드(입고)^계정코드(비용)^계정코드(비용)^물품구분^대분류코드^최초등록자ID^최초등록일시^최종등록자ID^최종등록일시" colsep="^" colwidth="6, 135, 100, 120, 100, 120, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:196px; top:3px; width:190px; height:301px; ">
- <col class="input_essential" disabled="true" ref="mdlcd" type="input" visibility="hidden"/>
- <col ref="mdlnm" type="output"/>
- <col ref="winacnt" visibility="hidden"/>
- <col ref="winacntnm" visibility="hidden"/>
- <col ref="amtacnt" visibility="hidden"/>
- <col ref="amtacntnm" visibility="hidden"/>
- <col ref="instcd" type="output" visibility="hidden"/>
- <col ref="goodflag" type="output" visibility="hidden"/>
- <col ref="lrgcd" type="output" visibility="hidden"/>
- <col ref="fstrgstrid" type="output" visibility="hidden"/>
- <col ref="fstrgstdt" type="output" visibility="hidden"/>
- <col ref="lastupdtrid" type="output" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- model.setValue("/root/send/lrgcd/mdlcd" , grd_mdllist.valueMatrix(grd_mdllist.row, grd_mdllist.colRef("mdlcd")));
- submit("TRRSD11106");
- grd_mdllist.dispatch("onmouseup");
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" ||
- // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" ||
- // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y" ) fMovecd("grd_mdllist");
- if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" || (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y"))
- {
-
- }else{
- fMovecd("grd_mdllist");
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_smllist" nodeset="/root/main/list/sml/smllist" allowuserresize="false" caption="소분류코드^소분류명^계정코드(입고)^계정코드(입고)^기관코드^물품구분^대분류코드^중분류코드^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="10, 144, 100, 134, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:392px; top:3px; width:191px; height:301px; ">
- <col class="input_essential" disabled="true" ref="smlcd" type="input" visibility="hidden"/>
- <col ref="smlnm" type="output"/>
- <col ref="winacnt" visibility="hidden"/>
- <col ref="winacntnm" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" ||
- // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" ||
- // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y" ) fMovecd("grd_smllist");
- if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" || (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y"))
- {
-
- }else{
- fMovecd("grd_smllist");
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_lrglist" nodeset="/root/main/list/lrg/lrglist" allowuserresize="false" caption="대분류코드^대분류명^주관부서^주관부서^계정코드(입고)^계정코드(입고)^계정코드(비용)^계정코드(비용)^기관코드^물품구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="6, 103, 130, 135, 130, 135, 130, 135, 100, 100, 130, 120, 150, 120" dataheight="25" extendlastcol="scroll" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:3px; width:190px; height:301px; ">
- <col class="input_essential" disabled="true" ref="lrgcd" type="input" visibility="hidden"/>
- <col ref="lrgnm" type="output"/>
- <col ref="mainmngtdeptcd" visibility="hidden"/>
- <col ref="mainmngtdeptnm" visibility="hidden"/>
- <col ref="winacnt" visibility="hidden"/>
- <col ref="winacntnm" visibility="hidden"/>
- <col ref="amtacnt" visibility="hidden"/>
- <col ref="amtacntnm" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="fstrgstrid" type="output" visibility="hidden"/>
- <col ref="fstrgstdt" type="output" visibility="hidden"/>
- <col ref="lastupdtrid" type="output" visibility="hidden"/>
- <col ref="lastupdtdt" type="output" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- model.setValue("/root/send/lrgcd/lrgcd" , grd_lrglist.valueMatrix(grd_lrglist.row, grd_lrglist.colRef("lrgcd")));
- submit("TRRSD11105");
- if(grd_mdllist.rows>1) {
- grd_mdllist.row=1;
- }
- grd_mdllist.dispatch("onrowchanged");
-
- grd_lrglist.dispatch("onmouseup");
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" || (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y"))
- {
-
- }else{
- fMovecd("grd_lrglist");
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="cse_fixasetcd" style="left:0px; top:0px; width:583px; height:329px; ">
- <datagrid id="grd_fixasetcdlist" nodeset="/root/main/list/fixasetcd/fixasetcdlist" caption="대분류^중분류^소분류^품목코드^품목명^규격^모델^구입일자" colsep="^" colwidth="80, 80, 80, 100, 137, 100, 100, 82, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:3px; width:583px; height:303px; ">
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="fixasetcd"/>
- <col ref="goodflaghngnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="windd" format="yyyy/mm/dd"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //[2008.01.23 HBH] 막음.
- // if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" ||
- // (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" ||
- // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y"))
- // {
- // }else{
- // fMovecd("grd_fixasetcdlist");
- // }
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="button5" class="btn_sw" group="tab" selected="true" style="left:753px; top:105px; width:144px; height:22px; ">
- <caption>부서내 비품코드</caption>
- <toggle case="cse_fixasetcd" ev:event="DOMActivate"/>
- </button>
- <button id="button4" class="btn_sw" group="tab" selected="true" style="left:610px; top:105px; width:144px; height:22px; ">
- <caption>분류코드</caption>
- <toggle case="cse_lrgcd" ev:event="DOMActivate"/>
- </button>
- <caption id="caption16" class="cell_1" style="left:101px; top:149px; width:25px; height:23px; vertical-align:middle; ">대</caption>
- <caption id="caption18" class="cell_1" style="left:269px; top:149px; width:25px; height:23px; vertical-align:middle; ">중</caption>
- <caption id="caption19" class="cell_1" style="left:438px; top:149px; width:25px; height:23px; vertical-align:middle; ">소</caption>
- <button id="btn_search_cd" class="btn2_letter2" style="left:1152px; top:105px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //hbh
- if(swh_select.selectedIndex == 0)
- {
- misfGridInit(grd_lrglist);
- misfGridInit(grd_mdllist);
- misfGridInit(grd_smllist);
-
- model.setValue("/root/send/lrgcd/goodflag" , model.getValue(ipt_goodflag.attribute("ref")));
- model.setValue("/root/send/lrgcd/instcd" , model.getValue(opt_instcd.attribute("ref")));
- submit("TRRSD11104");
-
- if(grd_lrglist.rows>1) {
- grd_lrglist.row=1;
- }
- grd_lrglist.dispatch("onrowchanged");
- }
- else
- {
- misfGridInit(grd_fixasetcdlist);
-
- model.setValue("/root/send/fixasetcd/goodflag" , model.getValue(ipt_goodflag.attribute("ref")));
- model.setValue("/root/send/fixasetcd/instcd" , model.getValue(opt_instcd.attribute("ref")));
- model.setValue("/root/send/fixasetcd/cntrdeptcd" , model.getValue(ipt_reqdeptcd_search.attribute("ref")));
- submit("TRRFC00201");
- }
- ]]>
- </script>
- </button>
- <line id="line4" class="line_1" style="x1:610px; y1:96px; x2:1195px; y2:96px; "/>
- <caption id="caption10" class="tit_2" style="left:615px; top:81px; width:100px; height:14px; ">비품코드 조회</caption>
- <caption id="caption20" class="cell_1" style="left:194px; top:291px; width:65px; height:23px; vertical-align:middle; ">예산계정</caption>
- <caption id="caption21" class="cell_1" style="left:0px; top:363px; width:100px; height:23px; vertical-align:middle; ">연구과제</caption>
- <input id="ipt_stdysubjnm" ref="/root/main/goodreq/goodreqlist/stdysubjnm" class="input_fix" appearance="input" style="left:200px; top:365px; width:101px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_stdysubjnm.value.length == 0)
- {
- ipt_stdysubjno.value = "";
- }else{
- // var fprojectyn = model.getValue( cmb_bugtcd.choices.itemset.attribute("nodeset") + "["+ (cmb_bugtcd.focusIndex+1) +"]/projectyn");
- rszfValidationCheck("TRRSD00261", "studylist", "instcd,refcond,stdysubjnm,reqdd",
- opt_instcd.value + ",stdysubjnm," + ipt_stdysubjnm.value + "," + ipt_reqdd.value + ",N", "", "stdysubjno,stdysubjnm",
- ipt_stdysubjnm, "SPRSD00260", "instcd,reqdd,projectyn","opt_instcd,ipt_reqdd");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_stdysubjnm" class="icon_search" style="left:182px; top:366px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var fprojectyn = model.getValue( cmb_bugtcd.choices.itemset.attribute("nodeset") + "["+ (cmb_bugtcd.focusIndex+1) +"]/projectyn");
- rszfOpenPopUpListByWndName(ipt_stdysubjno,"","stdysubjno,stdysubjnm","SPRSD00260","instcd,reqdd","opt_instcd,ipt_reqdd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_stdysubjno" ref="/root/main/goodreq/goodreqlist/stdysubjno" class="input_search" maxlength="4" style="left:102px; top:365px; width:77px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_stdysubjno.value.length == 0)
- {
- ipt_stdysubjnm.value = "";
- }else{
- // var fprojectyn = model.getValue( cmb_bugtcd.choices.itemset.attribute("nodeset") + "["+ (cmb_bugtcd.focusIndex+1) +"]/projectyn");
- rszfValidationCheck("TRRSD00261", "studylist", "instcd,refcond,stdysubjno,reqdd",
- opt_instcd.value + ",stdysubjno," + ipt_stdysubjno.value + "," + ipt_reqdd.value, "", "stdysubjno,stdysubjnm",
- ipt_stdysubjno, "SPRSD00260", "instcd,reqdd","opt_instcd,ipt_reqdd");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <output id="opt_instcd" ref="/root/send/goodreq/instcd" class="output_fix" visibility="hidden" style="left:1070px; top:45px; width:25px; height:19px; "/>
- <output id="opt_instcdnm" ref="/root/send/goodreq/instcdnm" class="output_fix" visibility="hidden" style="left:990px; top:45px; width:70px; height:19px; "/>
- <caption id="cap_cntrdeptcd" class="cell_1" style="left:304px; top:243px; width:88px; height:22px; vertical-align:middle; ">청구부서</caption>
- <caption id="cap_mngtdeptcd" class="cell_1" style="left:0px; top:267px; width:100px; height:23px; vertical-align:middle; ">사용부서</caption>
- <input id="ipt_cntrdeptcdnm" ref="/root/main/goodreq/goodreqlist/cntrdeptcdnm" class="input_fix" appearance="input" style="left:495px; top:244px; width:110px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_cntrdeptcdnm.value.length == 0)
- ipt_cntrdeptcd.value = "";
- else
- misfValidationCheck("02", "", "cntrdeptcd,cntrdeptcdnm", opt_deptinstcd.value, "instcd" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_cntrdeptcd" ref="/root/main/goodreq/goodreqlist/cntrdeptcd" class="input_fix" style="left:393px; top:244px; width:77px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_cntrdeptcd.value.length == 0)
- ipt_cntrdeptcdnm.value = "";
- else
- misfValidationCheck("02", "", "cntrdeptcd,cntrdeptcdnm", opt_deptinstcd.value, "instcd" );
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_cntrdeptcd" class="icon_search" style="left:477px; top:244px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "cntrdeptcd,cntrdeptcdnm";
- misfOpenPopUpList("02", ipt_cntrdeptcd,"", recv_list, opt_deptinstcd.value, "instcd") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_mngtdeptcdnm" ref="/root/main/goodreq/goodreqlist/mngtdeptcdnm" class="input_fix" appearance="input" style="left:194px; top:269px; width:106px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_mngtdeptcdnm.value.length == 0)
- ipt_mngtdeptcd.value = "";
- else
- misfValidationCheck("02", "", "mngtdeptcd,mngtdeptcdnm", opt_deptinstcd.value, "instcd" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_mngtdeptcd" ref="/root/main/goodreq/goodreqlist/mngtdeptcd" class="input_fix" style="left:102px; top:269px; width:73px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_mngtdeptcd.value.length == 0)
- ipt_mngtdeptcdnm.value = "";
- else
- misfValidationCheck("02", "", "mngtdeptcd,mngtdeptcdnm", opt_deptinstcd.value, "instcd" );
-
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_mngtdeptcd" class="icon_search" style="left:177px; top:271px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "mngtdeptcd,mngtdeptcdnm";
- misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list, opt_deptinstcd.value, "instcd") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption24" style="left:225px; top:45px; width:15px; height:20px; ">~</caption>
- <input id="ipt_reqtodd_search" ref="/root/send/goodreq/reqtodd" class="input_s_essential" inputtype="date" style="left:240px; top:45px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption25" class="cell_1" style="left:248px; top:101px; width:59px; height:23px; vertical-align:middle; ">청구일자</caption>
- <caption id="cap_reqtel" class="cell_1" style="left:304px; top:220px; width:88px; height:22px; vertical-align:middle; ">부서 연락처</caption>
- <input id="ipt_reqtel" ref="/root/main/goodreq/goodreqlist/reqtel" style="left:393px; top:221px; width:212px; height:19px; text-align:right; "/>
- <textarea id="txt_cmt" ref="/root/main/goodreq/goodreqlist/cmt" style="left:102px; top:390px; width:503px; height:50px; "/>
- <select1 id="rdo_instcd" ref="/root/send/goodreq/view/viewinstcd" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:100px; top:18px; width:239px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fAllControlDisabled('Y')
- fInstcdCheck();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_studyinstcd" ref="/root/send/goodreq/studyinstcd" appearance="minimal" style="left:500px; top:18px; width:170px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue(opt_deptinstcd.attribute("ref"), cmb_studyinstcd.value);
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="cap_studyinstcd" class="search_name" style="left:415px; top:19px; width:99px; height:17px; ">연구기관 :</caption>
- <output id="opt_deptinstcd" ref="/root/send/goodreq/view/deptinstcd" visibility="hidden" style="left:930px; top:45px; width:45px; height:19px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:313px; x2:605px; y2:313px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:361px; x2:605px; y2:361px; "/>
- <line id="line13" class="line_2" style="x1:0px; y1:385px; x2:605px; y2:385px; "/>
- <select1 id="cmb_groupbugt" ref="/root/send/goodreq/groupbugt" class="combo_default" appearance="minimal" style="left:262px; top:293px; width:128px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/rscmbgcdlist">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // fAcctDataClear();
-
- // if (cmb_groupbugt.value !="")
- // {
- // model.setValue("/root/send/goodreq/deptcd" , cmb_reqdeptcd.value);
- // model.setValue("/root/send/goodreq/supacntcd4", cmb_groupbugt.value);
- // submit("TRRSD00414");
- // }
-
- // model.refresh();
-
- // if(rdo_instcd.value != '103')
- // {
- // rszfComboBugtList(cmb_bugtcd,rdo_instcd.value, '', '3');
- // }else{
- // rszfComboMarchBugtList(cmb_bugtcd,rdo_instcd.value, cmb_groupbugt.value, '3', ipt_bugtyy.value, ipt_cntrdeptcd.value);
- // }
-
- // cmb_bugtcd.dispatch("xforms-value-changed");
-
- // fDisabledComboflag();
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="cell_1" style="left:0px; top:315px; width:100px; height:23px; vertical-align:middle; ">프로젝트명</caption>
- <output id="opt_projectnm" ref="/root/main/goodreq/goodreqlist/projectnm" class="output_fix" style="left:102px; top:317px; width:301px; height:19px; "/>
- <input id="ipt_bugtcd" ref="/root/main/goodreq/goodreqlist/bugtcd" visibility="hidden" style="left:410px; top:75px; width:80px; height:19px; "/>
- <input id="ipt_bugtnm" ref="/root/main/goodreq/goodreqlist/bugtnm" style="left:415px; top:293px; width:190px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ipt_stdysubjno.value = '';
- ipt_stdysubjnm.value = '';
- ]]>
- </script>
- </input>
- <button id="btn_bugtcd" class="icon_search" style="left:395px; top:294px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //기관코드를 선택할때 그 기관에 맞는 예산을 가져오는데 의과학연구원같은경우 성의교정의 예산을 쓸수있게 요청함 - 성의교정 여서경팀장 20100218
- if(rdo_instcd.value=='032'){
- rszfOpenPopUpListByWndName(ipt_bugtnm,"","bugtcd,bugtnm,projectid,projectnm,totamt,bugtexpcamt,useamt,remamt,projectyn","SPRSD00340","instcd,reqdd,deptcd,supacntcd4", '103' + "," + ipt_reqdd.value + "," + ipt_reqdeptcd.value + "," + cmb_groupbugt.value);
- }else{
- rszfOpenPopUpListByWndName(ipt_bugtnm,"","bugtcd,bugtnm,projectid,projectnm,totamt,bugtexpcamt,useamt,remamt,projectyn","SPRSD00340","instcd,reqdd,deptcd,supacntcd4", rdo_instcd.value + "," + ipt_reqdd.value + "," + ipt_reqdeptcd.value + "," + cmb_groupbugt.value);
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_projectid" ref="/root/main/goodreq/goodreqlist/projectid" visibility="hidden" style="left:325px; top:75px; width:80px; height:19px; "/>
- <caption id="cap_fundorigin" class="cell_1" style="left:304px; top:195px; width:88px; height:23px; vertical-align:middle; ">자금출처</caption>
- <select1 id="cmb_fundorigin" ref="/root/main/goodreq/goodreqlist/fundorigin" class="combo_default" disabled="true" appearance="minimal" style="left:393px; top:199px; width:212px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="button46" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckSaveData() == false)return;
- if ( grd_goodreq.rows - grd_goodreq.fixedRows == 0) {
- misfGridInit(grd_goodreq);
- misfGridIUD(grd_goodreq, "A");
- model.refresh();
- }
- misfGridRowStatusChange(grd_goodreq,"/root/main/list/goodreq","/root/main/goodreq");
- model.refresh();
- misfSave("TXRSD11101");
- if (model.getValue(gvErrorMsgPath + "/type") != "error" )btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter5" style="left:0; top:3px; width:92px; height:22px; ">
- <caption>청구서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.copyNode("/root/main/printdata/data", grd_goodreq.attribute("nodeset") + "[" + grd_goodreq.row + "]");
- model.removenode("/root/main/printdata/data/instnm");
- model.makeNode("/root/main/printdata/data/instnm");
- model.setValue("/root/main/printdata/data/instnm", opt_instcdnm.value);
-
- exeReportPreview("RPRSD04701", "XMLSTR");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|