12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <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/>
- <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/>
- <bugtexecamt/>
- <remainder/>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <smlnm/>
- <fixasetcd/>
- <stdysubjnm/>
- <suplplcecd/>
- <suplplcenm/>
- <wncurncyamt/>
- <plceordamt/>
- <cntrdeptcd/>
- <cntrdeptcdnm/>
- <mngtdeptcd/>
- <mngtdeptcdnm/>
- <reqtel/>
- <studyinstcd/>
- <acpttype/>
- <deptaprvpsnid/>
- <prodplce/>
- </goodreqlist>
- </goodreq>
- </main>
- <init>
- <purcacptflag>
- <label>승인</label>
- <value>Y</value>
- <label>종료</label>
- <value>C</value>
- <label>미승인</label>
- <value>N</value>
- </purcacptflag>
- <acpttype>
- <label>정상구매</label>
- <value>1</value>
- <label>자체제작</label>
- <value>2</value>
- <label>재고지급</label>
- <value>3</value>
- <label>임대</label>
- <value>4</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/>
- <deptaprvddfr/>
- <deptaprvddto/>
- </goodreq>
- <psgereq>
- <instcd/>
- <reqflag/>
- <reqdd/>
- <reqno/>
- <reqseqno/>
- </psgereq>
- <lrgcd>
- <lrgcd/>
- <mdlcd/>
- <instcd/>
- <goodflag/>
- </lrgcd>
- <fixasetcd>
- <instcd/>
- <goodflag/>
- <cntrdeptcd/>
- </fixasetcd>
- <fileupcolumn>
- <instcd/>
- <reqdd/>
- <fileseqno/>
- <reqflag/>
- <reqno/>
- <reqseqno/>
- <reqpsnid/>
- <attfilenm/>
- <attfilepathnm/>
- <reqdeptcd/>
- <fileupload>
- <file>
- <filename/>
- </file>
- </fileupload>
- </fileupcolumn>
- <search>
- <userid/>
- <scid>SMRSD05100</scid>
- </search>
- </send>
- <temp>
- <userinfo/>
- </temp>
- </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("C0048,R0032,R0246,R0035","cmb_instcd_search,cmb_requnit,cmb_workflag,cmb_prodplce");
-
- //model.setValue(cmb_prodplce.attribute("ref"),"01");
-
-
- // misfComboCopyItemSet(cmb_prodplce, "", grd_goodreq, "prodplce"); //제조국
-
- //misfComboComCdListMulti("R0116","grd_goodreq.deliveprcsflag");
- rszfComboBugtList(cmb_bugtcd,getUserInfo("dutplceinstcd"));
-
- rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag_search);
-
- // rszfUserReqInstList(cmb_instcd_search,getUserInfo("userid"),"3","B"); // preqpgmgubun : '3' : 비품., 'C' :청구
- misfGridInit(grd_goodreq);
- misfGridInit(grd_psgelist);
-
- misfGridInit(grd_lrglist);
- misfGridInit(grd_mdllist);
- misfGridInit(grd_smllist);
-
- misfGridInit(grd_fixasetcdlist);
-
- misfMsterDetailSet(grd_goodreq,null, "TRRSD05101" ,"Y");
- misfMsterDetailSet(grd_psgelist,grd_goodreq, "TRRSD11103" ,"Y");
-
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
- /*
- model.setValue(ipt_reqfrdd_search.attribute("ref") , cvtdate.getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
- model.setValue(ipt_reqtodd_search.attribute("ref") , curdate );
- */
- //이번달 1일 과 마지막일을 셋팅하는 부분
- model.setValue(ipt_deptaprvddfr_search.attribute("ref") , curdate.substr(0,4)+"0101" );
- model.setValue(ipt_deptaprvddto_search.attribute("ref") , curdate.substr(0,6)+cvtdate.getMonthDay() );
-
- model.setValue(ipt_reqfrdd_search.attribute("ref") , curdate.substr(0,4)+"0101" );
- model.setValue(ipt_reqtodd_search.attribute("ref") , curdate.substr(0,6)+cvtdate.getMonthDay() );
-
- //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"));
-
-
- // hidden
- model.setValue(cmb_reqflag_search.attribute("ref") , "D");
- model.setValue(ipt_goodflag.attribute("ref") , "GE");
- model.setValue(cmb_acptflag_search.attribute("ref") , "N");
-
- fSetReqAuth();
-
- grd_goodreq.fixedcellcheckbox(0,grd_goodreq.colRef("chk"),false) = true;
-
- btn_search.dispatch("DOMActivate");
-
- // model.setValue("/root/send/search/userid", getUserInfo("userid"));
- // model.setValue("/root/send/search/scid","SMRSD05100");
- // submit("TRRSC20104"); // 비품 출력 관리자 조회
- // var cnt = model.getValue("/root/temp/userinfo/cnt");
- //
- // if(cnt != 0){
- // btn_prt.disabled = false;
- // btn_prta.disabled = false;
- // }else{
- // btn_prt.disabled = true;
- // btn_prta.disabled = true;
- // }
-
- model.refresh();
- }
- 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();
- }
-
- /*--------------------------------------------------------------------------------*/
- /* 화면 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";
- cmb_prodplce.disabled ="true";
- // ipt_installplcecd.disabled ="true";
- ipt_bugtyy.disabled ="true";
- ipt_bugtexecamt.disabled ="true";
- ipt_remainder.disabled ="true";
- ipt_bugtexpcamt.disabled ="true";
- // ipt_attfilename.disabled ="true";
- ipt_attfilepathnm.disabled ="false";
-
- /*-----------------------------------------------------------------*/
- /* 하단은 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_downfile.disabled="true";
-
- ipt_acptcharid.disabled="true";
- ipt_acptdd.disabled="true";
-
- cmb_acptflag.disabled="true";
- cmb_acpttype.disabled = "true"; //지급기준 disable 2008-11-11
- ipt_adjtqty.disabled="true";
- ipt_adjtrsn.disabled="true";
-
- ipt_cmt.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";
- }
- 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 ="true";
- cmb_prodplce.disabled ="false";
- ipt_installplcecd.disabled ="false";
- ipt_bugtyy.disabled ="false";
- ipt_bugtexecamt.disabled ="false";
- ipt_remainder.disabled ="false";
- ipt_bugtexpcamt.disabled ="false";
- // ipt_attfilename.disabled ="false";
- ipt_attfilepathnm.disabled ="false";
-
- //btn_downfile.disabled="false";
- ipt_acptcharid.disabled="false";
- ipt_acptdd.disabled="false";
-
- cmb_acptflag.disabled="false";
- cmb_acpttype.disabled="false";
- ipt_adjtqty.disabled="false";
- ipt_adjtrsn.disabled="false";
-
- ipt_cmt.disabled="false";
- cmb_bugtcd.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";
- }
- 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()
- {
- ///이현민
- ///rows는 토탈건수 fixedrows는 현재 fix되어 있는 줄번호로서 한건이상조회된다면 아래의 값은 항상 0보다 큼
- ///다시말해 한건이상 조회된 경우를 가리킴
- 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 + "]");
-
-
- //alert("조회시")
- //alert(grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflagnm")));
- //alert(grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")));
- if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflagnm")) == "접수" ||
- grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "Y"){
- //alert("접수이거나 Y"); //alert("자동세팅");
- }else{
- //alert("자동세팅");
- model.setValue(cmb_prodplce.attribute("ref"),"01");
- }
-
- } 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")));
-
- }
-
- /* 청구상태가 아니면 막는다*/
- // 2008.12.03. 진행상태가 재고 지급일때 변경 가능
- for(var fRow = grd_goodreq.fixedRows; fRow < grd_goodreq.rows; fRow++)
- {
- if(grd_goodreq.valueMatrix(fRow, grd_goodreq.colRef("deliveprcsflag")) == "1" || grd_goodreq.valueMatrix(fRow, grd_goodreq.colRef("deliveprcsflag")) == "9")
- {
- 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(cmb_reqflag_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("청구구분을 " ,"C001");
- model.setFocus("cmb_reqflag_search");
- }
- return false;
- }
-
- if(model.getValue(ipt_deptaprvddfr_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("승인시작일자를 " ,"C001");
- model.setFocus("ipt_deptaprvddfr_search");
- }
- return false;
- }
-
- if(model.getValue(ipt_deptaprvddto_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("승인종료일자를 " ,"C001");
- model.setFocus("ipt_deptaprvddto_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_suplplcecd.attribute("ref")).length== 0 )
- {
- messageBox("거래처를 " ,"C001");
- model.setFocus("ipt_suplplcecd");
- return false;
- }*/
-
- if(model.getValue(ipt_installplcecd.attribute("ref")).length== 0 )
- {
- messageBox("설치장소를 " ,"C001");
- model.setFocus("ipt_installplcecd");
- 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(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();
- }
- function fAttfileDown(){ //첨부파일 다운로드
-
- model.setValue("/root/send/fileupcolumn/instcd" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("instcd") ) );
- model.setValue("/root/send/fileupcolumn/reqdd" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqdd") ) );
- // model.setValue("/root/send/fileupcolumn/fileseqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("fileseqno") ) ); //seqNumber
- //alert(model.getValue("/root/main/goodreq/goodreqlist/attfilepathnm"));
- model.setValue("/root/send/fileupcolumn/fileseqno" , model.getValue("/root/main/goodreq/goodreqlist/attfilepathnm") ); //seqNumber //원래
- model.setValue("/root/send/fileupcolumn/fileseqno" , model.getValue("/root/main/goodreq/goodreqlist/attfilenm") ); //seqNumber //원래
-
- // /root/main/goodreq/goodreqlist/attfilenm
-
- model.setValue("/root/send/fileupcolumn/reqflag" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqflag") ) );
- model.setValue("/root/send/fileupcolumn/reqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqno") ) );
- model.setValue("/root/send/fileupcolumn/reqseqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqseqno") ) );
- model.setValue("/root/send/fileupcolumn/reqpsnid" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqpsnid") ) );
- model.setValue("/root/send/fileupcolumn/reqdeptcd" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqdeptcd") ) );
-
- //model.setValue("/root/send/fileupcolumn/attfilenm" , model.getValue("/root/main/goodreq/goodreqlist/attfilepathnm") );//원래
- model.setValue("/root/send/fileupcolumn/attfilenm" , model.getValue("/root/main/goodreq/goodreqlist/attfilenm") );
-
-
- model.setValue("/root/send/fileupcolumn/attfilepathnm" , model.getValue("/root/send/fileupcolumn/fileupload/file") );
-
- //첨부파일관련 팝업을 띄워서 첨부파일을 조회도 하고 다운로드 삭제까지 할수 있도록 구현.
- rszfOpenPopUpListByWndName(grd_goodreq,"","","SMRSD00420","instcd,reqdd,reqflag,reqno,reqseqno,reqpsnid,reqdeptcd,attfilepathnm"
- ,"instcd,reqdd,reqflag,reqno,reqseqno,reqpsnid,reqdeptcd,attfilepathnm", "Y");
-
- //submit("TRRSD00421");
- btn_search.dispatch("DOMActivate");
- }
-
-
- ]]>
- </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:137px; height:14px; ">비품청구접수</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <line id="line8" class="line_2" style="x1:0px; y1:691px; x2:605px; y2:691px; "/>
- <line id="line29" class="line_2" style="x1:0px; y1:494px; x2:605px; y2:494px; "/>
- <line id="line28" class="line_2" style="x1:0px; y1:472px; x2:605px; y2:472px; "/>
- <line id="line16" class="line_2" style="x1:0px; y1:424px; x2:605px; y2:424px; "/>
- <line id="line27" class="line_2" style="x1:0px; y1:661px; x2:605px; y2:661px; "/>
- <line id="line15" class="line_2" style="x1:0px; y1:400px; x2:605px; y2:400px; "/>
- <line id="line26" class="line_2" style="x1:0px; y1:613px; x2:605px; y2:613px; "/>
- <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:90px; y1:430px; x2:695px; y2:430px; "/>
- <line id="line31" class="line_3" style="x1:0px; y1:661px; x2:605px; y2:661px; "/>
- <line id="line30" class="line_2" style="x1:0px; y1:518px; x2:605px; y2:518px; "/>
- <line id="line5" class="line_3" style="x1:0px; y1:737px; x2:605px; y2:737px; "/>
- <caption id="caption9" class="tit_2" style="left:5px; top:358px; 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="19, 70, 35, 30, 70, 55, 63, 60, 55, 55, 55, 190, 60, 70, 65, 45, 45, 55, 51, 70, 45, 51,66, 42, 36, 28, 28, 26, 39, 34, 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" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:99px; width:1195px; height:246px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="reqno" style="text-align:center; "/>
- <col ref="reqseqno" style="text-align:center; "/>
- <col ref="reqdeptnm"/>
- <col ref="reqpsnnm"/>
- <col ref="deliveprcsflagnm" visibility="hidden"/>
- <col ref="workflagnm"/>
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="goodnm"/>
- <col ref="goodmodel"/>
- <col ref="goodspec"/>
- <col ref="prodcmpynm"/>
- <col ref="reqqty" format="#,###" style="text-align:right; "/>
- <col ref="adjtqty" format="#,###" style="text-align:right; "/>
- <col disabled="true" ref="deliveprcsflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>청구</label>
- <value>1</value>
- </item>
- <item>
- <label>발주</label>
- <value>3</value>
- </item>
- <item>
- <label>입고완료</label>
- <value>5</value>
- </item>
- <item>
- <label>강제종결</label>
- <value>6</value>
- </item>
- <item>
- <label>입고완료</label>
- <value>7</value>
- </item>
- <item>
- <label>자체제작</label>
- <value>8</value>
- </item>
- <item>
- <label>재고지급</label>
- <value>9</value>
- </item>
- <item>
- <label>임대</label>
- <value>10</value>
- </item>
- </choices>
- </col>
- <col ref="deptaprvpsnnm"/>
- <col ref="deptaprvdd" format="yyyy-mm-dd"/>
- <col ref="acptflagnm"/>
- <col ref="acptcharid"/>
- <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="bugtexpcamt" visibility="hidden" format="#,###" style="text-align:right; "/>
- <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="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="deptaprvpsnid" visibility="hidden"/>
- <col ref="prodplce" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- if( grd_goodreq.row >= grd_goodreq.fixedRows )
- {
- misfGridInit(grd_psgelist);
-
- model.resetInstanceNode("/root/main/goodreq");
- 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"); //승인,부결되었으면.
- // 2010년 03월 08일 자체제작 또는 대여일 경우라도 접수 입력 가능 하도록 수정 (수정자 : 정성욱)
- //else if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deliveprcsflag")) != "1" && grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deliveprcsflag")) != "9") 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;
- }
-
- //접수상태가 접수가 아니고 구매승인이 승인상태가 아닐경우에는 아직 접수받거나 발주나간것이 아니라고 보고 국가를 한국으로 세팅해준다. -> 현광민선생님 요청
- if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflagnm")) == "접수" ||
- grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "Y"){
- //alert("접수이거나 Y"); //alert("자동세팅");
- }else{
- //alert("자동세팅");
- model.setValue(cmb_prodplce.attribute("ref"),"01");
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //alert("changed")
- 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:373px; x2:605px; y2:373px; "/>
- <!--</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:195px; top:44px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list) ;
- 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:110px; top:18px; width:209px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfComboBugtList(cmb_bugtcd,model.getValue(cmb_instcd_search.attribute("ref")));
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:20px; top:18px; 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:810px; 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_default" style="left:110px; top:44px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfSearchDept(ipt_reqdeptnm_search);
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:20px; top:44px; width:86px; height:17px; ">청구부서 :</caption>
- <input id="ipt_reqdeptnm_search" ref="/root/send/goodreq/reqdeptnm" class="output_fix" editable="false" appearance="input" style="left:215px; top:44px; width:150px; height:19px; "/>
- <input id="ipt_reqno" ref="/root/main/goodreq/goodreqlist/reqno" class="input_essential" visibility="hidden" editable="false" style="left:535px; top:380px; 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:380px; 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:380px; width:25px; height:19px; "/>
- <caption id="caption67" class="cell_1" style="left:0px; top:450px; 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:452px; width:504px; height:19px; "/>
- <caption id="caption61" class="cell_1" style="left:0px; top:474px; width:100px; height:21px; vertical-align:middle; ">모델/규격</caption>
- <input id="ipt_goodspec" ref="/root/main/goodreq/goodreqlist/goodspec" class="input_fix" style="left:387px; top:474px; width:218px; height:19px; "/>
- <input id="ipt_goodmodel" ref="/root/main/goodreq/goodreqlist/goodmodel" class="input_default" style="left:102px; top:474px; width:281px; height:19px; "/>
- <button id="btn_prodcmpycd" class="icon_search" visibility="hidden" style="left:525px; top:293px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption66" class="cell_1" visibility="hidden" style="left:350px; top:289px; width:100px; height:22px; vertical-align:middle; ">제조회사</caption>
- <input id="ipt_prodcmpycd" ref="/root/main/goodreq/goodreqlist/prodcmpycd" class="input_fix" visibility="hidden" style="left:452px; top:291px; width:70px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_prodcmpycd.value.length == 0)
- {
- ipt_prodcmpynm.value = "";
- }
- else
- rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd",
- "prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref")) ,"","prodcmpycd,prodcmpynm" ,
- ipt_prodcmpycd,"SPRSD00160","","");
- model.refresh();
- model.setFocus("ipt_goodmodel");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_prodplce");
- else model.setFocus("ipt_goodmodel");
- }
- event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_prodcmpynm" ref="/root/main/goodreq/goodreqlist/prodcmpynm" class="input_fix" visibility="hidden" appearance="input" style="left:545px; top:291px; width:105px; 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="cap_prodplce" class="cell_1" style="left:0px; top:496px; width:100px; height:23px; vertical-align:middle; ">제조국</caption>
- <select1 id="cmb_prodplce" ref="/root/main/goodreq/goodreqlist/prodplce" appearance="minimal" style="left:102px; top:498px; width:200px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption64" class="cell_1" style="left:304px; top:496px; width:86px; height:23px; vertical-align:middle; ">청구수량</caption>
- <input id="ipt_reqqty" ref="/root/main/goodreq/goodreqlist/reqqty" class="input_s_essential" format="#,###" style="left:392px; top:498px; 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:496px; top:498px; 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:422px; top:569px; width:55px; height:19px; text-align:left; "/>
- <caption id="caption56" class="cell_1" style="left:304px; top:544px; width:86px; height:23px; vertical-align:middle; ">부서연락처</caption>
- <input id="ipt_bugtexpcamt" ref="/root/main/goodreq/goodreqlist/bugtexpcamt" class="input_default" visibility="hidden" format="#,###" style="left:100px; top:348px; width:20px; height:19px; text-align:right; "/>
- <caption id="caption48" class="cell_1" visibility="hidden" style="left:80px; top:348px; width:20px; height:23px; vertical-align:middle; ">예산추산액</caption>
- <caption id="caption71" class="cell_1" style="left:0px; top:402px; width:100px; height:23px; vertical-align:middle; ">제작여부</caption>
- <input id="ipt_installplcecd" ref="/root/main/goodreq/goodreqlist/installplcecd" class="input_s_essential" style="left:102px; top:569px; width:70px; 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",
- "deptcd," + ipt_installplcecd.value, "", "installplcecd,installplcenm",
- ipt_installplcecd, "PPRAC00700", "","");
- 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:405px; width:116px; height:16px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>예</label>
- <value>Y</value>
- </item>
- <item>
- <label>아니오</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:0px; top:568px; width:100px; height:20px; vertical-align:middle; ">설치장소</caption>
- <caption id="caption57" class="cell_1" style="left:23px; top:667px; width:78px; height:23px; vertical-align:middle; ">접수/조정량</caption>
- <caption id="caption60" class="cell_1" style="left:0px; top:590px; width:100px; height:22px; vertical-align:middle; ">첨부파일</caption>
- <input id="ipt_attfilepathnm" ref="/root/main/goodreq/goodreqlist/attfilenm" class="input_default" disabled="true" style="left:102px; top:593px; width:393px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:785px; top:20px; width:86px; height:17px; ">접수구분 :</caption>
- <caption id="caption2" class="cell_1" style="left:0px; top:378px; 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:380px; 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:380px; width:25px; height:19px; "/>
- <input id="ipt_reqdd" ref="/root/main/goodreq/goodreqlist/reqdd" visibility="hidden" style="left:490px; top:380px; width:20px; height:19px; "/>
- <input id="ipt_reqpsnid" ref="/root/main/goodreq/goodreqlist/reqpsnid" visibility="hidden" style="left:440px; top:380px; width:20px; height:19px; "/>
- <input id="ipt_instcd" ref="/root/main/goodreq/goodreqlist/instcd" visibility="hidden" style="left:410px; top:380px; width:15px; height:19px; "/>
- <input id="ipt_deliveprcsflag" ref="/root/main/goodreq/goodreqlist/deliveprcsflag" visibility="hidden" style="left:390px; top:380px; 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_downfile" class="btn2_letter8" disabled="false" style="left:497px; top:593px; width:108px; height:19px; ">
- <caption>파일수정/다운로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if ( model.getValue( ipt_attfilepathnm.attribute("ref")).length <= 0) {
- messageBox( "첨부파일이 존재하지 않아 첨부파일을 다운로드 할수" , "I004" );
- return;
- }
-
- fAttfileDown();
-
- ]]>
- </script>
- </button>
- <line id="line4" class="line_1" style="x1:610px; y1:373px; x2:1195px; y2:373px; "/>
- <caption id="caption10" class="tit_2" style="left:615px; top:358px; width:100px; height:13px; ">비품찾기</caption>
- <input id="ipt_installplcenm" ref="/root/main/goodreq/goodreqlist/installplcenm" class="input_fix" appearance="input" style="left:195px; top:569px; width:105px; 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",
- "deptnm," + ipt_installplcenm.value, "", "installplcecd,installplcenm",
- ipt_installplcenm, "PPRAC00700", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_installplcecd" class="icon_search" style="left:175px; top:568px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "installplcecd,installplcenm";
- misfOpenPopUpList("19", ipt_installplcecd,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodflag" ref="/root/send/lrgcd/goodflag" visibility="hidden" style="left:902px; top:45px; width:30px; height:19px; "/>
- <caption id="caption17" class="cell_1" style="left:0px; top:426px; 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:428px; width:103px; height:19px; "/>
- <output id="opt_mdlnm" ref="/root/main/goodreq/goodreqlist/mdlnm" class="output_fix" style="left:333px; top:428px; width:103px; height:19px; "/>
- <output id="opt_smlnm" ref="/root/main/goodreq/goodreqlist/smlnm" class="output_fix" style="left:503px; top:428px; width:103px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:0px; top:614px; width:100px; height:47px; vertical-align:middle; ">청구사유</caption>
- <textarea id="ipt_cmt" ref="/root/main/goodreq/goodreqlist/cmt" maxlength="100" appearance="textarea" style="left:102px; top:615px; width:504px; height:44px; ">
- <script type="javascript" ev:event="onmaxlength">
- <![CDATA[
- model.setFocus("ipt_cmt");
- messageBox("입력 가능한 글자수 초과","I009");
- ]]>
- </script>
- </textarea>
- <caption id="caption15" class="cell_1" style="left:269px; top:402px; 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:404px; width:113px; height:19px; "/>
- <input id="ipt_lrgcd" ref="/root/main/goodreq/goodreqlist/lrgcd" class="input_s_essential" style="left:128px; top:428px; width:36px; height:19px; "/>
- <input id="ipt_mdlcd" ref="/root/main/goodreq/goodreqlist/mdlcd" class="input_fix" style="left:295px; top:428px; width:36px; height:19px; "/>
- <switch id="swh_select" style="left:610px; top:405px; width:585px; height:220px; ">
- <case id="cse_lrgcd" selected="true" style="focus-rect:hidden; ">
- <datagrid id="grd_mdllist" nodeset="/root/main/list/mdl/mdllist" visibility="hidden" allowuserresize="false" caption="중분류코드^중분류명^계정코드(입고)^계정코드(입고)^계정코드(비용)^계정코드(비용)^물품구분^대분류코드^최초등록자ID^최초등록일시^최종등록자ID^최종등록일시" colsep="^" colwidth="6, 135, 100, 120, 100, 120, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:197px; top:8px; width:192px; height:202px; ">
- <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" visibility="hidden" 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="|" style="left:392px; top:8px; width:191px; height:202px; ">
- <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[
- // alert("s1");
- 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:583px; height:210px; ">
- <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="55, 54, 53, 95, 137, 81, 69, 75, 76, 80, 84, 88, 84, 80, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:8px; width:583px; height:210px; ">
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="fixasetcd"/>
- <col ref="goodflaghngnm"/>
- <col ref="goodmodel"/>
- <col ref="goodspec"/>
- <col ref="possnamt" format="#,###" style="text-align:right; "/>
- <col ref="possndd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="suplplcenm"/>
- <col ref="mngtdeptnm"/>
- <col ref="installplcenm"/>
- <col ref="cntrdeptnm"/>
- <col ref="windd" visibility="hidden" 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[
- 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>
- <input id="ipt_smlcd" ref="/root/main/goodreq/goodreqlist/smlcd" class="input_fix" style="left:465px; top:428px; width:36px; height:19px; "/>
- <button id="btn_search_cd" class="btn2_letter2" style="left:1151px; top:383px; 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:382px; 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:382px; width:144px; height:22px; ">
- <caption>분류코드</caption>
- <toggle case="cse_lrgcd" ev:event="DOMActivate"/>
- </button>
- <select1 id="cmb_acptflag_search" ref="/root/send/goodreq/acptflag" class="combo_s_essential" appearance="minimal" style="left:875px; top:20px; 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:290px; top:669px; width:315px; height:19px; text-align:right; "/>
- <select1 id="cmb_acptflag" ref="/root/main/goodreq/goodreqlist/acptflag" class="combo_essential" appearance="minimal" style="left:102px; top:669px; width:184px; 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")));
- }
- /* 부결처리시 */
- 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:380px; 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:404px; width:15px; height:19px; text-align:center; "/>
- <caption id="caption11" class="cell_1" style="left:23px; top:691px; width:78px; height:46px; vertical-align:middle; ">조정사유</caption>
- <textarea id="ipt_adjtrsn" ref="/root/main/goodreq/goodreqlist/adjtrsn" class="input_essential" maxlength="48" appearance="textarea" style="left:102px; top:693px; width:504px; height:43px; text-align:left; ">
- <script type="javascript" ev:event="onmaxlength">
- <![CDATA[
- model.setFocus("ipt_adjtrsn");
- messageBox("입력 가능한 글자수 초과","I009");
- ]]>
- </script>
- </textarea>
- <line id="line6" class="line_1" style="x1:0px; y1:663px; x2:605px; y2:663px; "/>
- <caption id="caption12" class="cell_1" style="left:0px; top:667px; width:22px; height:70px; vertical-align:middle; ">접수</caption>
- <caption id="caption45" class="cell_1" style="left:101px; top:426px; width:25px; height:23px; vertical-align:middle; ">대</caption>
- <caption id="caption46" class="cell_1" style="left:269px; top:426px; width:25px; height:23px; vertical-align:middle; ">중</caption>
- <caption id="caption47" class="cell_1" style="left:438px; top:426px; width:25px; height:23px; vertical-align:middle; ">소</caption>
- <caption id="caption49" class="cell_1" visibility="hidden" style="left:130px; top:348px; width:22px; height:23px; vertical-align:middle; ">예산계정</caption>
- <caption id="caption50" class="cell_1" visibility="hidden" style="left:181px; top:346px; width:19px; height:23px; vertical-align:middle; ">연구과제</caption>
- <input id="ipt_stdysubjno" ref="/root/main/goodreq/goodreqlist/stdysubjno" class="input_search" visibility="hidden" maxlength="4" style="left:205px; top:348px; width:20px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_stdysubjno.value.length == 0)
- ipt_stdysubjnm.value = "";
- else
- rszfValidationCheck("TRRSD00261", "studylist", "instcd,refcond,stdysubjno",
- cmb_instcd_search.value + ",stdysubjno," + ipt_stdysubjno.value, "", "stdysubjno,stdysubjnm",
- ipt_stdysubjno, "SPRSD00260", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_bugtcd" ref="/root/main/goodreq/goodreqlist/bugtcd" class="combo_default" visibility="hidden" appearance="minimal" style="left:155px; top:348px; width:20px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_stdysubjnm" ref="/root/main/goodreq/goodreqlist/stdysubjnm" class="input_fix" visibility="hidden" appearance="input" style="left:240px; top:348px; width:20px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_stdysubjnm.value.length == 0)
- ipt_stdysubjno.value = "";
- else
- rszfValidationCheck("TRRSD00261", "studylist", "instcd,refcond,stdysubjnm",
- cmb_instcd_search.value + ",stdysubjnm," + ipt_stdysubjnm.value, "", "stdysubjno,stdysubjnm",
- ipt_stdysubjnm, "SPRSD00260", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_stdysubjnm" class="icon_search" visibility="hidden" style="left:225px; top:348px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_stdysubjno,"","stdysubjno,stdysubjnm","SPRSD00260","instcd","cmb_instcd_search");
- 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_fix" visibility="hidden" style="left:452px; top:267px; width:70px; 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",
- cmb_instcd_search.value + "," + "entrregno," + ipt_suplplcecd.value, "", "suplplcecd,suplplcenm",
- ipt_suplplcecd, "SPRSD00220", "instcd","cmb_instcd_search");
- 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" visibility="hidden" style="left:350px; top:265px; width:100px; height:23px; vertical-align:middle; ">거래처</caption>
- <button id="btn_suplplcecd" class="icon_search" visibility="hidden" style="left:525px; top:269px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd_search");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_suplplcenm" ref="/root/main/goodreq/goodreqlist/suplplcenm" class="input_fix" visibility="hidden" appearance="input" style="left:545px; top:267px; width:105px; 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",
- cmb_instcd_search.value + "," + "custnm," + ipt_suplplcenm.value, "", "suplplcecd,suplplcenm",
- ipt_suplplcenm, "SPRSD00220", "instcd","cmb_instcd_search");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_plceordamt" ref="/root/main/goodreq/goodreqlist/plceordamt" class="input_s_essential" disabled="true" format="#,###" style="left:520px; top:522px; width:85px; height:19px; text-align:right; "/>
- <caption id="caption53" class="cell_1" style="left:304px; top:520px; width:61px; height:22px; vertical-align:middle; ">단가</caption>
- <caption id="caption55" class="cell_1" style="left:457px; top:520px; width:61px; height:22px; vertical-align:middle; ">금액</caption>
- <input id="ipt_wncurncyamt" ref="/root/main/goodreq/goodreqlist/wncurncyamt" class="input_fix" format="#,###" style="left:367px; top:522px; width:85px; 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:175px; top:544px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "mngtdeptcd,mngtdeptcdnm";
- misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_mngtdeptcd" class="cell_1" style="left:0px; top:544px; width:100px; height:23px; vertical-align:middle; ">사용부서</caption>
- <input id="ipt_mngtdeptcdnm" ref="/root/main/goodreq/goodreqlist/mngtdeptcdnm" class="input_fix" appearance="input" style="left:195px; top:545px; width:105px; 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 + "," + cmb_instcd_search.value, "", "mngtdeptcd,mngtdeptcdnm",
- ipt_mngtdeptcdnm, "SPRPZ00200", "instcd","cmb_instcd_search");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_cntrdeptcd" ref="/root/main/goodreq/goodreqlist/cntrdeptcd" class="input_fix" style="left:102px; top:522px; width:70px; 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")) + "," + cmb_instcd_search.value, "", "cntrdeptcd,cntrdeptcdnm",
- ipt_cntrdeptcd, "SPRPZ00200", "instcd","cmb_instcd_search");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_cntrdeptcd" class="icon_search" style="left:175px; top:521px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "cntrdeptcd,cntrdeptcdnm";
- misfOpenPopUpList("02", ipt_cntrdeptcd,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_mngtdeptcd" ref="/root/main/goodreq/goodreqlist/mngtdeptcd" class="input_fix" style="left:102px; top:545px; width:70px; 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 + "," + cmb_instcd_search.value, "", "mngtdeptcd,mngtdeptcdnm",
- ipt_mngtdeptcd, "SPRPZ00200", "instcd","cmb_instcd_search");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_cntrdeptcdnm" ref="/root/main/goodreq/goodreqlist/cntrdeptcdnm" class="input_fix" appearance="input" style="left:195px; top:522px; width:105px; 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 + "," + cmb_instcd_search.value, "", "cntrdeptcd,cntrdeptcdnm",
- ipt_cntrdeptcdnm, "SPRPZ00200", "instcd","cmb_instcd_search");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_cntrdeptcd" class="cell_1" style="left:0px; top:520px; width:100px; height:23px; vertical-align:middle; ">청구부서</caption>
- <input id="ipt_reqtel" ref="/root/main/goodreq/goodreqlist/reqtel" visibility="hidden" style="left:535px; top:403px; width:25px; height:19px; "/>
- <input id="ipt_studyinstcd" ref="/root/main/goodreq/goodreqlist/studyinstcd" visibility="hidden" style="left:485px; top:403px; width:50px; height:19px; "/>
- <select1 id="cmb_acpttype" ref="/root/main/goodreq/goodreqlist/acpttype" class="combo_essential" visibility="hidden" appearance="minimal" style="left:770px; top:265px; width:150px; 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")));
- }
-
- //20081111 지급기준이 자체제작이나 재고 지급일 경우 deliveprcsflag 를 자체 제작(8) 이나 재고지급(9) 으로 설정할것
-
- // if( model.getValue("/root/main/list/goodreq/goodreqlist["+grd_goodreq.row+"]/deliveprcsflag") == "1" || model.getValue("/root/main/list/goodreq/goodreqlist["+grd_goodreq.row+"]/deliveprcsflag") == "9") //청구 일경우만 지급기준을 변경할수 있다.
- // {
- if ( model.getValue(cmb_acpttype.attribute("ref")) == "1") //정상구매
- {
- model.setValue( ipt_deliveprcsflag.attribute("ref") , "1" ); //청구
- }
- else if ( model.getValue(cmb_acpttype.attribute("ref")) == "2") //자체 제작
- {
- model.setValue(ipt_deliveprcsflag.attribute("ref") , "8" ); //자체제작
- }
- else if ( model.getValue(cmb_acpttype.attribute("ref")) == "3" ) //재고지급
- {
- model.setValue(ipt_deliveprcsflag.attribute("ref") , "9" ); //재고지급
- }
- else if ( model.getValue(cmb_acpttype.attribute("ref")) == "4") //임대
- {
- model.setValue(ipt_deliveprcsflag.attribute("ref") , "10" ); //임대
- }
- // }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption16" class="cell_1" visibility="hidden" style="left:690px; top:264px; width:78px; height:23px; vertical-align:middle; ">지급기준</caption>
- <button id="btn_excel" class="btn5_letter5" navindex="12" style="left:899px; top:73px; width:75px; height:19px; ">
- <caption>Excel 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( grd_goodreq.rows - grd_goodreq.fixedRows > 0 ) {
- var fileName = "비품청구내역_" + getCurrentDate();
- var fileName = window.fileDialog("save", ",", false, fileName, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_goodreq.saveExcel(fileName, "Sheet");
- } else {
- messageBox("저장 데이터가","I004");
- }
- ]]>
- </script>
- </button>
- <caption id="caption18" class="cell_1" style="left:304px; top:568px; width:115px; height:20px; vertical-align:middle; ">예산년도/집행/잔액</caption>
- <input id="ipt_bugtexecamt" ref="/root/main/goodreq/goodreqlist/bugtexecamt" class="output_fix" format="#,###" style="left:480px; top:569px; width:61px; height:19px; text-align:right; "/>
- <input id="ipt_remainder" ref="/root/main/goodreq/goodreqlist/remainder" class="output_fix" format="#,###" style="left:545px; top:569px; width:60px; height:19px; text-align:right; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:565px; x2:605px; y2:565px; "/>
- <input id="input1" ref="/root/main/goodreq/goodreqlist/reqtel" disabled="true" style="left:392px; top:545px; width:213px; height:19px; text-align:right; "/>
- <caption id="caption44" style="left:605px; top:18px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <input id="ipt_deptaprvddto_search" ref="/root/send/goodreq/deptaprvddto" class="input_s_essential" inputtype="date" style="left:620px; top:18px; width:96px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_reqfrdd_search" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:507px; top:18px; width:96px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption19" class="search_name" style="left:420px; top:18px; width:86px; height:17px; ">승인일자 :</caption>
- <input id="ipt_deptaprvddfr_search" ref="/root/send/goodreq/deptaprvddfr" class="input_s_essential" inputtype="date" style="left:507px; top:18px; width:96px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption14" style="left:605px; top:43px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <input id="ipt_reqtodd_search" ref="/root/send/goodreq/reqtodd" class="input_default" inputtype="date" style="left:620px; top:43px; width:96px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="input4" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:507px; top:43px; width:96px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption20" class="search_name" style="left:420px; top:43px; width:95px; height:17px; ">청구일자 :</caption>
- <input id="input2" ref="/root/send/goodreq/reqfrdd" class="input_default" inputtype="date" style="left:507px; top:43px; width:96px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- </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[
- //20081111 지급기준이 자체제작이나 재고지급일 경우 필수입력항목에 입력 없이 저장한다.
- //추가 => 접수에서 종료인 경우도 필수입력항목 없이 저장한다.
- if ( model.getValue(cmb_acpttype.attribute("ref")) == "2" || model.getValue(cmb_acpttype.attribute("ref")) == "3"
- || model.getValue(cmb_acptflag.attribute("ref")) == "C" || model.getValue(cmb_acpttype.attribute("ref")) == "4" )
- {
-
- }else{
-
- 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");
- /*
- var updtdata = getGridUpdateData(grd_goodreq);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
- model.setValue("/root/send/save/goodreqlist", updtdata);
-
- submit("TXRSD11101");
- */
- if (model.getValue(gvErrorMsgPath + "/type") != "error" )btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- <button id="btn_prta" class="btn6_letter8" style="left:102px; top:3px; width:123px; height:22px; ">
- <caption>청구서출력(일괄)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var Cnt = getNodesetCount("/root/main/list/goodreq/goodreqlist")
- for(var i=1;i<=Cnt;i++){
- if(grd_goodreq.valueMatrix(i, grd_goodreq.colRef("chk")) == "Y") {
- //부서장만 출력가능하게 함
- //부서장 가져오기함수 필요
- if (getUserInfo("dutplceinstcd") =='031'){
- // 메뉴파라메터에 출력권한 사번 추가( ex : xxxxx,yyyyy,zzzzz )
- var checkID = model.getValue("/root/properties/menu/menuparam").split(",");
- var checkFlag = false;
- for(k=0; k<checkID.length; k++){
- if(getUserInfo("userid") == checkID[k]) checkFlag = true;
- }
- if ( getUserInfo("userid") == 'MIS'|| checkFlag){
- model.copyNode("/root/main/goodreq/goodreqlist", "/root/main/list/goodreq/goodreqlist["+ i +"]");
- exeReportPreview("RPRSD05101", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
- } else {
- messageBox("출력 ","E002");
- }
- } else {
- model.copyNode("/root/main/goodreq/goodreqlist", "/root/main/list/goodreq/goodreqlist["+ i +"]");
- // model.makeValue("/root/main/goodreq/goodreqlist/requnitnm", cmb_requnit.label);
- // exeReportPreview("RPRSD05101", "XMLSTR");
- exeReportPreview("RPRSD05101", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn6_letter4" navindex="-1" style="left:231px; top:3px; width:80px; height:22px; ">
- <caption>전자결재</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //전자결재 호출
- var resultNode = instance1.selectNodes("/root/main/maindatalist");
- if(resultNode.length == 0){
- alert("내역이 없습니다.");
- return;
- }
- var pInstcd = model.getValue("/root/send/instcd");
- var pYyyymm = model.getValue("/root/send/yyyymm");
-
- var pmaprefcol = "knuhdomain,instId";
- var pmaprefvalue = "KnuhMisAssetsDepreciation," + pYyyymm + "-" + pInstcd;
-
- misfMakeElctSanct("assetsDepreciationMontly", pmaprefcol, pmaprefvalue);
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter5" style="left:9px; top:3px; width:92px; height:22px; ">
- <caption>청구서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var Cnt = getNodesetCount("/root/main/list/goodreq/goodreqlist")
- for(var i=1;i<=Cnt;i++){
- if(grd_goodreq.valueMatrix(i, grd_goodreq.colRef("chk")) == "Y") {
- //부서장만 출력가능하게 함
- //부서장 가져오기함수 필요
- if (getUserInfo("dutplceinstcd") =='031'){
- // 메뉴파라메터에 출력권한 사번 추가( ex : xxxxx,yyyyy,zzzzz )
- var checkID = model.getValue("/root/properties/menu/menuparam").split(",");
- var checkFlag = false;
- for(k=0; k<checkID.length; k++){
- if(getUserInfo("userid") == checkID[k]) checkFlag = true;
- }
- if (getUserInfo("userid") == 'MIS'|| checkFlag){
- model.copyNode("/root/main/goodreq/goodreqlist", "/root/main/list/goodreq/goodreqlist["+ i +"]");
- // model.makeValue("/root/main/goodreq/goodreqlist /requnitnm", cmb_requnit.label);
- // exeReportPreview("RPRSD05101", "XMLSTR");
- exeReportPreview("RPRSD05101", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- } else {
- messageBox("출력 ","E002");
- }
- } else {
- model.copyNode("/root/main/goodreq/goodreqlist", "/root/main/list/goodreq/goodreqlist["+ i +"]");
- // model.makeValue("/root/main/goodreq/goodreqlist/requnitnm", cmb_requnit.label);
- // exeReportPreview("RPRSD05101", "XMLSTR");
- exeReportPreview("RPRSD05101", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- }
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|