123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635 |
- <?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: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>
- <rfehdabplist/>
- <grid>
- <rfehemhtlist/>
- <rfcmfacdlist/>
- </grid>
- <control>
- <rfehemhtlist>
- <fixasetcd/>
- <fixasetnm/>
- <reqdeptcd/>
- <depthngnm/>
- <reqpsnid/>
- <reqpsnnm/>
- <fixtrseqmtflag/>
- <workstat/>
- <btnfixasetcd/>
- <deptaprvreqyn>N</deptaprvreqyn>
- <execdept/>
- </rfehemhtlist>
- <instcd/>
- </control>
- <printdata>
- <data/>
- </printdata>
- </main>
- <send>
- <goodsrch>
- <instcd/>
- <goodflag/>
- <lrgcd_search/>
- <mngtdeptcd/>
- <mngtdeptnm/>
- <tempmngtdeptcd/>
- <fixasetcd/>
- <goodflagnm/>
- <installplcecd/>
- <installplcenm/>
- <goodspec/>
- <mngtno/>
- </goodsrch>
- <rpirsrch>
- <instcd/>
- <instcdnm/>
- <reqdd1/>
- <reqdd2/>
- <reqpsnid/>
- <reqpsnnm/>
- <reqflag>S</reqflag>
- <fixtrseqmtflag/>
- <reqdd/>
- <reqno/>
- <reqdeptcd/>
- <reqdeptnm/>
- <deptcd/>
- <goodflag/>
- <tempmngtdeptcd/>
- <bizflag>E</bizflag>
- <installplcecd/>
- <includesubdept/>
- </rpirsrch>
- <fileupcolumn>
- <instcd/>
- <reqdd/>
- <fileseqno/>
- <reqflag/>
- <reqno/>
- <reqseqno/>
- <reqpsnid/>
- <attfilenm/>
- <attfilepathnm/>
- <reqdeptcd/>
- <fileupload>
- <file>
- <filename/>
- </file>
- </fileupload>
- <scrnid>SMRFE00410</scrnid>
- </fileupcolumn>
- </send>
- <init>
- <rowtemp/>
- <workstattemp/>
- <goodflag>
- <label>전체</label>
- <value/>
- <label>비품</label>
- <value>GE</value>
- <label>의료장비</label>
- <value>EQ</value>
- <label>시험용(데모)</label>
- <value>DE</value>
- <label>대여</label>
- <value>RE</value>
- <label>임상시험용</label>
- <value>CT</value>
- </goodflag>
- <viewOption>spec</viewOption>
- </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/rpirsrch" 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/rpirsrch" resultref="/root/main/rfehdabplist"/>
- <submission id="TRRSE01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodsrch" resultref="/root/main/grid/rfcmfacdlist"/>
- <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" src="../../../mis/purcbaseweb/js/SMRSC05303.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- misfGridInit(grd_rfehemhtlist);
- misfGridInit(grd_rfehdabplist);
- misfGridInit(grd_temp);
- misfGridInit(grd_rfcmfacdlist);
- // rszfUserGoodFlagList(cmb_fixtrseqmtflag,getUserInfo("userid"));
- rszfComboBugtList(cmb_bugtcd,getUserInfo("dutplceinstcd"));
- misfComboComCdListMulti("C0048,R0055,R0055,R0032,R0025,R0035,R0285,030R0033"
- , "cmb_instcd,cmb_workstat,grd_rfehemhtlist.workstat,grd_rfehdabplist.acsrsunit,grd_rfcmfacdlist.goodflag,grd_rfcmfacdlist.prodplce,grd_rfehemhtlist.rpirflag2,grd_rfcmfacdlist.mngtgrade");
-
- // 사용자 권한에 따른 기관코드 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, "TRRSE01504", "N");
-
- // 기관코드 설정
- model.setValue("/root/send/rpirsrch/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/rpirsrch/instcdnm", getUserInfo("dutplceinstnm"));
- model.setValue(opt_reqdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(opt_reqdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
-
- model.setValue("/root/send/goodsrch/mngtdeptcd", opt_reqdeptcd.value);
- model.setValue("/root/send/goodsrch/mngtdeptnm", opt_reqdeptnm.value);
-
- // 금일 날자 설정
- model.setValue("/root/send/rpirsrch/reqdd1", getCurrentDate());
- model.setValue("/root/send/rpirsrch/reqdd2", getCurrentDate());
-
- model.setValue(ipt_rowtemp.attribute("ref"), "");
- fcontrolEnableYN(true);
-
- misfSetReadOnlyCol(grd_rfehemhtlist, "workstat", true);
-
- grd_rfehemhtlist.fixedcellcheckbox(0,grd_rfehemhtlist.colRef("choice"),false) = true;
- grd_rfehemhtlist.refresh();
-
- //수리 청구 승인권한 여부 판별하여 Grid의 승인 컬럼을 설정.
- fdeptGrantYN();
- model.refresh();
- }
- //수리 청구 승인권한 여부 판별하여 Grid의 승인 컬럼을 설정.
- function fdeptGrantYN()
- {
- /* ---------------------------------------------------------------------------------------
- * [2007.12.12 HBH ] 청구주기 추가.
- * 수리,장비등 청구주기가 없는 것들은 '1'로셋팅
- ---------------------------------------------------------------------------------------*/
- rszfGetPurcReqAuthInfo(cmb_instcd.value, "S", getUserInfo("dutplcecd"), getUserInfo("userid"),"1");
-
- for(var fRow = grd_rfehemhtlist.fixedRows; fRow < grd_rfehemhtlist.rows; fRow++)
- {
- if( rszfGetPurcAuthInfoByCond("reqaprvflag") == "2" && grd_rfehemhtlist.valueMatrix(fRow, grd_rfehemhtlist.colRef("deptaprvreqyn")) == "Y")
- {
- 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;
- }
- }
- grd_rfehemhtlist.refresh();
- }
-
- function fcontrolEnableYN(TrueFalse)
- {
- 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;
-
- rdo_execdept.disabled = TrueFalse;
-
- ipt_reqtel.disabled = TrueFalse;
-
- txt_hdrncspec.disabled = TrueFalse;
-
- ipt_genrdd.disabled = TrueFalse;
- // ipt_genrtm.disabled = TrueFalse;
- rdo_deptaprvreqyn.disabled =TrueFalse;
-
- 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_possndd.disabled = true;
-
- ipt_deptacptpsnid.disabled = true;
- ipt_deptacptpsnnm.disabled = true;
-
- txt_lastrpirrslt.disabled = true;
-
- // 부품사용내역 그리드 설정
- //grd_rfehdabplist.disabled = true;
-
- 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;
- // control 수정 금지
- fcontrolEnableYN(true);
- if(cmb_workstat.value == '00' || cmb_workstat.value == '01')
- {
- ipt_reqtel.disabled = false;
- ipt_reqdeptcd.disabled = false;
- btn_reqdeptcdSearch.disabled = false;
- ipt_depthngnm.disabled = false;
-
- if(cmb_instcd.value == "103")
- {
- ipt_bugtyy.disabled = false;
- cmb_bugtcd.disabled = false;
- ipt_stdysubjno.disabled = false;
- btn_stdysubjnm.disabled = false;
- ipt_stdysubjnm.disabled = false;
- }
-
- 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;
-
- rdo_execdept.disabled = true;
- rdo_deptaprvreqyn.disabled=true;
- }else{
- btn_delete.disabled = true;
-
- rdo_execdept.disabled = true;
- rdo_deptaprvreqyn.disabled=true;
- }
-
- 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_possndd.attribute("ref"), "");
- model.setValue(ipt_deptacptpsnid.attribute("ref"), "");
- model.setValue(ipt_deptacptpsnnm.attribute("ref"), "");
- }else{
- model.setValue(ipt_possndd.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)
- {
- grd_rfehemhtlist.refresh();
-
- model.removeNodeset("/root/temp/rfehemhtlist");
- model.makeNode("/root/temp/rfehemhtlist");
- //alert(instance1.selectNodesXml("/root/main/grid/rfehemhtlist[" + grd_rfehemhtlist.row + "]"));
- model.copyNode("/root/temp/rfehemhtlist", "/root/main/grid/rfehemhtlist[" + grd_rfehemhtlist.row + "]");
-
- // 부품사용내역을 조회 하기 위한 기본값 설정.
- if(grd_rfehdabplist.rows > 1){
- misfGridInit(grd_rfehdabplist);
- }
-
- if(grd_rfehemhtlist.rows-grd_rfehemhtlist.fixedRows != 0 && tmpStat != "N")
- {
- model.setValue("/root/send/rpirsrch/reqdd",grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd")) );
- model.setValue("/root/send/rpirsrch/reqno", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno")) );
- submit("TRRFE00402");
-
- grd_rfehdabplist.isReadOnly(grd_rfehdabplist.fixedRows, grd_rfehdabplist.fixedCols, grd_rfehdabplist.rows-1, grd_rfehdabplist.cols) = true;
- }
-
- if(grd_temp.rows > 1) grd_temp.row = grd_temp.rows - 1;
- }
-
- // 그리드 row 이동시 작업 check
- function fmoveCheck()
- {
- 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();
- }
-
- function fupdateCheckSave()
- {
- 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;
-
- 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")) = "SMRFE00400_수리신청등록.xrw";
- //}
- model.refresh();
- misfSave("TXRFE00401");
-
- if( model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/deptaprvyn") != 'Y'
- && model.getValue(rdo_deptaprvreqyn.attribute("ref")) == "Y")
- messageBox("부서장 승인이 되지 않았습니다.","");
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error") grd_rfehemhtlist.dispatch("onrowchanged");
- }
-
- 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;
- 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;
- }
-
- 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" , "S" ); //비품수리신청등록시 하드코딩 - 나중에 query에서 control
- model.setValue("/root/send/fileupcolumn/reqno" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqno") ) );
- 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") );
- submit("TXRSD00423");
- if (model.getValue(gvErrorMsgPath + "/type") != "error" ){
- messageBox("첨부파일이 업로드" , "I002");
- btn_search.dispatch("DOMActivate");
- }
- //파일 업로드 후 첨부파일 팝업창을 띄워서 해당 파일이 잘 올라갔는지 확인할수 있도록 해준다.?????
- }
- function fAttfileDown(){ //첨부파일 다운로드
- if(grd_rfehemhtlist.rows - grd_rfehemhtlist.fixedRows <= 0) return;
- else alert("danger");
- return;
- 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" , model.getValue("/root/main/goodreq/goodreqlist/attfilepathnm") ); //seqNumber
-
- model.setValue("/root/send/fileupcolumn/reqflag" , "S");
-
- model.setValue("/root/send/fileupcolumn/reqno" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqno") ) );
- 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");
- }
- ]]>
- </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:1195; height:744px; ">
- <group id="grp_detail" style="left:695px; top:80px; width:500px; height:655px; ">
- <caption id="caption19" style="left:85px; top:365px; width:100px; height:20px; vertical-align:middle; "/>
- <line id="line8" class="line_2" style="x1:3px; y1:262px; x2:498px; y2:262px; "/>
- <line id="line40" class="line_2" style="x1:0px; y1:214px; x2:494px; y2:214px; "/>
- <input id="ipt_deptacptpsnid" ref="/root/temp/rfehemhtlist/deptacptpsnid" class="input_default" visibility="hidden" style="left:358px; top:430px; width:41px; height:19px; text-align:center; "/>
- <button id="btn_reqdeptcdSearch" class="icon_search" navindex="29" style="left:243px; top:121px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_reqdeptcd, "", "reqdeptcd,depthngnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_reqtel" class="cell_1" style="left:249px; top:192px; width:90px; height:23px; vertical-align:middle; ">의뢰자 연락처</caption>
- <caption id="cap_bugtyy" class="cell_1" style="left:195px; top:264px; width:60px; height:23px; vertical-align:middle; ">예산년도</caption>
- <line id="line20" class="line_2" style="x1:0px; y1:524px; x2:498px; y2:524px; "/>
- <select1 id="rdo_execdept" ref="/root/temp/rfehemhtlist/execdept" disabled="true" navindex="27" visibility="visible" appearance="full" cellspacing="20" cols="4" overflow="visible" style="left:93px; top:98px; 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>
- <item>
- <label>시설과</label>
- <value>4060100000</value>
- </item>
- </choices>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var pgrid_name = grd_rfehemhtlist;
- var ptarget_node = "/root/temp/rfehemhtlist";
- var psource_node = "/root/main/grid/rfehemhtlist[" + ipt_rowtemp.value + "]";
-
- var node1 = instance1.selectNodes(ptarget_node + "/*");
- var node2 = instance1.selectNodes(psource_node + "/*");
-
- var update_yn = "N";
-
- if (model.getValue(ptarget_node + "/execdept") != model.getValue(psource_node + "/execdept")) {
- update_yn = "Y";
- }
-
- if (pgrid_name.rowstatus(pgrid_name.row) == 1 && update_yn == "Y") {
- model.copyNode(psource_node, ptarget_node);
- pgrid_name.refresh();
- }
- else if ((pgrid_name.rowstatus(pgrid_name.row) == 0 || pgrid_name.rowstatus(pgrid_name.row) == 2) && update_yn == "Y") {
- model.copyNode(psource_node, ptarget_node);
- pgrid_name.rowstatus(pgrid_name.row) = 2;
- pgrid_name.refresh();
- }
- model.setFocus("grd_rfehemhtlist");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var dept = model.getValue("/root/temp/rfehemhtlist/execdept");
- var instcd= getUserInfo("dutplceinstcd");
- if(dept == "4060100000" && instcd == "031"){
- messageBox("본원에선 시설과를 담당부서로 선택할 수" , "I004");
- model.setValue("/root/temp/rfehemhtlist/execdept","");
- rdo_execdept.refresh();
- return;
- }
-
- ]]>
- </script>
- </select1>
- <caption id="cap_deptaprvpsnid" class="cell_1" visibility="hidden" style="left:249px; top:359px; width:90px; height:23px; vertical-align:middle; ">부서승인자</caption>
- <line id="line10" class="line_3" style="x1:0px; y1:383px; x2:495px; y2:383px; "/>
- <caption id="cap_lastrpirrslt" class="cell_1" style="left:0px; top:360px; width:90px; height:165px; vertical-align:middle; ">수리내역</caption>
- <caption id="cap_bugtcd" class="cell_1" style="left:358px; top:265px; width:60px; height:23px; vertical-align:middle; ">예산계정</caption>
- <output id="ipt_depthngnm" ref="/root/temp/rfehemhtlist/depthngnm" class="output_fix" navindex="30" style="left:263px; top:121px; width:232px; height:19px; text-align:center; "/>
- <input id="ipt_reqtel" ref="/root/temp/rfehemhtlist/reqtel" class="input_s_essential" navindex="36" maxlength="15" style="left:342px; top:194px; width:153px; height:19px; "/>
- <caption id="cap_stdysubjno" class="cell_1" visibility="hidden" style="left:293px; top:480px; width:63px; height:23px; vertical-align:middle; ">연구과제</caption>
- <select1 id="rdo_deptaprvreqyn" ref="/root/temp/rfehemhtlist/deptaprvreqyn" navindex="46" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:92px; top:362px; width:152px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>승인필요</label>
- <value>Y</value>
- </item>
- <item>
- <label>승인불필요</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // if(rdo_deptaprvreqyn.value == "Y")
- // cmb_workstat.value="00";
- // else
- // cmb_workstat.value="01";
- // model.refresh();
- fdeptGrantYN();
- grd_rfehemhtlist.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_bugtyy" ref="/root/temp/rfehemhtlist/bugtyy" class="input_default" disabled="true" navindex="39" inputtype="date" format="yyyy" style="left:256px; top:267px; width:101px; height:19px; "/>
- <input id="ipt_reqpsnid" ref="/root/temp/rfehemhtlist/reqpsnid" class="input_s_essential" navindex="31" style="left:92px; top:145px; 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>
- <caption id="cap_reqpsnid" class="cell_1" style="left:0px; top:143px; width:90px; height:23px; vertical-align:middle; ">의뢰자</caption>
- <caption id="cap_acptdeptcd" class="cell_1" style="left:0px; top:168px; width:90px; height:23px; vertical-align:middle; ">접수부서</caption>
- <line id="line11" class="line_2" visibility="hidden" style="x1:0px; y1:382px; x2:498px; y2:382px; "/>
- <input id="ipt_deptacptpsnnm" ref="/root/temp/rfehemhtlist/deptacptpsnnm" class="input_default" visibility="hidden" style="left:397px; top:430px; width:45px; height:19px; text-align:center; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:526px; x2:495px; y2:526px; "/>
- <caption id="cap_chrgtel" class="cell_1" style="left:249px; top:288px; width:90px; height:22px; vertical-align:middle; ">담당자 연락처</caption>
- <input id="ipt_reqdd" ref="/root/temp/rfehemhtlist/reqdd" class="input_s_essential" disabled="true" navindex="26" inputtype="date" style="left:92px; top:74px; width:153px; height:19px; text-align:center; "/>
- <textarea id="txt_hdrncspec" ref="/root/temp/rfehemhtlist/hdrncspec" class="input_s_essential" navindex="37" style="left:92px; top:218px; width:403px; height:43px; "/>
- <line id="line23" class="line_2" style="x1:0px; y1:70px; x2:495px; y2:70px; "/>
- <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="54" style="left:92px; top:529px; width:403px; height:121px; ">
- <col ref="acsrscd" style="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>
- <caption id="cap_acsrslist" class="cell_1" style="left:0px; top:528px; width:90px; height:122px; vertical-align:middle; ">부품사용내역</caption>
- <caption id="cap_hdrncspec" class="cell_1" style="left:0px; top:216px; width:90px; height:47px; vertical-align:middle; ">의뢰내역</caption>
- <caption id="cap_genrdd" class="cell_1" style="left:0px; top:264px; width:90px; height:23px; vertical-align:middle; ">발생일자</caption>
- <output id="ipt_reqno" ref="/root/temp/rfehemhtlist/reqno" class="output_fix" style="left:342px; top:74px; width:153px; height:19px; "/>
- <line id="line24" class="line_3" style="x1:0px; y1:653px; x2:496px; y2:653px; "/>
- <line id="line35" class="line_2" style="x1:0px; y1:140px; x2:495px; y2:140px; "/>
- <caption id="caption11" class="cell_1" style="left:0px; top:96px; width:90px; height:22px; vertical-align:middle; ">담당부서</caption>
- <caption id="caption2" class="cell_1" style="left:0px; top:119px; width:90px; height:23px; vertical-align:middle; ">의뢰부서</caption>
- <line id="line14" class="line_2" visibility="hidden" style="x1:0px; y1:454px; x2:497px; y2:454px; "/>
- <caption id="cap_deptaprvdd" class="cell_1" visibility="hidden" style="left:0px; top:384px; width:90px; height:23px; vertical-align:middle; ">부서승인일자</caption>
- <caption id="caption23" style="left:85px; top:0px; width:412px; height:23px; font-family:굴림체; font-size:9pt; font-weight:bold; color:#ff6600; vertical-align:middle; ">※수리진행상태가 '수리의뢰'인 경우에만 수정,삭제가 가능합니다.</caption>
- <input id="ipt_genrdd" ref="/root/temp/rfehemhtlist/genrdd" class="input_default" disabled="true" navindex="38" inputtype="date" style="left:92px; top:267px; width:101px; height:19px; text-align:center; "/>
- <output id="ipt_reqpsnnm" ref="/root/temp/rfehemhtlist/reqpsnnm" class="output_fix" navindex="33" style="left:263px; top:145px; width:232px; height:19px; text-align:center; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:72px; width:90px; height:23px; vertical-align:middle; ">의뢰일자</caption>
- <line id="line37" class="line_2" style="x1:0px; y1:167px; x2:495px; y2:167px; "/>
- <output id="ipt_stdysubjnm" ref="/root/temp/rfehemhtlist/stdysubjnm" class="output_fix" navindex="61" visibility="hidden" style="left:413px; top:480px; width:30px; height:19px; text-align:center; "/>
- <input id="ipt_acptdeptnm" ref="/root/temp/rfehemhtlist/acptdeptnm" class="output_fix" disabled="true" navindex="35" style="left:240px; top:170px; width:255px; height:19px; text-align:center; "/>
- <caption id="caption24" class="tit_2" style="left:5px; top:4px; width:157px; height:13px; ">의뢰현황</caption>
- <caption id="caption4" class="cell_1" style="left:249px; top:72px; width:90px; height:23px; vertical-align:middle; ">의뢰번호</caption>
- <line id="line16" class="line_2" visibility="hidden" style="x1:0px; y1:406px; x2:495px; y2:406px; "/>
- <line id="line38" class="line_2" style="x1:0px; y1:190px; x2:495px; y2:190px; "/>
- <textarea id="txt_lastrpirrslt" ref="/root/temp/rfehemhtlist/lastrpirrslt" class="output_fix" navindex="53" editable="false" style="left:92px; top:360px; width:403px; height:165px; "/>
- <caption id="cap_acptdd" class="cell_1" style="left:249px; top:312px; width:90px; height:23px; vertical-align:middle; ">접수일자</caption>
- <input id="ipt_fixasetnm" ref="/root/temp/rfehemhtlist/fixasetnm" class="output_fix" navindex="25" editable="false" style="left:92px; top:50px; width:403px; height:19px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:19px; x2:498px; y2:19px; "/>
- <line id="line28" class="line_2" style="x1:0px; y1:94px; x2:495px; y2:94px; "/>
- <input id="ipt_stdysubjno" ref="/root/temp/rfehemhtlist/stdysubjno" class="input_search" navindex="59" visibility="hidden" style="left:362px; top:480px; width:31px; 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," + cmb_instcd.value + "," + ipt_stdysubjno.value, "",
- "stdysubjno,stdysubjnm", ipt_stdysubjno, "SPRSD00260", "instcd", "cmb_instcd");
- }else
- {
- ipt_stdysubjno.value = "";
- ipt_stdysubjnm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <select id="che_acptpsncnfm" ref="/root/temp/rfehemhtlist/acptpsncnfm" visibility="hidden" overflow="visible" appearance="full" style="left:307px; top:430px; width:50px; 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>
- <input id="ipt_chrgpsnid" ref="/root/temp/rfehemhtlist/chrgpsnid" class="output_fix" disabled="true" navindex="41" style="left:92px; top:290px; width:66px; height:19px; text-align:center; "/>
- <input id="ipt_acptdeptcd" ref="/root/temp/rfehemhtlist/acptdeptcd" class="output_fix" disabled="true" navindex="34" style="left:92px; top:170px; width:146px; height:19px; text-align:center; "/>
- <line id="line18" class="line_2" style="x1:0px; y1:358px; x2:494px; y2:358px; "/>
- <input id="ipt_possndd" ref="/root/temp/rfehemhtlist/possndd" class="output_fix" navindex="24" editable="false" format="yyyy-mm-dd" style="left:365px; top:26px; width:130px; height:19px; text-align:center; "/>
- <caption id="caption7" class="cell_1" visibility="hidden" style="left:0px; top:359px; width:90px; height:23px; vertical-align:middle; ">부서승인여부</caption>
- <input id="ipt_deptaprvpsnid" ref="/root/temp/rfehemhtlist/deptaprvpsnid" class="input_search" disabled="true" navindex="48" visibility="hidden" style="left:341px; top:362px; width:76px; height:19px; text-align:center; "/>
- <select1 id="cmb_bugtcd" ref="/root/temp/rfehemhtlist/bugtcd" navindex="40" appearance="minimal" style="left:419px; top:267px; width:76px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_acptdd" ref="/root/temp/rfehemhtlist/acptdd" class="output_fix" disabled="true" navindex="45" format="yyyy-mm-dd" style="left:342px; top:314px; width:153px; height:19px; text-align:center; "/>
- <caption id="cap_chrgpsnid" class="cell_1" style="left:0px; top:288px; width:90px; height:23px; vertical-align:middle; ">수리담당자</caption>
- <line id="line3" class="line_2" style="x1:0px; y1:358px; x2:495px; y2:358px; "/>
- <input id="ipt_fixasetcd" ref="/root/temp/rfehemhtlist/fixasetcd" class="output_fix" navindex="23" editable="false" style="left:92px; top:26px; width:171px; height:19px; text-align:center; "/>
- <line id="line19" class="line_2" style="x1:0px; y1:47px; x2:495px; y2:47px; "/>
- <caption id="caption8" class="cell_1" style="left:268px; top:25px; width:92px; height:23px; vertical-align:middle; ">자산취득일자</caption>
- <caption id="cap_fixasetcd" class="cell_1" style="left:0px; top:24px; width:90px; height:47px; vertical-align:middle; ">자산코드</caption>
- <line id="line4" class="line_2" style="x1:0px; y1:262px; x2:494px; y2:262px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:265px; x2:498px; y2:265px; "/>
- <button id="btn_stdysubjnm" class="icon_search" navindex="60" visibility="hidden" style="left:396px; top:481px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_stdysubjno,"","stdysubjno,stdysubjnm","SPRSD00260","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_deptaprvdd" ref="/root/temp/rfehemhtlist/deptaprvdd" class="input_default" disabled="true" navindex="52" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:92px; top:387px; width:153px; height:19px; "/>
- <select1 id="cmb_workstat" ref="/root/temp/rfehemhtlist/workstat" class="combo_s_essential" disabled="true" navindex="44" appearance="minimal" style="left:92px; top:314px; width:153px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_chrgpsnnm" ref="/root/temp/rfehemhtlist/chrgpsnnm" class="output_fix" disabled="true" navindex="42" style="left:160px; top:290px; width:85px; height:19px; text-align:center; "/>
- <button id="btn_reqpsnidSearch" class="icon_search" navindex="32" style="left:243px; top:145px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("12", ipt_reqpsnid, "", "reqpsnid,reqpsnnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_workstat" class="cell_1" style="left:0px; top:312px; width:90px; height:23px; vertical-align:middle; ">수리진행상태</caption>
- <caption id="cap_" class="cell_1" style="left:0px; top:192px; width:90px; height:23px; vertical-align:middle; ">자산구분</caption>
- <line id="line6" class="line_2" style="x1:0px; y1:310px; x2:495px; y2:310px; "/>
- <input id="ipt_deptaprvpsnnm" ref="/root/temp/rfehemhtlist/deptaprvpsnnm" class="input_search" disabled="true" navindex="50" visibility="hidden" style="left:419px; top:362px; width:76px; height:19px; text-align:center; "/>
- <input id="ipt_chrgtel" ref="/root/temp/rfehemhtlist/chrgtel" class="output_fix" disabled="true" navindex="43" editable="false" style="left:342px; top:289px; width:153px; height:19px; text-align:left; "/>
- <input id="ipt_reqdeptcd" ref="/root/temp/rfehemhtlist/reqdeptcd" class="input_s_essential" navindex="28" style="left:92px; top:121px; width:146px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfSearchDept(ipt_depthngnm);
- ]]>
- </script>
- </input>
- <line id="line7" class="line_2" style="x1:0px; y1:334px; x2:495px; y2:334px; "/>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if(ipt_rowtemp.value == "")return;
- var pgrid_name = grd_rfehemhtlist;
- var ptarget_node = "/root/temp/rfehemhtlist";
- var psource_node = "/root/main/grid/rfehemhtlist[" + ipt_rowtemp.value + "]";
-
- var node1 = instance1.selectNodes(ptarget_node + "/*");
- var node2 = instance1.selectNodes(psource_node + "/*");
-
- var update_yn = "N";
-
- for (var k = 0; k < node1.length; k++) {
- for (var p = 0; p < node2.length; p++) {
- if (node1.item(k).nodeName == node2.item(p).nodeName) {
- if (model.getValue(ptarget_node + "/" + node1.item(k).nodeName) != model.getValue(psource_node + "/" + node1.item(p).nodeName)) {
- update_yn = "Y";
- break;
- }
- }
- if (update_yn == "Y") break;
- }
- if (update_yn == "Y") break;
- }
-
- if (pgrid_name.rowstatus(pgrid_name.row) == 1 && update_yn == "Y") {
- model.copyNode(psource_node, ptarget_node);
- pgrid_name.refresh();
- }
- else if ((pgrid_name.rowstatus(pgrid_name.row) == 0 || pgrid_name.rowstatus(pgrid_name.row) == 2) && update_yn == "Y") {
- model.copyNode(psource_node, ptarget_node);
- pgrid_name.rowstatus(pgrid_name.row) = 2;
- pgrid_name.refresh();
- }
- ]]>
- </script>
- <input id="ipt_attfilenm" ref="/root/temp/rfehemhtlist/attfilenm" class="input_default" disabled="true" navindex="47" visibility="visible" style="left:92px; top:337px; width:238px; height:19px; "/>
- <button id="btn_downfile" class="btn2_letter6" navindex="51" visibility="visible" style="left:409px; top:337px; width:86px; 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="49" visibility="visible" style="left:332px; top:337px; 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>
- <caption id="caption16" class="cell_1" visibility="visible" style="left:0px; top:335px; width:90px; height:23px; vertical-align:middle; ">첨부파일</caption>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- inFlag = true;
- ]]>
- </script>
- <select1 id="combo1" ref="/root/temp/rfehemhtlist/fixtrseqmtflag" class="input_default" disabled="true" navindex="-1" appearance="minimal" style="left:92px; top:194px; width:148px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_rfehemhtlist" nodeset="/root/main/grid/rfehemhtlist" disabled="false" visibility="visible" caption="^기관코드^자산구분^의뢰일자^의뢰일자^의뢰부서^의뢰부서^의뢰자^의뢰자^발생일자^발생시간^담당자ID^담당자^접수일자^접수시간^접수자ID^접수자^접수확인^접수부서CODE^접수부서^자산명^규격^모델^작업상태^품명^고장내역^수리구분1^수리구분^사용여부^최종수리상태^인수자확인^부서인수일자^부서인수자ID^부서인수자^수리비^비고^수리완료일자^담당자전화번호^결재여부^담당자comment^결재일자^미가동일수^메일방송여부^승인^부서승인자ID^부서승인자명^부서승인일자^caption1^caption2^caption3^caption4^1^2^3^4^5^6^7^8^9^고정자산코드^취득금액^담당부서명" colsep="^" colwidth="24, 59, 100, 66, 35, 70, 80, 50, 65, 70, 70, 70, 69, 70, 100, 100, 70, 100, 100, 100, 255, 100, 100, 70, 121, 100, 100, 60, 100, 80, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 41, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70,100,100,100,100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" navindex="12" style="left:0px; top:105px; width:692px; height:235px; ">
- <col checkvalue="Y,N" ref="choice" type="checkbox"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="fixtrseqmtflag" 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="reqpsnid" visibility="hidden"/>
- <col disabled="true" ref="reqpsnnm" style="text-align:center; "/>
- <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="fixasetnm"/>
- <col disabled="true" ref="goodspec"/>
- <col disabled="true" ref="goodmodel" visibility="hidden"/>
- <col disabled="true" ref="workstat" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="itemnm" visibility="hidden"/>
- <col ref="hdrncspec" visibility="hidden"/>
- <col ref="rpirflag1" visibility="hidden"/>
- <col disabled="true" ref="rpirflag2" type="combo" visibility="visible" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="useyn" visibility="hidden"/>
- <col ref="lastrpirstat" visibility="hidden"/>
- <col ref="acptpsncnfm" visibility="hidden"/>
- <col ref="possndd" 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 checkvalue="Y,N" ref="deptaprvyn" type="checkbox"/>
- <col ref="deptaprvpsnid" visibility="hidden"/>
- <col ref="deptaprvpsnnm" visibility="hidden"/>
- <col ref="deptaprvdd" visibility="hidden"/>
- <col ref="deptaprvreqyn" 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="possndd" visibility="hidden"/>
- <col ref="execdept" visibility="hidden"/>
- <col ref="attfilenm" visibility="hidden"/>
- <col ref="attfilepathnm" visibility="hidden"/>
- <col ref="fixasetcd"/>
- <col ref="possnamt" format="#,###" style="text-align:right; "/>
- <col ref="execdeptnm" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- fmoveCheck();
- grd_rfehemhtlist.dispatch("onmouseup");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_rfehemhtlist.col == grd_rfehemhtlist.colRef("deptaprvyn"))
- {
- if(grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvyn")) == "Y")
- {
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvdd")) = getCurrentDate().substr(0, 8);
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvpsnid")) = getUserInfo("userid");
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvpsnnm")) = getUserInfo("usernm");
- }else{
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvdd")) = "";
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvpsnid")) = "";
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvpsnnm")) = "";
-
- }
- model.refresh();
- fupdateCheckSave();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rfehemhtlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <group id="grp_search" style="left:0px; top:10px; width:1195px; height:63px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:63px; "/>
- <input id="opt_reqdeptcd" ref="/root/send/rpirsrch/reqdeptcd" class="input_s_essential" navindex="8" appearance="input" style="left:780px; top:10px; width:75px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfSearchDept(opt_reqdeptnm);
- ]]>
- </script>
- </input>
- <caption id="cap_reqdeptcd" class="search_name" style="left:656px; top:10px; width:134px; height:17px; ">의뢰(사용)부서 :</caption>
- <input id="ipt_reqdd2" ref="/root/send/rpirsrch/reqdd2" class="input_s_essential" navindex="2" inputtype="date" style="left:530px; top:10px; width:100px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="11" style="left:1129px; top:21px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd"))return;
- if(!isRequiredControls("ipt_reqdd1"))return;
- if(!isRequiredControls("ipt_reqdd2"))return;
- if(!isRequiredControls("otp_reqdeptcd"))return;
-
- model.setValue("/root/send/rpirsrch/installplcecd",model.getValue("/root/send/goodsrch/installplcecd"));
- if(submit("TRRFE00401")){
- rdo_view.dispatch("xforms-value-changed");
-
- fgridClickEvent();
- //model.setValue("/root/temp/rowtemp", grd_rfehemhtlist.row);
- fcomboValueCheck();
- fdeptGrantYN();
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="opt_reqdeptnm" ref="/root/send/rpirsrch/reqdeptnm" class="output_fix" style="left:880px; top:10px; width:130px; height:19px; "/>
- <input id="ipt_reqdd1" ref="/root/send/rpirsrch/reqdd1" class="input_s_essential" navindex="3" inputtype="date" style="left:415px; top:10px; width:100px; height:19px; "/>
- <caption id="cap_reqdd2" class="search_name" visibility="visible" style="left:320px; top:10px; width:86px; height:17px; ">의뢰일자 :</caption>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
- <button id="btn_userSearch" class="icon_search" navindex="5" style="left:492px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("12", ipt_reqpsnids, "", "reqpsnid,reqpsnnm");
- grp_search.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_fixtrseqmtflag" ref="/root/send/rpirsrch/fixtrseqmtflag" class="input_default" navindex="1" appearance="minimal" style="left:110px; top:35px; width:160px; height:19; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption13" style="left:516px; top:10px; width:20px; height:19px; font-weight:bold; ">~</caption>
- <caption id="caption12" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">자산구분 :</caption>
- <line id="line13" class="line_4" style="x1:1120px; y1:5px; x2:1120px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_reqpsnids" ref="/root/send/rpirsrch/reqpsnid" class="input_default" navindex="4" style="left:415px; top:35px; width:75px; 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");
- grp_search.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_dept" class="icon_search" navindex="9" style="left:859px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", opt_reqdeptcd, "", "reqdeptcd,reqdeptnm");
- grp_search.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/rpirsrch/instcd" class="combo_s_essential" disabled="true" navindex="-2" appearance="minimal" style="left:110px; top:10px; width:160px; height:19; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <output id="ipt_reqpsnnms" ref="/root/send/rpirsrch/reqpsnnm" class="output_fix" navindex="6" style="left:510px; top:35px; width:95px; height:19px; "/>
- <caption id="cap_reqno" class="search_name" style="left:320px; top:35px; width:83px; height:17px; ">의 뢰 자 :</caption>
- <output id="opt_installplcenm" ref="/root/send/goodsrch/installplcenm" class="output_fix" style="left:880px; top:35px; width:130px; height:19px; "/>
- <input id="ipt_installplcecd" ref="/root/send/goodsrch/installplcecd" class="input_search" navindex="7" appearance="input" style="left:780px; top:35px; width:75px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_installplcecd.value.length == 0)
- opt_installplcenm.value = "";
- else
- rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
- "deptcd," + ipt_installplcecd.value, "", "installplcecd,installplcenm",
- ipt_installplcecd, "PPRAC00700", "","");
- grp_search.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_installplce" class="icon_search" navindex="10" style="left:859px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("19", ipt_installplcecd,"", "installplcecd,installplcenm", model.getValue(cmb_instcd.attribute("ref")),"instcd");
- grp_search.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption15" class="search_name" style="left:656px; top:34px; width:129px; height:17px; ">설 치 장 소 :</caption>
- <select id="chk_includesubdept" ref="/root/send/rpirsrch/includesubdept" overflow="visible" appearance="full" style="left:1020px; top:10px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>하위부서포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <group id="grp_goodsearch" style="left:0px; top:340px; width:692px; height:395px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:692px; height:58px; "/>
- <button id="button4" class="btn4_letter8" navindex="56" style="left:505px; top:60px; width:128px; height:22px; ">
- <caption>자산리스트 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPRSE01504","XMLSTR");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn5_letter3" navindex="19" visibility="visible" style="left:633px; top:61px; 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="caption9" class="search_name" style="left:15px; top:32px; width:93px; height:17px; ">자산코드 :</caption>
- <input id="input2" ref="/root/send/goodsrch/fixasetcd" class="input_search" navindex="14" imemode="disabled" _chartype="upper" appearance="input" style="left:107px; top:32px; width:114px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_goodsearch", "DOMActivate");
- ]]>
- </script>
- </input>
- <datagrid id="grd_rfcmfacdlist" nodeset="/root/main/grid/rfcmfacdlist" caption="기관^자산구분^자산코드^INVENTORY장비^자산명^자산명(한글)^자산명(영문)^규격^모델^S/N^사용부서^사용부서^관리등급^관리부서^관리부서^구코드^설치장소^거래처^제조원^제조국^취득일자^취득금액^기관코드^사용부서코드^제조회사^취득일자" colsep="^" colwidth="32, 59, 100, 40, 180, 80, 80, 90, 90, 75, 75, 100, 60, 75, 100, 87, 79, 87, 85, 89, 70, 35, 50, 50, 50, 60" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" navindex="13" style="left:0px; top:88px; width:691px; height:306px; text-align:center; vertical-align:middle; ">
- <col ref="instnm" visibility="hidden" style="text-align:center; "/>
- <col disabled="true" ref="goodflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="fixasetcd" style="text-align:left; "/>
- <col ref="inventoryflag" visibility="hidden"/>
- <col ref="fixasetnm" style="text-align:left; "/>
- <col ref="goodflaghngnm" visibility="hidden" style="text-align:left; "/>
- <col ref="goodflagengnm" visibility="hidden" style="text-align:left; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="goodmodel" visibility="hidden" style="text-align:left; "/>
- <col ref="mngtno" style="text-align:left; "/>
- <col ref="mngtdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="mngtdeptnm" style="text-align:left; "/>
- <col disabled="true" ref="mngtgrade" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="tempmngtdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="tempmngtdeptnm" visibility="hidden" style="text-align:left; "/>
- <col ref="oldcd" style="text-align:left; "/>
- <col ref="installplcenm" style="text-align:left; "/>
- <col ref="suplplcenm" style="text-align:left; "/>
- <col ref="prodcmpynm" style="text-align:left; "/>
- <col disabled="true" ref="prodplce" type="combo" style="text-align:left; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="possndd" format="yyyy-mm-dd"/>
- <col ref="possnamt" visibility="hidden" format="#,###"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="mngtdeptcd" visibility="visible"/>
- <col ref="prodcmpy" visibility="hidden"/>
- <col ref="possndd" visibility="hidden" format="yyyy-mm-dd"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_rfcmfacdlist.row > (grd_rfcmfacdlist.fixedRows-1) && event.pTarget.elementName == "xforms:col")
- {
- btn_insert.dispatch("DOMActivate");
- model.setFocus("ipt_reqtel");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rfcmfacdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <input id="input1" ref="/root/send/goodsrch/goodflagnm" class="input_search" disabled="false" navindex="15" appearance="input" style="left:322px; top:9px; width:213px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_goodsearch", "DOMActivate");
- ]]>
- </script>
- </input>
- <line id="line15" class="line_1" style="x1:0px; y1:83px; x2:692px; y2:84px; "/>
- <button id="btn_goodsearch" class="btn1_letter2" navindex="18" visibility="visible" style="left:625px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/goodsrch/instcd", cmb_instcd.value);
- model.setValue("/root/send/goodsrch/mngtdeptcd", opt_reqdeptcd.value);
- model.setValue("/root/send/goodsrch/installplcecd", ipt_installplcecd.value);
-
- if(submit("TRRSE01504")){
- rdo_view.dispatch("xforms-value-changed");
- }
- ]]>
- </script>
- </button>
- <caption id="caption10" class="search_name" style="left:229px; top:9px; width:111px; height:17px; ">자 산 명 :</caption>
- <line id="line17" class="line_4" style="x1:610px; y1:6px; x2:610px; y2:54px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption5" class="tit_2" style="left:6px; top:68px; width:115px; height:13px; ">보유자산</caption>
- <select1 id="cmb_goodfixtrseqmtflag" ref="/root/send/goodsrch/goodflag" class="input_default" navindex="0" appearance="minimal" style="left:107px; top:9px; width:114px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption14" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">자산구분 :</caption>
- <caption id="caption17" class="search_name" style="left:229px; top:32px; width:95px; height:17px; ">규격/모델:</caption>
- <input id="input3" ref="/root/send/goodsrch/goodspec" class="input_search" disabled="false" navindex="16" appearance="input" style="left:322px; top:32px; width:103px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_goodsearch", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption18" style="left:110px; top:62px; width:380px; height:25px; font-family:굴림체; font-size:9pt; font-weight:bold; color:#ff6600; vertical-align:middle; ">※조회 된 자산을 더블클릭 하시면 수리 신청이 추가 됩니다.</caption>
- <caption id="caption20" class="search_name" style="left:442px; top:32px; width:60px; height:17px; ">S/N :</caption>
- <input id="input4" ref="/root/send/goodsrch/mngtno" class="input_search" disabled="false" navindex="17" appearance="input" style="left:501px; top:32px; width:98px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_goodsearch", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:84px; width:157px; height:13px; ">의뢰내역</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:99px; x2:692px; y2:99px; "/>
- <datagrid id="grd_temp" nodeset="/root/temp/rfehemhtlist" visibility="hidden" caption="기관코드^담당부서^자산구분^의뢰일자^의뢰일자^의뢰부서^의뢰부서^의뢰자ID^의뢰자 명^발생일자^발생시간^담당자ID^담당자명^접수일자^접수시간^접수자ID^접수자이름^접수확인^접수부서^접수부서명^모델^고정자산코드^자산명^작업상태^품명^고장내역^수리구분1^수리구분2^사용여부^최종수리상태^인수자확인^부서인수일자^부서인수자ID^부서인수자명^수리비^비고^수리완료일자^담당자전화번호^결재여부^담당자comment^결재일자^미가동일수^메일방송여부^caption1^caption2" colsep="^" colwidth="70, 70, 70, 70, 38, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 50, 70, 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" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:5px; top:240px; width:680px; height:70px; ">
- <col ref="instcd"/>
- <col ref="execdeptnm" visibility="hidden"/>
- <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="goodmodel"/>
- <col ref="fixasetcd"/>
- <col ref="fixasetnm"/>
- <col ref="workstat"/>
- <col ref="itemnm"/>
- <col ref="hdrncspec"/>
- <col ref="rpirflag1"/>
- <col ref="rpirflag2"/>
- <col ref="useyn"/>
- <col ref="lastrpirstat"/>
- <col ref="acptpsncnfm"/>
- <col ref="possndd"/>
- <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="deptaprvyn"/>
- <col ref="deptaprvpsnid"/>
- <col ref="deptaprvpsnnm"/>
- <col ref="deptaprvdd"/>
- <col ref="deptaprvreqyn"/>
- <col ref="lastrpirrslt"/>
- <col ref="custcd"/>
- <col ref="reqtel"/>
- <col ref="bugtyy"/>
- <col ref="bugtcd"/>
- <col ref="stdysubjno"/>
- <col ref="stdysubjnm"/>
- <col ref="acptflag"/>
- <col ref="possndd"/>
- <col ref="execdept"/>
- <col ref="attfilenm" visibility="hidden"/>
- <col ref="attfilepathnm" visibility="hidden"/>
- </datagrid>
- <input id="ipt_rowtemp" ref="/root/init/rowtemp" visibility="hidden" appearance="input" style="left:35px; top:175px; width:100px; height:19px; "/>
- <button id="btn_delete" class="btn2_letter3" navindex="21" style="left:580px; top:78px; 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)
- {
- fInitialize();
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn5_letter3" navindex="22" style="left:635px; top:78px; 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="btn_insert" class="btn2_letter3" navindex="20" visibility="visible" style="left:525px; top:78px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_rfcmfacdlist.rows - grd_rfcmfacdlist.fixedRows <= 0) {
- messageBox("수리 신청 할 자산을 조회하여 선택하십시오.", "E");
- return;
- } else if (grd_rfcmfacdlist.row < grd_rfcmfacdlist.fixedRows) {
- messageBox("수리 신청 할 자산을 선택하십시오.", "E");
- 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");
-
- var insertRow = grd_rfehemhtlist.row;
- var currentRow = grd_rfcmfacdlist.row;
- var fixasetcd = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("fixasetcd"));
- var lrgcd = fixasetcd.substr(2,2);
- var mdlcd = fixasetcd.substr(4,2);
- var smlcd = fixasetcd.substr(6,2);
-
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("fixasetcd")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("fixasetcd"));
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("instcd")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("instcd"));
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("fixtrseqmtflag")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("goodflag"));
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("fixasetnm")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("fixasetnm"));
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("goodspec")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("goodspec"));
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("goodmodel")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("goodmodel"));
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("possndd")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("possndd"));
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("possnamt")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("possnamt"));
- // 의뢰일자 설정
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("reqdd")) = getCurrentDate().substr(0, 8);
-
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("genrdd")) = getCurrentDate().substr(0, 8);
-
- // 일자별 의뢰 순번 설정
- //grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("reqno")) = fmaxreqno(grd_rfehemhtlist);
-
- // 부서코드 설정
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("reqdeptcd")) = getUserInfo("dutplcecd");
-
- // 부서코드명 설정
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("depthngnm")) = getUserInfo("dutplcenm");
-
- // User ID 설정
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("reqpsnid")) = getUserInfo("userid");
-
- // User Name 설정
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("reqpsnnm")) = getUserInfo("usernm");
-
- // 수리 진행 상태 설정 (수리 의뢰)
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("workstat")) = "01";
-
- // 접수구분 ( '1': 수리 , '2' 예방)
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("acptflag")) = "1";
-
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("deptaprvreqyn")) = "N";
-
-
- if(grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("fixtrseqmtflag")) == "EQ")
- {
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("execdept")) = "4090500000";
- }else{
- var instcd = getUserInfo("dutplceinstcd");
- if( instcd == "032"){
- if(lrgcd == "19" && mdlcd == "09" && smlcd == "06"){
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("execdept")) = "4060100000";
- messageBox("선택하신 자산코드의 담당부서는 시설과", "I009");
- }else{
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("execdept")) = "4020334000";
- }
- }else{
- grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("execdept")) = "4020334000";
- }
- }
-
- model.setValue(ipt_rowtemp.attribute("ref"), insertRow);
-
- fgridClickEvent("N"); // 행추가시 필요 없는 submission이 발생하여 우선은 제어를 위해 "N" 셋팅시 submission pass
-
- fcontrolEnableYN(false);
-
- fdeptGrantYN(); //-> 청구 권한 체크
-
- model.refresh();
- }else{
- messageBox("신규 수리청구는 한번에 다건을", "E001", "저장 후 추가 하십시오.");
- }
- ]]>
- </script>
- </button>
- <select1 id="rdo_view" ref="/root/init/viewOption" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:100px; top:80px; width:105px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>규격</label>
- <value>spec</value>
- </item>
- <item>
- <label>모델</label>
- <value>model</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var modelView = true;
- var specView = true;
- if(model.getValue("/root/init/viewOption") == "spec") {
- specView = false;
- } else {
- modelView = false;
- }
- grd_rfehemhtlist.colHidden(grd_rfehemhtlist.colRef("goodspec")) = specView;
- grd_rfehemhtlist.colHidden(grd_rfehemhtlist.colRef("goodmodel")) = modelView;
- grd_rfcmfacdlist.colHidden(grd_rfcmfacdlist.colRef("goodspec")) = specView;
- grd_rfcmfacdlist.colHidden(grd_rfcmfacdlist.colRef("goodmodel")) = modelView;
- grd_rfehemhtlist.refresh();
- grd_rfcmfacdlist.refresh();
- ]]>
- </script>
- </select1>
- <button id="btn_grdsize" class="btn2_letter4" navindex="33" style="left:459px; top:78px; width:64px; height:19px; ">
- <caption>확대보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( btn_grdsize.attribute("text") == "펼치기"){
-
- btn_grdsize.attribute("text") = "줄이기";
- grd_rfehemhtlist.attribute("width") =1190 ;
- // grd_rfehemhtlist.attribute("left") =770;
- }
- else {
- btn_grdsize.attribute("text") ="펼치기";
- grd_rfehemhtlist.attribute("width") =692 ;
- // grd_rfehemhtlist.attribute("left") =910;
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_prnt" class="btn6_letter2" navindex="55" 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", cmb_instcd.label);
-
- exeReportPreview("RPRFE00401", "XMLSTR");
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" navindex="58" 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="57" style="left:1069px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("", "Q002") == "6")
- {
- if(fupdateCheckSave())btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter8" navindex="56" style="left:939px; top:3px; width:128px; height:22px; ">
- <caption>예방점검상세조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("paraminstcd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("instcd")));
- setParameter("paramreqdeptcd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqdeptcd")));
- setParameter("paramreqdeptnm" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("depthngnm")));
- setParameter("paramreqdd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqdd")));
- setParameter("paramfixasetcd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("fixasetcd")));
- modal("SMRFE02100");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter8" navindex="56" style="left:809px; top:3px; width:128px; height:22px; ">
- <caption>점검리스트 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPRFE01100");
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_barcodeprt" class="btn2_letter5" navindex="16" style="left:382px; top:115px; width:75px; height:19px; ">
- <caption>바코드출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var goodnm, mngtdeptnm, installplcenm;
- var node = instance1.selectNodes("/root/main/grid/rfehemhtlist[choice='Y']");
-
- if (node == null || node.length < 1){
- messageBox("선택 된 자산이","I004");
- return false;
- }
-
- model.removeNodeset(grd_temp.nodeset);
- grd_temp.refresh();
-
- for (var i=0; i<node.length; i++) {
-
- var selectItem = node.item(i);
-
- grd_temp.addRow(false);
- grd_temp.valueMatrix(grd_temp.row, grd_temp.colRef("fixasetcd" )) = selectItem.selectSingleNode("fixasetcd").value;
- grd_temp.valueMatrix(grd_temp.row, grd_temp.colRef("fixasetnm" )) = selectItem.selectSingleNode("fixasetnm").value;
- grd_temp.valueMatrix(grd_temp.row, grd_temp.colRef("execdeptnm" )) = selectItem.selectSingleNode("execdeptnm").value
- grd_temp.valueMatrix(grd_temp.row, grd_temp.colRef("reqdd" )) = selectItem.selectSingleNode("reqdd").value;
- grd_temp.valueMatrix(grd_temp.row, grd_temp.colRef("reqno" )) = selectItem.selectSingleNode("reqno").value;
- grd_temp.valueMatrix(grd_temp.row, grd_temp.colRef("reqpsnnm" )) = selectItem.selectSingleNode("reqpsnnm").value;
-
- }
- grd_temp.refresh();
- exeReportPreview("RPRFE01103","XMLSTR");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|