12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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>
- <rfehdabplist/>
- <grid>
- <rfehemhtlist/>
- <rfcmfacdlist/>
- <reqpsnlist/>
- </grid>
- <control>
- <rfehemhtlist>
- <fixasetcd/>
- <fixasetnm/>
- <reqdeptcd/>
- <depthngnm/>
- <reqpsnid/>
- <reqpsnnm/>
- <fixtrseqmtflag/>
- <workstat/>
- <btnfixasetcd/>
- <deptaprvreqyn>Y</deptaprvreqyn>
- <execdept/>
- <attfilenm/>
- <attfilepathnm/>
- </rfehemhtlist>
- <instcd/>
- </control>
- <printdata>
- <data/>
- </printdata>
- </main>
- <send>
- <instcd/>
- <instcdnm/>
- <reqdd1/>
- <reqdd2/>
- <reqflag>S</reqflag>
- <reqpsnid/>
- <reqpsnnm/>
- <fixtrseqmtflag>GE</fixtrseqmtflag>
- <reqdd/>
- <reqno/>
- <reqdeptcd/>
- <reqdeptnm/>
- <deptcd/>
- <goodflag>GE</goodflag>
- <searchall/>
- <fileupcolumn>
- <instcd/>
- <reqdd/>
- <fileseqno/>
- <reqflag/>
- <reqno/>
- <reqseqno/>
- <reqpsnid/>
- <attfilenm/>
- <attfilepathnm/>
- <reqdeptcd/>
- <fileupload>
- <file>
- <filename/>
- </file>
- </fileupload>
- <scrnid>SMRFE00410</scrnid>
- </fileupcolumn>
- <goodsrch>
- <fixasetcd/>
- <goodflaghngnm/>
- <instcd/>
- <goodflag/>
- <mngtdeptcd/>
- </goodsrch>
- </send>
- <init>
- <rowtemp/>
- <workstattemp/>
- <fixtrseqmtflag>
- <label>일반비품</label>
- <value>G</value>
- <label>의료장비</label>
- <value>E</value>
- <label>의료비품</label>
- <value>U</value>
- </fixtrseqmtflag>
- <instcd/>
- <reqflag>D</reqflag>
- <emplno/>
- <reqaprvflag/>
- <reqdeptcd/>
- </init>
- <temp>
- <rfehemhtlist/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //submit 되는 node 들을 초기화한다
- fInitialize();
- // btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- <submission id="TRRFE00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/rfehemhtlist"/>
- <submission id="TXRFE00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/grid/rfehemhtlist" resultref="/root/temp"/>
- <submission id="TRRFE00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rfehdabplist"/>
- <submission id="TRRSE01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/rfcmfacdlist"/>
- <submission id="TRRSC06001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init" resultref="/root/main/grid/reqpsnlist"/>
- <submission id="TXRSD00423" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/fileupcolumn" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript">
- <![CDATA[
- function fAttfileAdd(){
- //파일 다운로드 하는 기능
- var maxsize = upd_uploadfile.attribute("filesize");
-
- model.setValue("/root/send/fileupcolumn/instcd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("instcd") ) );
- model.setValue("/root/send/fileupcolumn/reqdd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqdd") ) );
- // model.setValue("/root/send/fileupcolumn/reqflag" , grd_goodreq.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqflag") ) );
- model.setValue("/root/send/fileupcolumn/reqflag" , "S" ); //비품수리신청등록시 하드코딩 - 나중에 query에서 control
- model.setValue("/root/send/fileupcolumn/reqno" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqno") ) );
- // model.setValue("/root/send/fileupcolumn/reqseqno" , grd_goodreq.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqseqno") ) );
- // reqseqno에 해당하는것이 MIS.RSCMFIFL의REFSEQ 인데 수리청구에서는 reqseqno를 사용하지 않는다. - 나중에 query에서 control
- model.setValue("/root/send/fileupcolumn/reqpsnid" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqpsnid") ) );
- model.setValue("/root/send/fileupcolumn/reqdeptcd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqdeptcd") ) );
-
- model.setValue("/root/send/fileupcolumn/attfilenm" , model.getValue("/root/main/control/rfehemhtlist/attfilenm") );
- model.setValue("/root/send/fileupcolumn/attfilepathnm", model.getValue("/root/send/fileupcolumn/fileupload/file") );
- // alert("instcd => "+model.getValue("/root/send/fileupcolumn/instcd") );
- // alert("reqflag => "+model.getValue("/root/send/fileupcolumn/reqflag") );
- // alert("reqseqno => "+model.getValue("/root/send/fileupcolumn/reqseqno") );
- // alert("emplno => "+model.getValue("/root/send/fileupcolumn/emplno") );
- // alert("filename => "+model.getValue("/root/send/fileupcolumn/fileupload/file") );
- // alert("attfilenm=> "+model.getValue("/root/send/fileupcolumn/attfilenm") );
- // alert("attfilepathnm=> "+model.getValue("/root/send/fileupcolumn/attfilepathnm") );
- // alert(model.getValue( ipt_uploadfile.attribute("ref") ));
- // alert( ipt_uploadfile.attribute("ref") );
- submit("TXRSD00423");
- if (model.getValue(gvErrorMsgPath + "/type") != "error" ){
- messageBox("첨부파일이 업로드" , "I002");
- btn_search.dispatch("DOMActivate");
- }
- //파일 업로드 후 첨부파일 팝업창을 띄워서 해당 파일이 잘 올라갔는지 확인할수 있도록 해준다.?????
- }
- function fAttfileDown(){ //첨부파일 다운로드
- model.setValue("/root/send/fileupcolumn/instcd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("instcd") ) );
- model.setValue("/root/send/fileupcolumn/reqdd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqdd") ) );
- // model.setValue("/root/send/fileupcolumn/fileseqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("fileseqno") ) ); //seqNumber
- model.setValue("/root/send/fileupcolumn/fileseqno" , model.getValue("/root/main/goodreq/goodreqlist/attfilepathnm") ); //seqNumber
-
- //model.setValue("/root/send/fileupcolumn/reqflag" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqflag") ) );
- model.setValue("/root/send/fileupcolumn/reqflag" , "S");
- //alert(grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqflag") ));
- //return;
-
- model.setValue("/root/send/fileupcolumn/reqno" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqno") ) );
- // model.setValue("/root/send/fileupcolumn/reqseqno" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , "900" ) ); //강제하드코딩
- model.setValue("/root/send/fileupcolumn/reqpsnid" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqpsnid") ) );
- model.setValue("/root/send/fileupcolumn/reqdeptcd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqdeptcd") ) );
-
- model.setValue("/root/send/fileupcolumn/attfilenm" , model.getValue("/root/main/control/rfehemhtlist/attfilepathnm") );
- model.setValue("/root/send/fileupcolumn/attfilepathnm" , model.getValue("/root/send/fileupcolumn/fileupload/file") );
-
- //첨부파일관련 팝업을 띄워서 첨부파일을 조회도 하고 다운로드 삭제까지 할수 있도록 구현.
- rszfOpenPopUpListByWndName(grd_rfehemhtlist,"","","SMRSD00420","instcd,reqdd,reqflag,reqno,reqseqno,reqpsnid,reqdeptcd,attfilepathnm","instcd,reqdd,reqflag,reqno,reqseqno,reqpsnid,reqdeptcd,attfilepathnm", "Y");
-
- //submit("TRRSD00421");
- btn_search.dispatch("DOMActivate");
- }
-
- function fInitialize()
- {
- var vInstance = document.models(0).instances(0);
- var cnt;
- if (getUserInfo("dutplceinstcd") == "017"){
- cap_execdept.visible = true;
- rdo_execdept.visible = true;
- }
- misfGridInit(grd_rfehemhtlist);
- misfGridInit(grd_rfehdabplist);
- misfGridInit(grd_temp);
- misfGridInit(grd_rfcmfacdlist);
- // rszfUserGoodFlagList(cmb_fixtrseqmtflag,getUserInfo("userid"));
- rszfComboBugtList(cmb_bugtcd,getUserInfo("dutplceinstcd"));
- // misfComboComCdListMulti("Z0007,R0055,R0055,R0032", "opt_instcd,cmb_workstat,grd_rfehemhtlist.workstat,grd_rfehdabplist.acsrsunit");
- // misfComboComCdListMulti("R0055,R0055,R0032,R0025,R0035", "cmb_workstat,grd_rfehemhtlist.workstat,grd_rfehdabplist.acsrsunit,grd_rfcmfacdlist.goodflag,grd_rfcmfacdlist.prodplce");
- misfComboComCdListMulti("R0032,R0025,R0035", "grd_rfehdabplist.acsrsunit,grd_rfcmfacdlist.goodflag,grd_rfcmfacdlist.prodplce");
-
- //addComboItem("cmb_workstat", "청구승인의뢰", "00", "above");
- //rszGridAddComboItem("grd_rfehemhtlist.workstat", "청구승인의뢰", "00", "above");
-
- //20081107 현업요구사항 추가
- //addComboItem("cmb_workstat", "재고지급", "09", "above");
- //rszGridAddComboItem("grd_rfehemhtlist.workstat", "재고지급", "09", "above");
- // addComboItem("grd_rfehemhtlist.workstat", "청구승인의뢰", "00", "above");
- // 사용자 권한에 따른 기관코드 Setting. [(6)수리관리, (C)신청]
- // rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"6","C");
-
- model.resetInstanceNode("/root/main/control/rfehemhtlist");
-
- misfMsterDetailSet(grd_rfehemhtlist, null, "TRRFE00401", "Y");
- misfMsterDetailSet(grd_rfcmfacdlist, null, "TRRSE01502", "N");
-
- // 기관코드 설정
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/instcdnm", getUserInfo("dutplceinstnm"));
- // opt_instcdnm.value = getuUserInfo("dutplceinstnm");
- model.setValue(opt_reqdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(opt_reqdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
-
- model.setValue("/root/send/deptcd", opt_reqdeptcd.value);
-
- // 금일 날자 설정
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
-
- model.setValue("/root/send/reqdd1", curdate.substr(0,6)+"01" );
- model.setValue("/root/send/reqdd2", curdate.substr(0,6)+cvtdate.getMonthDay() );
-
- // 부서코드 설정
- model.setValue("/root/main/control/rfehemhtlist/reqdeptcd" , getUserInfo("dutplcecd"));
- // 부서코드명 설정
- model.setValue("/root/main/control/rfehemhtlist/depthngnm" , getUserInfo("dutplcenm"));
-
- // User ID 설정
- model.setValue("/root/main/control/rfehemhtlist/reqpsnid", getUserInfo("userid"));
- // User Name 설정
- model.setValue("/root/main/control/rfehemhtlist/reqpsnnm", getUserInfo("usernm"));
- // model.setValue("/root/send/fixtrseqmtflag", "EQ");
- // cmb_fixtrseqmtflag.select(0);
- // rdo_goodflag.select(3);
- model.refresh();
-
- model.setValue(ipt_rowtemp.attribute("ref"), "");
- //----------------------------------------------------------------
- fcontrolEnableYN(true); //1. 초기화할때
- //----------------------------------------------------------------
-
- // btn_search.disabled = !checkAuth("X");
- misfSetReadOnlyCol(grd_rfehemhtlist, "workstat", true);
-
- // 구매팀, 구매Unit 직원들만 미접수라는 표시가 뜨며 조회조건과 관계없이 미접수된 청구내역을 볼수 있다.
- if(getUserInfo("dutplcecd") == "4080100000" || getUserInfo("dutplcecd") == "4080102000" || getUserInfo("dutplcecd") == "4080300000")
- chb_searchall.visible = true;
-
- //수리 청구 승인권한 여부 판별하여 Grid의 승인 컬럼을 설정.
- fdeptGrantYN();
-
- model.setValue("/root/init/instcd", model.getValue("/root/send/instcd"));
- model.setValue("/root/init/emplno",getUserInfo("userid"));
- model.setValue("/root/init/reqdeptcd", "");
- submit("TRRSC06001");
- cnt = vInstance.selectNodes("/root/main/grid/reqpsnlist").length;
-
- //승인권자가 아닐 경우 사용부서 고정
- /*if(cnt == 0) // 칠곡 권순한 선생님 요청. 사용부서 조회 제한 조건 삭제
- {
- btn_dept.disabled = true;
- ipt_reqdeptcd.disabled = true;
- btn_reqdeptcdSearch.disabled = true;
- ipt_depthngnm.disabled = true;
- }*/
- //test
- // if( getUserInfo("userid") == "10109420"){
- // btn_addfile.disabled = false ;
- // btn_downfile.disabled = false ;
- //
- // caption8.visible = true;
- // ipt_attfilenm.visible = true;
- // btn_addfile.visible = true;
- // btn_downfile.visible = true;
- //
- // ipt_reqdd1.value ="20100311";
- // opt_reqdeptcd.value ="4080100000";
- // btn_search.dispatch("DOMActivate");
- // alert("12");
- //
- // }else{
- // btn_addfile.disabled = true;
- // btn_downfile.disabled = true;
- //
- // caption8.visible = false;
- // ipt_attfilenm.visible = false;
- // btn_addfile.visible = false;
- // btn_downfile.visible = false;
- // }
- // //test2
- // btn_downfile.visible = true;
- // btn_downfile.disabled = false;
- model.refresh();
- }
- //수리 청구 승인권한 여부 판별하여 Grid의 승인 컬럼을 설정.
- function fdeptGrantYN()
- {
- /* ---------------------------------------------------------------------------------------
- * [2007.12.12 HBH ] 청구주기 추가.
- * 수리,장비등 청구주기가 없는 것들은 '1'로셋팅
- ---------------------------------------------------------------------------------------*/
- // rszfGetPurcReqAuthInfo(opt_instcd.value, "S", getUserInfo("dutplcecd"), getUserInfo("userid"),"1"); //han
-
- /* 2011.03.22 비품 모두 승인불필요 처리 - 박진억 수정
- rszfGetPurcReqAuthInfo(opt_instcd.value, "S", opt_reqdeptcd.value , getUserInfo("userid"),"1");
-
- for(var fRow = grd_rfehemhtlist.fixedRows; fRow < grd_rfehemhtlist.rows; fRow++)
- {
- if(grd_rfehemhtlist.valueMatrix(fRow, grd_rfehemhtlist.colRef("deptaprvreqyn")) == "N"){
- grd_rfehemhtlist.isReadOnly(fRow,grd_rfehemhtlist.colRef("deptaprvyn")) = true;
- }else if( rszfGetPurcAuthInfoByCond("reqaprvflag") == "1" )
- {
- grd_rfehemhtlist.isReadOnly(fRow,grd_rfehemhtlist.colRef("deptaprvyn")) = true;
-
- }else if( rszfGetPurcAuthInfoByCond("reqaprvflag") == "2" || (rszfGetPurcDeptCd(opt_instcd.value) == (getUserInfo("dutplcecd") ) ) ) //구매팀 승인가능하도록 설정
- {
- if(grd_rfehemhtlist.valueMatrix(fRow, grd_rfehemhtlist.colRef("workstat")) == "00" || grd_rfehemhtlist.valueMatrix(fRow, grd_rfehemhtlist.colRef("workstat")) == "01" )
- {
- grd_rfehemhtlist.isReadOnly(fRow,grd_rfehemhtlist.colRef("deptaprvyn")) = false;
- }else{
- grd_rfehemhtlist.isReadOnly(fRow,grd_rfehemhtlist.colRef("deptaprvyn")) = true;
- }
- }else{
- grd_rfehemhtlist.isReadOnly(fRow,grd_rfehemhtlist.colRef("deptaprvyn")) = true;
- }
- }
- model.refresh();
- */
- }
-
- function fcontrolEnableYN(TrueFalse)
- {
- //ipt_fixasetcd.disabled = TrueFalse; //이현민막음
- btn_fixasetSearchs.disabled = TrueFalse;
- //ipt_fixasetnm.disabled = TrueFalse; //이현민막음
- ipt_reqdd.disabled = true;
- ipt_reqno.disabled = true;
- //사용자권한에 따라 바꾸지 못하게 막거나, 진행상황에 따라 수정 가능하게 설정
- if(grd_reqpsnlist.rows - grd_reqpsnlist.fixedRows == 0 && getUserInfo("dutplcecd") != "4080100000" && getUserInfo("dutplcecd") != "4080102000" && getUserInfo("dutplcecd") != "4080300000")
- { ipt_reqdeptcd.disabled = true;
- btn_reqdeptcdSearch.disabled = true;
- ipt_depthngnm.disabled = true;
- ipt_reqpsnid.disabled = true;
- btn_reqpsnidSearch.disabled = true;
- ipt_reqpsnnm.disabled = true;
- //btn_addfile.disabled = true;
- //btn_downfile.disabled = true;
- }else{
- ipt_reqdeptcd.disabled = TrueFalse;
- btn_reqdeptcdSearch.disabled = TrueFalse;
- ipt_depthngnm.disabled = TrueFalse;
- ipt_reqpsnid.disabled = TrueFalse;
- btn_reqpsnidSearch.disabled = TrueFalse;
- ipt_reqpsnnm.disabled = TrueFalse;
- }
- ipt_acptdeptcd.disabled = true;
- ipt_acptdeptnm.disabled = true;
- cmb_fixtrseqmtflag.disabled = true;
- ipt_reqtel.disabled = TrueFalse;
- txt_hdrncspec.disabled = TrueFalse;
- ipt_genrdd.disabled = TrueFalse;
- // ipt_genrtm.disabled = TrueFalse;
- if(opt_instcd.value == "103")
- { ipt_bugtyy.disabled = TrueFalse;
- cmb_bugtcd.disabled = TrueFalse;
- ipt_stdysubjno.disabled = TrueFalse;
- btn_stdysubjnm.disabled = TrueFalse;
- ipt_stdysubjnm.disabled = TrueFalse;
- }else{
- ipt_bugtyy.disabled = true;
- cmb_bugtcd.disabled = true;
- ipt_stdysubjno.disabled = true;
- btn_stdysubjnm.disabled = true;
- ipt_stdysubjnm.disabled = true;
- }
- ipt_chrgpsnid.disabled = true;
- ipt_chrgpsnnm.disabled = true;
- cmb_workstat.disabled = true;
- ipt_acptdd.disabled = true;
- che_acptpsncnfm.disabled = TrueFalse;
- ipt_deptacptdd.disabled = true;
- ipt_deptacptpsnid.disabled = true;
- ipt_deptacptpsnnm.disabled = true;
- txt_lastrpirrslt.disabled = true;
- // 부품사용내역 그리드 설정
- //grd_rfehdabplist.disabled = true;
-
- //real
- btn_addfile.disabled = TrueFalse;
- btn_downfile.disabled = TrueFalse;
-
- //test
- // if( getUserInfo("userid") == "10109420"){
- // btn_addfile.disabled = false ;
- // btn_downfile.disabled = false ;
- //
- // caption8.visible = true;
- // ipt_attfilenm.visible = true;
- // btn_addfile.visible = true;
- // btn_downfile.visible = true;
- // }else{
- // btn_addfile.disabled = true;
- // btn_downfile.disabled = true;
- //
- // caption8.visible = false;
- // ipt_attfilenm.visible = false;
- // btn_addfile.visible = false;
- // btn_downfile.visible = false;
- // }
- // //test2
- // btn_downfile.visible = true;
- // btn_downfile.disabled = false;
-
- model.refresh();
- }
-
- function fCheckTime(ftimeset)
- {
- var sTime = ftimeset.value;
-
- if(sTime.length != 4)
- {
- messageBox("네자리를 ","C001");
- ftimeset.value = "";
- return;
- }
-
- var sFrontTime = sTime.substr(0, 2);
- var sBackTime = sTime.substr(2, 2);
-
- if(parseInt(sFrontTime) > 24)
- {
- messageBox("24시를 ","E003");
- ftimeset.value = "";
- return;
- }
-
- if(parseInt(sBackTime) > 59)
- {
- messageBox("59분을 ","E003");
- ftimeset.value = "";
- return;
- }
- }
-
- // 수리진행상태 check
- function fcomboValueCheck()
- {
- btn_delete.disabled = false;
- fcontrolEnableYN(true); // control 수정 금지
- //상태에 따라서
-
- if(cmb_workstat.value == '00' || cmb_workstat.value == '01')
- {
- //ipt_fixasetcd.disabled = false; //이현민막음
- btn_fixasetSearchs.disabled = false;
- //ipt_fixasetnm.disabled = false; //이현민막음
- ipt_reqtel.disabled = false;
- ipt_reqdd.disabled = true;
-
- //real
- btn_addfile.disabled = false;
- btn_downfile.disabled = false;
-
- //사용자권한에 따라 바꾸지 못하게 막거나, 진행상황에 따라 수정 가능하게 설정
- if(grd_reqpsnlist.rows - grd_reqpsnlist.fixedRows == 0 &&
- getUserInfo("dutplcecd") != "4080100000" &&
- getUserInfo("dutplcecd") != "4080102000" &&
- getUserInfo("dutplcecd") != "4080300000")
- {
- ipt_reqdeptcd.disabled = true;
- btn_reqdeptcdSearch.disabled = true;
- ipt_depthngnm.disabled = true;
- }else{
- ipt_reqdeptcd.disabled = false;
- btn_reqdeptcdSearch.disabled = false;
- ipt_depthngnm.disabled = false;
- }
- if(opt_instcd.value == "103")
- {
- ipt_bugtyy.disabled = false;
- cmb_bugtcd.disabled = false;
- ipt_stdysubjno.disabled = false;
- btn_stdysubjnm.disabled = false;
- ipt_stdysubjnm.disabled = false;
- }
- //사용자권한에 따라 바꾸지 못하게 막거나, 진행상황에 따라 수정 가능하게 설정
- if(grd_reqpsnlist.rows - grd_reqpsnlist.fixedRows == 0 && getUserInfo("dutplcecd") != "4080100000" && getUserInfo("dutplcecd") != "4080102000" && getUserInfo("dutplcecd") != "4080300000")
- {
- ipt_reqpsnid.disabled = true;
- btn_reqpsnidSearch.disabled = true;
- ipt_reqpsnnm.disabled = true;
- }else{
- ipt_reqpsnid.disabled = false;
- btn_reqpsnidSearch.disabled = false;
- ipt_reqpsnnm.disabled = false;
- }
- txt_hdrncspec.disabled = false;
- ipt_genrdd.disabled = false;
- // ipt_genrtm.disabled = false;
- // 담당부서, 부서승인여부 활성화
- rdo_execdept.disabled = false;
- // rdo_deptaprvreqyn.disabled = false;
- }else if(cmb_workstat.value == '04' || (cmb_workstat.value == '07' || cmb_workstat.value == '08' )){
- btn_delete.disabled = true; // 삭제 금지
- che_acptpsncnfm.disabled = false; // 인수확인 수정
- //real
-
- btn_addfile.disabled = true ;
- btn_downfile.disabled = true;
-
- // 담당부서, 부서승인여부 비활성화
- rdo_execdept.disabled = true;
- // rdo_deptaprvreqyn.disabled = true;
-
- }else{
-
- btn_delete.disabled = true;
- //real
-
- btn_addfile.disabled = true ;
- btn_downfile.disabled = true;
-
- // 담당부서, 부서승인여부 비활성화
- rdo_execdept.disabled = true;
- // rdo_deptaprvreqyn.disabled = true;
- }
- //test
- // if( getUserInfo("userid") == "10109420"){
- // btn_addfile.disabled = false ;
- // btn_downfile.disabled = false ;
- //
- // caption8.visible = true;
- // ipt_attfilenm.visible = true;
- // btn_addfile.visible = true;
- // btn_downfile.visible = true;
- // }else{
- // btn_addfile.disabled = true;
- // btn_downfile.disabled = true;
- //
- // caption8.visible = false;
- // ipt_attfilenm.visible = false;
- // btn_addfile.visible = false;
- // btn_downfile.visible = false;
- // }
- // //test2
- // btn_downfile.visible = true;
- // btn_downfile.disabled = false;
-
-
- model.refresh();
- }
-
- // 인수 확인시 기본 사항
- function facptCheck()
- {
- /*-----------------------------------------------------------------------------
- * check box 에 체크를 하면 value 가 'N Y' 가 된다.
- * 'N'일경우를 먼저 체크해야하는데 VALUE가 정의되지 않아 NULL이 된다.
- ----------------------------------------------------------------------------- */
- //if(che_acptpsncnfm.value == 'N')
- if(che_acptpsncnfm.value.length == 0 || che_acptpsncnfm.value.length == null )
- {
- model.setValue(ipt_deptacptdd.attribute("ref"), "");
- model.setValue(ipt_deptacptpsnid.attribute("ref"), "");
- model.setValue(ipt_deptacptpsnnm.attribute("ref"), "");
- cmb_workstat.value = ipt_workstattemp.value;
- }else{
- model.setValue(ipt_deptacptdd.attribute("ref"), getCurrentDate().substr(0, 8));
- model.setValue(ipt_deptacptpsnid.attribute("ref"), getUserInfo("userid"));
- model.setValue(ipt_deptacptpsnnm.attribute("ref"), getUserInfo("usernm"));
- cmb_workstat.value = "05";
-
- che_acptpsncnfm.value= "Y";
- }
-
- model.refresh();
- }
-
- // grid onclick event
- // 행추가시 필요 없는 submission이 발생하여 우선은 제어를 위해 "N" 셋팅시 submission pass
- function fgridClickEvent(tmpStat)
- {
- //조회시 받은 Data들을 control밑으로 옮긴다
- //--------------------------------------------------------------------------------------------------------------
- model.copyNode("/root/main/control/rfehemhtlist", "/root/main/grid/rfehemhtlist[" + grd_rfehemhtlist.row + "]");
- //--------------------------------------------------------------------------------------------------------------
- ipt_workstattemp.value = cmb_workstat.value;
- model.copyNode("/root/temp", "/root/main/control");
-
- // 부품사용내역을 조회 하기 위한 기본값 설정.
- if(grd_rfehdabplist.rows > 1){
- misfGridInit(grd_rfehdabplist);
- }
-
- model.setValue("/root/send/reqdd",grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd")) );
- model.setValue("/root/send/reqno", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno")) );
-
-
- if(grd_rfehemhtlist.rows-grd_rfehemhtlist.fixedRows != 0 && tmpStat != "N") //수리청구건수가 있다면 일별수리부품내역을 아래에서 조회한다.
- {
- // ipt_fixtrseqmtflag.value = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("fixtrseqmtflag")); //han
-
- submit("TRRFE00402"); //일별 수리 부품 내역 조회 - MIS.RFEHDABP 쪽 조회
-
- // for(var fRow = grd_rfehdabplist.fixedRows; fRow < grd_rfehdabplist.rows; fRow++)
- // {
- // grd_rfehdabplist.isReadOnly(fRow, grd_rfehdabplist.fixedCols, fRow, grd_rfehdabplist.cols-1) = true;
- // }
- grd_rfehdabplist.isReadOnly(grd_rfehdabplist.fixedRows, grd_rfehdabplist.fixedCols, grd_rfehdabplist.rows-1, grd_rfehdabplist.cols) = true;
-
- // ipt_fixtrseqmtflag.value = ""; //han
- }
-
- if(grd_temp.rows > 1) grd_temp.row = grd_temp.rows - 1;
- }
-
- // 그리드 row 이동시 작업 check
- function fmoveCheck()
- {
- misfGridRowStatusChange(grd_temp, "/root/temp", "/root/main/control");
- if ( getGridUpdateData(grd_temp) != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- grd_rfehemhtlist.row = model.getValue(ipt_rowtemp.attribute("ref"));
- model.refresh();
- return false;
- }else{
- grd_temp.clearStatus();
- }
- }
-
- model.setValue(ipt_rowtemp.attribute("ref"), grd_rfehemhtlist.row);
- fgridClickEvent();
- fcomboValueCheck(); // 그리드 row 이동시 작업 check
-
- //이현민
-
- // model.refresh();
- }
-
- function fupdateCheckSave(i)
- {
- if(!isRequiredControls("ipt_fixasetcd"))return false;
- if(!isRequiredControls("ipt_reqdd"))return false;
- if(!isRequiredControls("ipt_reqdeptcd"))return false;
- if(!isRequiredControls("ipt_reqpsnid"))return false;
- if(!isRequiredControls("cmb_fixtrseqmtflag"))return false;
- if(!isRequiredControls("ipt_reqtel"))return false;
- if(!isRequiredControls("cmb_workstat"))return false;
- if(!isRequiredControls("txt_hdrncspec"))return false;
- //------------------------------------------------------------------------------------------------------------
- misfGridRowStatusChange(grd_temp, "/root/temp", "/root/main/control"); //control에 있는걸 temp로 이동시키기
- //------------------------------------------------------------------------------------------------------------
- if(grd_temp.rowStatus(grd_temp.row) != 0)
- {
- var iStatus = grd_temp.rowStatus(grd_temp.row);
- var sStatus = "update";
-
- model.copyNode("/root/main/grid/rfehemhtlist[" + grd_rfehemhtlist.row + "]", "/root/temp/rfehemhtlist");
-
- var sCurStatus = grd_rfehemhtlist.rowStatus(grd_rfehemhtlist.row);
-
- if(sCurStatus == 1 || sCurStatus == 3)
- {
- sStatus = "insert";
- }
- grd_rfehemhtlist.addStatus(grd_rfehemhtlist.row , sStatus);
- }
- grd_rfehemhtlist.refresh();
- var updtdata = getGridUpdateData(grd_rfehemhtlist);
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return false;
- }
- for (var i=grd_rfehemhtlist.fixedRows; i<=grd_rfehemhtlist.rows; i++){
- grd_rfehemhtlist.valueMatrix(i, grd_rfehemhtlist.colRef("bizscrnid")) = "SMRFE00410_비품수리신청등록.xrw";
- }
- grd_rfehemhtlist.refresh();
- //---------------------------------------------------------------------------------------------------------
- misfSave("TXRFE00401");
- //ref /root/main/grid/rfehemhtlist
- //result ref /root/temp
- //---------------------------------------------------------------------------------------------------------
- if (model.getValue(gvErrorMsgPath + "/type") != "error") grd_rfehemhtlist.dispatch("onrowchanged");
- //misfMsterDetailRetrieve();
- return true;
- }
-
- function fmaxreqno(grd_obj) {
- var maxreqno = 0;
- for( cnt=1; cnt< grd_rfehemhtlist.rows-grd_rfehemhtlist.fixedRows ; cnt++) {
- if ( grd_rfehemhtlist.valueMatrix(cnt, grd_rfehemhtlist.colRef("reqdd")) == getCurrentDate().substr(0, 8) ) {
- if ( maxreqno < eval (grd_rfehemhtlist.valueMatrix(cnt, grd_rfehemhtlist.colRef("reqno"))) )
- maxreqno = eval (grd_rfehemhtlist.valueMatrix(cnt, grd_rfehemhtlist.colRef("reqno")));
- }
- }
- maxreqno = maxreqno + 1;
- // alert ( getRightPad(maxreqno+"", 4,'0') );
- return getRightPad(maxreqno+"", 4,'0');
- }
-
- function getRightPad(pStr, pLength, padString )
- {
- var tmpStr = "";
- if (pStr.length < pLength) {
- for( var i = pStr.length; i < pLength; i++){
- tmpStr = tmpStr + padString;
- }
- }
- return tmpStr + pStr;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">비품 수리 신청 등록</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1215px; height:762px; ">
- <line id="line11" class="line_2" style="x1:697px; y1:144px; x2:1192px; y2:144px; "/>
- <line id="line7" class="line_2" style="x1:697px; y1:409px; x2:1192px; y2:409px; "/>
- <line id="line6" class="line_2" style="x1:697px; y1:385px; x2:1192px; y2:385px; "/>
- <line id="line5" class="line_2" style="x1:697px; y1:361px; x2:1195px; y2:361px; "/>
- <line id="line4" class="line_2" style="x1:697px; y1:313px; x2:1191px; y2:313px; "/>
- <line id="line19" class="line_2" style="x1:697px; y1:97px; x2:1192px; y2:97px; "/>
- <line id="line28" class="line_2" style="x1:697px; y1:169px; x2:1192px; y2:169px; "/>
- <line id="line38" class="line_2" style="x1:697px; y1:241px; x2:1192px; y2:241px; "/>
- <line id="line37" class="line_2" style="x1:697px; y1:217px; x2:1192px; y2:217px; "/>
- <line id="line35" class="line_2" style="x1:697px; y1:193px; x2:1192px; y2:193px; "/>
- <line id="line24" class="line_3" style="x1:696px; y1:741px; x2:1192px; y2:741px; "/>
- <line id="line23" class="line_2" style="x1:697px; y1:120px; x2:1192px; y2:120px; "/>
- <line id="line20" class="line_2" style="x1:695px; y1:513px; x2:1193px; y2:513px; "/>
- <line id="line40" class="line_2" style="x1:697px; y1:265px; x2:1191px; y2:265px; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; "/>
- <caption id="cap_reqdd2" class="search_name" visibility="visible" style="left:237px; top:9px; width:86px; height:17px; ">의뢰일자 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1129px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("opt_instcdnm"))return;
- if(!isRequiredControls("ipt_reqdd1"))return;
- if(!isRequiredControls("ipt_reqdd2"))return;
-
- model.setValue("/root/send/deptcd", opt_reqdeptcd.value);
-
- misfMsterDetailRetrieve();
- fgridClickEvent();
- //model.setValue("/root/temp/rowtemp", grd_rfehemhtlist.row);
- fcomboValueCheck();
- // misfSetReadOnlyCol(grd_rfehemhtlist, "workstat", true);
- fdeptGrantYN();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1119px; y1:7px; x2:1119px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_userSearch" class="icon_search" navindex="6" style="left:1009px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("01", ipt_reqpsnids, "", "reqpsnid,reqpsnnm");
- ipt_reqpsnids.refresh();
- ipt_reqpsnnms.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_reqpsnids" ref="/root/send/reqpsnid" class="input_default" navindex="5" style="left:925px; top:8px; width:82px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // misfValidationCheck("12", "", "reqpsnid,reqpsnnm");
- if(ipt_reqpsnids.value.length == 0)
- ipt_reqpsnnms.value = "";
- else
- misfValidationCheck("01-1", "", "reqpsnid,reqpsnnm");
- ipt_reqpsnids.refresh();
- ipt_reqpsnnms.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_reqpsnnms" ref="/root/send/reqpsnnm" class="input_default" navindex="7" appearance="input" style="left:1030px; top:8px; width:82px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqpsnnms.value.length == 0)
- ipt_reqpsnids.value = "";
- else
- misfValidationCheck("01-2", "", "reqpsnid,reqpsnnm");
- ipt_reqpsnids.refresh();
- ipt_reqpsnnms.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_reqno" class="search_name" style="left:842px; top:9px; width:83px; height:17px; ">의 뢰 자 :</caption>
- <input id="ipt_reqdd1" ref="/root/send/reqdd1" class="input_s_essential" navindex="1" inputtype="date" style="left:327px; top:8px; width:97px; height:19px; "/>
- <input id="ipt_reqdd2" ref="/root/send/reqdd2" class="input_s_essential" navindex="2" inputtype="date" style="left:439px; top:8px; width:97px; height:19px; "/>
- <caption id="caption13" style="left:425px; top:10px; width:20px; height:20px; font-weight:bold; ">~</caption>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:86px; height:17px; ">기관코드 :</caption>
- <input id="ipt_fixtrseqmtflag" ref="/root/send/fixtrseqmtflag" visibility="hidden" style="left:20px; top:10px; width:35px; height:19px; "/>
- <output id="opt_instcd" ref="/root/send/instcd" class="output_fix" visibility="hidden" style="left:50px; top:10px; width:30px; height:19px; "/>
- <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:105px; top:8px; width:125px; height:19px; text-align:center; "/>
- <input id="opt_reqdeptcd" ref="/root/send/reqdeptcd" class="input_default" navindex="3" appearance="input" style="left:631px; top:8px; width:75px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(opt_reqdeptcd.value.length == 0){
- opt_reqdeptnm.value = "";
- }else
- {
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- }
-
- opt_reqdeptnm.refresh();
- opt_reqdeptcd.refresh();
- ]]>
- </script>
- </input>
- <output id="opt_reqdeptnm" ref="/root/send/reqdeptnm" class="output_fix" style="left:731px; top:8px; width:105px; height:19px; "/>
- <caption id="caption5" class="search_name" style="left:542px; top:9px; width:86px; height:17px; ">사용부서 :</caption>
- <button id="btn_dept" class="icon_search" navindex="4" style="left:710px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", opt_reqdeptcd, "", "reqdeptcd,reqdeptnm");
- // 승인권자별 선택할 수 있는 부서 제한 + 구매팀, 관리Unit 는 모든 부서검색 가능
- grd_reqpsnlist.nodeset= "/root/main/grid/reqpsnlist[reqdeptcd='"+opt_reqdeptcd.value+"']";
- model.setValue("/root/init/reqdeptcd", model.getValue(opt_reqdeptcd.attribute("ref")));
- submit("TRRSC06001");
-
- /* 사용부서 권한조회 불필요 - 2011.03.18 박진억 수정
- if ((grd_reqpsnlist.rows-grd_reqpsnlist.fixedRows)==0 && getUserInfo("dutplcecd") != "4080100000" && getUserInfo("dutplcecd") != "4080102000" && getUserInfo("dutplcecd") != "4080300000")
- {
- messageBox("권한이 없는 부서입니다.","");
- fInitialize();
- }*//*else{
- model.setValue(ipt_reqdeptcd.attribute("ref"), model.getValue(opt_reqdeptcd.attribute("ref")));
- model.setValue(ipt_depthngnm.attribute("ref"), model.getValue(opt_reqdeptnm.attribute("ref")));
- }*/
-
- opt_reqdeptnm.refresh();
- opt_reqdeptcd.refresh();
-
- // btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:75px; height:13px; ">의뢰내역</caption>
- <select id="chb_searchall" ref="/root/send/searchall" navindex="10" visibility="hidden" overflow="visible" appearance="full" style="left:85px; top:52px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체조회</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <line id="line1" class="line_1" style="x1:697; y1:69px; x2:1195; y2:69px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:69px; x2:692px; y2:69px; "/>
- <caption id="cap_" class="cell_1" style="left:697px; top:243px; width:90px; height:23px; vertical-align:middle; ">자산구분</caption>
- <caption id="cap_acptdeptcd" class="cell_1" style="left:697px; top:219px; width:90px; height:23px; vertical-align:middle; ">접수부서</caption>
- <caption id="cap_reqpsnid" class="cell_1" style="left:697px; top:195px; width:90px; height:23px; vertical-align:middle; ">의뢰자</caption>
- <caption id="cap_reqdeptcd" class="cell_1" style="left:697px; top:171px; width:90px; height:23px; vertical-align:middle; ">의뢰부서</caption>
- <input id="ipt_reqdeptcd" ref="/root/main/control/rfehemhtlist/reqdeptcd" class="input_s_essential" navindex="24" style="left:789px; top:173px; width:146px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptcd.value.length == 0)
- ipt_depthngnm.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,depthngnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption2" class="cell_1" style="left:697px; top:122px; width:90px; height:23px; vertical-align:middle; ">의뢰일자</caption>
- <caption id="cap_fixasetcd" class="cell_1" style="left:697px; top:74px; width:90px; height:47px; vertical-align:middle; ">비품코드</caption>
- <input id="ipt_fixasetcd" ref="/root/main/control/rfehemhtlist/fixasetcd" class="input_s_essential" disabled="true" navindex="18" style="left:789px; top:76px; width:146px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_fixasetcd.value != "")
- {
- rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "instcd,requirementcd,requirementnm",
- opt_instcd.value +",fixasetcd," + ipt_fixasetcd.value,
- "", "fixasetcd,fixasetnm", ipt_fixasetcd, "SPRSD00240",
- "instcd","opt_instcd");
-
- cmb_fixtrseqmtflag.value = model.getValue("/root/init/main/rfcmfacdlist/goodflag");
- // 날자 자동입력
- model.setValue("/root/main/control/rfehemhtlist/reqdd", getCurrentDate().substr(0, 8));
- model.setValue("/root/main/control/rfehemhtlist/genrdd", getCurrentDate().substr(0, 8));
-
- // 의뢰번호 입력
- // model.setValue(ipt_reqno.attribute("ref"),Number(grd_rfehemhtlist.valueMatrix(1,grd_rfehemhtlist.colRef("reqno")))+1);
- }else{
- ipt_fixasetcd.value = "";
- ipt_fixasetnm.value = "";
- }
-
- if(ipt_fixasetcd.value.substr(0,1) == 'E')
- {
- messageBox("의료장비는 신청하실수 없습니다.","");
- fInitialize();
- }
-
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_fixasetnm" ref="/root/main/control/rfehemhtlist/fixasetnm" class="input_search" disabled="true" navindex="21" style="left:789px; top:100px; width:403px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_fixasetnm.value != "")
- {
- rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "instcd,requirementcd,requirementnm",
- opt_instcd.value +",goodflaghngnm," + ipt_fixasetnm.value,
- "", "fixasetcd,fixasetnm", ipt_fixasetcd, "SPRSD00240",
- "instcd","opt_instcd");
-
- // 날자 자동입력
- model.setValue("/root/main/control/rfehemhtlist/reqdd", getCurrentDate().substr(0, 8));
- model.setValue("/root/main/control/rfehemhtlist/genrdd", getCurrentDate().substr(0, 8));
-
- // 의뢰번호 입력
- // model.setValue(ipt_reqno.attribute("ref"),Number(grd_rfehemhtlist.valueMatrix(1,grd_rfehemhtlist.colRef("reqno")))+1);
- }else
- {
- ipt_fixasetcd.value = "";
- ipt_fixasetnm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_reqno" ref="/root/main/control/rfehemhtlist/reqno" class="input_default" navindex="23" style="left:1029px; top:124px; width:163px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:937px; top:122px; width:90px; height:23px; vertical-align:middle; ">의뢰번호</caption>
- <select1 id="rdo_execdept" ref="/root/main/control/rfehemhtlist/execdept" disabled="true" navindex="24" visibility="visible" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:790px; top:148px; width:400px; height:20px; border-style:solid; ">
- <choices>
- <item>
- <label>의공학과</label>
- <value>4090500000</value>
- </item>
- <item>
- <label>물류파트</label>
- <value>4020334000</value>
- </item>
- <item>
- <label>정보통신실</label>
- <value>4130100000</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_workstat" class="cell_1" style="left:697px; top:363px; width:90px; height:23px; vertical-align:middle; ">수리진행상태</caption>
- <caption id="cap_chrgpsnid" class="cell_1" visibility="hidden" style="left:930px; top:45px; width:50px; height:23px; vertical-align:middle; ">수리담당자</caption>
- <caption id="cap_genrdd" class="cell_1" style="left:697px; top:315px; width:90px; height:23px; vertical-align:middle; ">발생일자</caption>
- <caption id="cap_hdrncspec" class="cell_1" style="left:697px; top:267px; width:90px; height:47px; vertical-align:middle; ">의뢰내역</caption>
- <input id="ipt_reqtel" ref="/root/main/control/rfehemhtlist/reqtel" class="input_s_essential" navindex="33" maxlength="15" style="left:1029px; top:245px; width:163px; height:19px; "/>
- <caption id="cap_reqtel" class="cell_1" style="left:937px; top:243px; width:90px; height:23px; vertical-align:middle; ">의뢰자 연락처</caption>
- <textarea id="txt_hdrncspec" ref="/root/main/control/rfehemhtlist/hdrncspec" class="input_s_essential" navindex="34" style="left:789px; top:269px; width:403px; height:43px; "/>
- <caption id="cap_acsrslist" class="cell_1" style="left:697px; top:562px; width:90px; height:177px; vertical-align:middle; ">부품사용내역</caption>
- <datagrid id="grd_rfehdabplist" nodeset="/root/main/rfehdabplist" caption="부품코드^부품명^수량^단위^금액" colsep="^" colwidth="90, 203, 40, 52, 70" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" navindex="49" style="left:790px; top:562px; width:403px; height:177px; ">
- <col ref="acsrscd" style="left:0px; top:23px; width:85px; height:23px; text-align:left; "/>
- <col ref="acsrsnm" style="text-align:left; "/>
- <col ref="acsrsqty" format="#,###" style="text-align:right; "/>
- <col ref="acsrsunit" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="acsrsamt" visibility="hidden" format="#,###" style="text-align:right; "/>
- </datagrid>
- <button id="btn_fixasetSearchs" class="icon_search" navindex="19" visibility="hidden" style="left:940px; top:77px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 자산코드 팝업창 오픈
- rszfOpenPopUpListByWndName(ipt_fixasetcd, "", "fixasetcd,fixasetnm","SPRSD00240","instcd","opt_instcd");
-
- // 자산코드 확인.[자산구분을 가져오지 못해 팝업창으로 가져온 자산코드값으로 ValidationCheck을 실행하여 자산구분값을 가져옮.]
- ipt_fixasetcd.dispatch("xforms-value-changed");
-
- // rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "instcd,requirementcd,requirementnm",
- // cmb_instcd.value +",fixasetcd,******",
- // "", "fixasetcd,fixasetnm", ipt_fixasetcd, "SPRSD00240",
- // "instcd","cmb_instcd");
-
- // cmb_fixtrseqmtflag.value = model.getValue("/root/init/main/rfcmfacdlist/goodflag");
- // 날자 자동입력
- model.setValue("/root/main/control/rfehemhtlist/reqdd", getCurrentDate().substr(0, 8));
- model.setValue("/root/main/control/rfehemhtlist/genrdd", getCurrentDate().substr(0, 8));
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption19" style="left:85px; top:355px; width:100px; height:20px; vertical-align:middle; "/>
- <caption id="caption24" class="tit_2" style="left:702px; top:54px; width:157px; height:13px; ">의뢰현황</caption>
- <input id="ipt_reqdd" ref="/root/main/control/rfehemhtlist/reqdd" class="input_s_essential" disabled="true" navindex="22" inputtype="date" style="left:789px; top:124px; width:146px; height:19px; text-align:center; "/>
- <button id="btn_reqdeptcdSearch" class="icon_search" navindex="25" style="left:940px; top:173px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_reqdeptcd, "", "reqdeptcd,depthngnm");
- // 승인권자별 선택할 수 있는 부서 제한
- grd_reqpsnlist.nodeset= "/root/main/grid/reqpsnlist[reqdeptcd='"+ipt_reqdeptcd.value+"']";
- if ((grd_reqpsnlist.rows-grd_reqpsnlist.fixedRows)==0 && getUserInfo("dutplcecd") != "4080100000" && getUserInfo("dutplcecd") != "4080102000" && getUserInfo("dutplcecd") != "4080300000")
- {
- messageBox("권한이 없는 부서입니다.","");
- ipt_reqdeptcd.value=opt_reqdeptcd.value;
- ipt_depthngnm.value=opt_reqdeptnm.value;
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_depthngnm" ref="/root/main/control/rfehemhtlist/depthngnm" class="input_search" navindex="26" style="left:960px; top:173px; width:232px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_depthngnm.value.length == 0)
- ipt_reqdeptcd.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,depthngnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_reqpsnidSearch" class="icon_search" navindex="28" style="left:940px; top:197px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("12", ipt_reqpsnid, "", "reqpsnid,reqpsnnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_reqpsnnm" ref="/root/main/control/rfehemhtlist/reqpsnnm" class="input_search" navindex="29" style="left:960px; top:197px; width:232px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqpsnnm.value.length == 0)
- ipt_reqpsnid.value = "";
- else
- misfValidationCheck("01-2", "", "reqpsnid,reqpsnnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_reqpsnid" ref="/root/main/control/rfehemhtlist/reqpsnid" class="input_s_essential" navindex="27" style="left:789px; top:197px; width:146px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // misfValidationCheck("12", "", "reqpsnid,reqpsnnm" );
- if(ipt_reqpsnid.value.length == 0)
- ipt_reqpsnnm.value = "";
- else
- misfValidationCheck("01-1", "", "reqpsnid,reqpsnnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_acptdeptnm" ref="/root/main/control/rfehemhtlist/acptdeptnm" class="output_fix" disabled="true" navindex="31" style="left:937px; top:221px; width:255px; height:19px; text-align:center; "/>
- <input id="ipt_acptdeptcd" ref="/root/main/control/rfehemhtlist/acptdeptcd" class="output_fix" disabled="true" navindex="30" style="left:789px; top:221px; width:146px; height:19px; text-align:center; "/>
- <input id="ipt_chrgpsnnm" ref="/root/main/control/rfehemhtlist/chrgpsnnm" class="output_fix" disabled="true" visibility="hidden" style="left:1063px; top:47px; width:42px; height:19px; text-align:center; "/>
- <input id="ipt_chrgpsnid" ref="/root/main/control/rfehemhtlist/chrgpsnid" class="output_fix" disabled="true" visibility="hidden" style="left:998px; top:47px; width:54px; height:19px; text-align:center; "/>
- <select1 id="cmb_workstat" ref="/root/main/control/rfehemhtlist/workstat" class="combo_s_essential" disabled="true" navindex="41" appearance="minimal" style="left:789px; top:365px; width:146px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>청구승인의뢰</label>
- <value>00</value>
- </item>
- <item>
- <label>수리의뢰</label>
- <value>01</value>
- </item>
- <item>
- <label>수리중</label>
- <value>03</value>
- </item>
- <item>
- <label>외부수리</label>
- <value>10</value>
- </item>
- <item>
- <label>수리완료</label>
- <value>04</value>
- </item>
- <item>
- <label>수리불가</label>
- <value>08</value>
- </item>
- <item>
- <label>재고지급</label>
- <value>09</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_genrdd" ref="/root/main/control/rfehemhtlist/genrdd" class="input_default" disabled="true" navindex="35" inputtype="date" style="left:789px; top:317px; width:146px; height:19px; text-align:center; "/>
- <caption id="cap_acptdd" class="cell_1" style="left:937px; top:363px; width:90px; height:23px; vertical-align:middle; ">접수일자</caption>
- <input id="ipt_acptdd" ref="/root/main/control/rfehemhtlist/acptdd" class="output_fix" disabled="true" navindex="44" format="yyyy-mm-dd" style="left:1029px; top:365px; width:163px; height:19px; text-align:center; "/>
- <select1 id="cmb_fixtrseqmtflag" ref="/root/main/control/rfehemhtlist/fixtrseqmtflag" class="combo_s_essential" disabled="true" navindex="32" appearance="minimal" style="left:789px; top:245px; width:146px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/fixtrseqmtflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_delete" class="btn2_letter3" navindex="13" style="left:584px; top:48px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fmoveCheck() != false)
- {
- misfGridIUD(grd_rfehemhtlist, "D");
- fmoveCheck();
-
- if(grd_rfehemhtlist.rows == 1)
- {
- model.makeNode("/root/main/control/rfehemhtlist/fixasetcd");
- model.makeNode("/root/main/control/rfehemhtlist/fixasetnm");
- model.makeNode("/root/main/control/rfehemhtlist/reqdeptcd");
- model.makeNode("/root/main/control/rfehemhtlist/depthngnm");
- model.makeNode("/root/main/control/rfehemhtlist/reqpsnid");
- model.makeNode("/root/main/control/rfehemhtlist/reqpsnnm");
- model.makeNode("/root/main/control/rfehemhtlist/fixtrseqmtflag");
- model.makeNode("/root/main/control/rfehemhtlist/workstat");
- model.makeNode("/root/main/control/rfehemhtlist/btnfixasetcd");
- model.makeNode("/root/main/control/rfehemhtlist/deptaprvreqyn");
- fInitialize();
- btn_search.dispatch("DOMActivate");
- }
-
- }
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter3" navindex="12" visibility="hidden" style="left:529px; top:48px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_instcd.value == null){
- messageBox("기관코드가","I004");
- return;
- }
-
- var statusCount = 0;
- for(var fRow = 1; fRow < grd_rfehemhtlist.rows; fRow++)
- {
- if(grd_rfehemhtlist.rowStatus(fRow) == 1)
- {
- statusCount++ ;
- }
- }
-
- if(statusCount < 1)
- {
- misfGridIUD(grd_rfehemhtlist, "A");
- grd_rfehemhtlist.isReadOnly(grd_rfehemhtlist.fixedRows, grd_rfehemhtlist.fixedCols, grd_rfehemhtlist.rows-1, grd_rfehemhtlist.cols-1) = true;
- misfSetReadOnlyCol(grd_rfehemhtlist, "deptaprvyn", false);
- }else
- {
- //messageBox("한번에 한건의 데이터만 추가 할 수 있습니다", "E999");
- //return;
- }
- grd_rfehemhtlist.refresh();
- // 의뢰일자 설정
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd")) = getCurrentDate().substr(0, 8);
-
- // 일자별 의뢰 순번 설정
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno")) = fmaxreqno(grd_rfehemhtlist);
-
- // 부서코드 설정
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdeptcd")) = opt_reqdeptcd.value; //getUserInfo("dutplcecd");
- /// model.setValue("/root/main/control/rfehemhtlist/reqdeptcd" , getUserInfo("dutplcecd"));
-
- // 부서코드명 설정
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("depthngnm")) = opt_reqdeptnm.value; //getUserInfo("dutplcenm");
- // model.setValue("/root/main/control/rfehemhtlist/depthngnm" , getUserInfo("dutplcenm"));
-
- // User ID 설정
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqpsnid")) = getUserInfo("userid");
- // model.setValue("/root/main/control/rfehemhtlist/reqpsnid", getUserInfo("userid"));
-
- // User Name 설정
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqpsnnm")) = getUserInfo("usernm");
- // model.setValue("/root/main/control/rfehemhtlist/reqpsnnm", getUserInfo("usernm"));
-
- // 수리 진행 상태 설정 (수리 의뢰)
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("workstat")) = "01";
- // 접수구분 ( '1': 수리 , '2' 예방)
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acptflag")) = "1";
-
- // cmb_workstat.value = 1;
- grd_rfehemhtlist.refresh();
- fgridClickEvent("N"); // 행추가시 필요 없는 submission이 발생하여 우선은 제어를 위해 "N" 셋팅시 submission pass
-
-
- fcontrolEnableYN(false); //행추가시
- che_acptpsncnfm.disabled = true;
-
- if(grd_rfehemhtlist.row != 0)
- {
- btn_delete.disabled = false;
- }
-
- fdeptGrantYN(); //-> 청구 권한 체크
-
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_temp" nodeset="/root/temp/rfehemhtlist" visibility="hidden" caption="기관코드^비품_장비구분^의뢰일자^의뢰번호^관리부서^관리부서명^의뢰자ID^의뢰자 명^발생일자^발생시간^담당자ID^담당자명^접수일자^접수시간^접수자ID^접수자이름^접수확인^접수부서^접수부서명^작업상태^고정자산코드^자산명^품명^모델명^고장내역^수리구분1^수리구분2^사용여부^최종수리상태^인수자확인^부서인수일자^부서인수자ID^부서인수자명^수리비^비고^수리완료일자^담당자전화번호^결재여부^담당자comment^결재일자^미가동일수^메일방송여부" colsep="^" colwidth="100, 100, 102, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 150, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:5px; top:210px; width:680px; height:75px; ">
- <col ref="instcd"/>
- <col ref="fixtrseqmtflag"/>
- <col ref="reqdd"/>
- <col ref="reqno"/>
- <col ref="reqdeptcd"/>
- <col ref="depthngnm"/>
- <col ref="reqpsnid"/>
- <col ref="reqpsnnm"/>
- <col ref="genrdd"/>
- <col ref="genrtm"/>
- <col ref="chrgpsnid"/>
- <col ref="chrgpsnnm"/>
- <col ref="acptdd"/>
- <col ref="acpttm"/>
- <col ref="acptpsnid"/>
- <col ref="acptpsnnm"/>
- <col checkvalue="Y,N" type="checkbox"/>
- <col ref="acptdeptcd"/>
- <col ref="acptdeptnm"/>
- <col ref="workstat"/>
- <col ref="fixasetcd"/>
- <col ref="fixasetnm"/>
- <col ref="itemnm"/>
- <col ref="goodmodel"/>
- <col ref="hdrncspec"/>
- <col ref="rpirflag1"/>
- <col ref="rpirflag2"/>
- <col ref="useyn"/>
- <col ref="lastrpirstat"/>
- <col ref="acptpsncnfm"/>
- <col ref="deptacptdd"/>
- <col ref="deptacptpsnid"/>
- <col ref="deptacptpsnnm"/>
- <col ref="rpiramt"/>
- <col ref="cmt"/>
- <col ref="rpirenddd"/>
- <col ref="chrgtel"/>
- <col ref="sanctyn"/>
- <col ref="chrgpsncmt"/>
- <col ref="sanctdd"/>
- <col ref="nonworkdayno"/>
- <col ref="emaildeliveyn"/>
- <col ref="lastrpirrslt"/>
- <col ref="reqtel"/>
- <col ref="bugtyy"/>
- <col ref="bugtcd"/>
- <col ref="stdysubjno"/>
- <col ref="stdysubjnm"/>
- <col ref="deptaprvyn"/>
- <col ref="deptaprvpsnid"/>
- <col ref="deptaprvpsnnm"/>
- <col ref="deptaprvdd"/>
- <col ref="acptflag"/>
- </datagrid>
- <input id="ipt_rowtemp" ref="/root/init/rowtemp" visibility="hidden" appearance="input" style="left:35px; top:165px; width:100px; height:20px; "/>
- <input id="ipt_workstattemp" ref="/root/init/workstattemp" navindex="42" visibility="hidden" style="left:850px; top:366px; width:100px; height:19px; "/>
- <caption id="caption23" style="left:700px; top:408px; width:460px; height:26px; font-family:굴림체; font-size:9pt; font-weight:bold; color:#ff6600; vertical-align:middle; ">※수리진행상태가 '수리의뢰'인 경우에만 수정,삭제가 가능합니다.</caption>
- <select1 id="rdo_deptaprvreqyn" ref="/root/main/control/rfehemhtlist/deptaprvreqyn" disabled="true" navindex="45" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:1045px; top:410px; width:152px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>승인필요</label>
- <value>Y</value>
- </item>
- <item selected="selected">
- <label>승인불필요</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rdo_deptaprvreqyn.value == "Y"){
- cmb_workstat.value = "00";
- }else if(rdo_deptaprvreqyn.value == "N"){
- cmb_workstat.value = "01";
- }
- cmb_workstat.refresh();
- ]]>
- </script>
- </select1>
- <caption id="cap_chrgtel" class="cell_1" visibility="hidden" style="left:1125px; top:45px; width:40px; height:22px; vertical-align:middle; ">담당자 연락처</caption>
- <input id="ipt_chrgtel" ref="/root/main/control/rfehemhtlist/chrgtel" class="output_fix" disabled="true" visibility="hidden" editable="true" style="left:1170px; top:45px; width:13px; height:19px; text-align:left; "/>
- <caption id="cap_bugtyy" class="cell_1" style="left:937px; top:315px; width:60px; height:23px; vertical-align:middle; ">예산년도</caption>
- <caption id="cap_bugtcd" class="cell_1" style="left:1055px; top:315px; width:60px; height:23px; vertical-align:middle; ">예산계정</caption>
- <caption id="cap_stdysubjno" class="cell_1" style="left:697px; top:339px; width:90px; height:23px; vertical-align:middle; ">연구과제</caption>
- <line id="line8" class="line_2" style="x1:700px; y1:337px; x2:1195px; y2:337px; "/>
- <select1 id="cmb_bugtcd" ref="/root/main/control/rfehemhtlist/bugtcd" navindex="37" appearance="minimal" style="left:1116px; top:317px; width:76px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_bugtyy" ref="/root/main/control/rfehemhtlist/bugtyy" class="input_default" disabled="true" navindex="36" inputtype="date" format="yyyy" style="left:998px; top:317px; width:56px; height:19px; "/>
- <input id="ipt_stdysubjno" ref="/root/main/control/rfehemhtlist/stdysubjno" class="input_search" navindex="38" style="left:789px; top:340px; width:146px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_stdysubjno.value != "")
- {
- rszfValidationCheck("TRRSD00261", "studylist", "refcond,instcd,stdysubjno", "stdysubjno," + opt_instcd.value + "," + ipt_stdysubjno.value, "",
- "stdysubjno,stdysubjnm", ipt_stdysubjno, "SPRSD00260", "instcd", "opt_instcd");
- }else
- {
- ipt_stdysubjno.value = "";
- ipt_stdysubjnm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_stdysubjnm" ref="/root/main/control/rfehemhtlist/stdysubjnm" class="input_search" navindex="40" style="left:956px; top:340px; width:236px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_stdysubjnm.value != "")
- {
- rszfValidationCheck("TRRSD00261", "studylist", "refcond,instcd,stdysubjnm", "stdysubjnm," + opt_instcd.value + "," + ipt_stdysubjnm.value, "",
- "stdysubjno,stdysubjnm", ipt_stdysubjnm, "SPRSD00260", "instcd", "opt_instcd");
- }else
- {
- ipt_stdysubjno.value = "";
- ipt_stdysubjnm.value = "";
- }
-
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_stdysubjnm" class="icon_search" navindex="39" style="left:938px; top:341px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_stdysubjno,"","stdysubjno,stdysubjnm","SPRSD00260","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_lastrpirrslt" class="cell_1" style="left:697px; top:433px; width:90px; height:127px; vertical-align:middle; ">수리내역</caption>
- <textarea id="txt_lastrpirrslt" ref="/root/main/control/rfehemhtlist/lastrpirrslt" class="output_fix" navindex="48" editable="true" style="left:789px; top:433px; width:403px; height:126px; "/>
- <line id="line10" class="line_3" style="x1:697px; y1:430px; x2:1192px; y2:430px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:408px; width:122px; height:14px; ">부서내 비품코드</caption>
- <line id="line15" class="line_1" style="x1:0px; y1:423px; x2:692px; y2:424px; "/>
- <datagrid id="grd_rfcmfacdlist" nodeset="/root/main/grid/rfcmfacdlist" caption="기관^물품구분^비품코드^비품명^관리부서^관리부서^모델^규격^대분류^중분류^소분류^구코드^거래처^제조원^제조국^구입일자^설치장소^S/N^^" colsep="^" colwidth="32, 74, 85, 150, 86, 113, 94, 85, 76, 76, 76, 74, 100, 108, 100, 85, 92, 30, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:430px; width:692px; height:315px; text-align:center; ">
- <col ref="instnm" visibility="hidden" style="left:20px; top:23px; width:32px; height:23px; text-align:center; "/>
- <col disabled="true" ref="goodflag" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="fixasetcd" style="text-align:left; "/>
- <col ref="goodflaghngnm" style="text-align:left; "/>
- <col ref="mngtdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="mngtdeptnm" visibility="hidden" style="text-align:left; "/>
- <col ref="goodmodel" style="text-align:left; "/>
- <col ref="goodspec"/>
- <col ref="lrgnm" style="text-align:left; padding-left:10; "/>
- <col ref="mdlnm" style="text-align:left; padding-left:10; "/>
- <col ref="smlnm" style="text-align:left; padding-left:10; "/>
- <col ref="oldcd" visibility="visible" style="text-align:center; "/>
- <col ref="suplplcenm" visibility="hidden" style="text-align:center; "/>
- <col ref="prodcmpynm" visibility="hidden" style="text-align:center; "/>
- <col ref="prodplce" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="possndd" format="yyyy-mm-dd"/>
- <col ref="installplcenm" style="text-align:center; "/>
- <col ref="mngtno" style="text-align:left; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="mngtdeptcd" visibility="hidden"/>
- <col ref="prodplce" visibility="hidden"/>
- <col ref="prodcmpy" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //misfGridIUD(grd_rfehemhtlist, "A");
- if(grd_rfcmfacdlist.row > (grd_rfcmfacdlist.fixedRows-1) )
- {
-
- btn_insert.dispatch("DOMActivate");
-
- if(grd_rfehemhtlist.rowStatus(grd_rfehemhtlist.row) == 1 )
- {
- grd_rfehemhtlist.refresh();
-
- model.setValue(ipt_fixasetcd.attribute("ref"),grd_rfcmfacdlist.valueMatrix(grd_rfcmfacdlist.row, grd_rfcmfacdlist.colRef("fixasetcd")));
- model.setValue(ipt_fixasetnm.attribute("ref"),grd_rfcmfacdlist.valueMatrix(grd_rfcmfacdlist.row, grd_rfcmfacdlist.colRef("goodflaghngnm")));
- ipt_fixasetcd.refresh();
- ipt_fixasetnm.refresh();
-
- model.makeNode("/root/main/control/rfehemhtlist/execdept");
- model.setValue("/root/main/control/rfehemhtlist/reqdd", getCurrentDate().substr(0, 8));
- model.setValue("/root/main/control/rfehemhtlist/genrdd", getCurrentDate().substr(0, 8));
- cmb_fixtrseqmtflag.value = grd_rfcmfacdlist.valueMatrix(grd_rfcmfacdlist.row, grd_rfcmfacdlist.colRef("goodflag"));
-
- rdo_deptaprvreqyn.value = "N";
- cmb_workstat.value = "01";
- rdo_execdept.value = "4020334000";
-
- fcomboValueCheck();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rfcmfacdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <select1 id="rdo_goodflag" ref="/root/send/goodflag" navindex="16" visibility="hidden" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:0px; top:395px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>I</value>
- </item>
- <item>
- <label>의료장비</label>
- <value>E</value>
- </item>
- <item>
- <label>의료비품</label>
- <value>U</value>
- </item>
- <item>
- <label>일반비품</label>
- <value>G</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="cap_goodflag" visibility="hidden" style="left:0px; top:395px; width:88px; height:24px; font-family:굴림체; font-size:9pt; font-weight:bold; color:#993300; vertical-align:middle; ">* 물품구분 :</caption>
- <button id="btn_excel" class="btn5_letter3" navindex="14" style="left:639px; top:48px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "의뢰내역", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_rfehemhtlist.saveExcel(fileName, "의뢰내역List",true,true, "");
- }
-
- ]]>
- </script>
- </button>
- <button id="button1" class="btn5_letter3" navindex="17" style="left:638px; top:402px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "보유자산 List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_rfcmfacdlist.saveExcel(fileName, "보유자산List",true,true, "");
- }
-
- ]]>
- </script>
- </button>
- <caption id="cap_acptpsncnfm" class="cell_1" visibility="hidden" style="left:840px; top:675px; width:40px; height:23px; vertical-align:middle; ">인수확인</caption>
- <input id="ipt_deptacptpsnid" ref="/root/main/control/rfehemhtlist/deptacptpsnid" class="input_default" visibility="hidden" style="left:887px; top:701px; width:96px; height:19px; text-align:center; "/>
- <input id="ipt_deptacptdd" ref="/root/main/control/rfehemhtlist/deptacptdd" class="input_default" disabled="true" visibility="hidden" inputtype="date" style="left:1076px; top:677px; width:79px; height:19px; text-align:center; "/>
- <caption id="cap_deptaprvpsnid" class="cell_1" visibility="hidden" style="left:840px; top:650px; width:40px; height:23px; vertical-align:middle; ">부서승인자</caption>
- <input id="ipt_deptacptpsnnm" ref="/root/main/control/rfehemhtlist/deptacptpsnnm" class="input_default" visibility="hidden" style="left:985px; top:701px; width:170px; height:19px; text-align:center; "/>
- <caption id="cap_deptacptpsnid" class="cell_1" visibility="hidden" style="left:840px; top:699px; width:40px; height:23px; vertical-align:middle; ">인수자</caption>
- <select id="che_acptpsncnfm" ref="/root/main/control/rfehemhtlist/acptpsncnfm" visibility="hidden" overflow="visible" appearance="full" style="left:887px; top:660px; width:0px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>확인</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- facptCheck();
- ]]>
- </script>
- </select>
- <caption id="cap_deptacptdd" class="cell_1" visibility="hidden" style="left:984px; top:675px; width:40px; height:23px; vertical-align:middle; ">인수일자</caption>
- <input id="ipt_deptaprvpsnid" ref="/root/main/control/rfehemhtlist/deptaprvpsnid" class="input_search" disabled="true" visibility="hidden" style="left:887px; top:653px; width:26px; height:19px; text-align:center; "/>
- <input id="ipt_deptaprvpsnnm" ref="/root/main/control/rfehemhtlist/deptaprvpsnnm" class="input_search" disabled="true" visibility="hidden" style="left:964px; top:653px; width:19px; height:19px; text-align:center; "/>
- <caption id="caption22" class="red" visibility="hidden" style="left:840px; top:620px; width:295px; height:26px; font-family:굴림체; font-size:9pt; font-weight:bold; color:#ff6600; vertical-align:middle; ">※수리진행상태가 '수리완료','반송','수리불가'인 경우에 인수확인 가능합니다.</caption>
- <caption id="cap_deptaprvdd" class="cell_1" visibility="hidden" style="left:985px; top:650px; width:40px; height:23px; vertical-align:middle; ">부서승인일자</caption>
- <input id="ipt_deptaprvdd" ref="/root/main/control/rfehemhtlist/deptaprvdd" class="input_default" disabled="true" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:1077px; top:653px; width:79px; height:19px; "/>
- <button id="btn_accept" class="btn2_letter2" navindex="11" visibility="visible" style="left:165px; top:48px; width:42px; height:19px; ">
- <caption>승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fupdateCheckSave();
- //20081108 승인버튼으로 승인처리를 일괄로 한다.
- /*
- for ( var i= grd_rfehemhtlist.fixedRows; i< grd_rfehemhtlist.rows; i++) {
-
- if( grd_rfehemhtlist.rowStatus(i) == 2 )
- {
- if(grd_rfehemhtlist.valueMatrix( i , grd_rfehemhtlist.colRef("deptaprvyn")) == "Y" && grd_rfehemhtlist.valueMatrix( i , grd_rfehemhtlist.colRef("workstat")) == "00" )
- {
- cmb_workstat.value = "01";
- model.setValue("/root/main/control/rfehemhtlist/deptaprvyn", "Y");
- ipt_deptaprvdd.value = getCurrentDate().substr(0, 8);
- ipt_deptaprvpsnid.value = getUserInfo("userid");
- ipt_deptaprvpsnnm.value = getUserInfo("usernm");
- model.refresh();
- fupdateCheckSave(i);
- }
- else if( grd_rfehemhtlist.valueMatrix( i , grd_rfehemhtlist.colRef("deptaprvyn")) == "N" || grd_rfehemhtlist.valueMatrix( i , grd_rfehemhtlist.colRef("deptaprvyn")) == "" )
- {
- if ( grd_rfehemhtlist.valueMatrix( i , grd_rfehemhtlist.colRef("workstat")) == "01" )
- {
- cmb_workstat.value = "00";
- model.setValue("/root/main/control/rfehemhtlist/deptaprvyn", "N");
- ipt_deptaprvdd.value = "";
- ipt_deptaprvpsnid.value = "";
- ipt_deptaprvpsnnm.value = "";
- model.refresh();
- fupdateCheckSave(i);
- }
- }
- }
-
- }
- model.refresh();
- */
- ]]>
- </script>
- </button>
- <input id="ipt_instcd" ref="/root/init/instcd" visibility="hidden" style="left:170px; top:165px; width:55px; height:15px; "/>
- <input id="ipt_reqflag" ref="/root/init/reqflag" visibility="hidden" style="left:230px; top:165px; width:55px; height:19px; "/>
- <input id="ipt_emplno" ref="/root/init/emplno" visibility="hidden" style="left:290px; top:165px; width:55px; height:19px; "/>
- <input id="ipt_reqaprvflag" ref="/root/init/reqaprvflag" visibility="hidden" style="left:350px; top:165px; width:55px; height:19px; "/>
- <input id="ipt_deptaprvreqyn" ref="/root/main/control/rfehemhtlist/deptaprvreqyn" visibility="hidden" style="left:1020px; top:76px; width:25px; height:19px; "/>
- <caption id="cap_execdept" class="cell_1" visibility="hidden" style="left:960px; top:74px; width:80px; height:23px; vertical-align:middle; ">시행부서</caption>
- <select1 id="radio1" ref="/root/main/control/rfehemhtlist/execdept" navindex="20" visibility="hidden" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:1041px; top:76px; width:151px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>시설팀</label>
- <value>1</value>
- </item>
- <item>
- <label>구매관리팀</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <datagrid id="grd_rfehemhtlist" nodeset="/root/main/grid/rfehemhtlist" caption="기관코드^비품_장비구분^승인^의뢰일자^의뢰일자^의뢰부서CODE^의뢰부서^발생일자^발생시간^담당자ID^담당자^접수일자^접수시간^접수자ID^접수자^접수확인^접수부서CODE^접수부서^작업상태^비품코드^비품명^품명^모델명^규격^의뢰부서^고장내역^수리구분1^수리구분2^사용여부^최종수리상태^인수자확인^부서인수일자^부서인수자ID^부서인수자^수리비^비고^수리완료일자^담당자전화번호^결재여부^담당자comment^결재일자^미가동일수^메일방송여부^의뢰자ID^의뢰자^부서승인자ID^부서승인자명^부서승인일자^설치장소^caption1^caption2^caption3^caption4^caption5^caption6^caption7" colsep="^" colwidth="100, 100, 41, 66, 38, 100, 80, 70, 60, 70, 70, 70, 69, 70, 100, 100, 70, 100, 100, 100, 150, 85, 80, 90, 100, 68, 100, 100, 100, 100, 80, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 80, 100, 80, 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" navindex="9" style="left:0px; top:74px; width:692px; height:321px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="fixtrseqmtflag" visibility="hidden"/>
- <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox" visibility="hidden"/>
- <col disabled="true" ref="reqdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="reqno" style="text-align:center; "/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="depthngnm" visibility="hidden"/>
- <col ref="genrdd" visibility="hidden"/>
- <col ref="genrtm" visibility="hidden"/>
- <col ref="chrgpsnid" visibility="hidden"/>
- <col ref="chrgpsnnm" visibility="hidden"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="acpttm" visibility="hidden"/>
- <col ref="acptpsnid" visibility="hidden"/>
- <col ref="acptpsnnm" visibility="hidden"/>
- <col checkvalue="Y,N" type="checkbox" visibility="hidden"/>
- <col ref="acptdeptcd" visibility="hidden"/>
- <col ref="acptdeptnm" visibility="hidden"/>
- <col disabled="true" ref="workstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>청구승인의뢰</label>
- <value>00</value>
- </item>
- <item>
- <label>수리의뢰</label>
- <value>01</value>
- </item>
- <item>
- <label>수리중</label>
- <value>03</value>
- </item>
- <item>
- <label>외부수리</label>
- <value>10</value>
- </item>
- <item>
- <label>수리완료</label>
- <value>04</value>
- </item>
- <item>
- <label>수리불가</label>
- <value>08</value>
- </item>
- <item>
- <label>재고지급</label>
- <value>09</value>
- </item>
- </choices>
- </col>
- <col ref="fixasetcd" style="text-align:center; "/>
- <col disabled="true" ref="fixasetnm"/>
- <col ref="itemnm" visibility="hidden"/>
- <col disabled="true" ref="goodmodel"/>
- <col ref="goodspec" visibility="hidden"/>
- <col ref="depthngnm"/>
- <col ref="hdrncspec" visibility="hidden"/>
- <col ref="rpirflag1" visibility="hidden"/>
- <col ref="rpirflag2" visibility="hidden"/>
- <col ref="useyn" visibility="hidden"/>
- <col ref="lastrpirstat" visibility="hidden"/>
- <col ref="acptpsncnfm" visibility="hidden"/>
- <col ref="deptacptdd" visibility="hidden"/>
- <col ref="deptacptpsnid" visibility="hidden"/>
- <col ref="deptacptpsnnm" visibility="hidden"/>
- <col ref="rpiramt" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="rpirenddd" visibility="hidden"/>
- <col ref="chrgtel" visibility="hidden"/>
- <col ref="sanctyn" visibility="hidden"/>
- <col ref="chrgpsncmt" visibility="hidden"/>
- <col ref="sanctdd" visibility="hidden"/>
- <col ref="nonworkdayno" visibility="hidden"/>
- <col ref="emaildeliveyn" visibility="hidden"/>
- <col ref="reqpsnid" visibility="hidden"/>
- <col disabled="true" ref="reqpsnnm" style="text-align:center; "/>
- <col ref="deptaprvpsnid" visibility="hidden"/>
- <col ref="deptaprvpsnnm"/>
- <col ref="deptaprvdd" visibility="hidden"/>
- <col ref="lastrpirrslt" visibility="hidden"/>
- <col ref="custcd" visibility="hidden"/>
- <col ref="reqtel" visibility="hidden"/>
- <col ref="bugtyy" visibility="hidden"/>
- <col ref="bugtcd" visibility="hidden"/>
- <col ref="stdysubjno" visibility="hidden"/>
- <col ref="stdysubjnm" visibility="hidden"/>
- <col ref="acptflag" visibility="hidden"/>
- <col ref="installplcenm" visibility="hidden"/>
- <col ref="deptaprvreqyn" visibility="hidden"/>
- <col ref="execdept" visibility="hidden"/>
- <col ref="bizscrnid" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="attfilenm" visibility="hidden"/>
- <col ref="attfilepathnm" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- fmoveCheck();
- grd_rfehemhtlist.dispatch("onmouseup");
- // model.refresh();
- // fcontrolEnableYN(false);
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //20081108 승인처리를 버튼으로 일괄처리하도록 변경
- if(grd_rfehemhtlist.col == grd_rfehemhtlist.colRef("deptaprvyn"))
- {
- if(grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvyn")) == "Y")
- {
- cmb_workstat.value = "01";
- model.setValue("/root/main/control/rfehemhtlist/deptaprvyn", "Y");
- ipt_deptaprvdd.value = getCurrentDate().substr(0, 8);
- ipt_deptaprvpsnid.value = getUserInfo("userid");
- ipt_deptaprvpsnnm.value = getUserInfo("usernm");
- model.refresh();
- }else{
- cmb_workstat.value = "00";
- model.setValue("/root/main/control/rfehemhtlist/deptaprvyn", "N");
- ipt_deptaprvdd.value = "";
- ipt_deptaprvpsnid.value = "";
- ipt_deptaprvpsnnm.value = "";
- model.refresh();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rfehemhtlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_reqpsnlist" nodeset="/root/main/grid/reqpsnlist" visibility="hidden" caption="청구부서^사원명^청구승인" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" navindex="15" style="left:130px; top:210px; width:350px; height:70px; ">
- <col ref="reqdeptcd"/>
- <col ref="emplnm"/>
- <col ref="reqaprvflagnm"/>
- </datagrid>
- <caption id="caption7" style="left:358px; top:47px; width:167px; height:20px; ">* 행추가는 비품코드 더블클릭</caption>
- <caption id="caption8" class="cell_1" visibility="visible" style="left:697px; top:388px; width:58px; height:23px; vertical-align:middle; ">첨부파일</caption>
- <input id="ipt_attfilenm" ref="/root/main/control/rfehemhtlist/attfilenm" class="input_default" disabled="true" navindex="45" visibility="visible" style="left:756px; top:390px; width:253px; height:19px; "/>
- <button id="btn_downfile" class="btn2_letter8" navindex="47" visibility="visible" style="left:1086px; top:390px; width:108px; height:19px; ">
- <caption>파일수정/다운로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //첨부파일이 있는 경우에만 파일 다운로드하는 기능
-
- // if ( ipt_attfilenm.value != '')
- // {
- //첨부파일 다운로드함수 호출
- fAttfileDown();
- // }else{
- // messageBox("첨부된 파일이 없어서 다운로드 할수" , "I004");
- // }
- ]]>
- </script>
- </button>
- <button id="btn_addfile" class="btn2_letter5" navindex="46" visibility="visible" style="left:1010px; top:390px; width:75px; height:19px; ">
- <caption>파일업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //첨부파일이 이미 있다면 파일 업로드 가 안되도록 막아버리자.
- if ( model.getValue( ipt_attfilenm.attribute("ref")).length > 0) {
- messageBox( "이미 첨부파일이 존재하여 첨부파일을 저장할수" , "I004" );
- return;
- }
- //행추가를 통한 비품신규청구일경우 파일 업로드막기(저장후에 업로드가능해짐)
- //fixasetcd
- ///root/main/grid/rfehemhtlist
- //ghgh
-
- //alert(grd_rfehemhtlist.row);
- //alert(model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/fixasetcd"));
-
-
- if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/fixasetcd").length <=0 ) {
- messageBox( "비품청구 저장후에 첨부파일 업로드 하실수" , "I010" );
- return;
- }
- var files = window.fileDialog("open", "|", false);
- var replacepath = "";
- if ( files.length <= 0 ) return;
-
- model.setValue(ipt_uploadfile.attribute("ref") , files); //전체파일경로와이름을 셋팅
- var filename = files.substring(files.lastIndexOf('\\')+1 , files.length ); //파일이름만 나오게 문자정리
-
- model.setValue(ipt_attfilenm.attribute("ref") , filename);
-
- if (model.getValue( ipt_uploadfile.attribute("ref") ).length >0 && model.getValue( ipt_attfilenm.attribute("ref") ).length>0 ) {
- fAttfileAdd(); //첨부파일 서버로 저장하는 메소드 호출
- }
- //btn_search.dispatch("DOMActivate");
- model.refresh();
-
- ]]>
- </script>
- </button>
- <upload id="upd_uploadfile" nodeset="/root/send/fileupcolumn/fileupload/file" filecount="5" validate="true" style="left:985px; top:365px; width:25px; height:20px; "/>
- <line id="line3" class="line_2" style="x1:695px; y1:387px; x2:1190px; y2:387px; "/>
- <input id="ipt_uploadfile" ref="/root/send/fileupcolumn/fileupload/file" navindex="43" visibility="hidden" style="left:1000px; top:365px; width:35px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:697px; top:146px; width:90px; height:23px; vertical-align:middle; ">담당부서</caption>
- <line id="line16" class="line_2" style="x1:698px; y1:560px; x2:1193px; y2:560px; "/>
- <caption id="caption10" class="search_name" style="left:355px; top:400px; width:93px; height:17px; ">자산명 :</caption>
- <input id="input1" ref="/root/send/goodsrch/goodflaghngnm" class="input_search" disabled="false" navindex="15" appearance="input" style="left:431px; top:400px; width:130px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/send/goodsrch/fixasetcd" disabled="false" navindex="14" appearance="input" style="left:274px; top:400px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="caption11" class="search_name" style="left:185px; top:400px; width:93px; height:17px; ">자산코드 :</caption>
- <button id="btn_goodsearch" class="btn5_letter3" navindex="16" visibility="visible" style="left:570px; top:400px; width:53px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/goodsrch/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/goodsrch/mngtdeptcd", opt_reqdeptcd.value);
- model.setValue("/root/send/goodsrch/goodflag", "GE");
- submit("TRRSE01502");
- model.refresh();
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="button27" class="btn6_letter2" navindex="50" visibility="visible" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.copyNode("/root/main/printdata/data", grd_rfehemhtlist.attribute("nodeset") + "[" + grd_rfehemhtlist.row + "]");
- model.removenode("/root/main/printdata/data/instnm");
- model.makeNode("/root/main/printdata/data/instnm");
- model.setValue("/root/main/printdata/data/instnm", opt_instcdnm.value);
- var instcd = model.getValue("/root/main/grid/rfehemhtlist/instcd");
-
- //exeReportPreview("RPRFE00411", "XMLSTR");
- //exeReportPreview("RPRFE00601", "XMLSTR");
- exeReportPreview("RPRFE00801", "XMLSTR");
-
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" navindex="52" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" navindex="51" style="left:1069px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("", "Q002") == "6")
- {
- //var i = grd_rfehemhtlist.row;
- model.setValue( "/root/main/control/rfehemhtlist/attfilepathnm" , model.getValue( "/root/send/fileupcolumn/fileupload/file" ) );
-
- if(fupdateCheckSave()){
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|