123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>수리 상세 등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <grid>
- <rfehemhtlist/>
- <rfemdamklist/>
- <rfehdabplist/>
- </grid>
- <component>
- <rfehemhtlist/>
- <rfemdamklist/>
- </component>
- <tempgrid>
- <rfehemhtlist/>
- <rfemdamklist/>
- </tempgrid>
- <defltinfo>
- <deliveamt/>
- </defltinfo>
- <prntinfo>
- <rfehemhtlist/>
- <rfemdamklist/>
- </prntinfo>
- </main>
- <send>
- <grid>
- <rfehemhtlist/>
- <rfemdamklist/>
- <rfehdabplist/>
- </grid>
- <sendlist>
- <instcd/>
- <fixtrseqmtflag/>
- <fixasetcd/>
- <goodflaghngnm/>
- <goodspec/>
- <mngtno/>
- <goodmodel/>
- <installplcecd/>
- <installplcenm/>
- <prodcmpynm/>
- <tempmngtdeptnm/>
- <possndd/>
- <possnamt/>
- <deptaprvyn/>
- <suplplcenm/>
- <cntctel/>
- <chrgpsnid/>
- <acptpsnid/>
- <welfcd/>
- <goodqty/>
- <lrgnm/>
- <mngtdeptnm/>
- <flwgrnttermfr/>
- <flwgrnttermto/>
- </sendlist>
- <sendprint>
- <instcd/>
- <chrgpsnid/>
- <reqdd/>
- <reqdd2/>
- <reqno/>
- <reqno2/>
- <reqdeptcd/>
- <fixtrseqmtflag/>
- </sendprint>
- <search>
- <instcd/>
- <fixtrseqmtflag/>
- <reqdd/>
- <reqno/>
- </search>
- <fileupcolumn>
- <refinstcd/>
- <refdeptcd/>
- <refpsnid/>
- <fixasetcd/>
- <fileseqno/>
- <attfilenm/>
- <attfilepathnm/>
- <fileupload>
- <file>
- <filename/>
- </file>
- </fileupload>
- <reqdd/>
- <reqno/>
- </fileupcolumn>
- </send>
- <init>
- <useyn>
- <label>내부</label>
- <value>1</value>
- <label>외부</label>
- <value>2</value>
- </useyn>
- <sanctyn>
- <label>결재</label>
- <value>Y</value>
- <label>반송</label>
- <value>R</value>
- </sanctyn>
- <grdsanctyn>
- <label>결재</label>
- <value>Y</value>
- <label>반송</label>
- <value>R</value>
- </grdsanctyn>
- <rowtemp/>
- <rowtemp2/>
- <insStatus/>
- <sancttrsmyn/>
- <reqflag/>
- </init>
- <temp>
- </temp>
- <print/>
- <copynode/>
- <prtinfo/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
-
- // 그리드 연결
- misfMsterDetailSet(grd_rfehemhtlist, null, "TRRFE00601", "Y"); // 의뢰일별 목록
- misfMsterDetailSet(grd_rfemdamklist, null, "TRRFE00602", "Y"); // 수리일자별 목록
- misfMsterDetailSet(grd_rfehdabplist, null, "TRRFE00603", "Y"); // 부품목록
-
- //alert("초기화 완료");
- // Popup 으로 불려지면 기관코드, 자산코드 값 설정.
- if(model.getValue("/root/temp/fixasetcd") != "")
- {
- ipt_fixasetcd.value = model.getValue("/root/temp/fixasetcd");
- cmb_instcd.value = model.getValue("/root/temp/instcd");
-
- ipt_fixasetcd.disabled = true;
- cmb_instcd.disabled = true;
- btn_fixasetcd.disabled = true;
-
- ipt_fixasetcd.dispatch("xforms-value-changed");
- fSetEstamt();
- }
- ]]>
- </script>
- <submission id="TRRFE00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/grid/rfehemhtlist"/>
- <submission id="TRRFE00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfehemhtlist" resultref="/root/main/grid/rfemdamklist"/>
- <submission id="TRRFE00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfemdamklist" resultref="/root/main/grid/rfehdabplist"/>
- <submission id="TRRFE00606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/defltinfo"/>
- <submission id="TXRFE00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRRFE00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendprint" resultref="/root/print/PrintRfehemht"/>
- <submission id="TRRFE00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/print/PrintRfehemht"/>
- <submission id="TRRFE00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendprint" resultref="/root/print/rpirprntinfo"/>
- <submission id="TXRFC01101" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/fileupcolumn" resultref="/root/temp"/>
- <submission id="TXRFC01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fileinfo" 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="../../../com/hismainweb/js/DocTitle.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- model.resetInstanceNode("/root/main/component");
-
- // 초기화
- misfGridInit(grd_rfehemhtlist);
- misfGridInit(grd_rfemdamklist);
- misfGridInit(grd_rfehdabplist);
-
- model.removenode("/root/main/tempgrid");
- model.removenode("/root/main/gird");
- model.removenode("/root/main/component");
-
- model.makeNode("/root/main/tempgrid");
- model.makeNode("/root/main/gird");
- model.makeNode("/root/main/component");
- model.makeNode("/root/main/component/rfehemhtlist");
- model.makeNode("/root/main/component/rfemdamklist");
-
- // 사용자에 주어진 기관코드 설정.
- //rszfUserInstList(cmb_instcd,getUserInfo("userid"));
-
- // 사용자 권한에 따른 기관코드 Setting. [(6)수리관리, (B)이력등록]
- //rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"6","B");
-
- // 사용자 청구구분 Setting
- //rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),getUserInfo("userid"),"6","B" );
-
- // 공통코드 설정
- misfComboComCdListMulti("C0048,R0285,R0285,R0286,R0055,R0287,R0055,R0286,R0288,R0289,R0290,R0039,030M0012",
- "cmb_instcd,grd_rfehemhtlist.rpirflag2,cmb_rpirflag2,cmb_rpirflag1,cmb_workstat,grd_rfehemhtlist.acptflag,grd_rfehemhtlist.workstat,grd_rfehemhtlist.rpirflag1,grd_rfehdabplist.paytype,grd_rfehdabplist.kind,grd_rfehdabplist.costflag,grd_rfehdabplist.acsrsunit,cmb_docustat");
- addComboItem("cmb_rpirflag2", " ", "", "above");
-
- // 초기 설정값
- model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd")); // 기관코드
- model.setValue(ipt_fixtrseqmtflag.attribute("ref"), cmb_reqflag.value); // 비품_물품코드 설정
- model.setValue(ipt_rowtemp.attribute("ref") , 0);
- model.setValue(ipt_rowtemp2.attribute("ref"), 0);
-
- fRrfehemhtlistTF(true);
- fRfemdamkComponentsTF(true);
-
- // 의뢰일별 목록, 수리일자별목록 추가,삭제,수정 모드 설정
- //btn_save.disabled = true;
- //btn_del.disabled = true;
- //btn_send.disabled = true;
- //btn_initrfemdamklist.disabled = true;
-
- // 부품목록 == 행 추가, 삭제 모드 설정
- btn_insRfehdabp.disabled = true;
- btn_delRfehdabp.disabled = true;
-
- model.setFocus("ipt_fixasetcd");
- ipt_insStatus.value = 0;
-
- if(!checkAuth("X"))
- {
- ipt_fixasetcd.disabled = true;
- btn_fixasetcd.disabled = true;
- ipt_goodflaghngnm.disabled = true;
- }
-
- btn_print2.visible = true;
-
- //fAcptAuth();
- fResetState();
- model.refresh();
- }
-
- function fSettingGoodList(pnode, nodename){
-
- var codynode = instance1.selectNodes(pnode + "/*");
- var addRow = grd_rfehdabplist.rows - grd_rfehdabplist.fixedRows;
- if(model.getValue(grd_rfehdabplist.nodeset + "/rfehdabplist[" + addRow + "]/acsrscd").length > 0)addRow = addRow + 1;
- for (var j = 1; j <= codynode.length ; j++) {
-
- for (var i = 1; i <= addRow; i++){
- if (model.getValue(grd_rfehdabplist.nodeset + "[" + i + "]/acsrscd") == model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd")){
- messageBox(i+"번째에 동일물품이 존재합니다. ","I");
- return;
- }
- }
- if(addRow > grd_rfehdabplist.rows - grd_rfehdabplist.fixedRows)
- {
- btn_insRfehdabp.dispatch("DOMActivate");
- addRow = grd_rfehdabplist.rows - grd_rfehdabplist.fixedRows;
- }
- model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/goodflag" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodflag"));
- model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/acsrscd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
- model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/acsrsnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
- model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/acsrsunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/deliveunit"));
- model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/acsrsqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/userqty"));
- model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/acsrsspec" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodspec"));
- model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/acsrsamt" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost"));
-
- model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/paytype" , "2");
- model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/kind" , "4");
-
- addRow = addRow + 1;
- }
- grd_rfehdabplist.refresh();
- }
-
- function fRfemdamkComponentsTF( fBool, loadType )
- {
- if(grd_rfemdamklist.rows > grd_rfemdamklist.fixedRows)
- {
- if( loadType == 'Y')
- {
- ipt_rpirdd.disabled= true;
- }else{
- ipt_rpirdd.disabled= fBool;
- }
-
- ipt_rpirtm.disabled = fBool;
-
- ipt_mainrpirpsn.disabled = fBool;
- btn_mainrpirpsn.disabled = fBool;
- ipt_mainrpirpsnnm.disabled= fBool;
-
- ipt_supprpirpsn.disabled = fBool;
- btn_supprpirpsn.disabled= fBool;
- ipt_supprpirpsnnm.disabled= fBool;
-
- txt_rpirspec.disabled = fBool;
- }else{
- fBool = true;
- if( loadType == 'Y')
- {
- ipt_rpirdd.disabled= true;
- }else{
- ipt_rpirdd.disabled= fBool;
- }
-
- ipt_rpirtm.disabled = fBool;
-
- ipt_mainrpirpsn.disabled = fBool;
- btn_mainrpirpsn.disabled = fBool;
- ipt_mainrpirpsnnm.disabled= fBool;
-
- ipt_supprpirpsn.disabled = fBool;
- btn_supprpirpsn.disabled= fBool;
- ipt_supprpirpsnnm.disabled= fBool;
-
- txt_rpirspec.disabled = fBool;
- }
- }
-
- function fRrfehemhtlistTF(fBool, fCheck)
- {
- ipt_estimateamt.disabled = true;
- ipt_nonworkdayno.disabled = fBool;
- ipt_custcd.disabled = fBool;
- btn_custcd.disabled = fBool;
- ipt_chrgtel.disabled = fBool;
- }
- function fCheckTime(controlName)
- {
- var sTime = controlName.value;
-
- if(sTime.length != 4)
- {
- messageBox("네자리를 ","C001");
- controlName.value = "";
- return;
- }
-
- var sFrontTime = sTime.substr(0, 2);
- var sBackTime = sTime.substr(2, 2);
-
- if(parseFloat(sFrontTime) > 24)
- {
- messageBox("24시를 ","E001");
- controlName.value = "";
- return;
- }
-
- if(parseFloat(sBackTime) > 59)
- {
- messageBox("59분을 ","E001");
- controlName.value = "";
- return;
- }
- }
-
- function fSetEstamt() /* 부품금액을 총합하여 견적금액에 표시 */
- {
- // var rfehdabptotal = 0;
- // var estimateamt = 0;
- // var inestimateamt = 0;
- // var reductionamt =0;
- // var outestimateamt = 0 ;
- // var paytype;
- // var kind;
- //
- // model.setValue("/root/main/component/rfehemhtlist/rfehdabptotal","0");
- // model.setValue("/root/main/component/rfehemhtlist/estimateamt","0");
- // model.setValue("/root/main/component/rfehemhtlist/outestimateamt","0");
- //
- // for (var i = grd_rfehdabplist.fixedRows; i < grd_rfehdabplist.rows; i++)
- // {
- // // 토탈견적금액은 기존처럼 하지만 외주견적/내부견적/전도금은 kind를 가지고 결정한다
- // kind = model.getValue("/root/main/grid/rfehdabplist["+ i +"]/kind");
- // if (kind == "2"){ //순수전도금
- // //순수 전도금 구하기
- // rfehdabptotal += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //전도금은 자체에 해당하는 금액을 모두 더한것
- // model.setValue("/root/main/component/rfehemhtlist/rfehdabptotal",rfehdabptotal); //그 금액을 저장할 수리상세 등록쪽에 뿌린다
- //
- // }else if(kind == "4"){ //견적금액=============> *****가견적***** :=> 외죽견적 //외주견적-> 외주견적은 이름을 가견적으로 바꾸고 이것이 화면의 견적금액이 된다. =>최종 다시 외주금액으로 바꿈
- // //estimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //견적금액은 견적에 해당하는 금액을 모두 더한것
- // //model.setValue("/root/main/component/rfehemhtlist/estimateamt",estimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다
- // outestimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //
- // model.setValue("/root/main/component/rfehemhtlist/outestimateamt",outestimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다
- //
- // }else if(kind == "7"){ //*****외주견적=> 가견적***** -> 새로추가할 내부견적은 외주견적으로 바꾼다.=============> 외주견적 =>최종 가견적으로 바꿈
- // //외주견적금액 구하기
- // //outestimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //
- // //model.setValue("/root/main/component/rfehemhtlist/outestimateamt",outestimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다
- // estimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //견적금액은 견적에 해당하는 금액을 모두 더한것
- // model.setValue("/root/main/component/rfehemhtlist/estimateamt",estimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다
- //
- // }else if(kind == "7"){ //내부견적 -> 새로추가할 내부견적은 외주견적으로 바꾼다.=============> 외주견적
- //내부견적금액 구하기
- // inestimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //
- //
- // }
- // }
- // // 절감액 = 가견적-( 외주견적 + 전도금 )
- // //가견적이 외주견적으로 옮기고 외주견적이 가견적의 컬럼으로 바뀌었음 가견적과 외주견적의 컬럼의 성격을 교환함
- // //reductionamt = estimateamt - ( outestimateamt + rfehdabptotal )
- // //reductionamt = outestimateamt - ( estimateamt + rfehdabptotal )
- // //if(reductionamt < 0 ) reductionamt =0 ;
- //
- // //model.setValue("/root/main/component/rfehemhtlist/reductionamt", reductionamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다.
- // // 납품금액 부품가로 계산하여 입력 중지. 직접입력
- // // model.setValue("/root/main/component/rfehemhtlist/rpiramt" , outestimateamt - reductionamt);
- //
- // ipt_rfehdabptotal.refresh();
- // ipt_estimateamt.refresh();
- // ipt_outestimateamt.refresh();
- // ipt_rpiramt.refresh();
- }
-
- //2009-10-13추가
- function fSetEstamt2() /* 부품금액을 총합하여 견적금액에 표시 ---> 행추가시 fSetEstamt와 같은기능 */
- {
- // var rfehdabptotal = 0;
- // var estimateamt = 0;
- // var inestimateamt = 0;
- // var reductionamt =0;
- // var outestimateamt = 0 ;
- // var paytype;
- // var kind;
- //
- // model.setValue("/root/main/component/rfehemhtlist/rfehdabptotal",rfehdabptotal);
- // model.setValue("/root/main/component/rfehemhtlist/estimateamt",estimateamt);
- // for (var i = grd_rfehdabplist.fixedRows; i < grd_rfehdabplist.rows; i++)
- // {
- // // 토탈견적금액은 기존처럼 하지만 외주견적/내부견적/전도금은 kind를 가지고 결정한다
- // kind = model.getValue("/root/main/grid/rfehdabplist["+ i +"]/kind");
- // if (kind == "2"){ //순수전도금
- // //순수 전도금 구하기
- // rfehdabptotal += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //전도금은 자체에 해당하는 금액을 모두 더한것
- // model.setValue("/root/main/component/rfehemhtlist/rfehdabptotal",rfehdabptotal); //그 금액을 저장할 수리상세 등록쪽에 뿌린다.
- //
- // }else if(kind == "4"){ //견적금액=============> *****가견적***** : //외주견적-> 외주견적은 이름을 가견적으로 바꾸고 이것이 화면의 견적금액이 된다.
- // //estimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //견적금액은 견적에 해당하는 금액을 모두 더한것
- // //model.setValue("/root/main/component/rfehemhtlist/estimateamt",estimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다.
- // outestimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //
- // model.setValue("/root/main/component/rfehemhtlist/outestimateamt",outestimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다
- //
- // }else if(kind == "7"){ //*****외주견적***** -> 새로추가할 내부견적은 외주견적으로 바꾼다.=============> 외주견적
- // //외주견적금액 구하기
- // //outestimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //
- // //model.setValue("/root/main/component/rfehemhtlist/outestimateamt",outestimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다
- // estimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //견적금액은 견적에 해당하는 금액을 모두 더한것
- // model.setValue("/root/main/component/rfehemhtlist/estimateamt",estimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다.
- // }
- // }
- // // 절감액 = 가견적-( 외부견적+전도금)
- // //reductionamt = estimateamt - ( inestimateamt + rfehdabptotal )
- // //reductionamt = estimateamt - ( outestimateamt + rfehdabptotal )
- // reductionamt = outestimateamt - ( estimateamt + rfehdabptotal )
- // if(reductionamt < 0 ) reductionamt =0 ;
- //
- // model.setValue("/root/main/component/rfehemhtlist/reductionamt",reductionamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다.
- //
- // ipt_rfehdabptotal.refresh();
- // ipt_estimateamt.refresh();
- // ipt_outestimateamt.refresh();
- // ipt_rpiramt.refresh();
- }
- // 수리상태, 서류상태 재설정
- function fResetState()
- {
- var workstat = "01";
- var docustat = "01";
- var chrgpsnid = ipt_chrgpsnid.value;
-
- if(chrgpsnid.length != 0){ // 검토자가 있을 경우
- workstat = "02";
- }
- if(cmb_rpirflag2.value.length != 0){ // 수리형태(조치사항) 이 있을 경우
- workstat = "03";
- }
- if(chk_rpirendyn.value == "Y"){ // 수리완료가 체크되어 있을 경우
- workstat = "04";
- }
-
- switch(cmb_rpirflag2.value){
- case "1": // 무비용
- case "2": // 전도금
- case "5": // 폐기
- case "7": // 검토의견
- if(fSanctState()){
- docustat = "03";
- if(workstat == "04") workstat = "05";
- }
- break;
- case "6": // 용역
- if(fSanctState()){
- docustat = "03";
- if(workstat == "04")workstat = "05";
- }
- break;
- case "3": // 부품
- case "4": // 외주
- if(fSanctState()){
- if(workstat == "04" && ipt_chkpsn.value.length != 0){
- fGetDeliveAmt();
- workstat = "05";
- docustat = "03";
- }else{
- docustat = "02";
- }
- }
- break;
- default:
- }
-
- // var instcd = getUserInfo("dutplceinstcd");
- // if(instcd == "033"){
- // if(ipt_chrgpsnid.value.length != 0 && ipt_mngersanctid.value.length != 0){
- // workstat = "05";
- // docustat = "03";
- // }else if(ipt_chrgpsnid.value.length != 0 && ipt_mngersanctid.value.length == 0){
- // workstat = "02";
- // docustat = "01";
- // }else{
- // workstat = "01";
- // docustat = "01";
- // }
- // }
- cmb_workstat.value = workstat;
- cmb_docustat.value = docustat;
- cmb_workstat.refresh();
- cmb_docustat.refresh();
- fResetDisabled();
- }
-
- // 활성 비활성 처리
- function fResetDisabled()
- {
- var workstat = cmb_workstat.value;
- var docustat = cmb_docustat.value;
-
- if(ipt_chrgpsnid.value.length != 0){
- chk_rpirendyn.disabled = false;
- ipt_rpirenddd.disabled = false;
- }else{
- chk_rpirendyn.value = "N";
- chk_rpirendyn.disabled = true;
- ipt_rpirenddd.disabled = true;
- // model.setValue("/root/main/component/rfehemhtlist/rpirenddd","");
- }
-
- if(workstat == "01" || workstat == "02" || workstat == "03"){
- fDisabledControl(false,"chr");
- cmb_rpirflag1.disabled = false;
- cmb_rpirflag2.disabled = false;
- grd_rfehdabplist.colDisabled(grd_rfehdabplist.colRef("acsrsqty")) = false;
- }else{
- fDisabledControl(true,"chr");
- cmb_rpirflag1.disabled = true;
- cmb_rpirflag2.disabled = true;
- grd_rfehdabplist.colDisabled(grd_rfehdabplist.colRef("acsrsqty")) = true;
- }
- if(cmb_rpirflag2.value.length != 0){ // 수리형태(조치사항) 이 있을 경우
- fDisabledControl(false,"sanct");
- }else{
- fDisabledControl(true,"sanct");
- }
-
- switch(cmb_rpirflag2.value){
- case "1":
- case "2":
- case "5":
- case "6":
- fDisabledControl(true,"chk");
- break;
- case "3":
- case "4":
- if(fSanctState()){
- if(workstat == "04" || workstat == "05"){
- fDisabledControl(false,"chk");
- }else{
- fDisabledControl(true,"chk");
- }
- }
- break;
- default:
- fDisabledControl(true,"chk");
- }
- }
-
- // 결재 상태
- function fSanctState()
- {
- if((cmb_rpirflag2.value == "1" || cmb_rpirflag2.value == "6") && ipt_deprtmangrsanctid.value.length != 0) return true; // 무비용,용역일 경우 실장만 결재
- else if(ipt_deprtmangrsanctid.value.length != 0 && ipt_mngersanctid.value.length != 0) return true; // 다른상태일경우 실장&과장 결재
- return false;
- }
- function fDisabledControl(state,control)
- {
- switch(control){
- case "sanct":
- if (getUserInfo("userid") == "93518" || getUserInfo("userid") == "08111"|| getUserInfo("userid") == "MIS" || getUserInfo("userid") == "93717"|| getUserInfo("userid") == "KNUH99207" ){ // 과장
- btn_mngersanctid.disabled = state;
- ipt_mngersanctid.disabled = state;
- // ipt_mngersanctnm.disabled = state;
-
- btn_deprtmangrsanctid.disabled = true;
- ipt_deprtmangrsanctid.disabled = true;
- // ipt_deprtmangrsanctnm.disabled = true;
-
- }else if (getUserInfo("userid") == "93361" || getUserInfo("userid") == "93507"|| getUserInfo("userid") == "MIS" ){ // 실장
- btn_mngersanctid.disabled = true;
- ipt_mngersanctid.disabled = true;
- // ipt_mngersanctnm.disabled = true;
-
- btn_deprtmangrsanctid.disabled = state;
- ipt_deprtmangrsanctid.disabled = state;
- // ipt_deprtmangrsanctnm.disabled = state;
-
- }else{ // 그외...
- btn_mngersanctid.disabled = true;
- ipt_mngersanctid.disabled = true;
- // ipt_mngersanctnm.disabled = true;
-
- btn_deprtmangrsanctid.disabled = true;
- ipt_deprtmangrsanctid.disabled = true;
- // ipt_deprtmangrsanctnm.disabled = true;
- }
- break;
- case "chr":
- ipt_chrgpsnid.disabled = state;
- btn_chrgpsnid.disabled = state;
- ipt_chrgtel.disabled = state;
-
- // 부품목록 행 추가 삭제 잠금
- btn_insRfehdabp.disabled = state;
- btn_delRfehdabp.disabled = state;
- // 컨트롤 잠금
- fRrfehemhtlistTF(state);
- fRfemdamkComponentsTF(state,"Y");
-
- // 추가 삭제 잠금
- btn_initrfemdamklist.disabled = state;
- btn_del.disabled = state;
-
- ipt_acptdd.disabled = state; //납품일자
- // ipt_rpiramt.disabled = state; //납품금액
- break;
- case "chk":
- default :
- ipt_chkpsn.disabled = state;
- btn_chkpsn.disabled = state;
- ipt_chkdd.disabled = state;
- }
- }
-
- function fGetDeliveAmt()
- {
- /* 납품금액 계약에서 가져오는 프로세스 */
- model.setValue("/root/send/search/instcd" , model.getValue(cmb_instcd.attribute("ref")));
- model.setValue("/root/send/search/fixtrseqmtflag" , model.getValue(ipt_fixtrseqmtflag.attribute("ref")));
- model.setValue("/root/send/search/reqdd" , model.getValue(ipt_reqdd.attribute("ref")));
- model.setValue("/root/send/search/reqno" , model.getValue(ipt_reqno.attribute("ref")));
-
- if (submit("TRRFE00606")){
- if(model.getValue("/root/main/defltinfo/deliveamt") != ""){
- model.setValue(ipt_rpiramt.attribute("ref") , model.getValue("/root/main/defltinfo/deliveamt"));
- }
- }
- }
- function fAcptAuth()
- {
- if ( getUserInfo("userid") == "93518" || getUserInfo("userid") == "08111"|| getUserInfo("userid") == "MIS"){ // 과장
-
- btn_mngersanctid.disabled = false;
- ipt_mngersanctid.disabled = false;
-
- btn_deprtmangrsanctid.disabled = true;
- ipt_deprtmangrsanctid.disabled = true;
-
- }else if (getUserInfo("userid") == "93361" || getUserInfo("userid") == "93507"|| getUserInfo("userid") == "MIS"){ // 실장
-
- btn_mngersanctid.disabled = true;
- ipt_mngersanctid.disabled = true;
-
- btn_deprtmangrsanctid.disabled = false;
- ipt_deprtmangrsanctid.disabled = false;
-
- }else{ // 그외...
-
- btn_mngersanctid.disabled = true;
- ipt_mngersanctid.disabled = true;
-
- btn_deprtmangrsanctid.disabled = true;
- ipt_deprtmangrsanctid.disabled = true;
- }
- }
-
- //전자결재 호출
- function fElctSanct()
- {
- if(fUpdateData() != "N") {
- alert("변경 된 내역이 있습니다.");
- return;
- }
- if(model.getValue("/root/main/component/rfehemhtlist/chrgpsnid") == "") {
- alert("미접수 상태입니다.");
- return;
- }
-
- var pInstcd = model.getValue("/root/send/sendlist/instcd");
- var pFixtrseqmtflag = model.getValue("/root/main/component/rfehemhtlist/fixtrseqmtflag");
- var pReqdd = model.getValue("/root/main/component/rfehemhtlist/reqdd");
- var pReqno = model.getValue("/root/main/component/rfehemhtlist/reqno");
-
- var pmaprefcol = "knuhdomain,formType,instId";
- var pmaprefvalue = "KnuhMisAssetsRepare,01," + pInstcd + "-" + pFixtrseqmtflag + "-" + pReqdd + "-" + pReqno;
-
- misfMakeElctSanct("assetsRepare", pmaprefcol, pmaprefvalue);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <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="group1" scroll="auto" style="left:0px; top:38; width:1195; height:744; ">
- <datagrid id="grd_rfehemhtlist" nodeset="/root/main/grid/rfehemhtlist" allowselection="false" caption="의뢰일자^의뢰일자^관리부서^의뢰자 연락처^담당자^납품일자^완료일자^상태^수리형태^접수구분^수리상태^고장유형^납품금액^결재상태^견적금액" colsep="^" colwidth="70, 30, 90, 84, 60, 70, 70, 60, 60, 65, 65, 70, 80, 93, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rows="2" rowsep="|" selectionmode="byrow" tooltip="true" navindex="4" style="left:0px; top:157px; width:935px; height:93px; ">
- <col disabled="true" ref="reqdd" format="yyyy-mm-dd" _key="true"/>
- <col disabled="true" ref="reqno" _key="true"/>
- <col disabled="true" ref="depthngnm"/>
- <col disabled="true" ref="reqtel"/>
- <col disabled="true" ref="chrgpsnnm" style="text-align:center; "/>
- <col disabled="true" ref="acptdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="rpirenddd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="lastrpirstat" visibility="hidden"/>
- <col disabled="true" ref="rpirflag2" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="acptflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="workstat" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="rpirflag1" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="rpiramt" format="#,###" style="text-align:right; "/>
- <col ref="sanctyn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/grdsanctyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="chrgpsnid" visibility="hidden"/>
- <col ref="genrdd" visibility="hidden"/>
- <col ref="estimateamt" visibility="hidden"/>
- <col ref="sanctid" visibility="hidden"/>
- <col ref="sanctnm" visibility="hidden"/>
- <col ref="reductionamt" visibility="hidden"/>
- <col ref="useyn" visibility="hidden"/>
- <col ref="nonworkdayno" visibility="hidden"/>
- <col ref="custcd" visibility="hidden"/>
- <col ref="custnm" visibility="hidden"/>
- <col ref="hdrncspec" visibility="hidden"/>
- <col ref="chrgpsncmt" visibility="hidden"/>
- <col ref="lastrpirrslt" visibility="hidden"/>
- <col ref="instcd" visibility="hidden" _key="true"/>
- <col ref="fixtrseqmtflag" visibility="hidden" _key="true"/>
- <col ref="reqpsnid" visibility="hidden"/>
- <col ref="reqpsnnm" visibility="hidden"/>
- <col ref="genrtm" visibility="hidden"/>
- <col ref="acpttm" visibility="hidden"/>
- <col ref="acptpsnid" visibility="hidden"/>
- <col ref="acptpsnnm" visibility="hidden"/>
- <col ref="acptdeptcd" visibility="hidden"/>
- <col ref="acptdeptnm" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <col ref="fixasetnm" visibility="hidden"/>
- <col ref="itemnm" visibility="hidden"/>
- <col ref="acptpsncnfm" visibility="hidden"/>
- <col ref="deptacptdd" visibility="hidden"/>
- <col ref="deptacptpsnid" visibility="hidden"/>
- <col ref="deptacptpsnnm" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="sanctdd" visibility="hidden"/>
- <col ref="emaildeliveyn" visibility="hidden"/>
- <col ref="goodmodel" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <col ref="installplcenm" visibility="hidden"/>
- <col ref="sancttrsmyn" visibility="hidden"/>
- <col ref="chrgtel" visibility="hidden"/>
- <col ref="bugtyy" visibility="hidden"/>
- <col ref="bugtcd" visibility="hidden"/>
- <col ref="stdysubjno" visibility="hidden"/>
- <col ref="stdysubjnm" visibility="hidden"/>
- <col ref="deptaprvyn" visibility="hidden"/>
- <col ref="deptaprvpsnid" visibility="hidden"/>
- <col ref="deptaprvdd" visibility="hidden"/>
- <col ref="rfehdabptotal" visibility="hidden"/>
- <col ref="acptpsnid" visibility="hidden"/>
- <col ref="acptpsnnm" visibility="hidden"/>
- <col ref="bizscrnid" visibility="hidden"/>
- <col ref="mngersanctid" visibility="hidden"/>
- <col ref="mngersanctnm" visibility="hidden"/>
- <col ref="deprtmangrsanctid" visibility="hidden"/>
- <col ref="deprtmangrsanctnm" visibility="hidden"/>
- <col ref="docustat" visibility="hidden"/>
- <col ref="chkpsn" visibility="hidden"/>
- <col ref="chkpsnnm" visibility="hidden"/>
- <col ref="chkdd" visibility="hidden"/>
- <col ref="deliveamt" visibility="hidden"/>
- <col ref="rpirendyn" visibility="hidden"/>
- <col ref="usedd" visibility="hidden"/>
- <col ref="fileseqno" visibility="hidden"/>
- <col ref="filenm" visibility="hidden"/>
- <col ref="filepath" visibility="hidden"/>
- <col disabled="true" ref="estiamt" format="#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- // 예외처리
- if( getGridUpdateData(grd_rfemdamklist) != "" )
- {
- if( messageBox("수리일자별 목록에 수정된 내용이 있습니다.\n조회작업을", "Q003") != 6)
- {
- grd_rfehemhtlist.row = model.getValue(ipt_rowtemp2.attribute("ref"));
- return;
- }
- }
- if( getGridUpdateData(grd_rfehdabplist) != "" )
- {
- if( messageBox("부품목록에 업데이트 된 내역이 있습니다.\n조회 작업을", "Q003") != 6 )
- {
- grd_rfemdamklist.row = model.getValue( ipt_rowtemp.attribute("ref") );
- return;
- }
- }
- btn_save.disabled = false;
-
- // 결재전송유무버튼
- if(grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("workstat")) == "04" ) // 수리완료일경우
- {
- btn_send.disabled = false;
- }else{
- btn_send.disabled = true;
- }
-
- model.setValue(ipt_rowtemp2.attribute("ref"), grd_rfehemhtlist.row);
-
- // 일별 수리 내역 조회값 설정
- model.copyNode("/root/send/grid/rfehemhtlist", "/root/main/grid/rfehemhtlist[" + grd_rfehemhtlist.row + "]");
-
- // 일별 수리 내역 조회
- submit("TRRFE00602");
- // 자산수리이력 각각 컴포넌트에 설정
- model.copyNode("/root/main/component/rfehemhtlist", "/root/main/grid/rfehemhtlist[" + grd_rfehemhtlist.row + "]");
- model.makeNode("/root/main/component/rfehemhtlist/outestimateamt"); //outestimateamt를 만들어준다. 0528
-
- // 수리일자별 이벤트 발생
- if(grd_rfemdamklist.rows > grd_rfemdamklist.fixedRows)
- {
- grd_rfemdamklist.row = 1;
-
- //grid 입력 제한
- if ( getUserInfo("userid") == "93518" || getUserInfo("userid") == "08111"|| getUserInfo("userid") == "MIS"|| getUserInfo("userid") == "93361"|| getUserInfo("userid") == "93507"|| getUserInfo("userid") == "93717"){ // 과장
- misfSetReadOnlyCol(grd_rfemdamklist, "mainrpirpsnnm,supprpirpsnnm,mainrpirpsn,supprpirpsn", true);
- }else{
- misfSetReadOnlyCol(grd_rfemdamklist, "rpirdd,mainrpirpsnnm,supprpirpsnnm,mainrpirpsn,supprpirpsn", true);
- }
- }else
- {
- misfGridInit(grd_rfehdabplist);
- }
-
- grd_rfemdamklist.dispatch("onrowchanged");
-
- grd_rfehemhtlist.dispatch("onmouseup");
-
- // 결제전송이면.....
- if( grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("sancttrsmyn")) == "Y")
- {
- // 결재전송유무버튼
- btn_send.disabled = true;
- btn_save.disabled = true;
- }
- for (var i = grd_rfehdabplist.fixedRows; i <= grd_rfehdabplist.rows ; i++) {
- grd_rfehdabplist.isReadOnly(i , grd_rfehdabplist.colRef("costflag")) = true;
- }
- fResetDisabled();
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_rfemdamklist" nodeset="/root/main/grid/rfemdamklist" allowselection="false" caption="일자^주수리자^보조수리자^수리시간^전수리일자" colsep="^" colwidth="75, 80, 80, 54, 100, 100, 50, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rows="2" rowsep="|" selectionmode="byrow" navindex="6" style="left:940px; top:157px; width:255px; height:93px; ">
- <col ref="rpirdd" format="yyyy-mm-dd" _key="true" style="text-align:center; "/>
- <col ref="mainrpirpsnnm" style="text-align:center; "/>
- <col ref="supprpirpsnnm" style="left:175px; top:23px; width:75px; height:23px; text-align:center; "/>
- <col ref="rpirtm" visibility="hidden" format="hh:nn" _key="true" style="text-align:right; "/>
- <col ref="brpirdd"/>
- <col ref="mainrpirpsn" visibility="hidden"/>
- <col ref="supprpirpsn" visibility="hidden"/>
- <col ref="rpirspec" visibility="hidden"/>
- <col ref="instcd" visibility="hidden" _key="true"/>
- <col ref="fixtrseqmtflag" visibility="hidden" _key="true"/>
- <col ref="reqdd" visibility="hidden" _key="true"/>
- <col ref="reqno" visibility="hidden" _key="true"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- // 예외처리
- if( getGridUpdateData(grd_rfehdabplist) != "" )
- {
- if( messageBox("부품목록에 업데이트 된 내역이 있습니다.\n조회 작업을", "Q003") != 6 )
- {
- grd_rfemdamklist.row = model.getValue( ipt_rowtemp.attribute("ref") );
- model.refresh();
- return;
- }
- }
-
- // 임시 현재 row 저장
- model.setValue(ipt_rowtemp.attribute("ref"), grd_rfemdamklist.row);
-
- // 일별수리부품내역을 조회 하기 위한 필수값 설정.
- model.copyNode("/root/send/grid/rfemdamklist", "/root/main/grid/rfemdamklist[" + grd_rfemdamklist.row + "]");
-
- if(grd_rfemdamklist.row > 0)
- {
- // 일별수리부품내역 조회.
- submit("TRRFE00603");
- }
-
- // 컴포넌트 노드 설정.
- model.copyNode("/root/main/component/rfemdamklist" , "/root/main/grid/rfemdamklist[" + grd_rfemdamklist.row + "]");
-
- // 모든 datagrid를 복사함.
- model.copyNode("/root/main/tempgrid", "/root/main/grid");
-
- ipt_insStatus.value = 2;
- //alert("ipt_insStatus.value = 2");
-
- grd_rfemdamklist.dispatch("onmouseup");
- if(grd_rfemdamklist.rowStatus(grd_rfemdamklist.row) != 1)
- {
- if ( getUserInfo("userid") == "93518" || getUserInfo("userid") == "08111"|| getUserInfo("userid") == "MIS"|| getUserInfo("userid") == "93361"|| getUserInfo("userid") == "93507"|| getUserInfo("userid") == "93717"){ // 과장
- ipt_rpirdd.disabled = false;
- }else{
- ipt_rpirdd.disabled = true;
- }
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_rfehdabplist" nodeset="/root/main/grid/rfehdabplist" scroll="auto" caption="출고여부^순번^수리일자^지급형태^유형^비용구분^부품코드^부품명^규격^부품수량^단위^부품단가^금액^caption1^전수리일자" colsep="^" colwidth="56, 43, 87, 36, 37, 85, 136, 268, 166, 70, 60, 101, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" navindex="32" style="left:0px; top:607px; width:1195px; height:133px; ">
- <col checkvalue="Y,N" ref="deliveyn" type="checkbox"/>
- <col class="input_essential" disabled="true" ref="rpirseq" format="#,###" maxlength="3" _key="true" style="text-align:right; "/>
- <col class="input_essential" ref="rpirdd" format="yyyy-mm-dd" _key="true"/>
- <col ref="paytype" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="kind" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="false" ref="costflag" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="acsrscd" type="inputbutton"/>
- <col ref="acsrsnm" type="output" style="left:500px; top:23px; width:300px; height:23px; "/>
- <col ref="acsrsspec" type="output"/>
- <col ref="acsrsqty" type="input" format="#,###" style="text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty")) > 0)
- {
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsmoney")) = grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty")) * grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsamt"));
-
- grd_rfehdabplist.refresh();
- fSetEstamt();
- }else
- {
- //이현민 이현
- messageBox("부품수량은 1 이하로 입력 할 수 없습니다", "I999");
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty")) = "1"
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsmoney")) =
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty")) * grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row,
- grd_rfehdabplist.colRef("acsrsamt"));
- grd_rfehdabplist.refresh();
- fSetEstamt();
-
- return;
- }
- ]]>
- </script>
- </col>
- <col disabled="false" ref="acsrsunit" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="acsrsamt" type="output" format="#,###" style="text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row , grd_rfehdabplist.colRef("acsrsmoney")) =
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row , grd_rfehdabplist.colRef("acsrsqty")) * grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsamt"));
-
- fSetEstamt();
- grd_rfehdabplist.refresh();
- ]]>
- </script>
- </col>
- <col ref="acsrsmoney" format="#,###" style="text-align:right; "/>
- <col ref="instcd" visibility="hidden" _key="true"/>
- <col ref="fixtrseqmtflag" visibility="hidden" _key="true"/>
- <col ref="reqdd" visibility="hidden" _key="true"/>
- <col ref="reqno" visibility="hidden" _key="true"/>
- <col ref="delivedd" visibility="hidden"/>
- <col ref="deliveno" visibility="hidden"/>
- <col ref="deliveseqno" visibility="hidden"/>
- <col ref="acsrscd" type="inputbutton" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="brpirdd"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_rfehdabplist.col == grd_rfehdabplist.colRef("acsrscd") && grd_rfehdabplist.rowStatus(grd_rfehdabplist.row) == "1" ) {//구성물품코드를 눌렀을 경우
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
- // 부품코드 히스토리 관리
- //setParameter("paramrpirdd" , grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("rpirdd")));
- rszfOpenPopUpListByWndName(grd_rfehdabplist,"","acsrscd,acsrsnm","SPRSD00190","instcd,goodflag","cmb_instcd,BC");
-
- var cur_row = grd_rfehdabplist.row;
- var status = grd_rfehdabplist.valueMatrix(cur_row, grd_rfehdabplist.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "rfehdabplist");
- fSettingGoodList("/root/copynode", "rfehdabplist");
- for (var i = grd_rfehdabplist.fixedRows; i < grd_rfehdabplist.rows; i++){
- grd_rfehdabplist.valueMatrix(i, grd_rfehdabplist.colRef("acsrsmoney")) =
- grd_rfehdabplist.valueMatrix(i, grd_rfehdabplist.colRef("acsrsqty")) * grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsamt"));
-
- fSetEstamt();
- }
- grd_rfehdabplist.refresh();
- // fSettingacsrsList("/root/copynode", "acsrswinlist" , "userqty");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //----------------------------------------------------------------------------------------------------------------------
- // 부품목록 저장시 지급형태에 따른 유형선택시 요청사항 적용
- // 1) 지급형태가 [자체]일 경우는 유형은 재고/전도금/무상에서만 선택가능하고 default는 전도금으로 한다.
- // 2) 지급형태가 [견적]일 경우는 유형은 외주견적/보수계약에서만 선택가능하고 default는 외주견적으로 한다.
- //----------------------------------------------------------------------------------------------------------------------
- if(grd_rfehdabplist.col == grd_rfehdabplist.colRef("paytype"))
- {
- if(grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("paytype")) =="1" ) //자체
- {
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) ="2";
- }else if(grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("paytype")) =="2" ) //견적
- {
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) ="4";
- }else
- {
- }
- }
- if(grd_rfehdabplist.col == grd_rfehdabplist.colRef("kind"))
- {
- if(grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) == "1" ||
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) == "2" ||
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) == "6" )
- {
- if(grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("paytype")) !== "1" )
- {
- messageBox("지급형태가 [견적]일 경우 해당되는 유형은 [가견적][보수계약][외주견적] 중에서", "I006");
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) ="4";
- }
- }
- if(grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) == "4" ||
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) == "5" ||
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) == "7" )
- {
- if(grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("paytype")) !== "2" )
- {
- messageBox("지급형태가 [자체]일 경우 해당되는 유형은 [재고][전도금][무상] 중에서", "I006");
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) ="2";
- }
- }
- }
- //----------------------------------------------------------------------------------------------------------------------
-
- if(grd_rfehdabplist.col == grd_rfehdabplist.colRef("acsrscd"))
- {
-
- if( grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrscd")) == "" )
- {
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrscd")) = "";
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsnm")) = "";
- return;
- }
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- rszfValidationCheck("TRRSD00191", "goodlist" ,
- "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm",
- "goodcd," + cmb_instcd.value + ",Y," + grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrscd")) + ",,," ,
- "","acsrscd,acsrsnm",grd_rfehdabplist,"SPRSD00190","instcd,goodflag","cmb_instcd,BC","Y");
-
- if(model.getValue("/root/init/main/goodlist/goodcd") != "")
- {
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrscd")) = model.getValue("/root/init/main/goodlist/goodcd");
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsnm")) = model.getValue("/root/init/main/goodlist/goodnm");
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsspec")) = model.getValue("/root/init/main/goodlist/goodspec");
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty")) = model.getValue("/root/init/main/goodlist/minexch");
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsunit")) = model.getValue("/root/init/main/goodlist/deliveunit");
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsamt")) = model.getValue("/root/init/main/goodlist/goodunitcost");
- }else{
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrscd")) = "";
- }
-
-
- var cur_row = grd_rfehdabplist.row;
- var status = grd_rfehdabplist.valueMatrix(cur_row, grd_rfehdabplist.colRef("m"));
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "rfehdabplist");
-
- fSettingGoodList("/root/copynode", "rfehdabplist");
-
- }
-
- // else if(grd_rfehdabplist.col == grd_rfehdabplist.colRef("acsrsnm")){
- //
- // if( grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsnm")) == "" )
- // {
- // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrscd")) = "";
- // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsnm")) = "";
- // return;
- // }
- //
- // model.removenode("/root/copynode");
- // model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- // model.makeNode("/root/copynode");
- //
- // rszfValidationCheck("TRRSD00191", "goodlist" ,
- // "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm",
- // "goodnm," + cmb_instcd.value + ",Y,," + grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsnm")) + ",," ,
- // "","acsrscd,acsrsnm",grd_rfehdabplist,"SPRSD00190","instcd,goodflag","cmb_instcd,BC","Y");
- //
- // if(model.getValue("/root/init/main/goodlist/goodcd") != ""){
- // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrscd")) = model.getValue("/root/init/main/goodlist/goodcd");
- // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsnm")) = model.getValue("/root/init/main/goodlist/goodnm");
- // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsspec")) = model.getValue("/root/init/main/goodlist/goodspec");
- // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty")) = model.getValue("/root/init/main/goodlist/minexch");
- // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsunit")) = model.getValue("/root/init/main/goodlist/purcunit");
- // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsamt")) = model.getValue("/root/init/main/goodlist/goodunitcost");
- // }
- //
- // var cur_row = grd_rfehdabplist.row;
- // var status = grd_rfehdabplist.valueMatrix(cur_row, grd_rfehdabplist.colRef("m"));
- // var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- // setCSVToNode("/root/copynode", CSV, "rfehdabplist");
- // fSettingGoodList("/root/copynode", "rfehdabplist");
- // }
-
- // if(grd_rfehdabplist.col == grd_rfehdabplist.colRef("acsrsqty"))
- // {
- // // 기본 단가 계산
- // var aver = grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsamt"))/grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty"));
- // // 갯수에 맞는 금액 계산 입력
- // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsamt")) = grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty")) * aver;
- // }
- fSetEstamt();
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="btn_insRfehdabp" class="btn2_letter3" navindex="33" style="left:995px; top:581px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_rfemdamklist.row >= 1 || ipt_insStatus.value == 1)
- {
- //수리일자 유무 체크
- if(ipt_rpirdd.value == ""){
- messageBox("수리일자는", "I003");
- return;
- }
-
- //행추가
- misfGridIUD(grd_rfehdabplist, "A");
-
- // rpirseq 계산
- if(grd_rfehdabplist.rows > 2){
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("rpirseq")) = parseInt(grd_rfehdabplist.valueMatrix( grd_rfehdabplist.row-1, grd_rfehdabplist.colRef("rpirseq"))) + 1;
- }else{
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("rpirseq")) = 1;
- }
-
- // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("rpirseq")) = temp;
-
- // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("instcd")) = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("instcd"));
- // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("fixtrseqmtflag")) = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("fixtrseqmtflag"));
- // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("reqdd")) = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("reqdd"));
- // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("reqno")) = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("reqno"));
- // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("rpirdd")) = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirdd"));
-
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("instcd")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("instcd"));
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("fixtrseqmtflag")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("fixtrseqmtflag"));
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("reqdd")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd"));
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("reqno")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno"));
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("rpirdd")) = ipt_rpirdd.value;
-
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("paytype")) = '2';
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) = '4';
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("costflag")) = '1';
-
- ipt_rpirdd.disabled = true;
-
- grd_rfehdabplist.refresh();
- }else{
- messageBox("일별수리내역을", "C002");
- return;
- }
-
- grd_rfehdabplist.isReadOnly(grd_rfehdabplist.row , grd_rfehdabplist.colRef("costflag")) = true;
- ]]>
- </script>
- </button>
- <button id="btn_delRfehdabp" class="btn2_letter3" navindex="34" style="left:1050px; top:581px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //행추가
- misfGridIUD(grd_rfehdabplist, "D");
-
- fSetEstamt2();
- grd_rfehdabplist.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_" class="btn2_letter6" navindex="35" style="left:1105px; top:581px; width:86px; height:19px; ">
- <caption>부품코드등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMRFC00600","","","","","","","","", "X", "");
- ]]>
- </script>
- </button>
- <caption id="caption37" class="tit_2" style="left:5px; top:137px; width:131px; height:13px; ">의뢰일별 목록</caption>
- <caption id="caption38" class="tit_2" style="left:945px; top:137px; width:131px; height:13px; ">수리일자별 목록</caption>
- <group id="group2" style="left:0px; top:10px; width:1195px; height:118px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:118px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_installplcenm" ref="/root/send/sendlist/installplcenm" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:419px; top:35px; width:150px; height:19px; text-align:left; "/>
- <caption id="cap_possndd" class="search_name" style="left:15px; top:61px; width:90px; height:17px; ">취득일자 :</caption>
- <input id="ipt_installplcecd" ref="/root/send/sendlist/installplcecd" class="output_fix" disabled="true" navindex="-1" visibility="hidden" style="left:995px; top:35px; width:36px; height:19px; text-align:center; "/>
- <caption id="cap_mngtno" class="search_name" style="left:690px; top:35px; width:84px; height:17px; ">S / N :</caption>
- <input id="ipt_fixasetcd" ref="/root/send/sendlist/fixasetcd" class="input_s_essential" navindex="2" style="left:419px; top:9px; width:125px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- isRequiredControls("cmb_instcd,ipt_fixasetcd");
-
- if(ipt_fixasetcd.value != "")
- {
- rszfValidationCheck("TRRSD00241", "rfcmfacdlist",
- "requirementcd,instcd,requirementnm", "fixasetcd," + cmb_instcd.value + "," + ipt_fixasetcd.value, "",
- "fixasetcd,goodflaghngnm,goodspec,mngtno,mngtdeptnm,prodcmpynm,goodmodel,installplcecd,installplcenm,possndd,possnamt,cntctel,suplplcenm"
- ,ipt_fixasetcd, "SPRSD00240", "instcd", cmb_instcd.value, 'Y');
-
- model.setValue("/root/send/sendlist/goodspec", model.getValue("/root/init/main/rfcmfacdlist/goodspec"));
- model.setValue("/root/send/sendlist/mngtno", model.getValue("/root/init/main/rfcmfacdlist/mngtno"));
- model.setValue("/root/send/sendlist/tempmngtdeptnm", model.getValue("/root/init/main/rfcmfacdlist/tempmngtdeptnm"));
- model.setValue("/root/send/sendlist/prodcmpynm", model.getValue("/root/init/main/rfcmfacdlist/prodcmpynm"));
- model.setValue("/root/send/sendlist/goodmodel", model.getValue("/root/init/main/rfcmfacdlist/goodmodel"));
- model.setValue("/root/send/sendlist/installplcecd", model.getValue("/root/init/main/rfcmfacdlist/installplcecd"));
- model.setValue("/root/send/sendlist/installplcenm", model.getValue("/root/init/main/rfcmfacdlist/installplcenm"));
- model.setValue("/root/send/sendlist/possndd", model.getValue("/root/init/main/rfcmfacdlist/possndd"));
- model.setValue("/root/send/sendlist/possnamt", model.getValue("/root/init/main/rfcmfacdlist/possnamt"));
-
- model.setValue("/root/send/sendlist/suplplcenm", model.getValue("/root/init/main/rfcmfacdlist/suplplcenm"));
- model.setValue("/root/send/sendlist/cntctel", model.getValue("/root/init/main/rfcmfacdlist/cntctel"));
-
- model.setValue("/root/send/sendlist/flwgrnttermfr", model.getValue("/root/init/main/rfcmfacdlist/flwgrnttermfr"));
- model.setValue("/root/send/sendlist/flwgrnttermto", model.getValue("/root/init/main/rfcmfacdlist/flwgrnttermto"));
-
- model.setValue(ipt_fixtrseqmtflag.attribute("ref"), model.getValue("/root/init/main/rfcmfacdlist/goodflag"));
- model.resetInstanceNode("/root/main");
- group2.refresh();
-
- btn_search.dispatch("DOMActivate");
- }else
- {
- messageBox("자산코드는", "I003");
- fInitialize();
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_instcd" ref="/root/send/sendlist/instcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:101px; top:9px; width:150px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_fixasetcd.value != ""){
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </select1>
- <caption id="cap_possnamt" class="search_name" style="left:333px; top:61px; width:150px; height:17px; ">취득금액 :</caption>
- <input id="ipt_possnamt" ref="/root/send/sendlist/possnamt" class="output_fix" disabled="false" navindex="-1" editable="false" format="#,###" style="left:419px; top:60px; width:150px; height:19px; text-align:right; "/>
- <input id="ipt_mngtno" ref="/root/send/sendlist/mngtno" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:775px; top:34px; width:150px; height:19px; text-align:left; "/>
- <caption id="cap_prodcmpynm" class="search_name" style="left:690px; top:60px; width:88px; height:17px; ">공 급 처 :</caption>
- <input id="ipt_goodspec" ref="/root/send/sendlist/goodspec" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:101px; top:35px; width:219px; height:19px; "/>
- <caption id="cap_goodspec" class="search_name" style="left:15px; top:35px; width:90px; height:17px; ">규 격 :</caption>
- <input id="ipt_goodflaghngnm" ref="/root/send/sendlist/goodflaghngnm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:568px; top:9px; width:239px; height:19px; "/>
- <input id="ipt_goodmodel" ref="/root/send/sendlist/goodmodel" class="output_fix" disabled="false" navindex="-1" visibility="hidden" editable="false" style="left:901px; top:9px; width:16px; height:19px; text-align:left; "/>
- <caption id="cap_goodmodel" class="search_name" visibility="hidden" style="left:815px; top:10px; width:92px; height:17px; ">모 델 명 :</caption>
- <input id="ipt_possndd" ref="/root/send/sendlist/possndd" class="output_fix" disabled="false" navindex="-1" editable="false" format="yyyy-mm-dd" style="left:101px; top:60px; width:150px; height:19px; text-align:left; "/>
- <caption id="cap_installplcecd" class="search_name" style="left:333px; top:36px; width:92px; height:17px; ">설치장소 :</caption>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">기관코드 :</caption>
- <input id="ipt_tempmngtdeptnm" ref="/root/send/sendlist/tempmngtdeptnm" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:101px; top:87px; width:150px; height:19px; "/>
- <input id="ipt_prodcmpynm" ref="/root/send/sendlist/prodcmpynm" class="output_fix" disabled="false" navindex="-1" visibility="hidden" editable="false" style="left:1009px; top:9px; width:15px; height:19px; text-align:left; "/>
- <caption id="cap_fixasetcd" class="search_name" style="left:333px; top:9px; width:86px; height:17px; ">자산코드 :</caption>
- <input id="ipt_fixtrseqmtflag" ref="/root/send/sendlist/fixtrseqmtflag" navindex="-1" visibility="hidden" style="left:970px; top:35px; width:20px; height:19px; "/>
- <caption id="cap_tempmngtdeptcd" class="search_name" style="left:15px; top:87px; width:90px; height:17px; ">관리부서 :</caption>
- <button id="btn_fixasetcd" class="icon_search" navindex="-1" style="left:549px; top:10px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var temp_fixasetcd = ipt_fixasetcd.value;
- rszfOpenPopUpListByWndName(ipt_fixasetcd,"", "fixasetcd,goodflaghngnm,goodspec,goodmodel,mngtno,tempmngtdeptnm,installplcecd,installplcenm,procmpynm,possndd,possnamt,suplplcenm,cntctel",
- "SPRSD00240",
- "instcd", cmb_instcd.value, "Y");
-
- if(ipt_fixasetcd.value != "")
- {
- if(ipt_fixasetcd.value != temp_fixasetcd)
- {
- btn_search.dispatch("DOMActivate");
- }
- }
- model.refresh();
- ]]>
- </script>
- <caption/>
- </button>
- <select1 id="cmb_reqflag" ref="/root/init/reqflag" navindex="-1" visibility="hidden" appearance="minimal" style="left:950px; top:35px; width:20px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_suplplcenm" ref="/root/send/sendlist/suplplcenm" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:775px; top:60px; width:150px; height:19px; text-align:left; "/>
- <input id="ipt_cntctel" ref="/root/send/sendlist/cntctel" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:930px; top:60px; width:155px; height:19px; text-align:left; "/>
- <caption id="caption3" class="search_name" visibility="hidden" style="left:925px; top:10px; width:89px; height:17px; ">제 조 사 :</caption>
- <input id="ipt_mngtdeptnm" ref="/root/send/sendlist/mngtdeptnm" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:419px; top:87px; width:150px; height:19px; "/>
- <caption id="cap_mngtdeptnm" class="search_name" style="left:333px; top:87px; width:90px; height:17px; ">사용부서 :</caption>
- <caption id="caption15" class="search_name" style="left:690px; top:87px; width:125px; height:17px; ">하자보증기간 :</caption>
- <input id="input1" ref="/root/send/sendlist/flwgrnttermfr" class="output_fix" disabled="false" navindex="-1" editable="false" format="yyyy-mm-dd" style="left:805px; top:87px; width:80px; height:19px; text-align:left; "/>
- <input id="input2" ref="/root/send/sendlist/flwgrnttermto" class="output_fix" disabled="false" navindex="-1" editable="false" format="yyyy-mm-dd" style="left:905px; top:87px; width:80px; height:19px; text-align:left; "/>
- <caption id="caption23" style="left:890px; top:85px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
- </group>
- <line id="line12" class="line_1" style="x1:1px; y1:154px; x2:934px; y2:153px; "/>
- <switch id="switch2" style="left:0px; top:250px; width:1195px; height:330px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" style="left:0px; top:0px; width:1193px; height:353px; ">
- <line id="line26" class="line_2" style="x1:0px; y1:301px; x2:1193px; y2:301px; "/>
- <textarea id="txt_rpirspec" ref="/root/main/component/rfemdamklist/rpirspec" class="input_s_essential" navindex="29" scroll="vertical" style="left:740px; top:257px; width:452px; height:67px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.selectedRow(0) , grd_rfemdamklist.colRef("rpirspec")) = txt_rpirspec.value;
- grd_rfemdamklist.addStatus(grd_rfemdamklist.selectedRow(0) , "update");
- ]]>
- </script>
- </textarea>
- <input id="ipt_genrdd" ref="/root/main/component/rfehemhtlist/genrdd" class="input_default" disabled="true" navindex="-1" format="yyyy-mm-dd" style="left:282px; top:26px; width:70px; height:19px; "/>
- <line id="line19" class="line_2" style="x1:5px; y1:71px; x2:1193px; y2:71px; "/>
- <line id="line18" class="line_2" style="x1:0px; y1:47px; x2:1193px; y2:47px; "/>
- <line id="line17" class="line_1" style="x1:0px; y1:20px; x2:1193px; y2:20px; "/>
- <line id="line27" class="line_3" style="x1:0px; y1:325px; x2:1193px; y2:325px; "/>
- <line id="line25" class="line_1" style="x1:0px; y1:250px; x2:1193px; y2:250px; "/>
- <line id="line22" class="line_3" style="x1:0px; y1:226px; x2:1193px; y2:226px; "/>
- <line id="line21" class="line_2" style="x1:0px; y1:119px; x2:1193px; y2:119px; "/>
- <line id="line20" class="line_2" style="x1:0px; y1:95px; x2:1193px; y2:95px; "/>
- <caption id="cap_reqdd" class="cell_1" style="left:0px; top:25px; width:100px; height:23px; vertical-align:middle; ">의뢰번호</caption>
- <textarea id="txt_hdrncspec" ref="/root/main/component/rfehemhtlist/hdrncspec" disabled="true" navindex="22" scroll="vertical" style="left:102px; top:98px; width:534px; height:78px; "/>
- <caption id="cap_hdrncspec" class="cell_1" style="left:0px; top:98px; width:100px; height:77px; vertical-align:middle; ">의뢰내역</caption>
- <input id="ipt_reqdd" ref="/root/main/component/rfehemhtlist/reqdd" class="input_default" disabled="true" navindex="-1" format="yyyy-mm-dd" style="left:102px; top:26px; width:70px; height:19px; "/>
- <input id="ipt_reqno" ref="/root/main/component/rfehemhtlist/reqno" class="input_default" disabled="true" navindex="-1" style="left:174px; top:26px; width:40px; height:19px; "/>
- <textarea id="txt_chrgpsncmt" ref="/root/main/component/rfehemhtlist/chrgpsncmt" disabled="true" navindex="23" scroll="vertical" style="left:102px; top:180px; width:534px; height:45px; "/>
- <caption id="cap_chrgpsncmt" class="cell_1" style="left:0px; top:178px; width:100px; height:49px; vertical-align:middle; ">
- <![CDATA[결재
- COMMENT]]>
- </caption>
- <caption id="cap_rpirspec" class="cell_1" style="left:638px; top:255px; width:100px; height:71px; vertical-align:middle; ">수리내역</caption>
- <input id="ipt_mainrpirpsnnm" ref="/root/main/component/rfemdamklist/mainrpirpsnnm" class="output_fix" navindex="-1" editable="false" style="left:216px; top:281px; width:166px; height:19px; "/>
- <input id="ipt_mainrpirpsn" ref="/root/main/component/rfemdamklist/mainrpirpsn" class="input_s_essential" navindex="27" style="left:102px; top:281px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_mainrpirpsn.value.length == 0){
- ipt_mainrpirpsnnm.value = "";
- }else{
- misfValidationCheck("01-1", "", "mainrpirpsn,mainrpirpsnnm");
- }
- ipt_mainrpirpsn.refresh();
- ipt_mainrpirpsnnm.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_supprpirpsn" ref="/root/main/component/rfemdamklist/supprpirpsn" class="input_default" navindex="28" style="left:102px; top:305px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_supprpirpsn.value.length == 0){
- ipt_supprpirpsnnm.value = "";
- }else{
- misfValidationCheck("01-1", "", "supprpirpsn,supprpirpsnnm");
- }
- ipt_supprpirpsn.refresh();
- ipt_supprpirpsnnm.refresh();
- ]]>
- </script>
- </input>
- <textarea id="txt_lastrpirrslt" ref="/root/main/component/rfehemhtlist/lastrpirrslt" class="output_fix" dragmode="true" navindex="24" scroll="vertical" editable="false" maxlength="600" style="left:740px; top:120px; width:452px; height:106px; background-color:#e2e2f5; "/>
- <caption id="cap_lastrpirrslt" class="cell_1" style="left:638px; top:121px; width:100px; height:104px; vertical-align:middle; ">최종수리결과</caption>
- <caption id="cap_rpirflag2" class="cell_1" style="left:0px; top:49px; width:100px; height:23px; vertical-align:middle; ">수리형태</caption>
- <caption id="cap_rpirdd" class="cell_1" style="left:0px; top:255px; width:100px; height:23px; vertical-align:middle; ">
- <![CDATA[수리일자]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var dutplcecd = getUserInfo("dutplcecd");
- if ( dutplcecd != "4090500000" || getUserInfo("userid") == "93518" || getUserInfo("userid") == "08111"|| getUserInfo("userid") == "MIS"|| getUserInfo("userid") == "93361"|| getUserInfo("userid") == "93507"|| getUserInfo("userid") == "93717"){ // 과장
- ipt_rpirdd.disabled = false;
- }else{
- ipt_rpirdd.disabled = true;
- }
- ]]>
- </script>
- </caption>
- <caption id="cap_mainrpirpsn" class="cell_1" style="left:0px; top:279px; width:100px; height:23px; vertical-align:middle; ">주수리자</caption>
- <caption id="cap_supprpirpsn" class="cell_1" style="left:0px; top:303px; width:100px; height:23px; vertical-align:middle; ">보조수리자</caption>
- <input id="ipt_custnm" ref="/root/main/component/rfehemhtlist/custnm" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:779px; top:26px; width:114px; height:19px; "/>
- <caption id="cap_custcd" class="cell_1" style="left:657px; top:25px; width:45px; height:23px; vertical-align:middle; ">거래처</caption>
- <input id="ipt_custcd" ref="/root/main/component/rfehemhtlist/custcd" class="input_default" navindex="12" style="left:704px; top:26px; width:55px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ipt_custnm.value= "";
- if(ipt_custcd.value != ""){
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- cmb_instcd.value + ",," + ipt_custcd.value, "", "custcd,custnm",
- ipt_custcd, "SPRSD00220", "instcd","cmb_instcd");
- }
- ipt_custcd.refresh();
- ipt_custnm.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_rpirflag2" ref="/root/main/component/rfehemhtlist/rpirflag2" class="input_default" navindex="10" appearance="minimal" style="left:102px; top:50px; width:113px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(cmb_rpirflag2.value == "8" ||cmb_rpirflag2.value =="5" ||cmb_rpirflag2.value =="6"){
- rdo_useyn.value = 2;
- }else{
- rdo_useyn.value = 1;
- }
- model.refreshpart(rdo_useyn.attribute("ref"));
- fResetState();
- ]]>
- </script>
- </select1>
- <button id="btn_mainrpirpsn" class="icon_search" navindex="-1" style="left:196px; top:283px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("01", ipt_mainrpirpsn, "", "mainrpirpsn,mainrpirpsnnm");
- ipt_mainrpirpsn.refresh();
- ipt_mainrpirpsnnm.refresh();
- ]]>
- </script>
- <caption/>
- </button>
- <button id="btn_supprpirpsn" class="icon_search" navindex="-1" style="left:196px; top:307px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("01", ipt_supprpirpsn, "", "supprpirpsn,supprpirpsnnm");
- ipt_supprpirpsn.refresh();
- ipt_supprpirpsnnm.refresh();
- ]]>
- </script>
- <caption/>
- </button>
- <caption id="cap_workstat" class="cell_1" style="left:1000px; top:73px; width:65px; height:23px; vertical-align:middle; ">수리상태</caption>
- <select1 id="cmb_workstat" ref="/root/main/component/rfehemhtlist/workstat" class="input_default" disabled="true" navindex="-1" appearance="minimal" style="left:1068px; top:75px; width:125px; height:19px; vertical-align:top; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_rpirdd" ref="/root/main/component/rfemdamklist/rpirdd" class="input_s_essential" navindex="25" inputtype="date" format="yyyy-mm-dd" style="left:102px; top:257px; width:114px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- for(var i=0; grd_rfemdamklist.rows >i; i++)
- {
- if(ipt_rpirdd.value == grd_rfemdamklist.valueMatrix(i, grd_rfemdamklist.colRef("rpirdd")) )
- {
- messageBox("수리일자가","E006");
- ipt_rpirdd.value = "";
- return;
- }
- }
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.selectedRow(0) , grd_rfemdamklist.colRef("rpirdd")) = ipt_rpirdd.value;
- grd_rfemdamklist.addStatus(grd_rfemdamklist.selectedRow(0) , "update");
-
- for(var j=0; grd_rfehdabplist.rows >j; j++)
- {
- grd_rfehdabplist.valueMatrix(j, grd_rfehdabplist.colRef("rpirdd")) = ipt_rpirdd.value;
- grd_rfehdabplist.addStatus(j , "update");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_supprpirpsnnm" ref="/root/main/component/rfemdamklist/supprpirpsnnm" class="output_fix" navindex="-1" editable="false" style="left:216px; top:305px; width:166px; height:19px; "/>
- <caption id="cap_rpirtm" class="cell_1" visibility="visible" style="left:218px; top:255px; width:70px; height:23px; vertical-align:middle; ">작업시간</caption>
- <input id="ipt_rpirtm" ref="/root/main/component/rfemdamklist/rpirtm" class="input_default" navindex="26" visibility="visible" format="hh:nn" style="left:290px; top:257px; width:92px; height:19px; text-align:right; "/>
- <button id="btn_custcd" class="icon_search" navindex="-1" style="left:762px; top:26px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_custcd,"","custcd,custnm","SPRSD00220","instcd","cmb_instcd");
- ipt_custcd.refresh();
- ipt_custnm.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_rpirtmCmt" class="hand" visibility="visible" style="left:380px; top:257px; width:255px; height:19px; ">네자리 숫자로 입력하세요. Ex) 01:30</caption>
- <button id="btn_del" class="btn2_letter2" disabled="true" navindex="31" style="left:1150px; top:229px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( ipt_insStatus.value == 1 )
- {
- // 수리일자별 컨포넌트 Value 값 초기화.
- model.resetInstanceNode("/root/main/component/rfemdamklist");
-
- grd_rfehemhtlist.dispatch("onrowchanged");
- return;
- }
- if(grd_rfemdamklist.row >= 1)
- {
- if(ipt_insStatus.value == 1){
- grd_rfemdamklist.row = grd_rfemdamklist.rows - 1;
- grd_rfemdamklist.dispatch("onrowchanged");
- }else{
-
- if(grd_rfehdabplist.rows > 1)
- {
- if( messageBox("부품목록의 데이터가 남아있습니다.\n'예(Yes)'를 누르시면 부품목록의 데이터까지 삭제하시게 됩니다.\n", "Q003") == 6){
- // 부품목록 리스트 status 를 전부 삭제로 변환.
- for(var row = 1; row <= grd_rfehdabplist.rows; row++)
- {
- grd_rfehdabplist.addStatus(row, "delete");
- }
-
- // 일별 수리 데이터의 status를 삭제로 변환
- misfGridIUD(grd_rfemdamklist, "D");
- // 수리일자별 추가 식별너머 초기화
- ipt_insStatus.value = 0;
- //alert("ipt_insStatus.value = 0");
- // 수리일자별 컨포넌트 컨트롤 모드 변환.
- fRfemdamkComponentsTF(false,'Y');
- // 모든 그리드의 데이터 전송준비.
- model.copyNode("/root/send/grid", "/root/main/grid");
- // 전송 스따뜨~!!!
- misfSave("TXRFE00601");
-
- // 수리일자별 컨포넌트 Value 값 초기화.
- model.resetInstanceNode("/root/main/component/rfemdamklist");
-
- grd_rfehemhtlist.dispatch("onrowchanged");
- } else {
- return;
- }
-
- } else {
-
- if(messageBox("","Q001") == 6)
- {
- misfGridIUD(grd_rfemdamklist, "D");
- // 수리일자별 추가 식별너머 초기화
- ipt_insStatus.value = 0;
- //alert("ipt_insStatus.value = 0");
- // 수리일자별 컨포넌트 컨트롤 모드 변환.
- fRfemdamkComponentsTF(false,'Y');
- // 모든 그리드의 데이터 전송준비.
- model.copyNode("/root/send/grid", "/root/main/grid");
- // 전송 스따뜨~!!!
- misfSave("TXRFE00601");
-
- // 수리일자별 컨포넌트 Value 값 초기화.
- model.resetInstanceNode("/root/main/component/rfemdamklist");
-
- grd_rfehemhtlist.dispatch("onrowchanged");
- } else {
- return;
- }
- }
- }
- fRfemdamkComponentsTF(false, 'Y');
- } else {
- messageBox("삭제할 수리일자별 목록을", "C002")
- }
- ]]>
- </script>
- </button>
- <button id="btn_initrfemdamklist" class="btn2_letter2" disabled="true" navindex="30" style="left:1105px; top:229px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ipt_insStatus.value = 1;
- //alert("ipt_insStatus.value = 1");
-
- // 컴포넌트 노드 설정.
- misfGridIUD(grd_rfemdamklist, "A");
- model.copyNode("/root/main/component/rfemdamklist" , "/root/main/grid/rfemdamklist[" + grd_rfemdamklist.row + "]");
-
- fRfemdamkComponentsTF(false);
- //misfGridIUD(grd_rfemdamklist, "D");
-
- model.resetInstanceNode("/root/main/component/rfemdamklist");
- misfGridInit(grd_rfehdabplist);
-
- //ipt_rpirdd.value = getCurrentDate();
- /*for(var i=0; grd_rfemdamklist.rows > i ; i++)
- {
- if(ipt_rpirdd.value == grd_rfemdamklist.valueMatrix(i, grd_rfemdamklist.colRef("rpirdd")) )
- {
- messageBox("오늘 수리일자가 있습니다. \n수리일자를", "C001");
- ipt_rpirdd.value = "";
- return;
- }
- }*/
-
- if(grd_rfemdamklist.rows > 1)
- {
- ipt_mainrpirpsn.value = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.rows-1, grd_rfemdamklist.colRef("mainrpirpsn"));
- ipt_mainrpirpsnnm.value = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.rows-1, grd_rfemdamklist.colRef("mainrpirpsnnm"));
- ipt_supprpirpsn.value = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.rows-1, grd_rfemdamklist.colRef("supprpirpsn"));
- ipt_supprpirpsnnm.value = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.rows-1, grd_rfemdamklist.colRef("supprpirpsnnm"));
- }else{
- ipt_mainrpirpsn.value = getUserInfo("userid");
- ipt_mainrpirpsnnm.value = getUserInfo("usernm");
- }
-
- if(ipt_chrgpsnid.value.length != 0){
- ipt_mainrpirpsn.value = ipt_chrgpsnid.value;
- ipt_mainrpirpsnnm.value = ipt_chrgpsnnm.value;
- }
- var dutplcecd = getUserInfo("dutplcecd");
- if ( dutplcecd != "4090500000" || getUserInfo("userid") == "93518" || getUserInfo("userid") == "08111"|| getUserInfo("userid") == "MIS"|| getUserInfo("userid") == "93361"|| getUserInfo("userid") == "93507"|| getUserInfo("userid") == "93717"){ // 과장
- model.setValue(ipt_rpirdd.attribute("ref"), getCurrentDate());
- ipt_rpirdd.disabled = false;
- }else{
- model.setValue(ipt_rpirdd.attribute("ref"), getCurrentDate());
- ipt_rpirdd.disabled = true;
- }
- ipt_rpirdd.dispatch("xforms-value-changed");
-
- btn_insRfehdabp.disabled = false;
- btn_delRfehdabp.disabled = false;
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_2" style="x1:40px; y1:277px; x2:640px; y2:277px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:235px; width:118px; height:13px; ">수리 일자별 현황</caption>
- <caption id="caption2" class="tit_2" style="left:5px; top:5px; width:110px; height:13px; ">수리 상세 등록</caption>
- <caption id="cap_chrgtel" class="cell_1" style="left:275px; top:73px; width:90px; height:23px; vertical-align:middle; ">검토자 연락처</caption>
- <input id="ipt_chrgtel" ref="/root/main/component/rfehemhtlist/chrgtel" class="input_s_essential" disabled="true" navindex="19" style="left:367px; top:74px; width:60px; height:19px; "/>
- <caption id="caption7" class="cell_1" style="left:219px; top:25px; width:60px; height:23px; vertical-align:middle; ">발생일자</caption>
- <caption id="cap_acptdd" class="cell_1" style="left:495px; top:25px; width:60px; height:23px; vertical-align:middle; ">납품일자</caption>
- <input id="ipt_acptdd" ref="/root/main/component/rfehemhtlist/acptdd" class="input_default" disabled="false" navindex="8" inputtype="date" format="yyyy-mm-dd" style="left:558px; top:26px; width:95px; height:19px; "/>
- <input id="ipt_rpirenddd2" ref="/root/main/component/rfehemhtlist/rpirenddd" class="input_default" disabled="true" navindex="-1" format="yyyy-mm-dd" style="left:420px; top:26px; width:70px; height:19px; "/>
- <caption id="cap_rpirenddd" class="cell_1" style="left:357px; top:25px; width:60px; height:23px; vertical-align:middle; ">완료일자</caption>
- <input id="ipt_deprtmangrsanctid" ref="/root/main/component/rfehemhtlist/deprtmangrsanctid" class="input_default" navindex="20" style="left:499px; top:74px; width:70px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ipt_deprtmangrsanctnm.value = "";
- if(ipt_deprtmangrsanctid.value.length != 0){
- misfValidationCheck("01-1", "", "deprtmangranctid,deprtmangrsanctnm");
- }
- ipt_deprtmangrsanctid.refresh();
- ipt_deprtmangrsanctnm.refresh();
- fResetState();
- ]]>
- </script>
- </input>
- <input id="ipt_deprtmangrsanctnm" ref="/root/main/component/rfehemhtlist/deprtmangrsanctnm" class="output_fix" disabled="false" navindex="-1" editable="false" appearance="input" style="left:589px; top:74px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_deprtmangrsanctnm.value.length == 0)
- ipt_deprtmangrsanctid.value = "";
- else
- misfValidationCheck("01-2", "", "deprtmangrsanctid,deprtmangrsanctnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_deprtmangrsanctid" class="icon_search" navindex="-1" style="left:571px; top:74px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("12", ipt_deprtmangrsanctid, "", "deprtmangrsanctid,deprtmangrsanctnm");
- ipt_deprtmangrsanctid.refresh();
- ipt_deprtmangrsanctnm.refresh();
- fResetState();
- ]]>
- </script>
- </button>
- <caption id="caption17" class="cell_1" style="left:431px; top:73px; width:65px; height:23px; vertical-align:middle; ">실장 결재</caption>
- <button id="btn_chrgpsnid" class="icon_search" navindex="42" style="left:174px; top:74px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("12", ipt_chrgpsnid, "", "chrgpsnid,chrgpsnnm");
-
- ipt_chrgpsnid.refresh();
- ipt_chrgpsnnm.refresh();
- fResetState();
- ]]>
- </script>
- </button>
- <input id="ipt_chrgpsnid" ref="/root/main/component/rfehemhtlist/chrgpsnid" class="input_s_essential" navindex="18" style="left:102px; top:74px; width:70px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ipt_chrgpsnnm.value = "";
- if(ipt_chrgpsnid.value.length != 0){
- misfValidationCheck("01-1", "", "chrgpsnid,chrgpsnnm");
- }
- ipt_chrgpsnid.refresh();
- ipt_chrgpsnnm.refresh();
- fResetState();
- ]]>
- </script>
- </input>
- <caption id="cap_chrgpsnid" class="cell_1" style="left:0px; top:73px; width:100px; height:23px; vertical-align:middle; ">검토자</caption>
- <input id="ipt_chrgpsnnm" ref="/root/main/component/rfehemhtlist/chrgpsnnm" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:192px; top:74px; width:80px; height:19px; text-align:center; "/>
- <select1 id="cmb_docustat" ref="/root/main/component/rfehemhtlist/docustat" class="input_default" disabled="true" navindex="-1" appearance="minimal" style="left:1099px; top:50px; width:94px; height:19px; vertical-align:top; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="cell_1" style="left:1032px; top:49px; width:65px; height:23px; vertical-align:middle; ">서류상태</caption>
- <caption id="caption9" class="cell_1" style="left:462px; top:49px; width:65px; height:23px; vertical-align:middle; ">검수일자</caption>
- <input id="ipt_chkdd" ref="/root/main/component/rfehemhtlist/chkdd" class="input_default" disabled="true" navindex="15" inputtype="date" format="yyyy-mm-dd" style="left:530px; top:50px; width:95px; height:19px; "/>
- <caption id="cap_rpiramt" class="cell_1" style="left:1043px; top:25px; width:55px; height:23px; vertical-align:middle; ">납품금액</caption>
- <input id="ipt_rpiramt" ref="/root/main/component/rfehemhtlist/rpiramt" class="input_default" disabled="false" navindex="13" visibility="visible" format="#,###" style="left:1100px; top:26px; width:92px; height:19px; text-align:right; "/>
- <button id="btn_chkpsn" class="icon_search" disabled="true" navindex="-1" style="left:360px; top:50px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("12", ipt_chkpsn, "", "chkpsn,chkpsnnm");
- ipt_chkpsn.refresh();
- ipt_chkpsnnm.refresh();
- fResetState();
- ]]>
- </script>
- </button>
- <input id="ipt_chkpsn" ref="/root/main/component/rfehemhtlist/chkpsn" class="input_default" disabled="true" navindex="14" style="left:287px; top:50px; width:70px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ipt_chkpsnnm.value = "";
- if(ipt_chkpsn.value.length != 0){
- misfValidationCheck("01-1", "", "chkpsn,chkpsnnm");
- }
- ipt_chkpsn.refresh();
- ipt_chkpsnnm.refresh();
- fResetState();
- ]]>
- </script>
- </input>
- <caption id="caption8" class="cell_1" style="left:219px; top:49px; width:65px; height:23px; vertical-align:middle; ">검수자</caption>
- <input id="ipt_chkpsnnm" ref="/root/main/component/rfehemhtlist/chkpsnnm" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:378px; top:50px; width:80px; height:19px; text-align:center; "/>
- <input id="ipt_mngersanctid" ref="/root/main/component/rfehemhtlist/mngersanctid" class="input_default" navindex="21" style="left:739px; top:74px; width:70px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_mngersanctid.value.length == 0){
- ipt_mngersanctnm.value = "";
- }else{
- misfValidationCheck("01-1", "", "mngersanctid,mngersanctnm");
- }
- ipt_mngersanctid.refresh();
- ipt_mngersanctnm.refresh();
- fResetState();
-
- if(cmb_rpirflag2.value.length != 0){ // 수리형태(조치사항) 이 있을 경우
- workstat = "03";
- }
- if(chk_rpirendyn.value == "Y"){ // 수리완료가 체크되어 있을 경우
- workstat = "04";
- }
-
- var instcd = getUserInfo("dutplceinstcd");
- if(instcd == "033"){
- if(ipt_chrgpsnid.value.length != 0 && ipt_mngersanctid.value.length != 0){
- cmb_workstat.value = "05";
- cmb_docustat.value = "03";
- }else if(ipt_chrgpsnid.value.length != 0 && ipt_mngersanctid.value.length == 0){
- if( cmb_rpirflag2.value.length != 0){ //수리형태
- if (chk_rpirendyn.value == "Y"){ //수리완료
- cmb_workstat.value = "04";
- cmb_docustat.value = "01";
- }else{
- cmb_workstat.value = "03";
- cmb_docustat.value = "01";
- }
- }else{
- cmb_workstat.value = "02";
- cmb_docustat.value = "01";
- }
- }else{
- cmb_workstat.value = "01";
- cmb_docustat.value = "01";
- }
- }
- cmb_workstat.refresh();
- cmb_docustat.refresh();
- fResetDisabled();
- ]]>
- </script>
- </input>
- <button id="btn_mngersanctid" class="icon_search" navindex="-1" style="left:811px; top:74px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("12", ipt_mngersanctid, "", "mngersanctid,mngersanctnm");
- ipt_mngersanctid.refresh();
- ipt_mngersanctnm.refresh();
- fResetState();
- ]]>
- </script>
- </button>
- <input id="ipt_mngersanctnm" ref="/root/main/component/rfehemhtlist/mngersanctnm" class="output_fix" disabled="false" navindex="-1" editable="false" appearance="input" style="left:829px; top:74px; width:80px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:671px; top:73px; width:65px; height:23px; vertical-align:middle; ">과장 결재</caption>
- <bool id="chk_rpirendyn" navindex="16" checkvalue="Y,N" ref="/root/main/component/rfehemhtlist/rpirendyn" style="left:698px; top:50px; width:20px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fResetState();
- ]]>
- </script>
- </bool>
- <caption id="caption10" class="cell_1" style="left:629px; top:49px; width:65px; height:23px; vertical-align:middle; ">수리완료</caption>
- <caption id="caption12" class="cell_1" style="left:720px; top:49px; width:80px; height:23px; vertical-align:middle; ">수리완료일자</caption>
- <input id="ipt_rpirenddd" ref="/root/main/component/rfehemhtlist/rpirenddd" class="input_default" disabled="false" navindex="17" inputtype="date" format="yyyy-mm-dd" style="left:804px; top:50px; width:95px; height:19px; "/>
- <caption id="caption14" class="cell_1" style="left:902px; top:49px; width:65px; height:23px; vertical-align:middle; ">소요일자</caption>
- <input id="ipt_usedd" ref="/root/main/component/rfehemhtlist/usedd" class="input_default" disabled="true" navindex="-1" visibility="visible" format="#,###" style="left:970px; top:50px; width:57px; height:19px; text-align:right; "/>
- <caption id="caption16" class="cell_1" style="left:638px; top:97px; width:100px; height:23px; vertical-align:middle; ">첨부파일</caption>
- <button id="btn_attdownload" class="btn2_letter4" navindex="29" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1127px; top:99px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>다운로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filepath = model.getValue("/root/main/component/rfehemhtlist/filepath");
- var fileseqno = model.getValue("/root/main/component/rfehemhtlist/fileseqno");
- var filenm = model.getValue("/root/main/component/rfehemhtlist/filenm");
- var fileExt = "*";
-
- if(filenm != null && filenm != "") {
- fileExt = filenm.substr(filenm.lastIndexOf('.')+1);
- } else {
- messageBox("첨부파일이 없습니다.", "E");
- return;
- }
- var localfile = window.fileDialog("save","|",false,filenm,fileExt,"Files(*." + fileExt + ")|*." + fileExt);
- if (localfile != "") {
- model.download(getActionURL("TRRFC01102")+"&filepath="+filepath+"&fileseqno="+fileseqno,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_attfilenm" ref="/root/main/component/rfehemhtlist/filenm" class="output_fix" disabled="false" navindex="28" editable="false" style="left:740px; top:99px; width:330px; height:19px; font-family:굴림체; font-size:8pt; text-align:left; vertical-align:middle; "/>
- <button id="btn_attupload" class="btn2_letter3" navindex="18" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1073px; top:99px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/component/rfehemhtlist/filenm").length > 0) {
- var rtn = messageBox("이미 등록 된 파일이 있습니다.\n삭제 하시겠습니까?", "Q");
- if(rtn == "6") {
- model.removeNodeset("/root/send/fileinfo/fileinfolist");
-
- var str = "m▦fileseqno▦fixasetcd▦filepath▩d▦"
- + model.getValue("/root/main/component/rfehemhtlist/fileseqno") + "▦"
- + model.getValue("/root/main/component/rfehemhtlist/fixasetcd") + "▦"
- + model.getValue("/root/main/component/rfehemhtlist/filepath") + "▩";
-
- model.makeValue("/root/send/fileinfo/fileinfolist",str);
-
- if(submit("TXRFC01102")) {
- model.setValue("/root/main/component/rfehemhtlist/filenm","");
- model.setValue("/root/main/component/rfehemhtlist/fileseqno","");
- model.setValue("/root/main/component/rfehemhtlist/filepath","");
- model.refresh();
- } else {
- messageBox("파일 삭제가 실패하였습니다.","E");
- }
- } else {
- 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) {
- var maxsize = upd_uploadfile.attribute("filesize");
-
- model.setValue("/root/send/fileupcolumn/refinstcd" , model.getValue("/root/main/component/rfehemhtlist/instcd"));
- model.setValue("/root/send/fileupcolumn/refdeptcd", getUserInfo("dutplcecd"));
- model.setValue("/root/send/fileupcolumn/refpsnid" , getUserInfo("userid"));
- model.setValue("/root/send/fileupcolumn/fixasetcd" , model.getValue("/root/main/component/rfehemhtlist/fixasetcd"));
- model.setValue("/root/send/fileupcolumn/reqdd" , model.getValue("/root/main/component/rfehemhtlist/reqdd"));
- model.setValue("/root/send/fileupcolumn/reqno" , model.getValue("/root/main/component/rfehemhtlist/reqno"));
-
- if(submit("TXRFC01101")) {
- model.setValue("/root/main/component/rfehemhtlist/filenm",model.getValue("/root/temp/attfileinfo/filenm"));
- model.setValue("/root/main/component/rfehemhtlist/fileseqno",model.getValue("/root/temp/attfileinfo/fileseqno"));
- model.setValue("/root/main/component/rfehemhtlist/filepath",model.getValue("/root/temp/attfileinfo/filepath"));
- model.refresh();
- }
- }
- //fFileAdd();
- ]]>
- </script>
- </button>
- <upload id="upd_uploadfile" nodeset="/root/send/fileupcolumn/fileupload/file" filecount="5" filesize="10485760" validate="true" style="left:720px; top:100px; width:15px; height:15px; "/>
- <input id="ipt_uploadfile" ref="/root/send/fileupcolumn/fileupload/file" visibility="hidden" style="left:700px; top:99px; width:15px; height:19px; "/>
- <caption id="caption18" class="cell_1" style="left:897px; top:25px; width:55px; height:23px; vertical-align:middle; ">견적금액</caption>
- <input id="ipt_estiamt" ref="/root/main/component/rfehemhtlist/estimateamt" class="input_default" disabled="false" navindex="13" visibility="visible" format="#,###" style="left:953px; top:26px; width:87px; height:19px; text-align:right; "/>
- </case>
- </switch>
- <line id="line29" class="line_1" style="x1:0px; y1:602px; x2:1195px; y2:602px; "/>
- <caption id="caption81" class="tit_2" style="left:5px; top:587px; width:70px; height:13px; ">부품목록</caption>
- <line id="line30" class="line_1" style="x1:940px; y1:153px; x2:1195px; y2:154px; "/>
- <datagrid id="tempgrd_rfemdamklist" nodeset="/root/main/tempgrid/rfemdamklist" visibility="hidden" caption="일자^주수리자^보조수리자" colsep="^" colwidth="75, 80, 80, 100, 100, 100, 100, 100, 100, 100, 100,100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rows="2" rowsep="|" navindex="7" style="left:940px; top:200px; width:255px; height:50px; ">
- <col ref="rpirdd"/>
- <col ref="mainrpirpsnnm"/>
- <col ref="supprpirpsnnm"/>
- <col ref="mainrpirpsn" visibility="hidden"/>
- <col ref="supprpirpsn" visibility="hidden"/>
- <col ref="rpirtm" visibility="hidden"/>
- <col ref="rpirspec" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="fixtrseqmtflag" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="brpirdd" visibility="hidden"/>
- </datagrid>
- <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:1195px; y2:0px; "/>
- <input id="ipt_rowtemp" ref="/root/init/rowtemp" visibility="hidden" style="left:1000px; top:181px; width:40px; height:19px; "/>
- <input id="ipt_rowtemp2" ref="/root/init/rowtemp2" visibility="hidden" style="left:730px; top:181px; width:40px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="3" visibility="hidden" style="left:1139px; top:130px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/sendlist/bizscrnid" , "SMRFE00600");
-
- submit("TRRFE00601");
-
- if(grd_rfehemhtlist.rows > grd_rfehemhtlist.fixedRows)
- {
- // Popup 으로 불려지면 기관코드, 자산코드 값 설정.
- if(model.getValue("/root/temp/fixasetcd") != "") {
- for(var i=grd_rfehemhtlist.fixedRows; i<grd_rfehemhtlist.rows; i++) {
- if(grd_rfehemhtlist.valueMatrix(i,grd_rfehemhtlist.colRef("reqdd")) == model.getValue("/root/temp/reqdd")
- && grd_rfehemhtlist.valueMatrix(i,grd_rfehemhtlist.colRef("reqno")) == model.getValue("/root/temp/reqno")) {
- grd_rfehemhtlist.row = i;
- grd_rfehemhtlist.topRow = i - (i>1?1:0);
- break;
- }
- }
- } else {
- grd_rfehemhtlist.row = 1;
- }
- grd_rfehemhtlist.dispatch("onrowchanged");
-
- if( grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("sancttrsmyn")) == "Y")
- {
- // 의뢰일별 목록, 수리일자별목록 추가,삭제,저장 모드 설정
- btn_save.disabled = true;
-
- // 결재전송유무버튼
- btn_send.disabled = true;
- }
- // grid 입력 제한
- misfSetReadOnlyCol(grd_rfehemhtlist, "reqdd,reqno,depthngnm,reqtel,chrgpsnnm,acptdd,rpirenddd,lastrpirstat,acptflag,workstat,rpirflag1,rpiramt,sanctyn", true);
- } else
- {
- messageBox(" 수리 목록에 \n등록되지 않은 자산코드", "E008");
- fInitialize();
- btn_save.disabled = true;
-
- // 결재전송유무버튼
- btn_send.disabled = true;
- }
- ]]>
- </script>
- </button>
- <datagrid id="tempgrd_rfehemhtlist" nodeset="/root/main/tempgrid/rfehemhtlist" visibility="hidden" allowselection="false" caption="의뢰일자^의뢰일자^관리부서^의뢰자 연락처^담당자^납품일자^완료일자^상태^수리형태^접수구분^수리상태^고장유형^납품금액" colsep="^" colwidth="69, 30, 90, 84, 59, 71, 71, 60, 60, 64, 66, 70, 79, 93, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rows="2" rowsep="|" selectionmode="byrow" tooltip="true" navindex="5" style="left:0px; top:200px; width:935px; height:45px; ">
- <col disabled="true" ref="reqdd" format="yyyy-mm-dd" _key="true"/>
- <col disabled="true" ref="reqno" _key="true"/>
- <col disabled="true" ref="depthngnm"/>
- <col disabled="true" ref="reqtel"/>
- <col disabled="true" ref="chrgpsnnm"/>
- <col disabled="true" ref="acptdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="rpirenddd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="lastrpirstat"/>
- <col disabled="true" ref="rpirflag2" visibility="hidden"/>
- <col disabled="true" ref="acptflag"/>
- <col disabled="true" ref="workstat"/>
- <col disabled="true" ref="rpirflag1"/>
- <col disabled="true" ref="rpiramt"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="chrgpsnid" visibility="hidden"/>
- <col ref="genrdd" visibility="hidden"/>
- <col ref="estimateamt" visibility="hidden"/>
- <col ref="sanctid" visibility="hidden"/>
- <col ref="sanctnm" visibility="hidden"/>
- <col ref="reductionamt" visibility="hidden"/>
- <col ref="useyn" visibility="hidden"/>
- <col ref="nonworkdayno" visibility="hidden"/>
- <col ref="custcd" visibility="hidden"/>
- <col ref="custnm" visibility="hidden"/>
- <col ref="hdrncspec" visibility="hidden"/>
- <col ref="chrgpsncmt" visibility="hidden"/>
- <col ref="lastrpirrslt" visibility="hidden"/>
- <col ref="instcd" visibility="hidden" _key="true"/>
- <col ref="fixtrseqmtflag" visibility="hidden" _key="true"/>
- <col ref="reqpsnid" visibility="hidden"/>
- <col ref="reqpsnnm" visibility="hidden"/>
- <col ref="genrtm" visibility="hidden"/>
- <col ref="acpttm" visibility="hidden"/>
- <col ref="acptpsnid" visibility="hidden"/>
- <col ref="acptpsnnm" visibility="hidden"/>
- <col ref="acptdeptcd" visibility="hidden"/>
- <col ref="acptdeptnm" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <col ref="fixasetnm" visibility="hidden"/>
- <col ref="itemnm" visibility="hidden"/>
- <col ref="acptpsncnfm" visibility="hidden"/>
- <col ref="deptacptdd" visibility="hidden"/>
- <col ref="deptacptpsnid" visibility="hidden"/>
- <col ref="deptacptpsnnm" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="sanctyn" visibility="hidden"/>
- <col ref="sanctdd" visibility="hidden"/>
- <col ref="emaildeliveyn" visibility="hidden"/>
- <col ref="goodmodel" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <col ref="installplcenm" visibility="hidden"/>
- <col ref="sancttrsmyn" visibility="hidden"/>
- <col ref="chrgtel" visibility="hidden"/>
- <col ref="bugtyy" visibility="hidden"/>
- <col ref="bugtcd" visibility="hidden"/>
- <col ref="stdysubjno" visibility="hidden"/>
- <col ref="stdysubjnm" visibility="hidden"/>
- <col ref="deptaprvyn" visibility="hidden"/>
- <col ref="deptaprvpsnid" visibility="hidden"/>
- <col ref="deptaprvdd" visibility="hidden"/>
- <col ref="rfehdabptotal" visibility="hidden"/>
- <col ref="rpirendyn" visibility="hidden"/>
- <col ref="usedd" visibility="hidden"/>
- <col ref="fileseqno" visibility="hidden"/>
- <col ref="filenm" visibility="hidden"/>
- <col ref="filepath" visibility="hidden"/>
- <col disabled="true" ref="estiamt"/>
- </datagrid>
- </group>
- <group id="group3" style="left:0px; top:12; width:1195px; height:27; ">
- <button id="btn_init" class="btn4_letter3" navindex="40" style="left:1126px; top:4px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
- <button id="btn_send" class="btn4_letter4" disabled="true" navindex="38" visibility="hidden" style="left:980px; top:3; width:80px; height:22px; ">
- <caption>결제전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ipt_sancttrsmyn.value = "Y";
- if(model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/sanctyn") == "R")
- model.setValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/sanctyn","A");
- btn_save.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" disabled="true" navindex="39" style="left:1065px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var workstat = model.getValue(cmb_workstat.attribute("ref"));
- var focus = grd_rfehemhtlist.row;
-
- // var sChrgpsnid = ipt_chrgpsnid.value; // 담당자ID와 접수자 ID 저장
- // var sAcptpsnid = ipt_acptpsnid.value;
- // var sDeptcd = ipt_custcd.value;
- //
- // model.setValue("/root/send/sendlist/chrgpsnid", sChrgpsnid); // chrgpsnid, acptpsnid에 매핑
- // model.setValue("/root/send/sendlist/acptpsnid", sAcptpsnid);
- // model.setValue("/root/send/sendlist/deptcd", sDeptcd);
- // if( checkKeyColumn("grd_rfehemhtlist") == false) return;
- // 기본 if( checkKeyColumn("grd_rfemdamklist") == false) return;
- if( checkKeyColumn("grd_rfehdabplist") == false) return;
-
- for( var fRow = grd_rfehdabplist.fixedRows; fRow < grd_rfehdabplist.rows; fRow++)
- {
- if( grd_rfehdabplist.valueMatrix(fRow, grd_rfehdabplist.colRef("acsrscd")) == "" )
- {
- messageBox("부품목록의 부품코드를", "C001");
- return;
- }
- if( grd_rfehdabplist.valueMatrix(fRow, grd_rfehdabplist.colRef("acsrsqty")) == ""
- || grd_rfehdabplist.valueMatrix(fRow, grd_rfehdabplist.colRef("acsrsqty")) == "0" )
- {
- messageBox("부품목록의 부품수량을", "C001");
- return;
- }
- }
-
- var fsend = "";
- var fmcode = "Q002";
- if(ipt_sancttrsmyn.value == "Y")
- {
- fsend = "[-- 전송작업 실행시 현재 데이터를 수정할 수 없게 됩니다. --]\n\n 전송 작업을";
- fmcode = "Q003";
- }
-
- if(messageBox(fsend, fmcode) == 6)
- {
- if(grd_rfehemhtlist.rowStatus(grd_rfehemhtlist.row) != 1){
- grd_rfehemhtlist.addStatus(grd_rfehemhtlist.row, "update");
-
- // 저장시 최종 수리내역 입력 -->>
- var totalCmtDD = "";
- var totalCmt = "";
- for(var i=1; i < grd_rfemdamklist.rows; i++)
- {
- totalCmtDD = grd_rfemdamklist.valueMatrix( i, grd_rfemdamklist.colRef("rpirdd"));
- totalCmt += (
- totalCmtDD.substr(0,4) + "-" + totalCmtDD.substr(4,2) + "-" + totalCmtDD.substr(6,2) + " >>\n"
- + grd_rfemdamklist.valueMatrix( i, grd_rfemdamklist.colRef("rpirspec")) + "\n"
- );
- }
- txt_lastrpirrslt.value = totalCmt;
- // <<--저장시 최종 수리내역 입력
-
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("workstat")) = cmb_workstat.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("docustat")) = cmb_docustat.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpirflag1")) = cmb_rpirflag1.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpirflag2")) = cmb_rpirflag2.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("sanctid")) = ipt_sanctid.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("estimateamt")) = ipt_estimateamt.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reductionamt")) = ipt_reductionamt.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("custcd")) = ipt_custcd.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("nonworkdayno")) = ipt_nonworkdayno.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("lastrpirrslt")) = txt_lastrpirrslt.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpirenddd")) = ipt_rpirenddd.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpiramt")) = ipt_rpiramt.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chkpsn")) = ipt_chkpsn.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chkpsnnm")) = ipt_chkpsnnm.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chkdd")) = ipt_chkdd.value;
- //grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deliveamt")) = ipt_deliveamt.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("useyn")) = rdo_useyn.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("sancttrsmyn")) = ipt_sancttrsmyn.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvyn")) = bool_deptaprvyn.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chrgtel")) = ipt_chrgtel.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvdd")) = ipt_deptaprvdd.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvpsnid")) = ipt_deptaprvpsnid.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("mngersanctid")) = ipt_mngersanctid.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deprtmangrsanctid")) = ipt_deprtmangrsanctid.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpirendyn")) = chk_rpirendyn.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("estiamt")) = ipt_estiamt.value;
-
- if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/acptpsnid") == "")
- ipt_acptpsnid.value = getUserInfo("userid");
- if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/acptdeptcd") == "")
- ipt_acptdeptcd.value = getUserInfo("dutplcecd");
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chrgpsnid")) = ipt_chrgpsnid.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acptpsnid")) = ipt_acptpsnid.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acptdd")) = ipt_acptdd.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acpttm")) = ipt_acpttm.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acptdeptcd")) = ipt_acptdeptcd.value;
- //20100330 이현민추가
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("bizscrnid")) = "SMRFE00600_수리상세등록.xrw";
- }
-
- // 수리일자별 목록 저장
- if( ipt_insStatus.value == 1 )
- {
- if( !isRequiredControls("ipt_rpirdd") )return;
- if( !isRequiredControls("ipt_mainrpirpsn") )return;
- //if( !isRequiredControls("ipt_rpirtm") )return; //필수입력사항으로 등록을 안했을경우 return시키는 부분인데 현업요청으로 뺌
- if( !isRequiredControls("txt_rpirspec") )return;
-
- //misfGridIUD(grd_rfemdamklist, "A");
-
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("instcd")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("instcd"));
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("fixtrseqmtflag")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("fixtrseqmtflag"));
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("reqdd")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd"));
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("reqno")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno"));
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirdd")) = ipt_rpirdd.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("mainrpirpsn")) = ipt_mainrpirpsn.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("mainrpirpsnnm")) = ipt_mainrpirpsnnm.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("supprpirpsn")) = ipt_supprpirpsn.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("supprpirpsnnm")) = ipt_supprpirpsnnm.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirspec")) = txt_rpirspec.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirtm")) = ipt_rpirtm.value;
- // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("deptaprvyn")) = bool_deptaprvyn.value;
- // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("chrgtel")) = ipt_chrgtel.value;
- // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("deptaprvdd")) = ipt_deptaprvdd.value;
- // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("deptaprvpsnid")) = ipt_deptaprvpsnid.value;
- // if (model.getValue("/root/main/grid/rfehemhtlist/chrgpsnid") == "")
- // {
- // ipt_chrgpsnid.value = getUserInfo("userid");
- // }
- // if (model.getValue("/root/main/grid/rfehemhtlist/acptpsnid") == "")
- // {
- // ipt_acptpsnid.value = getUserInfo("userid");
- // }
- // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("chrgpsnid")) = ipt_chrgpsnid.value;
- // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("acptpsnid")) = ipt_acptpsnid.value;
- }else if( ipt_insStatus.value == 2)
- {
- grd_rfemdamklist.addStatus(grd_rfemdamklist.row, "update");
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirdd")) = ipt_rpirdd.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("mainrpirpsn")) = ipt_mainrpirpsn.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("mainrpirpsnnm")) = ipt_mainrpirpsnnm.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("supprpirpsn")) = ipt_supprpirpsn.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("supprpirpsnnm")) = ipt_supprpirpsnnm.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirspec")) = txt_rpirspec.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirtm")) = ipt_rpirtm.value;
- // if (model.getValue("/root/main/grid/rfehemhtlist/chrgpsnid") == "")
- // {
- // ipt_chrgpsnid.value = getUserInfo("userid");
- // }
- // if (model.getValue("/root/main/grid/rfehemhtlist/acptpsnid") == "")
- // {
- // ipt_acptpsnid.value = getUserInfo("userid");
- // }
- // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("chrgpsnid")) = ipt_chrgpsnid.value;
- // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("acptpsnid")) = ipt_acptpsnid.value;
- // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("deptaprvyn")) = bool_deptaprvyn.value;
- // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("chrgtel")) = ipt_chrgtel.value;
- // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("deptaprvdd")) = ipt_deptaprvdd.value;
- // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("deptaprvpsnid")) = ipt_deptaprvpsnid.value;
- }
- // 수리일자별 추가 식별너머 초기화
- ipt_insStatus.value = 0;
-
- // 수리일자별 컨포넌트 컨트롤 모드 변환.
- fRfemdamkComponentsTF(false,'Y');
-
- // 모든 그리드의 데이터 전송준비.
- model.copyNode("/root/send/grid", "/root/main/grid");
-
-
- // 전송 스따뜨~!!!
- misfSave("TXRFE00601");
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error") btn_search.dispatch("DOMActivate");
-
- }else{
- ipt_sancttrsmyn.value = "";
- return;
- }
- model.setFocus("grd_rfehemhtlist");
- grd_rfehemhtlist.row = focus;
- grd_rfehemhtlist.dispatch("onrowchanged");
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter2" navindex="36" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/sendprint");
-
- model.setValue("/root/send/sendprint/instcd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("instcd")) );
- model.setValue("/root/send/sendprint/reqdd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd")) );
- model.setValue("/root/send/sendprint/reqno", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno")) );
- model.setValue("/root/send/sendprint/fixtrseqmtflag", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("fixtrseqmtflag")) );
-
- if(submit("TRRFE00703")){
- exeReportPreview("RPRFE00601", "XMLSTR");
- }
- ]]>
- </script>
- </button>
- <button id="btn_print2" class="btn6_letter6" navindex="37" visibility="hidden" style="left:60px; top:3px; width:104px; height:22px; ">
- <caption>수리이력 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/print/PrintRfehemht");
- model.resetInstanceNode("/root/send/sendprint");
-
- model.setValue("/root/send/sendprint/instcd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("instcd")) );
- model.setValue("/root/send/sendprint/chrgpsnid", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chrgpsnid")) );
- model.setValue("/root/send/sendprint/reqdd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd")) );
- model.setValue("/root/send/sendprint/reqdd2", model.getValue("/root/send/sendprint/reqdd"));
- model.setValue("/root/send/sendprint/reqno", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno")) );
- model.setValue("/root/send/sendprint/reqno2", model.getValue("/root/send/sendprint/reqno"));
- model.setValue("/root/send/sendprint/reqdeptcd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdeptcd")) );
-
- submit("TRRFE00701");
-
- for(var i=grd_rfehemhtlist.fixedRows;i<grd_rfehemhtlist.rows;i++){
- model.makeValue("/root/main/grid/rfehemhtlist[" + i + "]/rpirflag2nm", grd_rfehemhtlist.labelMatrix(i, grd_rfehemhtlist.colRef("rpirflag2")));
- }
-
- exeReportPreview("RPRFE00602", "XMLSTR");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn6_letter4" navindex="-1" visibility="hidden" style="left:165px; top:3px; width:80px; height:22px; ">
- <caption>전자결재</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fElctSanct();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_hidden" visibility="hidden" style="left:140px; top:685px; width:960px; height:80px; ">
- <input id="ipt_estimateamt" ref="/root/main/component/rfehemhtlist/estimateamt" class="input_default" disabled="true" visibility="hidden" format="#,###" style="left:725px; top:5px; width:80px; height:19px; text-align:right; "/>
- <caption id="cap_estimateamt" class="cell_1" visibility="hidden" style="left:643px; top:5px; width:80px; height:23px; vertical-align:middle; ">외주 견적</caption>
- <input id="ipt_nonworkdayno" ref="/root/main/component/rfehemhtlist/nonworkdayno" class="input_s_essential" visibility="hidden" format="999999999" style="left:330px; top:5px; width:125px; height:19px; text-align:right; "/>
- <input id="ipt_sancttrsmyn" ref="/root/init/sancttrsmyn" visibility="hidden" style="left:5px; top:30px; width:50px; height:19px; "/>
- <input id="ipt_rfehdabptotal" ref="/root/main/component/rfehemhtlist/rfehdabptotal" class="input_fix" disabled="true" visibility="hidden" format="#,###" style="left:547px; top:5px; width:85px; height:19px; text-align:right; "/>
- <input id="ipt_purcagresnnm" ref="/root/main/component/rfehemhtlist/purcagresnnm" class="output_fix" disabled="true" navindex="-1" visibility="hidden" style="left:314px; top:30px; width:27px; height:19px; "/>
- <input id="ipt_sanctid" ref="/root/main/component/rfehemhtlist/sanctid" visibility="hidden" style="left:530px; top:30px; width:25px; height:19px; "/>
- <input id="ipt_acpttm" ref="/root/main/component/rfehemhtlist/acpttm" visibility="hidden" style="left:471px; top:30px; width:25px; height:19px; "/>
- <caption id="cap_purcagresnnm" class="cell_1" visibility="hidden" style="left:237px; top:30px; width:74px; height:20px; vertical-align:middle; ">구매 결재자</caption>
- <caption id="caption11" class="cell_1" visibility="hidden" style="left:120px; top:30px; width:70px; height:20px; vertical-align:middle; ">결재일자</caption>
- <caption id="caption4" class="cell_1" visibility="hidden" style="left:5px; top:5px; width:100px; height:23px; vertical-align:middle; ">견 적</caption>
- <input id="ipt_outestimateamt" ref="/root/main/component/rfehemhtlist/outestimateamt" class="input_default" disabled="false" visibility="hidden" format="#,###" style="left:110px; top:5px; width:70px; height:19px; text-align:right; "/>
- <select1 id="cmb_rpirflag1" ref="/root/main/component/rfehemhtlist/rpirflag1" class="input_default" navindex="11" visibility="hidden" appearance="minimal" style="left:66px; top:55px; width:35px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_purcagredd" ref="/root/main/component/rfehemhtlist/purcagredd" class="input_default" disabled="true" navindex="9" visibility="hidden" format="yyyy-mm-dd" style="left:194px; top:30px; width:37px; height:19px; "/>
- <input id="ipt_insStatus" ref="/root/init/insStatus" visibility="hidden" style="left:60px; top:30px; width:50px; height:19px; "/>
- <input id="ipt_acptdeptcd" ref="/root/main/component/rfehemhtlist/acptdeptcd" visibility="hidden" style="left:446px; top:30px; width:25px; height:19px; "/>
- <input id="ipt_reductionamt" ref="/root/main/component/rfehemhtlist/reductionamt" class="input_default" disabled="false" visibility="hidden" format="#,###" style="left:269px; top:5px; width:70px; height:19px; text-align:right; "/>
- <caption id="cap_rpirflag1" class="cell_1" visibility="hidden" style="left:5px; top:55px; width:56px; height:23px; vertical-align:middle; ">고장유형</caption>
- <input id="ipt_deptaprvpsnid" ref="/root/main/component/rfehemhtlist/deptaprvpsnid" visibility="hidden" style="left:385px; top:30px; width:30px; height:19px; "/>
- <caption id="cap_rfehdabptotal" class="cell_1" visibility="hidden" style="left:465px; top:5px; width:80px; height:23px; vertical-align:middle; ">전 도 금</caption>
- <caption id="cap_reductionamt" class="cell_1" visibility="hidden" style="left:187px; top:5px; width:80px; height:23px; vertical-align:middle; ">절감액</caption>
- <input id="ipt_deptaprvdd" ref="/root/main/component/rfehemhtlist/deptaprvdd" visibility="hidden" style="left:416px; top:30px; width:30px; height:19px; "/>
- <caption id="cap_useyn" class="cell_1" visibility="hidden" style="left:115px; top:55px; width:60px; height:23px; vertical-align:middle; ">수리구분</caption>
- <bool id="bool_deptaprvyn" visibility="hidden" checkvalue="Y,N" overflow="visible" appearance="full" ref="/root/main/component/rfehemhtlist/deptaprvyn" style="left:460px; top:55px; width:30px; height:20px; border-style:none; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(bool_deptaprvyn.value == 'N')
- {
- ipt_deptaprvdd.value = "";
- ipt_deptaprvpsnid.value= "";
- }
- ]]>
- </script>
- </bool>
- <input id="ipt_acptpsnid" ref="/root/main/component/rfehemhtlist/acptpsnid" visibility="hidden" style="left:440px; top:55px; width:25px; height:19px; "/>
- <select1 id="cmb_deptaprvreqyn" ref="/root/main/component/rfehemhtlist/deptaprvreqyn" visibility="hidden" appearance="minimal" style="left:210px; top:55px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>승인불필요</label>
- <value>N</value>
- <label>승인</label>
- <value>Y</value>
- <label>재입력요청</label>
- <value>R</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_deptaprvpsnnm" ref="/root/main/component/rfehemhtlist/deptaprvpsnnm" disabled="true" style="left:310px; top:55px; width:85px; height:19px; "/>
- <button id="btn_uprfehemht" class="btn2_letter2" visibility="hidden" style="left:865px; top:5px; width:42px; height:19px; ">
- <caption>넘1</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if( messageBox("자산수리의 변경된 내용을 수정하시겠습니까?", "Q999") == 6)
- {
- if(grd_rfehemhtlist.rowStatus(grd_rfehemhtlist.row) != 1){
- grd_rfehemhtlist.addStatus(grd_rfehemhtlist.row, "update");
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("workstat")) = cmb_workstat.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("docustat")) = cmb_docustat.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpirflag1")) = cmb_rpirflag1.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpirflag2")) = cmb_rpirflag2.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("sanctid")) = ipt_sanctid.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("estimateamt")) = ipt_estimateamt.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reductionamt")) = ipt_reductionamt.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("custcd")) = ipt_custcd.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("nonworkdayno")) = ipt_nonworkdayno.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("lastrpirrslt")) = txt_lastrpirrslt.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpirenddd")) = ipt_rpirenddd.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpiramt")) = ipt_rpiramt.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chkpsn")) = ipt_chkpsn.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chkpsnnm")) = ipt_chkpsnnm.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chkdd")) = ipt_chkdd.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("useyn")) = rdo_useyn.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvyn")) = bool_deptaprvyn.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chrgtel")) = ipt_chrgtel.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvdd")) = ipt_deptaprvdd.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvpsnid")) = ipt_deptaprvpsnid.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("estiamt")) = ipt_estiamt.value;
- if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/chrgpsnid") == "")
- ipt_chrgpsnid.value = getUserInfo("userid");
- if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/acptpsnid") == "")
- ipt_acptpsnid.value = getUserInfo("userid");
- if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/acptdd") == "")
- ipt_acptdd.value = getCurrentDate("YYMMDD");
- if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/acpttm") == "")
- {
- var gDate = new Date();
- ipt_acpttm.value = gDate.getHours()+""+gDate.getMinutes();
- }
- if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/acptdeptcd") == "")
- ipt_acptdeptcd.value = getUserInfo("dutplcecd");
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chrgpsnid")) = ipt_chrgpsnid.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acptpsnid")) = ipt_acptpsnid.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acptdd")) = ipt_acptdd.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acpttm")) = ipt_acpttm.value;
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acptdeptcd")) = ipt_acptdeptcd.value;
- }
-
- fRfemdamkComponentsTF(false,'Y');
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_upRfemdamk" class="btn2_letter2" visibility="hidden" style="left:909px; top:5px; width:42px; height:19px; ">
- <caption>넘2</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if( messageBox("일별수리내역의 변경된 내용을 수정하시겠습니까?", "Q999") == 6)
- {
- if(grd_rfemdamklist.rowStatus(grd_rfemdamklist.row) != 1){
- grd_rfemdamklist.addStatus(grd_rfemdamklist.row, "update");
- }
-
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirdd")) = ipt_rpirdd.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("mainrpirpsn")) = ipt_mainrpirpsn.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("mainrpirpsnnm")) = ipt_mainrpirpsnnm.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("supprpirpsn")) = ipt_supprpirpsn.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("supprpirpsnnm")) = ipt_supprpirpsnnm.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirspec")) = txt_rpirspec.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirtm")) = ipt_rpirtm.value;
-
- fRfemdamkComponentsTF(false,'Y');
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter3" visibility="hidden" style="left:810px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(grd_rfehemhtlist.row >= 1 )
- {
- //행추가
- misfGridIUD(grd_rfemdamklist, "A");
- grd_rfemdamklist.dispatch("onrowchanged");
- btn_upRfemdamk.disabled = false;
- // model.copyNode("/root/main/grid/rfemdamklist[" + grd_rfemdamklist.row + "]", "/root/main/grid/rfehemhtlistt[" + grd_rfehemhtlist.row + "]");
-
- // 컴포넌트 노드 설정.
- //model.copyNode("/root/main/component/rfemdamklist" , "/root/main/grid/rfemdamklist[" + grd_rfemdamklist.row + "]");
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("instcd")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("instcd"));
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("fixtrseqmtflag")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("fixtrseqmtflag"));
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("reqdd")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd"));
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("reqno")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno"));
-
- // (true 비활성화 , false 활성화) , ( 'Y' 기본값 disabled)
- btn_upRfemdamk.disabled = false;
- fRfemdamkComponentsTF(false);
-
- model.refresh();
- }else
- {
- messageBox("의뢰일별 목록을", "C002");
- return;
- }
-
- ]]>
- </script>
- </button>
- <select1 id="rdo_useyn" ref="/root/main/component/rfehemhtlist/useyn" disabled="true" navindex="41" visibility="hidden" appearance="full" cols="2" overflow="hidden" style="left:505px; top:55px; width:92px; height:20px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/useyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|