1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080 |
- <?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>
- <psgereq>
- <psgereqlist/>
- </psgereq>
- <lrg>
- <lrglist/>
- </lrg>
- <mdl>
- <mdllist/>
- </mdl>
- <sml>
- <smllist/>
- </sml>
- <fixasetcd>
- <fixasetcdlist/>
- </fixasetcd>
- </list>
- <goodreq>
- <goodreqlist>
- <reqdd/>
- <reqno/>
- <reqpsnnm/>
- <reqdeptnm/>
- <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/>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <smlnm/>
- <fixasetcd/>
- <stdysubjnm/>
- <suplplcecd/>
- <suplplcenm/>
- <wncurncyamt/>
- <plceordamt/>
- <cntrdeptcd/>
- <cntrdeptcdnm/>
- <mngtdeptcd/>
- <mngtdeptcdnm/>
- <reqtel/>
- <studyinstcd/>
- <groupbugt/>
- <acpttype/>
- </goodreqlist>
- </goodreq>
- </main>
- <init>
- <purcacptflag>
- <label>승인</label>
- <value>Y</value>
- <label>부결</label>
- <value>C</value>
- <label>미승인</label>
- <value>N</value>
- </purcacptflag>
- <instcdgood/>
- <acpttype>
- <label>정상구매</label>
- <value>1</value>
- <label>자제제작</label>
- <value>2</value>
- <label>재고지급</label>
- <value>3</value>
- </acpttype>
- <acptflag>
- <label>미접수</label>
- <value>N</value>
- <label>접수</label>
- <value>Y</value>
- <label>종료</label>
- <value>C</value>
- </acptflag>
- </init>
- <send>
- <save>
- <goodreqlist/>
- </save>
- <goodreq>
- <instcd/>
- <reqdeptcd/>
- <reqdeptnm/>
- <reqflag/>
- <reqfrdd/>
- <deliveprcsflag/>
- <retrmaxreqnoyn/>
- <reqtodd/>
- <acptflag/>
- <studyinstcd/>
- <reqtempinstcd/>
- <checkinstcd/>
- <groupbugt/>
- </goodreq>
- <psgereq>
- <instcd/>
- <reqflag/>
- <reqdd/>
- <reqno/>
- <reqseqno/>
- </psgereq>
- <lrgcd>
- <lrgcd/>
- <mdlcd/>
- <instcd/>
- <goodflag/>
- </lrgcd>
- <fixasetcd>
- <instcd/>
- <goodflag/>
- <cntrdeptcd/>
- </fixasetcd>
- </send>
- </root>
- </instance>
- <bind id="plceordamt" ref="/root/main/goodreq/goodreqlist/plceordamt" calculate="../wncurncyamt *../reqqty"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fCheckAuth();
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSD11102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/goodreq/goodreqlist" resultref="/root/main/list/goodreqno"/>
- <submission id="TXRSD11101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TRRSD11103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/psgereq" resultref="/root/main/list/psgereq"/>
- <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="TRRSD05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/goodreq"/>
- </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("Z0007,R0032","cmb_instcd_search,cmb_requnit");
- misfComboComCdListMulti("R0032,R0246,Z0007,R0316","cmb_requnit,cmb_workflag,cmb_studyinstcd,cmb_fundorigin");
- rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag_search);
-
- rszfUserReqInstList(cmb_instcd_search,getUserInfo("userid"),"3","B"); // preqpgmgubun : '3' : 비품., 'C' :청구
- //rszfComboAppendBlankChild("cmb_deliveprceflag");
- misfGridInit(grd_goodreq);
- misfGridInit(grd_psgelist);
-
- misfGridInit(grd_lrglist);
- misfGridInit(grd_mdllist);
- misfGridInit(grd_smllist);
-
- misfGridInit(grd_fixasetcdlist);
-
- fAllControlDisabled('Y');
-
- misfMsterDetailSet(grd_goodreq,null, "TRRSD05101" ,"Y");
- misfMsterDetailSet(grd_psgelist,grd_goodreq, "TRRSD11103" ,"Y");
-
-
- addComboItem( "cmb_studyinstcd", "전체", "", "above");
-
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
-
- model.setValue(ipt_reqfrdd_search.attribute("ref") , cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
- model.setValue(ipt_reqtodd_search.attribute("ref") , curdate);
-
- //getUserInfo("dutplceinstcd")
- //if(cmb_instcd.length > 0) cmb_instcd.selectedindex= 0;
- model.setValue(cmb_instcd_search.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- //model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
- //model.setValue(ipt_reqdeptcd_search.attribute("ref") , "4080102000");
- //model.setValue(ipt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
- if(cmb_instcd_search.value=='032'){
- rszfComboBgcdBugtList("cmb_groupbugt", '103', '3');
- }else{
- rszfComboBgcdBugtList("cmb_groupbugt", cmb_instcd_search.value, '3');
- }
- // if(cmb_instcd_search.value != '103')
- // {
- // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, '', '3');
- // }else{
- // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, cmb_groupbugt.value, '3');
- // }
-
-
-
-
- // hidden
- model.setValue(cmb_reqflag_search.attribute("ref") , "D");
- model.setValue(ipt_goodflag.attribute("ref") , "G");
- model.setValue(opt_instcdgood.attribute("ref") , "103"); // [2008.01.28 HBH] 거래처는 성의교정꺼루.
-
- fSetReqAuth();
-
- cmb_instcd_search.dispatch("xforms-value-changed");
-
- btn_search.dispatch("DOMActivate");
-
- model.refresh();
- }
-
- // 관리부서, 귀속부서, 설치장소 조회시.. Default 값 기관코드를 넘겨주게 됩니다. 그 기관코드의 값을 설정.
- function fInstcdCheckValue()
- {
- if(cmb_instcd_search.value == '103' || cmb_instcd_search.value == '032')
- {
- opt_checkinstcd.value = cmb_instcd_search.value;
- }else{
- opt_checkinstcd.value = grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("studyinstcd"));
- }
- }
-
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- //btn_save.disabled = !checkAuth("X") ;
- }
- function fSetControlDisabled(pDisabled)
- {
- ipt_reqno.disabled = pDisabled;
- }
-
- function fSetReqAuth()
- {
- // 궈한체크로직이 구매부서기준으로 체크해야한다. 잘못되어 있었다...HBH
- rszfGetReqFlagRurcAuthInfo(model.getValue(cmb_instcd_search.attribute("ref")), model.getValue(cmb_reqflag_search.attribute("ref")) , getUserInfo("dutplcecd"), getUserInfo("userid"));
- //rszfGetPurcReqAuthInfo(model.getValue(cmb_instcd.attribute("ref")), model.getValue(cmb_reqflag.attribute("ref")) , getUserInfo("dutplcecd"), getUserInfo("userid"));
-
- //if(rszfGetPurcAuthInfoByCond("reqauth") != "Y")
-
- if ( model.getValue("/root/init/reqflagpurcarth/reqflagpurcarthlist/purcarthyn") == "Y")
- {
- //btn_saverece.disabled = true;
- brn_all_check.disabled = false;
- btn_purcaprv.disabled = false;
- }
- else
- {
- brn_all_check.disabled = true;
- btn_purcaprv.disabled = true;
- }
-
- model.refresh();
- }
-
-
-
- //예산 계정 Disabled 유무 설정!!
- function fDisabledComboflag()
- {
- if( cmb_instcd_search.value == '103' || cmb_instcd_search.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_bugtyy.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";
-
- ipt_acptcharid.disabled="true";
- ipt_acptdd.disabled="true";
-
- cmb_acptflag.disabled="true";
- ipt_adjtqty.disabled="true";
- ipt_adjtrsn.disabled="true";
-
- ipt_cmt.disabled="true";
- cmb_groupbugt.disabled="true";
- // cmb_bugtcd.disabled="true";
- ipt_stdysubjno.disabled="true";
- ipt_suplplcecd.disabled="true";
- btn_suplplcecd.disabled="true";
- btn_prodcmpycd.disabled="true";
-
- btn_installplcecd.disabled="true";
- btn_stdysubjnm.disabled="true";
-
- ipt_stdysubjnm.disabled="true";
- ipt_installplcenm.disabled="true";
- ipt_prodcmpynm.disabled="true";
- ipt_suplplcenm.disabled="true";
-
- ipt_wncurncyamt.disabled="true";
- ipt_installplcecd.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_bugtnm.disabled="true";
- btn_bugtcd.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_bugtyy.disabled ="false";
-
- // ipt_attfilename.disabled ="false";
- ipt_attfilepathnm.disabled ="false";
-
- btn_addfile.disabled="false";
- ipt_acptcharid.disabled="false";
- ipt_acptdd.disabled="false";
-
- cmb_acptflag.disabled="false";
- ipt_adjtqty.disabled="false";
- ipt_adjtrsn.disabled="false";
-
- // cmb_groupbugt.disabled="false";
- // cmb_bugtcd.disabled="false";
- fDisabledComboflag();
-
- ipt_cmt.disabled="false";
- ipt_stdysubjno.disabled="false";
- ipt_suplplcecd.disabled="false";
- btn_suplplcecd.disabled="false";
- btn_prodcmpycd.disabled="false";
-
- btn_installplcecd.disabled="false";
- btn_stdysubjnm.disabled="false";
-
- ipt_stdysubjnm.disabled="false";
- ipt_installplcenm.disabled="false";
- ipt_prodcmpynm.disabled="false";
- ipt_suplplcenm.disabled="false";
-
- ipt_wncurncyamt.disabled="false";
- ipt_installplcecd.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_bugtnm.disabled="false";
- btn_bugtcd.disabled="false";
- }
- model.refresh();
- }
- function fMovecd(pgrid_name)
- {
- if(model.GetValue(cmb_workflag.attribute("ref")).length == 0)
- {
- messageBox("입력오류 " ,"E008"); // 입력오류입니다.
- //model.setFocus("cmb_instcd_search");
- return;
- }
- else if(model.GetValue(ipt_deliveprcsflag.attribute("ref")) != "1")
- {
- messageBox("'청구'진행상태를 " ,"E003"); // 진행상태를 초과하였습니다.
- //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(model.GetValue(cmb_workflag.attribute("ref")).length != "2")
- // {
- // messageBox("부서내 자산코드 선택은 '노후교체'를 " ,"C002");
- // //model.setFocus("cmb_instcd_search");
- // return;
- // }
-
- 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");
- grd_goodreq.row = 1;
- model.copyNode("/root/main/goodreq/goodreqlist" ,grd_goodreq.nodeset + "["+ grd_goodreq.row + "]");
-
- } 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(cmb_instcd_search.attribute("ref")));
-
- }
-
- /* 청구상태가 아니면 막는다*/
- for(var fRow = grd_goodreq.fixedRows; fRow < grd_goodreq.rows; fRow++)
- {
- if(grd_goodreq.valueMatrix(fRow, grd_goodreq.colRef("deliveprcsflag")) == "1")
- {
- grd_goodreq.isReadOnly(fRow,grd_goodreq.colRef("purcacptflag")) = false;
- }
- else
- {
- grd_goodreq.isReadOnly(fRow,grd_goodreq.colRef("purcacptflag")) = true;
- }
- }
-
- model.refresh();
- }
-
- function fSaveDataSetting()
- {
- model.setValue("/root/main/goodreq/goodreqlist/instcd" , model.getValue(cmb_instcd_search.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 fCheckRetrieveData(pmsg)
- {
- if(model.getValue(cmb_instcd_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd_search");
- }
- 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_reqfrdd_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("청구시작일자를 " ,"C001");
- model.setFocus("ipt_reqfrdd_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(cmb_instcd_search.attribute("ref")).length== 0 )
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd_search");
- 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_reqfrdd_search.attribute("ref")).length== 0 )
- {
- messageBox("청구시작일자를 " ,"C001");
- model.setFocus("ipt_reqfrdd_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_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;
- }
- if(model.getValue(ipt_suplplcecd.attribute("ref")).length== 0 )
- {
- messageBox("거래처를 " ,"C001");
- model.setFocus("btn_suplplcecd");
- return false;
- }
-
- if(model.getValue(ipt_installplcecd.attribute("ref")).length== 0 )
- {
- messageBox("설치장소를 " ,"C001");
- model.setFocus("btn_installplcecd");
- return false;
- }
-
- // 접수이면 지급기준을 입력받아야된다.
- if(model.getValue(cmb_acptflag.attribute("ref"))== "Y" )
- {
- if ( model.getValue(cmb_acpttype.attribute("ref")).length== 0 )
- {
- messageBox("지급기준을 " ,"C001");
- model.setFocus("cmb_acpttype");
- return false;
- }
-
- if(model.getValue(ipt_wncurncyamt.attribute("ref")).length== 0
- || model.getValue(ipt_wncurncyamt.attribute("ref")) == 0 )
- {
- messageBox("단가를 " ,"C001");
- model.setFocus("ipt_wncurncyamt");
- return false;
- }
- }
- return true;
- }
-
- function fSettingPurcRece ()
- {
- for(var liRow = grd_goodreq.fixedRows ; liRow < grd_goodreq.rows ; liRow++)
- {
- if ( model.getValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/prcsstat") == "1" )
- {
- if ( model.getValue( grd_goodreq.attribute("nodeset")+"["+ (liRow - grd_goodreq.fixedRows + 1) +"]/acptflag") == "Y" )
- {
- if(model.getValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/purcacptflag") == "Y")
- {
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/purcacptflag","N");
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/purcacpdd","");
- grd_reqeqmtlist.rowStatus(liRow) = "2";
- }
- /*------------------------------------------------------------------------------------------------
- * 부결 제외
- ------------------------------------------------------------------------------------------------*/
- else if (model.getValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/purcacptflag") != "Y" ||
- (model.getValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/purcacptflag") != "C") )
-
- {
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/purcacptflag" ,"Y");
- model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/purcacptdd",getCurrentDate());
- grd_reqeqmtlist.rowStatus(liRow) = "2";
- }
- }
- }
- }
- model.refresh();
- }
-
- ]]>
- </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:1195px; height:14px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:157px; height:14px; ">비품청구접수(성의교정)</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <line id="line29" class="line_2" style="x1:0px; y1:471px; x2:605px; y2:471px; "/>
- <line id="line28" class="line_2" style="x1:0px; y1:449px; x2:605px; y2:449px; "/>
- <line id="line16" class="line_2" style="x1:0px; y1:401px; x2:605px; y2:401px; "/>
- <line id="line27" class="line_2" style="x1:0px; y1:637px; x2:605px; y2:637px; "/>
- <line id="line15" class="line_2" style="x1:0px; y1:377px; x2:605px; y2:377px; "/>
- <line id="line26" class="line_2" style="x1:0px; y1:613px; x2:605px; y2:613px; "/>
- <line id="line25" class="line_2" style="x1:0px; y1:661px; x2:605px; y2:661px; "/>
- <line id="line24" class="line_2" style="x1:0px; y1:542px; x2:605px; y2:542px; "/>
- <line id="line23" class="line_2" style="x1:0px; y1:518px; x2:605px; y2:518px; "/>
- <line id="line22" class="line_2" style="x1:0px; y1:589px; x2:605px; y2:589px; "/>
- <line id="line21" class="line_2" style="x1:0px; y1:425px; x2:605px; y2:425px; "/>
- <line id="line31" class="line_3" style="x1:0px; y1:685px; x2:605px; y2:685px; "/>
- <line id="line30" class="line_2" style="x1:0px; y1:495px; x2:605px; y2:495px; "/>
- <line id="line5" class="line_3" style="x1:0px; y1:737px; x2:605px; y2:737px; "/>
- <line id="line14" class="line_2" style="x1:0px; y1:713px; x2:605px; y2:713px; "/>
- <caption id="caption9" class="tit_2" style="left:5px; top:335px; 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="64, 72, 44, 74, 79, 83, 82, 194, 108, 65, 76, 48, 55, 45, 66, 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" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:99px; width:1195px; height:226px; ">
- <col ref="reqdd" format="yyyymmdd"/>
- <col ref="reqdeptnm"/>
- <col ref="deliveprcsflagnm" style="text-align:center; "/>
- <col ref="workflagnm"/>
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="prodcmpynm"/>
- <col ref="reqqty" format="#,###" style="text-align:right; "/>
- <col ref="acptflagnm"/>
- <col ref="adjtqty" format="#,###" style="text-align:right; "/>
- <col ref="purcacptflag" type="combo" style="left:1083px; top:23px; width:80px; height:23px; ">
- <choices>
- <itemset nodeset="/root/init/purcacptflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- // 청구진행상태 확인
- // 접수진행상태 확인
-
- if ( model.getValue( grd_goodreq.attribute("nodeset")+"["+ (grd_goodreq.Row - grd_reqeqmtlist.fixedRows + 1) +"]/prcsstat") != "1" ||
- model.getValue( grd_goodreq.attribute("nodeset")+"["+ (grd_goodreq.Row - grd_goodreq.fixedRows + 1) +"]/acptflag") != "Y" )
- {
-
- messageBox("청구진행상태 및 접수 상태를 확인하세요 구매승인상태변경을 하실수 ","E001");
- if(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedRows + 1)+ "]/purcacptflag") == "Y")
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedRows + 1)+ "]/purcacptflag","N");
- grd_goodreq.rowStatus(grd_goodreq.Row) = "0";
- }
- else
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedRows + 1)+ "]/purcacptflag" ,"Y");
- grd_goodreq.rowStatus(grd_goodreq.Row) = "0";
- }
- }
- else model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedRows + 1)+ "]/purcacptdd" ,getCurrentDate());
-
- model.refresh();
- ]]>
- </script>
- </col>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <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="delivedeptcd" 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="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="workflag" visibility="hidden"/>
- <col ref="reqpsnnm" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="makeyn" visibility="hidden"/>
- <col ref="deptaprvyn" visibility="hidden"/>
- <col ref="acptflag" visibility="hidden"/>
- <col ref="stdysubjnm" visibility="hidden"/>
- <col ref="installplcenm" 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="studyinstcd" visibility="hidden"/>
- <col ref="acpttype" visibility="hidden"/>
- <col ref="groupbugt" visibility="hidden"/>
- <col ref="projectid" visibility="hidden"/>
- <col ref="projectnm" visibility="hidden"/>
- <col ref="totamt" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="bugtexpcamt" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="bugtexecamt" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="remainder" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="fundorigin" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
-
- if( grd_goodreq.row >= grd_goodreq.fixedRows )
- {
- misfGridInit(grd_psgelist);
-
- 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) + "]");
-
- model.setValue("/root/send/psgereq/instcd" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("instcd")));
- model.setValue("/root/send/psgereq/reqflag" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqflag")));
- model.setValue("/root/send/psgereq/reqdd" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdd")));
- model.setValue("/root/send/psgereq/reqno" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqno")));
- model.setValue("/root/send/psgereq/reqseqno" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqseqno")));
-
- misfMsterDetailRetrieve();
-
- fAllControlDisabled("N");
- if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "Y" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "C") fAllControlDisabled("Y"); //승인,부결되었으면.
- else if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deliveprcsflag")) != "1") fAllControlDisabled("Y"); //발주되었으면.
- }
-
- // 구매승인 여부에 따른 권한 설정.
- if(grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "Y" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "C")
- {
- button13.disabled = true;
- button12.disabled = true;
- grd_psgelist.disabled = true;
-
- // for(var fRow = grd_psgelist.fixedRows; fRow < grd_psgelist.rows -1; fRow++)
- // {
- // for(var fCol = grd_psgelist.fixedCols; fCol < grd_psgelist.cols - 1; fCol++)
- // {
- // grd_psgelist.isReadOnly(fRow, fCol) = true;
- // }
- // }
- }else
- {
- button13.disabled = false;
- button12.disabled = false;
- grd_psgelist.disabled = false;
- }
-
- // 관리부서, 귀속부서, 설치장소 조회시.. Default 값 기관코드를 넘겨주게 됩니다. 그 기관코드의 값을 설정.
- fInstcdCheckValue();
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_goodreq.valueMatrix(grd_goodreq.Row,grd_goodreq.colRef("acptflag")) == "N" )
- {
- model.setValue(grd_goodreq.nodeset + "[" + grd_goodreq.Row + "]/acptdd" , "");
- }
- else
- {
- model.setValue(grd_goodreq.nodeset + "[" + grd_goodreq.Row + "]/acptdd" , getCurrentDate());
- //model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/acptdd" , getCurrentDate());
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_goodreq.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:350px; x2:605px; y2:350px; "/>
- <!--</group>-->
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:60px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1124px; top:33px; 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:835px; 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_reqtempinstcd.value, "instcd") ;
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd_search" ref="/root/send/goodreq/instcd" class="combo_s_essential" appearance="minimal" style="left:105px; top:18; width:209px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if( cmb_instcd_search.value == '103' || cmb_instcd_search.value == '032' )
- {
- cmb_groupbugt.value = '';
- // cmb_bugtcd.value = '';
-
- cmb_studyinstcd.value = '';
- cmb_studyinstcd.disabled = true;
-
- ipt_reqdeptcd_search.value = '';
- ipt_reqdeptnm_search.value = '';
-
- if(cmb_instcd_search.value=='032'){
- rszfComboBgcdBugtList("cmb_groupbugt", '103', '3');
- }else{
- rszfComboBgcdBugtList("cmb_groupbugt", cmb_instcd_search.value, '3');
- }
- // if(cmb_instcd_search.value != '103')
- // {
- // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, '', '3');
- // }else{
- // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, cmb_groupbugt.value, '3');
- // }
-
- opt_reqtempinstcd.value = cmb_instcd_search.value;
- model.refresh();
-
- btn_search.dispatch("DOMActivate");
-
- }else{
-
- cmb_groupbugt.value = '';
- // cmb_bugtcd.value = '';
-
- cmb_studyinstcd.disabled = false;
- cmb_studyinstcd.select(0);
-
- ipt_reqdeptcd_search.value = '';
- ipt_reqdeptnm_search.value = '';
-
- rszfComboBgcdBugtList("cmb_groupbugt", cmb_instcd_search.value, '3');
- // if(cmb_instcd_search.value != '103')
- // {
- // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, '', '3');
- // }else{
- // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, cmb_groupbugt.value, '3');
- // }
-
- cmb_studyinstcd.dispatch("xforms-value-changed");
-
- model.refresh();
- }
-
-
-
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:20px; top:19; 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_reqflag_search" ref="/root/send/goodreq/reqflag" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:825px; 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:735px; top:20px; 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_reqtempinstcd.value, "instcd" );
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:650px; top:21px; width:86px; height:17px; ">청구부서 :</caption>
- <input id="ipt_reqdeptnm_search" ref="/root/send/goodreq/reqdeptnm" class="input_fix" appearance="input" style="left:855px; top:20px; width:239px; 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_reqtempinstcd.value, "instcd" );
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption14" class="search_name" style="left:20px; top:45px; width:86px; height:17px; ">청구일자 :</caption>
- <input id="ipt_reqfrdd_search" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:105px; top:44; width:96px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_reqno" ref="/root/main/goodreq/goodreqlist/reqno" class="input_essential" visibility="hidden" editable="false" style="left:535px; top:357px; width:20px; height:19px; "/>
- <output id="ipt_reqdeptcd" ref="/root/main/goodreq/goodreqlist/reqdeptcd" class="output_fix" visibility="hidden" appearance="output" style="left:460px; top:357px; width:30px; height:19px; "/>
- <output id="opt_reqdeptnm" ref="/root/main/goodreq/goodreqlist/reqdeptnm" class="output_fix" visibility="hidden" appearance="output" style="left:315px; top:357px; width:25px; height:19px; "/>
- <caption id="caption67" class="cell_1" style="left:0px; top:427px; width:100px; height:23px; vertical-align:middle; ">물품명칭</caption>
- <input id="ipt_goodnm" ref="/root/main/goodreq/goodreqlist/goodnm" class="input_s_essential" style="left:102px; top:429px; width:504px; height:19px; "/>
- <caption id="caption61" class="cell_1" style="left:0px; top:451px; width:100px; height:21px; vertical-align:middle; ">규격/모델</caption>
- <input id="ipt_goodspec" ref="/root/main/goodreq/goodreqlist/goodspec" class="input_fix" style="left:102px; top:453px; width:218px; height:19px; "/>
- <input id="ipt_goodmodel" ref="/root/main/goodreq/goodreqlist/goodmodel" class="input_default" style="left:325px; top:453px; width:281px; height:19px; "/>
- <button id="btn_prodcmpycd" class="icon_search" style="left:228px; top:501px; 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:497px; 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:499px; width:121px; 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:247px; top:499px; width:359px; 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>
- <caption id="caption64" class="cell_1" style="left:0px; top:520px; width:100px; height:23px; vertical-align:middle; ">청구수량</caption>
- <input id="ipt_reqqty" ref="/root/main/goodreq/goodreqlist/reqqty" class="input_s_essential" format="#,###" style="left:102px; top:522px; width:88px; height:19px; text-align:right; "/>
- <select1 id="cmb_requnit" ref="/root/main/goodreq/goodreqlist/requnit" class="input_s_essential" appearance="minimal" style="left:191px; top:522px; width:109px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_bugtyy" ref="/root/main/goodreq/goodreqlist/bugtyy" class="input_search" format="yyyy" style="left:102px; top:593px; width:88px; height:19px; text-align:left; "/>
- <caption id="caption56" class="cell_1" style="left:0px; top:591px; width:100px; height:23px; vertical-align:middle; ">예산년도</caption>
- <caption id="caption48" class="cell_1" style="left:0px; top:639px; width:160px; height:23px; vertical-align:middle; ">예산편성/추산/집행/잔액</caption>
- <caption id="caption71" class="cell_1" style="left:0px; top:379px; width:100px; height:23px; vertical-align:middle; ">제작여부</caption>
- <input id="ipt_installplcecd" ref="/root/main/goodreq/goodreqlist/installplcecd" class="input_fix" style="left:392px; top:546px; 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_checkinstcd.value, "", "installplcecd,installplcenm",
- ipt_installplcecd, "PPRAC00700", "instcd","opt_checkinstcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="rbo_makeyn" ref="/root/main/goodreq/goodreqlist/makeyn" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:102px; top:382px; 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:543px; width:86px; height:23px; vertical-align:middle; ">설치장소</caption>
- <caption id="caption57" class="cell_1" style="left:23px; top:691px; width:78px; height:23px; vertical-align:middle; ">접수/조정량</caption>
- <caption id="caption60" class="cell_1" style="left:304px; top:663px; 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:665px; width:148px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:360px; top:45px; width:86px; height:17px; ">접수구분 :</caption>
- <caption id="caption2" class="cell_1" style="left:0px; top:355px; 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:357px; width:167px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" class="line_1" style="x1:0px; y1:94px; x2:1195px; y2:94px; "/>
- <caption id="caption5" class="tit_2" style="left:5px; top:80px; width:100px; height:13px; ">비품청구 내역</caption>
- <caption id="caption7" class="tit_2" style="left:615px; top:630px; width:100px; height:13px; ">경유부서 정보</caption>
- <line id="line2" class="line_1" style="x1:610px; y1:645px; x2:1192px; y2:645px; "/>
- <input id="ipt_reqflag" ref="/root/main/goodreq/goodreqlist/reqflag" visibility="hidden" style="left:340px; top:357px; width:25px; height:19px; "/>
- <input id="ipt_reqdd" ref="/root/main/goodreq/goodreqlist/reqdd" visibility="hidden" style="left:490px; top:357px; width:20px; height:19px; "/>
- <input id="ipt_reqpsnid" ref="/root/main/goodreq/goodreqlist/reqpsnid" visibility="hidden" style="left:440px; top:357px; width:20px; height:19px; "/>
- <input id="ipt_instcd" ref="/root/main/goodreq/goodreqlist/instcd" visibility="hidden" style="left:410px; top:357px; width:15px; height:19px; "/>
- <input id="ipt_deliveprcsflag" ref="/root/main/goodreq/goodreqlist/deliveprcsflag" visibility="hidden" style="left:390px; top:357px; width:20px; height:19px; "/>
- <datagrid id="grd_psgelist" nodeset="/root/main/list/psgereq/psgereqlist" caption="경유부서^경유부서명^접수^의견" colsep="^" colwidth="89, 81, 34, 347, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:610px; top:650px; width:585px; height:87px; ">
- <col ref="psgedeptcd" type="inputbutton"/>
- <col ref="psgedeptnm"/>
- <col ref="psgedeptaprvyn"/>
- <col ref="psgecmt"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="psgedeptaprvid" visibility="hidden"/>
- <col ref="psgedeptaprvdd" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_psgelist.col == grd_psgelist.colRef("psgedeptcd")) {
- var recv_list = "psgedeptcd,psgedeptnm";
- misfOpenPopUpList("02", grd_psgelist,"",recv_list);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_psgelist.col == grd_psgelist.colRef("psgedeptcd")) {
- var recv_list = "psgedeptcd,psgedeptnm";
- misfValidationCheck("02", "", recv_list );
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_addfile" class="btn2_letter4" style="left:542px; top:665px; 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>
- <line id="line4" class="line_1" style="x1:610px; y1:350px; x2:1195; y2:350px; "/>
- <caption id="caption10" class="tit_2" style="left:615px; top:335px; width:100px; height:13px; ">비품찾기</caption>
- <input id="ipt_installplcenm" ref="/root/main/goodreq/goodreqlist/installplcenm" class="input_fix" appearance="input" style="left:493px; top:546px; 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_checkinstcd.value, "", "installplcecd,installplcenm",
- ipt_installplcenm, "PPRAC00700", "instcd","opt_checkinstcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_installplcecd" class="icon_search" style="left:473px; top:547px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "installplcecd,installplcenm";
- misfOpenPopUpList("19", ipt_installplcecd,"", recv_list, opt_checkinstcd.value, "instcd") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodflag" ref="/root/send/lrgcd/goodflag" visibility="hidden" style="left:917px; top:45px; width:30px; height:19px; "/>
- <caption id="caption17" class="cell_1" style="left:0px; top:403px; width:100px; height:23px; vertical-align:middle; ">대/중/소분류</caption>
- <output id="opt_lrgnm" ref="/root/main/goodreq/goodreqlist/lrgnm" class="output_fix" style="left:166px; top:405px; width:103px; height:19px; "/>
- <output id="opt_mdlnm" ref="/root/main/goodreq/goodreqlist/mdlnm" class="output_fix" style="left:333px; top:405px; width:103px; height:19px; "/>
- <output id="opt_smlnm" ref="/root/main/goodreq/goodreqlist/smlnm" class="output_fix" style="left:503px; top:405px; width:103px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:0px; top:663px; width:100px; height:23px; vertical-align:middle; ">비고</caption>
- <input id="ipt_cmt" ref="/root/main/goodreq/goodreqlist/cmt" style="left:102px; top:665px; width:198px; height:19px; "/>
- <caption id="caption15" class="cell_1" style="left:269px; top:379px; width:80px; height:23px; vertical-align:middle; ">자산코드</caption>
- <input id="ipt_fixasetcd" ref="/root/main/goodreq/goodreqlist/fixasetcd" class="input_fix" style="left:351px; top:381px; width:113px; height:19px; "/>
- <input id="ipt_lrgcd" ref="/root/main/goodreq/goodreqlist/lrgcd" class="input_s_essential" style="left:128px; top:405px; width:36px; height:19px; "/>
- <input id="ipt_mdlcd" ref="/root/main/goodreq/goodreqlist/mdlcd" class="input_s_essential" style="left:295px; top:405px; width:36px; height:19px; "/>
- <input id="ipt_smlcd" ref="/root/main/goodreq/goodreqlist/smlcd" class="input_fix" style="left:465px; top:405px; width:36px; height:19px; "/>
- <switch id="swh_select" style="left:610px; top:380px; width:585px; height:245px; ">
- <case id="cse_lrgcd" selected="true" style="focus-rect:hidden; ">
- <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" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:197px; top:8px; width:192px; height:232px; ">
- <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");
- grd_smllist.dispatch("onmouseup");
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "Y" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "C")
- {
-
- }else{
- fMovecd("grd_mdllist");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_mdllist.gridToInstance();
- ]]>
- </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" ellipsis="true" explorerbar="sortmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="bycol" style="left:392px; top:8px; width:191px; height:232px; ">
- <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("purcacptflag")) == "Y" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "C")
- {
-
- }else{
- fMovecd("grd_smllist");
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_lrglist" nodeset="/root/main/list/lrg/lrglist" caption="대분류코드^대분류명^주관부서^주관부서^계정코드(입고)^계정코드(입고)^계정코드(비용)^계정코드(비용)^기관코드^물품구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="6, 103, 130, 135, 130, 135, 130, 135, 100, 100, 130, 120, 150, 120" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" style="left:0px; top:8px; width:194px; height:232px; ">
- <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("purcacptflag")) == "Y" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "C")
- {
-
- }else{
- fMovecd("grd_lrglist");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_lrglist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line19" class="line_1" style="x1:0px; y1:3px; x2:583px; y2:3px; "/>
- </case>
- <case id="cse_fixasetcd">
- <datagrid id="grd_fixasetcdlist" nodeset="/root/main/list/fixasetcd/fixasetcdlist" caption="대분류^중분류^소분류^품목명^규격^모델^수량" colsep="^" colwidth="73, 66, 77, 137, 100, 100, 69" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:10px; width:583px; height:230px; ">
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="goodflaghngnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="lrgcd"/>
- <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[
- if(grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "Y" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "C")
- {
-
- }else{
- fMovecd("grd_fixasetcdlist");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_fixasetcdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line20" class="line_1" style="x1:0px; y1:5px; x2:581px; y2:5px; "/>
- </case>
- </switch>
- <button id="btn_search_cd" class="btn2_letter2" style="left:1151px; top:360px; 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(cmb_instcd_search.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(cmb_instcd_search.attribute("ref")));
- model.setValue("/root/send/fixasetcd/cntrdeptcd" , model.getValue(ipt_reqdeptcd.attribute("ref")));
- //model.setValue("/root/send/fixasetcd/cntrdeptcd" , model.getValue(ipt_reqdeptcd_search.attribute("ref")));
- submit("TRRFC00201");
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn_sw" group="tab" selected="true" style="left:753px; top:359px; 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:359px; width:144px; height:22px; ">
- <caption>분류코드</caption>
- <toggle case="cse_lrgcd" ev:event="DOMActivate"/>
- </button>
- <input id="ipt_reqtodd_search" ref="/root/send/goodreq/reqtodd" class="input_s_essential" inputtype="date" style="left:218px; top:44; width:96px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_acptflag_search" ref="/root/send/goodreq/acptflag" class="combo_s_essential" appearance="minimal" style="left:445px; top:44; width:95px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>미접수</label>
- <value>N</value>
- </item>
- <item>
- <label>접수</label>
- <value>Y</value>
- </item>
- <item>
- <label>부결</label>
- <value>C</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_adjtqty" ref="/root/main/goodreq/goodreqlist/adjtqty" class="input_essential" format="#,###" style="left:192px; top:693px; width:163px; height:19px; text-align:right; "/>
- <select1 id="cmb_acptflag" ref="/root/main/goodreq/goodreqlist/acptflag" class="combo_essential" appearance="minimal" style="left:102px; top:693px; width:88px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/acptflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /* 미접수처리시 */
- if (model.getValue(cmb_acptflag.attribute("ref"))=="N")
- {
- model.setValue(ipt_acptcharid.attribute("ref"), "");
- model.setValue(ipt_acptdd.attribute("ref"), "");
- model.setValue(ipt_adjtqty.attribute("ref"), 0);
- model.setValue(ipt_adjtrsn.attribute("ref"), "");
- model.setValue(cmb_acpttype.attribute("ref"), "");
- }
- /* 접수처리시 */
- else if (model.getValue(cmb_acptflag.attribute("ref"))=="Y")
- {
- model.setValue(ipt_acptcharid.attribute("ref"), getUserInfo("userid"));
- model.setValue(ipt_acptdd.attribute("ref"), getCurrentDate());
- model.setValue(ipt_adjtqty.attribute("ref"), model.getValue(ipt_reqqty.attribute("ref")));
- model.setValue(cmb_acpttype.attribute("ref"), "1");
- }
- /* 부결처리시 */
- else if (model.getValue(cmb_acptflag.attribute("ref"))=="C")
- {
- model.setValue(ipt_acptcharid.attribute("ref"), getUserInfo("userid"));
- model.setValue(ipt_acptdd.attribute("ref"), getCurrentDate());
- /* 부결처리시 수량을 0으로 셋팅하는것 */
- model.setValue(ipt_adjtqty.attribute("ref"), 0);
- //model.setValue(ipt_adjtqty.attribute("ref"), model.getValue(ipt_reqqty.attribute("ref")));
- model.setValue(cmb_acpttype.attribute("ref"), "");
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_acptdd" ref="/root/main/goodreq/goodreqlist/acptdd" class="input_essential" visibility="hidden" style="left:560px; top:357px; width:25px; height:19px; text-align:right; "/>
- <input id="ipt_acptcharid" ref="/root/main/goodreq/goodreqlist/acptcharid" class="input_essential" visibility="hidden" style="left:570px; top:381px; width:15px; height:19px; text-align:center; "/>
- <caption id="caption11" class="cell_1" style="left:23px; top:715px; width:78px; height:23px; vertical-align:middle; ">조정사유</caption>
- <input id="ipt_adjtrsn" ref="/root/main/goodreq/goodreqlist/adjtrsn" class="input_essential" style="left:102px; top:717px; width:504px; height:19px; text-align:left; "/>
- <line id="line6" class="line_1" style="x1:0px; y1:687px; x2:605px; y2:687px; "/>
- <caption id="caption12" class="cell_1" style="left:0px; top:691px; width:22px; height:47px; vertical-align:middle; ">접수</caption>
- <caption id="caption44" style="left:203px; top:45px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <caption id="caption45" class="cell_1" style="left:101px; top:403px; width:25px; height:23px; vertical-align:middle; ">대</caption>
- <caption id="caption46" class="cell_1" style="left:269px; top:403px; width:25px; height:23px; vertical-align:middle; ">중</caption>
- <caption id="caption47" class="cell_1" style="left:438px; top:403px; width:25px; height:23px; vertical-align:middle; ">소</caption>
- <caption id="caption49" class="cell_1" style="left:198px; top:591px; width:103px; height:23px; vertical-align:middle; ">예산계정</caption>
- <caption id="caption50" class="cell_1" style="left:303px; top:613px; width:100px; height:23px; vertical-align:middle; ">연구과제</caption>
- <input id="ipt_stdysubjno" ref="/root/main/goodreq/goodreqlist/stdysubjno" class="input_search" maxlength="4" style="left:405px; top:615px; 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",
- cmb_instcd_search.value + ",stdysubjno," + ipt_stdysubjno.value + "," + grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdd")), "", "stdysubjno,stdysubjnm",
- ipt_stdysubjno, "SPRSD00260", "instcd,reqdd","cmb_instcd_search," + grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdd")) );
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_stdysubjnm" ref="/root/main/goodreq/goodreqlist/stdysubjnm" class="input_fix" appearance="input" style="left:505px; top:615px; width:98px; 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",
- cmb_instcd_search.value + ",stdysubjnm," + ipt_stdysubjnm.value + "," + grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdd")), "", "stdysubjno,stdysubjnm",
- ipt_stdysubjnm, "SPRSD00260", "instcd,reqdd","cmb_instcd_search," + grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdd")));
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_stdysubjnm" class="icon_search" style="left:485px; top:616px; 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","cmb_instcd_search," + grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdd")));
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button12" class="btn2_letter3" style="left:1140px; top:624px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_psgelist.valueMatrix(grd_psgelist.row, grd_psgelist.colRef("psgedeptaprvyn"))=="Y")
- {
- messageBox("경유부서에서 접수된건입니다! 삭제 할수 " ,"I004");
- //model.setFocus("cmb_instcd_search");
- return;
- }
- misfGridIUD(grd_psgelist, "D");
- ]]>
- </script>
- </button>
- <button id="button13" class="btn2_letter3" style="left:1085px; top:624px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_goodreq.rows - grd_goodreq.fixedRows > 0) misfGridIUD(grd_psgelist, "A");
- ]]>
- </script>
- </button>
- <input id="ipt_suplplcecd" ref="/root/main/goodreq/goodreqlist/suplplcecd" class="input_default" style="left:102px; top:475px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suplplcecd.value.length == 0)
- ipt_suplplcenm.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- opt_instcdgood.value + "," + "entrregno," + ipt_suplplcecd.value, "", "suplplcecd,suplplcenm",
- ipt_suplplcecd, "SPRSD00220", "instcd","opt_instcdgood");
- model.refresh();
- ]]>
- </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>
- <caption id="caption51" class="cell_1" style="left:0px; top:473px; width:100px; height:23px; vertical-align:middle; ">거래처</caption>
- <button id="btn_suplplcecd" class="icon_search" style="left:226px; top:477px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","opt_instcdgood");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_suplplcenm" ref="/root/main/goodreq/goodreqlist/suplplcenm" class="input_fix" appearance="input" style="left:246px; top:475px; width:360px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suplplcenm.value.length == 0)
- ipt_suplplcecd.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- opt_instcdgood.value + "," + "custnm," + ipt_suplplcenm.value, "", "suplplcecd,suplplcenm",
- ipt_suplplcenm, "SPRSD00220", "instcd","opt_instcdgood");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_plceordamt" ref="/root/main/goodreq/goodreqlist/plceordamt" class="input_s_essential" disabled="true" format="#,###" style="left:495px; top:522px; width:110px; height:19px; text-align:right; "/>
- <caption id="caption53" class="cell_1" style="left:304px; top:520px; width:36px; height:22px; vertical-align:middle; ">단가</caption>
- <caption id="caption55" class="cell_1" style="left:453px; top:520px; width:40px; height:22px; vertical-align:middle; ">금액</caption>
- <input id="ipt_wncurncyamt" ref="/root/main/goodreq/goodreqlist/wncurncyamt" class="input_s_essential" format="#,###" style="left:342px; top:522px; width:108px; height:19px; text-align:right; "/>
- <button id="brn_all_check" class="btn2_letter10" style="left:976px; top:73px; width:130px; height:19px; ">
- <caption>구매승인/미승인.선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // fChangeStatus( "C", "접수" );
- // model.refresh();
- fSettingPurcRece();
- ]]>
- </script>
- </button>
- <button id="btn_purcaprv" class="btn2_letter6" style="left:1108px; top:73px; width:86px; height:19px; ">
- <caption>선택승인처리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_goodreq);
- if( updtdata!="" ) {
- misfSave("TXRSD11101");
- if (model.getValue(gvErrorMsgPath + "/type") != "error" )btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="btn_mngtdeptcd" class="icon_search" style="left:473px; top:571px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "mngtdeptcd,mngtdeptcdnm";
- misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list, opt_checkinstcd.value, "instcd") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_mngtdeptcd" class="cell_1" style="left:304px; top:567px; width:86px; height:23px; vertical-align:middle; ">사용부서</caption>
- <input id="ipt_mngtdeptcdnm" ref="/root/main/goodreq/goodreqlist/mngtdeptcdnm" class="input_fix" appearance="input" style="left:493px; top:569px; width:112px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_mngtdeptcdnm.value.length == 0)
- ipt_mngtdeptcd.value = "";
- else
- rszfValidationCheck("TRRPZ00201", "custlist", "refcond,retrnm,instcd",
- "deptnm," + ipt_mngtdeptcdnm.value + "," + opt_checkinstcd.value, "", "mngtdeptcd,mngtdeptcdnm",
- ipt_mngtdeptcdnm, "SPRPZ00200", "instcd","opt_checkinstcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_cntrdeptcd" ref="/root/main/goodreq/goodreqlist/cntrdeptcd" class="input_fix" style="left:102px; top:569px; width:67px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_cntrdeptcd.value.length == 0)
- ipt_cntrdeptcdnm.value = "";
- else
- rszfValidationCheck("TRRPZ00201", "custlist", "refcond,retrnm,instcd",
- "deptcd," + model.getValue(ipt_cntrdeptcd.attribute("ref")) + "," + opt_checkinstcd.value, "", "cntrdeptcd,cntrdeptcdnm",
- ipt_cntrdeptcd, "SPRPZ00200", "instcd","opt_checkinstcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_cntrdeptcd" class="icon_search" style="left:172px; top:569px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "cntrdeptcd,cntrdeptcdnm";
- misfOpenPopUpList("02", ipt_cntrdeptcd,"", recv_list, opt_checkinstcd.value, "instcd") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_mngtdeptcd" ref="/root/main/goodreq/goodreqlist/mngtdeptcd" class="input_fix" style="left:392px; top:569px; width:77px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_mngtdeptcd.value.length == 0)
- ipt_mngtdeptcdnm.value = "";
- else
- rszfValidationCheck("TRRPZ00201", "custlist", "refcond,retrnm,instcd",
- "deptcd," + ipt_mngtdeptcd.value + "," + opt_checkinstcd.value, "", "mngtdeptcd,mngtdeptcdnm",
- ipt_mngtdeptcd, "SPRPZ00200", "instcd","opt_checkinstcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_cntrdeptcdnm" ref="/root/main/goodreq/goodreqlist/cntrdeptcdnm" class="input_fix" appearance="input" style="left:190px; top:569px; width:110px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_cntrdeptcdnm.value.length == 0)
- ipt_cntrdeptcd.value = "";
- else
- rszfValidationCheck("TRRPZ00201", "custlist", "refcond,retrnm,instcd",
- "deptnm," + ipt_cntrdeptcdnm.value + "," + opt_checkinstcd.value, "", "cntrdeptcd,cntrdeptcdnm",
- ipt_cntrdeptcdnm, "SPRPZ00200", "instcd","opt_checkinstcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_cntrdeptcd" class="cell_1" style="left:0px; top:567px; width:100px; height:23px; vertical-align:middle; ">청구부서</caption>
- <input id="ipt_reqtel" ref="/root/main/goodreq/goodreqlist/reqtel" visibility="hidden" style="left:535px; top:380px; width:25px; height:19px; "/>
- <input id="ipt_studyinstcd" ref="/root/main/goodreq/goodreqlist/studyinstcd" visibility="hidden" style="left:485px; top:380px; width:50px; height:19px; "/>
- <select1 id="cmb_studyinstcd" ref="/root/send/goodreq/studyinstcd" appearance="minimal" style="left:445px; top:18px; width:170px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- opt_reqtempinstcd.value = cmb_studyinstcd.value;
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="cap_studyinstcd" class="search_name" style="left:360px; top:19px; width:99px; height:17px; ">연구기관 :</caption>
- <output id="opt_checkinstcd" ref="/root/send/goodreq/checkinstcd" visibility="hidden" style="left:775px; top:70px; width:40px; height:19px; "/>
- <output id="opt_reqtempinstcd" ref="/root/send/goodreq/reqtempinstcd" visibility="hidden" style="left:705px; top:70px; width:40px; height:19px; "/>
- <output id="opt_instcdgood" ref="/root/init/instcdgood" visibility="hidden" style="left:985px; top:45px; width:40px; height:19px; "/>
- <select1 id="cmb_groupbugt" ref="/root/send/goodreq/groupbugt" class="combo_default" appearance="minimal" style="left:304px; top:593px; width:108px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // if(cmb_instcd_search.value != '103')
- // {
- // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, '', '3');
- // }else{
- // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, cmb_groupbugt.value, '3');
- // }
- //
- fDisabledComboflag();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_acpttype" ref="/root/main/goodreq/goodreqlist/acpttype" class="combo_essential" visibility="hidden" appearance="minimal" style="left:480px; top:695px; width:75px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/acpttype">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /* 미접수처리시 */
- if (model.getValue(cmb_acptflag.attribute("ref"))=="N")
- {
- model.setValue(ipt_acptcharid.attribute("ref"), "");
- model.setValue(ipt_acptdd.attribute("ref"), "");
- model.setValue(ipt_adjtqty.attribute("ref"), 0);
- model.setValue(ipt_adjtrsn.attribute("ref"), "");
- }
- /* 접수처리시 */
- else if (model.getValue(cmb_acptflag.attribute("ref"))=="Y")
- {
- model.setValue(ipt_acptcharid.attribute("ref"), getUserInfo("userid"));
- model.setValue(ipt_acptdd.attribute("ref"), getCurrentDate());
- model.setValue(ipt_adjtqty.attribute("ref"), model.getValue(ipt_reqqty.attribute("ref")));
- }
- /* 부결처리시 */
- else if (model.getValue(cmb_acptflag.attribute("ref"))=="C")
- {
- model.setValue(ipt_acptcharid.attribute("ref"), getUserInfo("userid"));
- model.setValue(ipt_acptdd.attribute("ref"), getCurrentDate());
- /* 부결처리시 수량을 0으로 셋팅하는것 */
- model.setValue(ipt_adjtqty.attribute("ref"), 0);
- //model.setValue(ipt_adjtqty.attribute("ref"), model.getValue(ipt_reqqty.attribute("ref")));
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <output id="opt_projectnm" ref="/root/main/goodreq/goodreqlist/projectnm" class="output_fix" style="left:102px; top:617px; width:198px; height:19px; "/>
- <input id="ipt_bugtnm" ref="/root/main/goodreq/goodreqlist/bugtnm" style="left:435px; top:593px; width:169px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ipt_stdysubjno.value = '';
- ipt_stdysubjnm.value = '';
- ]]>
- </script>
- </input>
- <input id="ipt_bugtcd" ref="/root/main/goodreq/goodreqlist/bugtcd" visibility="hidden" style="left:395px; top:325px; width:40px; height:19px; "/>
- <button id="btn_bugtcd" class="icon_search" style="left:416px; top:595px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(cmb_instcd_search.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", cmb_instcd_search.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:350px; top:325px; width:37px; height:19px; "/>
- <caption id="caption16" class="cell_1" style="left:0px; top:615px; width:100px; height:23px; vertical-align:middle; ">프로젝트</caption>
- <input id="ipt_remainder" ref="/root/main/goodreq/goodreqlist/remainder" class="output_fix" format="#,###" style="left:479px; top:640px; width:101px; height:19px; text-align:right; "/>
- <input id="input1" ref="/root/main/goodreq/goodreqlist/bugtexpcamt" class="output_fix" format="#,###" style="left:269px; top:640px; width:101px; height:19px; text-align:right; "/>
- <input id="ipt_totamt" ref="/root/main/goodreq/goodreqlist/totamt" class="output_fix" format="#,###" style="left:164px; top:640px; width:101px; height:19px; text-align:right; "/>
- <input id="ipt_bugtexecamt" ref="/root/main/goodreq/goodreqlist/bugtexecamt" class="output_fix" format="#,###" style="left:374px; top:640px; width:101px; height:19px; text-align:right; "/>
- <caption id="cap_fundorigin" class="cell_1" style="left:1px; top:543px; width:100px; 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:102px; top:546px; width:198px; 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>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckSaveData() == false)return;
- if ( grd_goodreq.rows - grd_goodreq.fixedRows == 0) {
- misfGridInit(grd_goodreq);
- misfGridIUD(grd_goodreq, "A");
- model.refresh();
- }
- misfGridRowStatusChange(grd_goodreq,"/root/main/list/goodreq","/root/main/goodreq");
- model.refresh();
- misfSave("TXRSD11101");
- if (model.getValue(gvErrorMsgPath + "/type") != "error" )btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="button28" class="btn6_letter5" visibility="hidden" style="left:0; top:3px; width:92px; height:22px; ">
- <caption>청구서출력</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|