123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>비품수리접수 및 결과 등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <grid>
- <rfehemhtlist/>
- <rfemdamklist/>
- <rfehdabplist/>
- </grid>
- <component>
- <rfehemhtlist>
- <bugtcd/>
- </rfehemhtlist>
- <rfemdamklist>
- </rfemdamklist>
- </component>
- <printdata>
- <data/>
- </printdata>
- </main>
- <send>
- <instcd/>
- <fixtrseqmtflag/>
- <workstat/>
- <reqdd1/>
- <reqdd2/>
- <chrgpsnid/>
- <chrgpsnnm/>
- <reqdeptcd/>
- <reqdeptnm/>
- <deptaprvyn/>
- <grid>
- <rfehemht/>
- <rfemdamk/>
- </grid>
- <sendresult/>
- <fixasetcd/>
- </send>
- <init>
- <radio1>
- <label>전체</label>
- <value/>
- <label>수리의뢰</label>
- <value>01</value>
- <label>수리접수</label>
- <value>02</value>
- <label>수리중</label>
- <value>03</value>
- <label>수리완료</label>
- <value>04</value>
- <label>인수완료</label>
- <value>05</value>
- <label>부품대기중</label>
- <value>06</value>
- <label>반송</label>
- <value>07</value>
- <label>수리불가</label>
- <value>08</value>
- </radio1>
- <rowtemp/>
- <rpirflag2>
- <label>내부</label>
- <value>1</value>
- <label>외부</label>
- <value>2</value>
- </rpirflag2>
- <acptflag>
- <label>수리</label>
- <value>1</value>
- <label>예방</label>
- <value>2</value>
- </acptflag>
- <comtemp/>
- <rpirflag>
- <label>비품</label>
- <value>1</value>
- <label>공사</label>
- <value>2</value>
- <label>구축물</label>
- <value>3</value>
- </rpirflag>
- <calcdocukind>
- <label>세금계산서</label>
- <value>1</value>
- <label>계산서</label>
- <value>2</value>
- <label>간이영수증</label>
- <value>3</value>
- <label>검수증</label>
- <value>4</value>
- <label>현금영수증</label>
- <value>5</value>
- <label>법인카드</label>
- <value>6</value>
- </calcdocukind>
- </init>
- <temp>
- <rfehemhtlist/>
- </temp>
- <song/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRFE00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/rfehemhtlist"/>
- <submission id="TXRFE00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/grid/rfehemhtlist" resultref="/root/temp"/>
- <submission id="TRRFE00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfehemht" resultref="/root/main/grid/rfemdamklist"/>
- <submission id="TRRFE00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfemdamk" resultref="/root/main/grid/rfehdabplist"/>
- <bind id="dabpamt" ref="/root/main/grid/rfehdabplist/acsrsmoney" calculate="../acsrsqty * ../acsrsamt" type="xsd:int"/>
- <submission id="TXRFE00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/send/sendresult"/>
- </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/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- var delnm = 0; // 행삭제시 수리비용에서 부품비용을 빼기 위한 변수
- function fInitialize()
- {
- if (getUserInfo("dutplceinstcd") == "017"){
- cap_execdept.visible = true;
- rdo_execdept.visible = true;
- txt_cmt.attribute("width") = "225px";
- }
- //초기화
- misfGridInit(grd_rfehemhtlist);
- misfGridInit(grd_rfemdamklist);
- misfGridInit(grd_rfehdabplist);
- misfGridInit(grd_temp);
-
- model.resetInstanceNode("/root/main/component/rfehemhtlist");
- model.resetInstanceNode("/root/send/grid");
- // 사용자 권한에 따른 기관코드 Setting. [(6)수리관리, (B)이력등록]
- rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"6","B");
- rszfComboBugtList(cmb_bugtcd,getUserInfo("dutplceinstcd"));
-
- //20081107 현업요구사항으로 수리상태 변경
- // misfComboComCdListMulti("R0055,R0055","grd_rfehemhtlist.workstat,cmb_workstat");
-
- // addComboItem("cmb_workstat", "청구승인의뢰", "00", "above");
- // rszGridAddComboItem("grd_rfehemhtlist.workstat", "청구승인의뢰", "00", "above");
-
- // 현재 날짜 기본 입력(6개월 간격 설정)
- var reqdate = getCurrentDate().toDate("YYYYMMDD");
- model.setValue(ipt_reqdd1S.attribute("ref"), reqdate.getAddDate(-6, "M").getDateFormat("YYYYMMDD") );
- model.setValue(ipt_reqdd2S.attribute("ref"), getCurrentDate());
-
- // 청구승인이 된것만 조회하기 위한 구분자 값.
- /*---------------------------------------------------------------------------------------------
- * [2007.11.28 HBH] 승인이 안되어도 이후 진행이 되게 해달라. 2007.11.28 8개병원 전체회의에서 결정
- * 하단 1줄 막음.
- ---------------------------------------------------------------------------------------------*/
- model.setValue("/root/send/deptaprvyn", "Y");
-
- misfMsterDetailSet(grd_rfehemhtlist, null, "TRRFE00501", "Y");
- misfMsterDetailSet(grd_rfemdamklist, null, "TRRFE00801", "Y");
- misfMsterDetailSet(grd_rfehdabplist, null, "TRRFE00802", "Y");
-
- // 기본 사용자 설정값
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/fixtrseqmtflag", "GE");
- fWorkStatusDisabled( 0 );
- // fdisabledTF(true);
- fInputButtonSetting();
-
- if(!checkAuth("X"))
- {
- btn_save.disabled = true;
- }
- //수리 청구 승인권한 여부 판별하여 Grid의 승인 컬럼을 설정.
- fdeptGrantYN();
-
- model.refresh();
- }
-
- //수리 청구 승인권한 여부 판별하여 Grid의 승인 컬럼을 설정.
- function fdeptGrantYN()
- {
- /* ---------------------------------------------------------------------------------------
- * [2007.12.12 HBH ] 청구주기 추가.
- * 수리,장비등 청구주기가 없는 것들은 '1'로셋팅
- ---------------------------------------------------------------------------------------*/
- // rszfGetPurcReqAuthInfo(opt_instcd.value, "S", getUserInfo("dutplcecd"), getUserInfo("userid"),"1"); //han
-
- rszfGetPurcReqAuthInfo(cmb_instcd.value, "S", getUserInfo("dutplcecd") , getUserInfo("userid"),"1");
-
- var reqaprvflag = rszfGetPurcAuthInfoByCond("reqaprvflag");
- var purcDeptCd = rszfGetPurcDeptCd(cmb_instcd.value);
- var userDeptCd = getUserInfo("dutplcecd");
-
- for(var fRow = grd_rfehemhtlist.fixedRows; fRow < grd_rfehemhtlist.rows; fRow++)
- {
- if( reqaprvflag == "1" )
- {
- grd_rfehemhtlist.isReadOnly(fRow,grd_rfehemhtlist.colRef("purcagreyn")) = true;
- //비품수리접수단부서장승인(수녀님)을 구매팀 담당자도 승인할수 있도록 승인란 항목 풀어줌
- }else if( reqaprvflag == "2" || purcDeptCd == userDeptCd )
- { //수리상태가 수리완료(04), 수리불가(08) , 재고지급(09), 외부수리(10) 일 경우만 체크할수 있도록 한다.
- //비품수리접수단부서장승인(수녀님)을 구매팀 담당자도 승인할수 있도록 승인란 항목 풀어줌
- if(grd_rfehemhtlist.valueMatrix(fRow, grd_rfehemhtlist.colRef("workstat")) == "04" || grd_rfehemhtlist.valueMatrix(fRow, grd_rfehemhtlist.colRef("workstat")) == "08"
- || grd_rfehemhtlist.valueMatrix(fRow, grd_rfehemhtlist.colRef("workstat")) == "09" || grd_rfehemhtlist.valueMatrix(fRow, grd_rfehemhtlist.colRef("workstat")) == "10")
- {
- grd_rfehemhtlist.isReadOnly(fRow,grd_rfehemhtlist.colRef("purcagreyn")) = false;
-
- }else{
- grd_rfehemhtlist.isReadOnly(fRow,grd_rfehemhtlist.colRef("purcagreyn")) = true;
- }
- }else{
- grd_rfehemhtlist.isReadOnly(fRow,grd_rfehemhtlist.colRef("purcagreyn")) = true;
- }
- }
- grd_rfehemhtlist.refresh();
- }
-
-
- function fRdoChangedInit()
- {
- //초기화
- misfGridInit(grd_rfehemhtlist);
- misfGridInit(grd_rfemdamklist);
- misfGridInit(grd_rfehdabplist);
- misfGridInit(grd_temp);
-
- model.resetInstanceNode("/root/main/component/rfehemhtlist");
- model.resetInstanceNode("/root/send/grid");
- // fdisabledTF(true);
-
- model.refresh();
- }
-
- // 수리상태에 따라 입력할수 있는 컨트롤들을 활성화및 비활성화 설정.
- function fWorkStatusDisabled(fstatus)
- {
-
- if( fstatus > 0 )
- {
- fdisabledTF( false);
-
- if(fstatus >= 1 && fstatus <= 3)
- {
- group1.disabled = false;
- fInputButtonSetting();
- }else if (fstatus >3 ) {
- group1.disabled = true;
- fdisabledTF(true);
- }
- else{
- group1.disabled = true;
- }
-
- }else{
- group1.disabled = true;
- fdisabledTF(true);
- }
-
- if ( fstatus == 3 ){
- txt_lastrpirrslt.disabled = false;
- }else{
- txt_lastrpirrslt.disabled = true;
- }
-
- if ( cmb_workstat.value == "08" ){
- txt_lastrpirrslt.disabled = false;
- cmb_rpirflag2.disabled = false;
- }
- }
-
- function fdisabledTF( fbool)
- {
- ipt_fixasetcd.disabled = true;
- ipt_goodmodel.disabled = true;
- ipt_fixasetnm.disabled = true;
- ipt_reqpsnnm.disabled = true;
- ipt_deptacptpsnnm.disabled = true;
-
- ipt_deptacptdd.disabled = true;
- ipt_installplcecd.disabled = true;
- ipt_installplcenm.disabled = true;
-
- ipt_depthngnm.disabled = true;
- ipt_reqtel.disabled = true;
-
- ipt_reqdd.disabled=true;
- ipt_reqno.disabled = true;
- ipt_acptdd.disabled = fbool;
-
- cmb_rpirflag1.disabled = true;
- cmb_rpirflag2.disabled = fbool;
-
- //cmb_workstat.disabled = fbool;
-
- // rdo_useyn.disabled = fbool;
-
- rdo_useyn.disabled = true; //han
-
- ipt_acptpsnid.disabled = fbool;
- btn_acptpsnid.disabled = fbool;
- ipt_acptpsnnm.disabled = fbool;
-
- txt_cmt.disabled = fbool;
-
- //txt_hdrncspec.disabled = true;
-
- //txt_lastrpirrslt.disabled = true;
-
- ipt_genrdd.disabled = true;
-
- ipt_chrgpsnid.disabled = fbool;
- ipt_chrgtel.disabled = fbool;
- btn_chrgpsnid.disabled = fbool;
- ipt_chrgpsnnm.disabled = fbool;
- }
-
- function fGridRowChangedEvent()
- {
- misfGridRowStatusChange(grd_temp, "/root/temp", "/root/main/component");
-
- if(getGridUpdateData(grd_temp) != "")
- {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- grd_rfehemhtlist.row = model.getValue("/root/init/rowtemp");
- model.refresh();
- return;
- }else{
- grd_temp.clearStatus();
- }
- }
-
- model.copyNode("/root/main/component/rfehemhtlist", "/root/main/grid/rfehemhtlist["+ grd_rfehemhtlist.row +"]");
- model.copyNode("/root/temp", "/root/main/component");
-
- model.setValue("/root/init/rowtemp", grd_rfehemhtlist.row);
-
- //수리현황조회.
- fSearchDataSet();
-
- //alert( grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("workstat")) );
-
- //alert( parseInt(grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("workstat"))) );
-
- fWorkStatusDisabled( parseInt(grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("workstat"))) );
-
- // fdisabledTF(false);
-
- model.refresh();
- grd_temp.row = 1;
- }
-
-
- //수리현황 조회.
- function fSearchDataSet()
- {
- misfGridInit(grd_rfemdamklist);
- misfGridInit(grd_rfehdabplist);
- // 일별 수리 내역 조회값 설정
- model.copyNode("/root/send/grid/rfehemht", "/root/main/grid/rfehemhtlist[" + grd_rfehemhtlist.row + "]");
-
- submit("TRRFE00801");
-
- if( (grd_rfemdamklist.rows - grd_rfemdamklist.fixedRows) > 0 )
- {
- grd_rfemdamklist.colDisabled(grd_rfemdamklist.colRef("rpirdd")) = true;
-
- grd_rfemdamklist.row = grd_rfemdamklist.fixedRows;
- grd_rfemdamklist.select(grd_rfemdamklist.row, grd_rfemdamklist.colRef("fixasetnm")) = true;
- grd_rfemdamklist.dispatch("onrowchanged");
-
- fInputButtonSetting();
- }else{
- fInputButtonSetting();
-
- }
-
- }
-
- //수리현황 DATA 유무에 따른 입력,행추가,행삭제 버튼 Disabled 설정
- function fInputButtonSetting()
- {
- if( (grd_rfemdamklist.rows - grd_rfemdamklist.fixedRows) > 0 )
- {
- btn_input.disabled = true;
- btn_del.disabled = false;
- btn_insRfehdabp.disabled = false;
- btn_delRfehdabp.disabled = false;
-
- }else{
- btn_input.disabled = false;
- btn_del.disabled = true;
- btn_insRfehdabp.disabled = true;
- btn_delRfehdabp.disabled = true;
- }
- }
-
- //수리현황을 삭제할때 부품목록의 Data 유무를 판단하여 수리현황내역을 삭제합니다.
- function fDelDamkCheck()
- {
- if( (grd_rfehdabplist.rows - grd_rfehdabplist.fixedRows) > 0 )
- {
- messageBox("부품목록의 Data를 모두 삭제 후에 수리현황내역을 삭제하여 주세요.", "");
- return;
- }
-
- misfGridIUD(grd_rfemdamklist, "D");
-
-
- if( '4' == grd_rfemdamklist.rowStatus(grd_rfemdamklist.row))
- {
- model.setValue("/root/main/component/rfehemhtlist/lastrpirrslt", "");
- model.setValue("/root/main/component/rfehemhtlist/custcd", "");
- }else if( grd_rfemdamklist.rows == grd_rfemdamklist.fixedRows ){
- model.setValue("/root/main/component/rfehemhtlist/lastrpirrslt", "");
- model.setValue("/root/main/component/rfehemhtlist/custcd", "");
- }else{
- fRpirspecAdd();
-
- }
- // model.refresh();
- }
-
- //수리일자별 부품목록List Search
- function fSearchDataDabp()
- {
- // 일별 수리 내역 조회값 설정
- model.copyNode("/root/send/grid/rfemdamk", "/root/main/grid/rfemdamklist[" + grd_rfemdamklist.row + "]");
-
- submit("TRRFE00802");
- }
-
-
- //수리현황 추가
- function fInputDamkMode()
- {
- misfGridIUD(grd_rfemdamklist, "A");
-
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("instcd")) = cmb_instcd.value;
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("mainrpirpsn")) = getUserInfo("userid");
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("mainrpirpsnnm")) = getUserInfo("usernm");
- 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("fixasetnm")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("fixasetnm"));
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirdd")) = getCurrentDate();
-
- }
-
- //부품목록 추가
- function fInputDabpAdd()
- {
- misfGridIUD(grd_rfehdabplist, "A");
-
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("instcd")) = cmb_instcd.value;
- 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("acsrsunit")) = "EA"
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty")) = 1;
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsamt")) = 0;
- grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsmoney")) = 0;
- }
-
- function fRpirspecAdd()
- {
- var totalCmt = "";
- var totalCmtDD = grd_rfemdamklist.valueMatrix( grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirdd"));
- ipt_accountdd.value = grd_rfemdamklist.valueMatrix( grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirdd"));
- totalCmt += ( totalCmtDD.substr(0,4) + "-" + totalCmtDD.substr(4,2) + "-" + totalCmtDD.substr(6,2) + " >>\n"
- + grd_rfemdamklist.valueMatrix( grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirspec")) );
-
-
- model.setValue("/root/main/component/rfehemhtlist/lastrpirrslt", totalCmt);
- }
-
- //수리상태 변경시(수리의뢰 및 청구 상태로 되돌릴시....) 현재 수리현황 내역 및 사용부품목록이 있는지 판단하여
- //설정가능한 수리상태 체크.
- function fWorkStatusComboCheck()
- {
- var bool = false;
- if( cmb_workstat.value == "00" )
- {
- messageBox("수리상태를 청구승인의뢰 상태로 되돌릴 수 없습니다.", "");
- cmb_workstat.value = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("workstat"));
- bool = true;
- }else if( grd_rfemdamklist.rows != grd_rfemdamklist.fixedRows )
- {
- if( cmb_workstat.value == "00" || cmb_workstat.value == "01" ) {
- messageBox("수리내역이 존재함으로 현재 수리상태를 수리의뢰 및 청구승인의뢰 상태로 되돌릴 수 없습니다.", "");
- cmb_workstat.value = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("workstat"));
- bool = true;
- }
- }
-
- //수리 상태 변경에 따라 항목들이 disable되는 부분 조절하는데 현재는 다 풀어놓는다.
- //fWorkStatusDisabled( parseInt(cmb_workstat.value) );
-
- return bool;
- }
- //부서장 승인 여부 저장
- function fupdateCheckSave(i)
- {
- misfGridRowStatusChange(grd_temp, "/root/temp", "/root/main/component" );
-
- if(getGridUpdateData(grd_temp) != "" )
- {
- model.copyNode("/root/main/grid/rfehemhtlist["+ i +"]", "/root/main/component/rfehemhtlist");
- grd_rfehemhtlist.addStatus( i , grd_temp.rowStatus(grd_temp.row));
-
- model.resetInstanceNode("/root/main/component/rfehemhtlist");
- misfGridInit(grd_temp);
- }
- // if(getGridUpdateData(grd_rfehemhtlist) == "")
- // {
- // messageBox("변경된 데이터가","I004");
- // return;
- // }
- misfSave("TXRFE00801");
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error")
- {
- btn_search.dispatch("DOMActivate");
- }
- //misfMsterDetailRetrieve();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">비품수리접수 및 결과 등록</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <line id="line28" class="line_2" style="x1:639px; y1:205px; x2:1194px; y2:205px; "/>
- <line id="line1" class="line_1" style="x1:639px; y1:106px; x2:1194px; y2:106px; "/>
- <line id="line38" class="line_2" style="x1:639px; y1:302px; x2:1194px; y2:302px; "/>
- <line id="line37" class="line_2" style="x1:639px; y1:253px; x2:1194px; y2:253px; "/>
- <line id="line14" class="line_2" style="x1:639px; y1:382px; x2:1194px; y2:382px; "/>
- <line id="line24" class="line_3" style="x1:0px; y1:478px; x2:1194px; y2:478px; "/>
- <line id="line35" class="line_2" style="x1:639px; y1:229px; x2:1194px; y2:229px; "/>
- <line id="line10" class="line_2" style="x1:639px; y1:133px; x2:1194px; y2:133px; "/>
- <line id="line9" class="line_2" style="x1:639px; y1:181px; x2:1194px; y2:181px; "/>
- <line id="line40" class="line_2" style="x1:639px; y1:325px; x2:1194px; y2:325px; "/>
- <line id="line8" class="line_2" style="x1:639px; y1:157px; x2:1194px; y2:157px; "/>
- <group id="grp_sea" navindex="-1" style="left:0px; top:10px; width:1195px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:65px; "/>
- <caption id="cap_fixtrseqmtflag" class="search_name" style="left:245px; top:10px; width:86px; height:17px; ">자산구분 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="11" style="left:1124px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd"))return;
- if(!isRequiredControls("ipt_reqdd1S"))return;
- if(!isRequiredControls("ipt_reqdd2S"))return;
- if(!isRequiredControls("cmb_fixtrseqmtflag"))return;
-
- fRdoChangedInit();
-
- submit("TRRFE00501");
-
- grd_rfehemhtlist.row = grd_rfehemhtlist.fixedRows;
- grd_rfehemhtlist.select(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("fixasetnm")) = true;
- grd_rfehemhtlist.dispatch("onrowchanged");
-
- misfSetReadOnlyCol(grd_rfehemhtlist, "acptflag,reqdd,reqno,depthngnm,fixasetnm,workstat", true);
- fdeptGrantYN();
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:10px; x2:1110px; y2:58px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_reqdeptcd" class="icon_search" navindex="-1" style="left:646px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_reqdeptcdS, "", "reqdeptcd,reqdeptnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_reqdeptcdS" ref="/root/send/reqdeptcd" class="input_default" navindex="5" style="left:542px; top:10px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptcdS.value.length == 0)
- ipt_reqpsnnm.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_reqdeptnmS" ref="/root/send/reqdeptnm" class="input_default" navindex="6" style="left:668px; top:10px; width:160px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptnmS.value.length == 0)
- ipt_reqdeptcdS.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:456px; top:10px; width:86px; height:17px; ">의뢰부서 :</caption>
- <caption id="cap_reqdd1S" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">의뢰일자 :</caption>
- <input id="ipt_reqdd1S" ref="/root/send/reqdd1" class="input_s_essential" navindex="3" inputtype="date" style="left:100px; top:35px; width:120px; height:19px; "/>
- <input id="ipt_reqdd2S" ref="/root/send/reqdd2" class="input_s_essential" navindex="4" inputtype="date" style="left:240px; top:35px; width:120px; height:19px; "/>
- <button id="btn_chrgpsnidS" class="icon_search" navindex="-1" visibility="visible" style="left:646px; top:35px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("01", ipt_chrgpsnidS, "", "chrgpsnid,chrgpsnnm");
- model.refresh();
- ]]>
- </script>
- <caption/>
- </button>
- <caption id="caption20" class="search_name" visibility="visible" style="left:458px; top:35px; width:87px; height:17px; ">담 당 자 :</caption>
- <input id="ipt_chrgpsnidS" ref="/root/send/chrgpsnid" class="input_default" navindex="7" visibility="visible" style="left:542px; top:35px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_chrgpsnidS.value.length == 0)
- ipt_chrgpsnnmS.value = "";
- else
- misfValidationCheck("01-1", "", "chrgpsnid,chrgpsnnm");
- // misfValidationCheck("12","","chrgpsnid,chrgpsnnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_chrgpsnnmS" ref="/root/send/chrgpsnnm" class="input_default" navindex="8" visibility="visible" style="left:668px; top:35px; width:160px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_chrgpsnnmS.value.length == 0)
- ipt_chrgpsnidS.value = "";
- else
- misfValidationCheck("01-2", "", "chrgpsnid,chrgpsnnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_fixtrseqmtflag" ref="/root/send/fixtrseqmtflag" class="combo_s_essential" disabled="true" navindex="2" appearance="minimal" style="left:330px; top:10px; width:95px; height:19px; ">
- <choices>
- <item selected="true">
- <label>비품</label>
- <value>GE</value>
- </item>
- <item>
- <label>의료장비</label>
- <value>EQ</value>
- </item>
- </choices>
- </select1>
- <caption id="caption22" class="search_name" style="left:860px; top:10px; width:85px; height:17px; ">상 태 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:100px; top:10px; width:131px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
- <caption id="caption12" style="left:225px; top:35px; width:20px; height:20px; font-weight:bold; ">~</caption>
- <select1 id="cmb_workstatS" ref="/root/send/workstat" class="combo_default" navindex="9" appearance="minimal" style="left:945px; top:10px; width:120px; height:19px; border-style:solid; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>청구승인의뢰</label>
- <value>00</value>
- </item>
- <item>
- <label>수리의뢰</label>
- <value>01</value>
- </item>
- <item>
- <label>수리중</label>
- <value>03</value>
- </item>
- <item>
- <label>외부수리</label>
- <value>10</value>
- </item>
- <item>
- <label>수리완료</label>
- <value>04</value>
- </item>
- <item>
- <label>수리불가</label>
- <value>08</value>
- </item>
- <item>
- <label>재고지급</label>
- <value>09</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // fRdoChangedInit();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption16" class="search_name" style="left:860px; top:35px; width:86px; height:17px; ">자산코드 :</caption>
- <input id="ipt_fixasetcdS" ref="/root/send/fixasetcd" class="input_default" navindex="10" visibility="visible" imemode="alpha" maxlength="14" _chartype="upper" style="left:945px; top:35px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:91px; width:157px; height:13px; ">의뢰내역</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:106px; x2:634px; y2:106px; "/>
- <caption id="caption60" class="cell_1" style="left:639px; top:255px; width:90px; height:23px; vertical-align:middle; ">수리상태</caption>
- <caption id="caption32" class="cell_1" style="left:639px; top:207px; width:90px; height:23px; vertical-align:middle; ">의뢰번호</caption>
- <caption id="caption5" class="cell_1" style="left:639px; top:183px; width:90px; height:23px; vertical-align:middle; ">의뢰부서</caption>
- <input id="ipt_depthngnm" ref="/root/main/component/rfehemhtlist/depthngnm" class="input_default" navindex="21" style="left:731px; top:185px; width:123px; height:19px; "/>
- <input id="ipt_installplcecd" ref="/root/main/component/rfehemhtlist/installplcecd" class="input_default" navindex="19" style="left:947px; top:161px; width:106px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:855px; top:159px; width:90px; height:23px; vertical-align:middle; ">설치장소</caption>
- <caption id="caption14" class="cell_1" style="left:639px; top:352px; width:90px; height:50px; vertical-align:middle; ">의뢰내역</caption>
- <input id="ipt_reqtel" ref="/root/main/component/rfehemhtlist/reqtel" class="input_default" disabled="true" navindex="22" editable="true" maxlength="15" style="left:947px; top:185px; width:106px; height:19px; "/>
- <caption id="cap_reqtel" class="cell_1" style="left:855px; top:183px; width:90px; height:23px; vertical-align:middle; ">의뢰자 연락처</caption>
- <caption id="caption18" class="cell_1" style="left:639px; top:403px; width:90px; height:72px; vertical-align:middle; ">수리내역</caption>
- <input id="ipt_genrdd" ref="/root/main/component/rfehemhtlist/genrdd" class="input_default" navindex="25" format="yyyy-mm-dd" style="left:1040px; top:208px; width:152px; height:19px; text-align:center; "/>
- <textarea id="txt_lastrpirrslt" ref="/root/main/component/rfehemhtlist/lastrpirrslt" navindex="41" editable="true" style="left:731px; top:405px; width:464px; height:69px; "/>
- <caption id="caption26" class="cell_1" style="left:639px; top:159px; width:90px; height:23px; vertical-align:middle; ">의뢰자</caption>
- <caption id="caption27" class="cell_1" style="left:639px; top:111px; width:90px; height:47px; vertical-align:middle; ">자산코드</caption>
- <input id="ipt_fixasetcd" ref="/root/main/component/rfehemhtlist/fixasetcd" class="input_default" navindex="15" style="left:731px; top:113px; width:151px; height:19px; "/>
- <input id="ipt_fixasetnm" ref="/root/main/component/rfehemhtlist/fixasetnm" class="input_default" navindex="17" style="left:731px; top:137px; width:464px; height:19px; "/>
- <input id="ipt_goodmodel" ref="/root/main/component/rfehemhtlist/goodmodel" class="input_default" navindex="16" style="left:884px; top:113px; width:311px; height:19px; "/>
- <input id="ipt_reqpsnnm" ref="/root/main/component/rfehemhtlist/reqpsnnm" class="input_default" navindex="18" style="left:731px; top:161px; width:123px; height:19px; "/>
- <input id="ipt_installplcenm" ref="/root/main/component/rfehemhtlist/installplcenm" class="input_default" navindex="20" style="left:1055px; top:161px; width:137px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:855px; top:255px; width:90px; height:23px; vertical-align:middle; ">수리형태</caption>
- <select1 id="cmb_workstat" ref="/root/main/component/rfehemhtlist/workstat" class="combo_default" navindex="30" appearance="minimal" style="left:731px; top:257px; width:123px; height:19px; text-align:center; ">
- <choices>
- <!-- 접수확인창에서는 삭제
- <item>
- <label>청구승인의뢰</label>
- <value>00</value>
- </item>
- -->
- <item>
- <label>수리의뢰</label>
- <value>01</value>
- </item>
- <item>
- <label>수리중</label>
- <value>03</value>
- </item>
- <item>
- <label>외부수리</label>
- <value>10</value>
- </item>
- <item>
- <label>수리완료</label>
- <value>04</value>
- </item>
- <item>
- <label>수리불가</label>
- <value>08</value>
- </item>
- <item>
- <label>재고지급</label>
- <value>09</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- // 수리상태 변경시 오류가 발생하면 기본데이터를 변경하지 않게 하였스빈다.
- if( fWorkStatusComboCheck() ) return;
-
-
- //접수 유무에 따른 접수일자 설정.
- if( parseInt(cmb_workstat.value) > 1 )
- {
- model.setValue(ipt_acptdd.attribute("ref"), getCurrentDate());
- model.setValue(rdo_useyn.attribute("ref"), "1");
- model.setValue(ipt_acptpsnid.attribute("ref"), getUserInfo("userid") );
- model.setValue(ipt_acptpsnnm.attribute("ref"), getUserInfo("usernm"));
- //[2007.11.29 HBH 추가
- model.setValue(ipt_chrgpsnid.attribute("ref"), getUserInfo("userid") );
- model.setValue(ipt_chrgpsnnm.attribute("ref"), getUserInfo("usernm"));
-
- }else{
- model.setValue(ipt_acptdd.attribute("ref"), "");
- model.setValue(rdo_useyn.attribute("ref"), "");
- model.setValue(ipt_acptpsnid.attribute("ref"), "");
- model.setValue(ipt_acptpsnnm.attribute("ref"), "");
- //[2007.11.29 HBH 추가
- model.setValue(ipt_chrgpsnid.attribute("ref"), "" );
- model.setValue(ipt_chrgpsnnm.attribute("ref"), "");
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption24" class="cell_1" style="left:639px; top:304px; width:90px; height:23px; vertical-align:middle; ">비고</caption>
- <textarea id="txt_cmt" ref="/root/main/component/rfehemhtlist/cmt" navindex="36" style="left:731px; top:306px; width:460px; height:19px; "/>
- <textarea id="txt_hdrncspec" ref="/root/main/component/rfehemhtlist/hdrncspec" navindex="40" editable="false" style="left:731px; top:350px; width:464px; height:52px; "/>
- <caption id="cap_genrdd" class="cell_1" style="left:948px; top:206px; width:90px; height:23px; vertical-align:middle; ">발생일자</caption>
- <input id="ipt_reqno" ref="/root/main/component/rfehemhtlist/reqno" class="input_default" navindex="24" style="left:840px; top:209px; width:105px; height:19px; "/>
- <select1 id="cmb_rpirflag2" ref="/root/main/component/rfehemhtlist/rpirflag2" class="combo_default" navindex="31" appearance="minimal" style="left:947px; top:257px; width:83px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>자체수리</label>
- <value>1</value>
- </item>
- <item>
- <label>외부수리</label>
- <value>2</value>
- </item>
- <item>
- <label>점검지급</label>
- <value>3</value>
- </item>
- <item>
- <label>부품</label>
- <value>4</value>
- </item>
- <item>
- <label>폐기</label>
- <value>5</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_useyn" ref="/root/main/component/rfehemhtlist/useyn" disabled="true" navindex="32" overflow="visible" appearance="full" cols="2" style="left:1093px; top:258px; width:93px; height:20px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/rpirflag2">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" class="cell_1" style="left:1032px; top:255px; width:59px; height:23px; vertical-align:middle; ">청구구분</caption>
- <datagrid id="grd_temp" nodeset="/root/temp/rfehemhtlist" visibility="hidden" caption="caption1^caption2^caption3" colsep="^" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:230px; width:625px; height:75px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="fixtrseqmtflag" visibility="hidden"/>
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="reqno" style="text-align:right; "/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="depthngnm"/>
- <col ref="reqpsnid" visibility="hidden"/>
- <col ref="reqpsnnm" visibility="hidden" style="text-align:center; "/>
- <col ref="genrdd" visibility="hidden"/>
- <col ref="genrtm" visibility="hidden"/>
- <col ref="chrgpsnid" visibility="hidden"/>
- <col ref="chrgpsnnm" visibility="hidden"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="acpttm" visibility="hidden"/>
- <col ref="acptpsnid" visibility="hidden"/>
- <col ref="acptpsnnm" visibility="hidden"/>
- <col checkvalue="Y,N" type="checkbox" visibility="hidden"/>
- <col ref="acptdeptcd" visibility="hidden"/>
- <col ref="acptdeptnm" visibility="hidden"/>
- <col ref="fixasetnm"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <col ref="workstat" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="itemnm" visibility="hidden"/>
- <col ref="goodmodel" visibility="hidden"/>
- <col ref="hdrncspec" visibility="hidden"/>
- <col ref="rpirflag1" visibility="hidden"/>
- <col ref="rpirflag2" visibility="hidden"/>
- <col ref="useyn" visibility="hidden"/>
- <col ref="lastrpirstat" visibility="hidden"/>
- <col ref="acptpsncnfm" visibility="hidden"/>
- <col ref="deptacptdd" visibility="hidden"/>
- <col ref="deptacptpsnid" visibility="hidden"/>
- <col ref="deptacptpsnnm" visibility="hidden"/>
- <col ref="rpiramt" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="rpirenddd" visibility="hidden"/>
- <col ref="chrgtel" visibility="hidden"/>
- <col ref="sanctyn" visibility="hidden"/>
- <col ref="chrgpsncmt" visibility="hidden"/>
- <col ref="sanctdd" visibility="hidden"/>
- <col ref="nonworkdayno" visibility="hidden"/>
- <col ref="emaildeliveyn" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <col ref="installplcenm" visibility="hidden"/>
- <col ref="lastrpirrslt" visibility="hidden"/>
- <col ref="acptflag"/>
- <col ref="custcd" visibility="hidden"/>
- <col ref="reqtel" visibility="hidden"/>
- <col ref="bugtyy" visibility="hidden"/>
- <col ref="bugtcd" visibility="hidden"/>
- <col ref="stdysubjno" visibility="hidden"/>
- <col ref="stdysubjnm" visibility="hidden"/>
- <col ref="deptaprvyn" visibility="hidden"/>
- <col ref="deptaprvpsnid" visibility="hidden"/>
- <col ref="deptaprvdd" visibility="hidden"/>
- <col ref="accountdd" visibility="hidden"/>
- <col ref="calcdocukind" visibility="hidden"/>
- <col ref="purcagredd" visibility="hidden"/>
- </datagrid>
- <input id="ipt_reqdd" ref="/root/main/component/rfehemhtlist/reqdd" class="input_default" navindex="23" style="left:731px; top:209px; width:107px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:639px; top:231px; width:90px; height:23px; vertical-align:middle; ">예산년도/계정</caption>
- <line id="line5" class="line_2" style="x1:638px; y1:278px; x2:1193px; y2:278px; "/>
- <caption id="caption13" class="cell_1" style="left:855px; top:231px; width:90px; height:23px; vertical-align:middle; ">연구과제</caption>
- <input id="ipt_bugtyy" ref="/root/main/component/rfehemhtlist/bugtyy" class="input_default" disabled="true" navindex="26" style="left:731px; top:233px; width:49px; height:19px; "/>
- <select1 id="cmb_bugtcd" ref="/root/main/component/rfehemhtlist/bugtcd" disabled="true" navindex="27" appearance="minimal" style="left:781px; top:233px; width:73px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_stdysubjnm" ref="/root/main/component/rfehemhtlist/stdysubjnm" class="input_dafault" disabled="true" navindex="29" style="left:1055px; top:234px; width:137px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_stdysubjnm.value != "")
- {
- rszfValidationCheck("TRRSD00261", "studylist", "refcond,instcd,stdysubjnm", "stdysubjnm," + cmb_instcd.value + "," + ipt_stdysubjnm.value, "",
- "stdysubjno,stdysubjnm", ipt_stdysubjnm, "SPRSD00260", "instcd", "cmb_instcd");
- }else
- {
- ipt_stdysubjno.value = "";
- ipt_stdysubjnm.value = "";
- }
-
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_stdysubjno" ref="/root/main/component/rfehemhtlist/stdysubjno" class="input_dafault" disabled="true" navindex="28" style="left:947px; top:234px; width:106px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_stdysubjno.value != "")
- {
- rszfValidationCheck("TRRSD00261", "studylist", "refcond,instcd,stdysubjno", "stdysubjno," + cmb_instcd.value + "," + ipt_stdysubjno.value, "",
- "stdysubjno,stdysubjnm", ipt_stdysubjno, "SPRSD00260", "instcd", "cmb_instcd");
- }else
- {
- ipt_stdysubjno.value = "";
- ipt_stdysubjnm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_chrgtel" class="cell_1" style="left:946px; top:280px; width:90px; height:23px; vertical-align:middle; ">담당자 연락처</caption>
- <button id="btn_chrgpsnid" class="icon_search" navindex="-1" style="left:831px; top:284px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("01", ipt_chrgpsnid, "", "chrgpsnid,chrgpsnnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_chrgpsnid" ref="/root/main/component/rfehemhtlist/chrgpsnid" navindex="33" style="left:731px; top:282px; width:97px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("01-1", "", "chrgpsnid,chrgpsnnm");
- // misfValidationCheck("12", "", "chrgpsnid,chrgpsnnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_chrgpsnid" class="cell_1" style="left:639px; top:280px; width:90px; height:23px; vertical-align:middle; ">담당자</caption>
- <input id="ipt_chrgpsnnm" ref="/root/main/component/rfehemhtlist/chrgpsnnm" class="input_search" navindex="34" style="left:849px; top:282px; width:95px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("01-2", "", "chrgpsnid,chrgpsnnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_chrgtel" ref="/root/main/component/rfehemhtlist/chrgtel" navindex="35" maxlength="15" style="left:1038px; top:282px; width:154px; height:19px; text-align:left; "/>
- <group id="group1" style="left:0px; top:479px; width:1195px; height:256px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:213px; "/>
- <caption id="caption81" class="tit_2" style="left:2px; top:136px; width:70px; height:13px; ">부품목록</caption>
- <button id="btn_insRfehdabp" class="btn2_letter3" disabled="true" navindex="50" style="left:1085px; top:134px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInputDabpAdd();
- ]]>
- </script>
- </button>
- <datagrid id="grd_rfehdabplist" nodeset="/root/main/grid/rfehdabplist" caption="부품명^규격^수량^단위^단가^금액" colsep="^" colwidth="485, 184, 100, 59, 100, 135" dataheight="25" ellipsis="true" rowheader="update" rowheight="25" rowsep="|" tooltip="true" navindex="49" style="left:0px; top:156px; width:1194px; height:89px; ">
- <col ref="acsrsnm" type="input" style="left:500px; top:23px; width:300px; height:23px; text-align:left; "/>
- <col ref="acsrsspec" type="input" style="text-align:left; "/>
- <col ref="acsrsqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="acsrsunit" style="text-align:left; "/>
- <col ref="acsrsamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="acsrsmoney" format="#,###" style="text-align:right; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="fixtrseqmtflag" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="rpirdd" visibility="hidden"/>
- <col ref="rpirseq" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // model.setValue("/root/main/grid/rfemdamklist/rfehdabptotal", model.getValue("/root/main/grid/rfehdabplist["+ (count - 1) +"]/acsrsmoney"));
- ]]>
- </script>
- </datagrid>
- <button id="btn_delRfehdabp" class="btn2_letter3" disabled="true" navindex="51" style="left:1140px; top:134px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rfehdabplist, "D");
- delnm = delnm + Number(model.getValue("/root/main/grid/rfehdabplist["+grd_rfehdabplist.row+"]/acsrsmoney"));
- ]]>
- </script>
- </button>
- <line id="line29" class="line_1" style="x1:0px; y1:26px; x2:1195px; y2:25px; "/>
- <datagrid id="grd_rfemdamklist" nodeset="/root/main/grid/rfemdamklist" autoresize="true" caption="수리구분^처리자^처리자^수리/계산서일자^계산서유형^수리비용^지불필여부^거래처^거래처^수리내역" colsep="^" colwidth="76, 90, 80, 97, 90, 85, 67, 90, 101, 218, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" navindex="42" style="left:0px; top:30px; width:1194px; height:100px; ">
- <col class="gridcombo" ref="rpirflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/rpirflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="mainrpirpsn" type="inputbutton" style="text-align:center; "/>
- <col ref="mainrpirpsnnm" type="input" style="text-align:center; "/>
- <col class="input_essential" ref="rpirdd" type="inputdate" _key="true" style="text-align:center; "/>
- <col ref="calcdocukind" type="combo">
- <choices>
- <itemset nodeset="/root/init/calcdocukind">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="rfehdabptotal" format="#,###" style="text-align:right; "/>
- <col checkvalue="2,1" ref="paycond" type="checkbox"/>
- <col ref="custcd" type="inputbutton" style="text-align:center; "/>
- <col ref="custnm" type="input" style="text-align:center; "/>
- <col ref="rpirspec" type="input" style="text-align:left; "/>
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col ref="fixtrseqmtflag" visibility="hidden" style="text-align:left; "/>
- <col ref="reqdd" visibility="hidden" style="text-align:left; "/>
- <col ref="reqno" visibility="hidden" style="text-align:left; "/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- grd_rfemdamklist.dispatch("onmouseup");
-
- //수리현황일자별 부품목록 조회.
- fSearchDataDabp();
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_rfemdamklist.col == grd_rfemdamklist.colRef("mainrpirpsn")) {// 처리자 코드
- misfValidationCheck("01-1", "", "mainrpirpsn,mainrpirpsnnm" );
- }
- else if (grd_rfemdamklist.col == grd_rfemdamklist.colRef("mainrpirpsnnm")){// 처리자명
- misfValidationCheck("01-2", "", "mainrpirpsn,mainrpirpsnnm" );
- }
- else if(grd_rfemdamklist.col == grd_rfemdamklist.colRef("custnm")){//거래처명
- if(grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("custnm")).length == 0)
- {
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("custcd")) = "";
- }else
- {
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- cmb_instcd.value + "," + "custnm," + grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("custnm")), "", "custcd,custnm",
- grd_rfemdamklist, "SPRSD00220", "instcd","cmb_instcd");
- }
-
- // 거래처 코드가 변경되면 마스터에 입력한다.
- model.setValue("/root/main/component/rfehemhtlist/custcd", grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("custcd")) );
- model.setValue("/root/main/component/rfehemhtlist/custnm", grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("custnm")) );
- }
- else if(grd_rfemdamklist.col == grd_rfemdamklist.colRef("custcd")){//거래처코드
- if(grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("custcd")).length == 0)
- {
- grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("custnm")) = "";
- }
- else
- {
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- cmb_instcd.value + "," + "entrregno," + grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("custcd")), "", "custcd,custnm",
- grd_rfemdamklist, "SPRSD00220", "instcd","cmb_instcd");
- }
-
- // 거래처 코드가 변경되면 마스터에 입력한다.
- model.setValue("/root/main/component/rfehemhtlist/custcd", grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("custcd")) );
- model.setValue("/root/main/component/rfehemhtlist/custnm", grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("custnm")) );
-
- }else if( (grd_rfemdamklist.col == grd_rfemdamklist.colRef("rpirdd")) || (grd_rfemdamklist.col == grd_rfemdamklist.colRef("rpirspec")) )
- {
- fRpirspecAdd();
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_rfemdamklist.col == grd_rfemdamklist.colRef("custcd")) {// 그리드 거래처 클릭
-
- rszfOpenPopUpListByWndName(grd_rfemdamklist,"","custcd,custnm","SPRSD00220","instcd","cmb_instcd");
-
- // 거래처 코드가 변경되면 마스터에 입력한다.
- model.setValue("/root/main/component/rfehemhtlist/custcd", grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("custcd")) );
- model.setValue("/root/main/component/rfehemhtlist/custnm", grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("custnm")) );
-
- }else if(grd_rfemdamklist.col == grd_rfemdamklist.colRef("mainrpirpsn")){//처리자 클릭
-
- misfOpenPopUpList("01", grd_rfemdamklist, "", "mainrpirpsn,mainrpirpsnnm");
-
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption15" class="tit_2" style="left:2px; top:8px; width:83px; height:13px; ">수리현황</caption>
- <button id="btn_input" class="btn2_letter2" disabled="true" navindex="43" style="left:1106px; top:4px; width:42px; height:19px; ">
- <caption>입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInputDamkMode();
- fInputButtonSetting();
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter2" disabled="true" navindex="44" style="left:1150px; top:4px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelDamkCheck();
- fInputButtonSetting();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_excel" class="btn5_letter5" navindex="13" style="left:558px; top:85px; width:75px; height:19px; ">
- <caption>Excel 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( grd_rfehemhtlist.rows - grd_rfehemhtlist.fixedRows > 0 ) {
- var fileName = "비품수리의뢰내역_" + getCurrentDate();
- var fileName = window.fileDialog("save", ",", false, fileName, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_rfehemhtlist.saveExcel(fileName, "sheetname:비품수리의뢰내역;colhiddenextend:true;");
- } else {
- messageBox("저장 데이터가","I004");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_deptacptdd" ref="/root/main/component/rfehemhtlist/deptacptdd" class="input_default" visibility="hidden" style="left:442px; top:412px; width:68px; height:19px; "/>
- <input id="ipt_deptacptpsnnm" ref="/root/main/component/rfehemhtlist/deptacptpsnnm" class="input_default" visibility="hidden" style="left:563px; top:388px; width:51px; height:19px; "/>
- <caption id="caption23" class="cell_1" visibility="hidden" style="left:516px; top:386px; width:35px; height:23px; vertical-align:middle; ">인수자</caption>
- <caption id="caption7" class="cell_1" visibility="hidden" style="left:395px; top:410px; width:35px; height:23px; vertical-align:middle; ">완료인수일</caption>
- <button id="btn_acptpsnid" class="icon_search" visibility="hidden" style="left:393px; top:341px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("01", ipt_acptpsnid, "", "acptpsnid,acptpsnnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_acptpsnid" ref="/root/main/component/rfehemhtlist/acptpsnid" visibility="hidden" style="left:354px; top:342px; width:33px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("01-1", "", "acptpsnid,acptpsnnm");
- // misfValidationCheck("12", "", "acptpsnid,acptpsnnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_acptpsnid" class="cell_1" visibility="hidden" style="left:310px; top:340px; width:40px; height:23px; vertical-align:middle; ">접수자</caption>
- <caption id="cap_acptdd" class="cell_1" visibility="hidden" style="left:498px; top:340px; width:37px; height:23px; vertical-align:middle; ">접수일자</caption>
- <input id="ipt_acptpsnnm" ref="/root/main/component/rfehemhtlist/acptpsnnm" class="input_defalut" visibility="hidden" style="left:425px; top:342px; width:35px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("01-2", "", "acptpsnid,acptpsnnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_acptdd" ref="/root/main/component/rfehemhtlist/acptdd" visibility="hidden" inputtype="date" style="left:546px; top:342px; width:67px; height:19px; text-align:center; "/>
- <caption id="caption31" class="cell_1" visibility="hidden" style="left:510px; top:440px; width:35px; height:23px; vertical-align:middle; ">고장유형</caption>
- <select1 id="cmb_rpirflag1" ref="/root/main/component/rfehemhtlist/rpirflag1" class="combo_default" visibility="hidden" appearance="minimal" style="left:557px; top:442px; width:68px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption51" class="cell_1" visibility="hidden" style="left:250px; top:370px; width:35px; height:23px; vertical-align:middle; ">거래처</caption>
- <input id="ipt_custnm" ref="/root/main/component/rfehemhtlist/custnm" class="input_fix" visibility="hidden" appearance="input" style="left:355px; top:370px; width:63px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_custnm.value.length == 0)
- ipt_custcd.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- cmb_instcd.value + "," + "custnm," + ipt_custnm.value, "", "custcd,custnm",
- ipt_custnm, "SPRSD00220", "instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_custcd" ref="/root/main/component/rfehemhtlist/custcd" visibility="hidden" style="left:297px; top:372px; width:15px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_custcd.value.length == 0)
- ipt_custnm.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- cmb_instcd.value + "," + "entrregno," + ipt_custcd.value, "", "custcd,custnm",
- ipt_custcd, "SPRSD00220", "instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_prodplce");
- else model.setFocus("ipt_goodmodel");
- }
- event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_suplplcecd" class="icon_search" visibility="hidden" style="left:332px; top:374px; width:39px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_custcd,"","custcd,custnm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_accept" class="btn2_letter2" navindex="12" visibility="hidden" style="left:513px; top:85px; width:42px; height:19px; ">
- <caption>승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //20081108 승인버튼으로 승인처리를 일괄로 한다.
- // for ( var i= grd_rfehemhtlist.fixedRows; i< grd_rfehemhtlist.rows; i++) {
- // if(grd_rfehemhtlist.valueMatrix( i , grd_rfehemhtlist.colRef("purcagreyn")) == "Y" )
- // {
- // fupdateCheckSave(i);
- // }
- // else if( grd_rfehemhtlist.valueMatrix( i , grd_rfehemhtlist.colRef("purcagreyn")) == "N" || grd_rfehemhtlist.valueMatrix( i , grd_rfehemhtlist.colRef("purcagreyn")) == "" )
- // {
- // fupdateCheckSave(i);
- // }
- // }
- // model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="cell_1" visibility="visible" style="left:639px; top:328px; width:90px; height:23px; vertical-align:middle; ">계산서일자</caption>
- <input id="ipt_accountdd" ref="/root/main/component/rfehemhtlist/accountdd" class="input_default" navindex="38" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:731px; top:328px; width:123px; height:19px; text-align:center; "/>
- <caption id="caption11" class="cell_1" style="left:855px; top:325px; width:90px; height:23px; vertical-align:middle; ">수리비용</caption>
- <input id="ipt_rpiramt" ref="/root/main/component/rfehemhtlist/rpiramt" class="input_essential" navindex="39" format="#,###" style="left:947px; top:328px; width:106px; height:19px; text-align:right; "/>
- <datagrid id="grd_rfehemhtlist" nodeset="/root/main/grid/rfehemhtlist" caption="의뢰일자^의뢰일자^의뢰부서^비품명^상태^부서승인^승인^품명^모델명^고장내역^고장유형^수리형태^청구구분^최종수리상태^인수자확인^부서인수일자^부서인수자ID^부서인수자^수리비^비고^수리완료일자^담당자전화번호^결재여부^담당자comment^결재일자^미가동일수^메일방송여부^설치장소CODE^설치장소^수리내역^접수구분^caption1^caption2^caption3" colsep="^" colwidth="66, 36, 71, 284, 81, 53, 51, 85, 100, 100, 100, 100, 100, 100, 80, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 96, 52, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" navindex="14" style="left:0px; top:110px; width:634px; height:366px; text-align:center; ">
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="reqno" style="text-align:center; "/>
- <col ref="depthngnm"/>
- <col ref="fixasetnm" style="text-align:left; "/>
- <col ref="workstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>청구승인의뢰</label>
- <value>00</value>
- </item>
- <item>
- <label>수리의뢰</label>
- <value>01</value>
- </item>
- <item>
- <label>수리중</label>
- <value>03</value>
- </item>
- <item>
- <label>수리완료</label>
- <value>04</value>
- </item>
- <item>
- <label>수리불가</label>
- <value>08</value>
- </item>
- <item>
- <label>재고지급</label>
- <value>09</value>
- </item>
- <item>
- <label>외부수리</label>
- <value>10</value>
- </item>
- </choices>
- </col>
- <col checkvalue="Y,N" disabled="true" ref="deptaprvyn" type="checkbox" visibility="hidden"/>
- <col checkvalue="Y,N" ref="purcagreyn" type="checkbox"/>
- <col ref="itemnm" visibility="hidden"/>
- <col ref="goodmodel" visibility="hidden"/>
- <col ref="hdrncspec" visibility="hidden"/>
- <col ref="rpirflag1" visibility="hidden"/>
- <col ref="rpirflag2" visibility="hidden"/>
- <col ref="useyn" visibility="hidden"/>
- <col ref="lastrpirstat" visibility="hidden"/>
- <col ref="acptpsncnfm" visibility="hidden"/>
- <col ref="deptacptdd" visibility="hidden"/>
- <col ref="deptacptpsnid" visibility="hidden"/>
- <col ref="deptacptpsnnm" visibility="hidden"/>
- <col ref="rpiramt" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="rpirenddd" visibility="hidden"/>
- <col ref="chrgtel" visibility="hidden"/>
- <col ref="sanctyn" visibility="hidden"/>
- <col ref="chrgpsncmt" visibility="hidden"/>
- <col ref="sanctdd" visibility="hidden"/>
- <col ref="nonworkdayno" visibility="hidden"/>
- <col ref="emaildeliveyn" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <col ref="installplcenm" visibility="hidden"/>
- <col ref="lastrpirrslt" visibility="hidden"/>
- <col ref="reqtel" visibility="hidden"/>
- <col ref="bugtyy" visibility="hidden"/>
- <col ref="bugtcd" visibility="hidden"/>
- <col ref="stdysubjno" visibility="hidden"/>
- <col ref="stdysubjnm" visibility="hidden"/>
- <col ref="acptflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/acptflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="custcd" visibility="hidden"/>
- <col ref="deptaprvpsnid" visibility="hidden"/>
- <col ref="deptaprvdd" visibility="hidden"/>
- <col ref="sancttrsmyn" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="fixtrseqmtflag" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="reqpsnid" visibility="hidden"/>
- <col ref="reqpsnnm" visibility="hidden" style="text-align:center; "/>
- <col ref="genrdd" visibility="hidden"/>
- <col ref="genrtm" visibility="hidden"/>
- <col ref="chrgpsnid" visibility="hidden"/>
- <col ref="chrgpsnnm" visibility="hidden"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="acpttm" visibility="hidden"/>
- <col ref="acptpsnid" visibility="hidden"/>
- <col ref="acptpsnnm" visibility="hidden"/>
- <col ref="acptdeptcd" visibility="hidden"/>
- <col ref="acptdeptnm" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <col ref="accountdd" visibility="hidden"/>
- <col ref="calcdocukind" visibility="hidden"/>
- <col ref="purcagredd" visibility="hidden"/>
- <col ref="goodspec" visibility="hidden"/>
- <col ref="execdept" visibility="hidden"/>
- <col ref="execdeptnm" visibility="hidden"/>
- <col ref="bizscrnid" visibility="hidden"/>
- <col ref="deptaprvreqyn" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- grd_rfehemhtlist.dispatch("onmouseup");
-
- fGridRowChangedEvent();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_rfehemhtlist.col == grd_rfehemhtlist.colRef("fixasetnm"))
- {
-
- /* [2007.11.28 HBH] 수리접수이전에 상세내역을 보지 못하게 하는게 좋을듯.*/
- //if ( grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row,grd_rfehemhtlist.colRef("workstat")) == "01" )
- //{
- // messageBox("수리접수 처리 이전에는 상세를 조회 ","E001");
- // return;
- //}
-
- // if(cmb_workstat.value == "01" || cmb_workstat.value == "02" )
- // {
- //
- // model.setValue(cmb_workstat.attribute("ref"), "03");
- //
- // if (ipt_acptdd.value.length== 0 || ipt_acptdd.value == null ) model.setValue(ipt_acptdd.attribute("ref"), getCurrentDate());
- // if (rdo_useyn.value.length== 0 || rdo_useyn.value == null ) model.setValue(rdo_useyn.attribute("ref"), "1");
- // if (ipt_acptpsnid.value.length== 0 || ipt_acptpsnid.value == null ) model.setValue(ipt_acptpsnid.attribute("ref"), getUserInfo("userid") );
- // if (ipt_chrgpsnid.value.length== 0 || ipt_chrgpsnid.value == null ) model.setValue(ipt_chrgpsnid.attribute("ref"), getUserInfo("userid") );
- // if (ipt_chrgpsnnm.value.length== 0 || ipt_chrgpsnnm.value == null ) model.setValue(ipt_chrgpsnnm.attribute("ref"), getUserInfo("usernm"));
- //
- // model.refresh();
- //
- // misfGridRowStatusChange(grd_temp, "/root/temp", "/root/main/component" );
- //
- // if(getGridUpdateData(grd_temp) != "" )
- // {
- // model.copyNode("/root/main/grid/rfehemhtlist["+ grd_rfehemhtlist.row +"]", "/root/main/component/rfehemhtlist");
- // grd_rfehemhtlist.addStatus(grd_rfehemhtlist.row, grd_temp.rowStatus(grd_temp.row));
- //
- //// model.resetInstanceNode("/root/main/component/rfehemhtlist");
- // misfGridInit(grd_temp);
- //
- // }
- // if(getGridUpdateData(grd_rfehemhtlist) == "")
- // {
- // messageBox("변경된 데이터가","I004");
- // return;
- // }
- //
- //
- // model.refresh();
- // misfSave("TXRFE00501");
- //
- // }
- //
- // modal("SMRFE00600", "", "", "", "popup", grd_rfehemhtlist.attribute("nodeset") + "[" + grd_rfehemhtlist.row + "]", "/root/temp" );
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //구매승인 체크하면 구매승인일자 자동으로 셋팅
- //의미없는 승인 접수라고생각하면됨 2008.12.05 L.J.I
-
- // if(grd_rfehemhtlist.col == grd_rfehemhtlist.colRef("purcagreyn"))
- // {
- // if(grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagreyn")) == "Y")
- // {//구매부서승인일경우
- // grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagredd")) = getCurrentDate();
- // model.refresh();
- // }
- // else
- // {//구매부서미승인일경우
- // grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagredd")) = "";
- // model.refresh();
- // }
- // }
- if( grd_rfehemhtlist.colRef("purcagreyn") == grd_rfehemhtlist.col )
- {
- if(grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row,grd_rfehemhtlist.colRef("purcagreyn")) != grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row,grd_rfehemhtlist.colRef("temppurcaprvyn")))
- {
- if(grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row,grd_rfehemhtlist.colRef("purcagreyn")) == 'Y')
- {
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagredd")) = getCurrentDate();
- // grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagresnid")) = getUserInfo("userid");
- // grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagresnnm")) = getUserInfo("usernm");
- }else
- {
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagredd")) = "";
- // grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagresnid")) = "";
- // grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagresnnm")) = "";
- }
- }else{
- grd_rfehemhtlist.rowStatus(grd_rfehemhtlist.row) = 0;
- }
- }
- // 부서장 승인에서 일괄처리시 한줄 한줄 읽으며 저장하는걸 피하기 위해 승인 체크시 마다 한줄 저장 2008.12.19. NHS
- var i = grd_rfehemhtlist.row;
- if(grd_rfehemhtlist.valueMatrix( i , grd_rfehemhtlist.colRef("purcagreyn")) == "Y" )
- {
- model.refresh();
- fupdateCheckSave(i);
- }
- else if( grd_rfehemhtlist.valueMatrix( i , grd_rfehemhtlist.colRef("purcagreyn")) == "N" || grd_rfehemhtlist.valueMatrix( grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("purcagreyn")) == "" )
- {
- model.refresh();
- fupdateCheckSave(i);
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="rdo_execdept" ref="/root/main/component/rfehemhtlist/execdept" navindex="37" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:1045px; top:306px; width:145px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>시설팀</label>
- <value>1</value>
- </item>
- <item>
- <label>구매관리팀</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_execdept" class="cell_1" visibility="hidden" style="left:961px; top:304px; width:80px; height:23px; vertical-align:middle; ">시행부서</caption>
- </group>
- <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="button26" class="btn3_letter4" navindex="46" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </button>
- <button id="btn_print" class="btn6_letter2" navindex="45" visibility="visible" style="left:0px; top:3; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.removenode("/root/main/printdata/data");
- model.copyNode( "/root/main/printdata/data", grd_rfehemhtlist.attribute("nodeset") + "[" + grd_rfehemhtlist.row + "]");
- model.makeValue("/root/main/printdata/data/instnm", cmb_instcd.label);
- model.makeValue("/root/main/printdata/data/rpirflag2nm", cmb_rpirflag2.label);
- ipt_accountdd
- //exeReportPreview("RPRFE00801", "XMLSTR");
- exeReportPreview("RPRFE00802", "XMLSTR");
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" navindex="47" style="left:1069px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/main/component/rfehemhtlist/bizscrnid", "SMRFE00800_비품수리접수 및 결과등록.xrw");
- // 기본 값 검사!.
- if(cmb_workstat.value != "01" && cmb_workstat.value == "02")
- {
- // if(!isRequiredControls("ipt_acptpsnid")) return; //접수자 필수입력항목에서 제외함
- // if(!isRequiredControls("ipt_acptdd")) return; //접수일자 필수입력항목에서 제외함
-
- // if(!isRequiredControls("ipt_chrgpsnid")) return; //담당자 필수입력항목에서 제외함
-
- // if(!isRequiredControls("ipt_chrgtel")) return; //담당자 연락처 필수입력항목에서 제외함
- }
-
- // if(!isRequiredControls("ipt_genrdd")) return;
-
-
- // model.setValue("/root/main/component/rfehemhtlist/rpiramt", grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rfehdabptotal")) );
- // misfGridRowStatusChange(grd_temp, "/root/temp", "/root/main/component" );
-
- /* 부품목록의 금액을 추가하거나 삭제한 후 저장할 때 수리비용이 계산되어지는 식 */
- var count = grd_rfehdabplist.rows - grd_rfehdabplist.fixedRows;
- var vrfehdabptotal = 0; // 각 부품금액의 합을 저장하는 변수
- if(count > 0) // 조회 또는 추가시
- {
- for(i=1 ; i<=count ; i++){
- vrfehdabptotal = vrfehdabptotal + Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney"));
- }
- }
- if(delnm != 0) // 행 삭제시
- {
- vrfehdabptotal = vrfehdabptotal - delnm;
- }
- model.setValue("/root/main/component/rfehemhtlist/rpiramt", vrfehdabptotal);
- misfGridRowStatusChange(grd_temp, "/root/temp", "/root/main/component" );
-
- if(getGridUpdateData(grd_temp) != "" )
- {
- model.copyNode("/root/main/grid/rfehemhtlist["+ grd_rfehemhtlist.row +"]", "/root/main/component/rfehemhtlist");
- grd_rfehemhtlist.addStatus(grd_rfehemhtlist.row, grd_temp.rowStatus(grd_temp.row));
-
- //model.resetInstanceNode("/root/main/component/rfehemhtlist");
- misfGridInit(grd_temp);
- model.refresh();
- }
-
- // if(getGridUpdateData(grd_rfehemhtlist) == "")
- // {
- // messageBox("변경된 데이터가","I004");
- // return;
- // }
- misfSave("TXRFE00801");
- if (model.getValue(gvErrorMsgPath + "/type") != "error")
- {
- btn_search.dispatch("DOMActivate");
- }
-
- delnm = 0; // 저장후 삭제 합계 금액 변수 초기화
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" navindex="48" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|