public (bool isSuccess, string result) processCarOutScenario(MaintainLift mtx, AVEHICLE preCarOutVh) { string pre_car_out_vh_id = preCarOutVh.VEHICLE_ID; string pre_car_out_vh_ohtc_cmd_id = preCarOutVh.OHTC_CMD; string pre_car_out_vh_cur_adr_id = preCarOutVh.CUR_ADR_ID; bool isSuccess; string result = "OK"; mtx.CancelCarOutRequest = false; mtx.CarOurSuccess = false; CarOutStart(mtx); //接著要開始等待MTS的兩個門都放下來之後,才可以將OHT開過來 if (mtx.DokingMaintainDevice is MaintainSpace) { MaintainSpace dockingMaintainSpace = mtx.DokingMaintainDevice as MaintainSpace; if (!SpinWait.SpinUntil(() => dockingMaintainSpace.MTSBackDoorStatus == MTSDoorStatus.Open && dockingMaintainSpace.MTSFrontDoorStatus == MTSDoorStatus.Open, MTS_DOOR_OPEN_TIME_OUT_ms)) { isSuccess = false; result = $"Process car out scenario,but mts:{dockingMaintainSpace.DeviceID} status not ready " + $"{nameof(dockingMaintainSpace.MTSBackDoorStatus)}:{dockingMaintainSpace.MTSBackDoorStatus}," + $"{nameof(dockingMaintainSpace.MTSFrontDoorStatus)}:{dockingMaintainSpace.MTSFrontDoorStatus}"; LogHelper.Log(logger: logger, LogLevel: LogLevel.Warn, Class: nameof(MTLService), Device: SCAppConstants.DeviceName.DEVICE_NAME_MTx, Data: result, XID: dockingMaintainSpace.DeviceID); CarOutFinish(mtx); return(isSuccess, result); } } //isSuccess = VehicleService.doReservationVhToMaintainsBufferAddress(pre_car_out_vh_id, MTL_CAR_OUT_BUFFER_ADDRESS); isSuccess = VehicleService.doReservationVhToMaintainsBufferAddress(pre_car_out_vh_id, mtx.MTL_SYSTEM_OUT_ADDRESS); if (isSuccess && SCUtility.isEmpty(pre_car_out_vh_ohtc_cmd_id)) { //在收到OHT的ID:132-命令結束後或者在變為AutoLocal後此時OHT沒有命令的話則會呼叫此Function來創建一個Transfer command,讓Vh移至移動至System out上 if (SCUtility.isMatche(pre_car_out_vh_cur_adr_id, mtx.MTL_SYSTEM_OUT_ADDRESS)) { VehicleService.doAskVhToMaintainsAddress(pre_car_out_vh_id, mtx.MTL_ADDRESS); } else { VehicleService.doAskVhToSystemOutAddress(pre_car_out_vh_id, mtx.MTL_SYSTEM_OUT_ADDRESS); } } if (isSuccess) { //carOutVhID = pre_car_out_vh_id; mtx.PreCarOutVhID = pre_car_out_vh_id; Task.Run(() => RegularUpdateRealTimeCarInfo(mtx, preCarOutVh)); } else { //mtx.SetCarOutInterlock(false); CarOutFinish(mtx); isSuccess = false; result = $"Reservation vh to mtl fail."; } return(isSuccess, result); }
private void CarInFinish(MaintainLift mtl) { LogHelper.Log(logger: logger, LogLevel: LogLevel.Info, Class: nameof(MTLService), Device: SCAppConstants.DeviceName.DEVICE_NAME_MTx, Data: $"Process CarInFinish!", XID: mtl.DeviceID); mtl.SetCarInMoving(false); }
public override void MTL_CarInRequest(object sender, ValueChangedEventArgs args) { var recevie_function = scApp.getFunBaseObj <MtlToOHxC_RequestCarInDataCheck>(MTS.EQPT_ID) as MtlToOHxC_RequestCarInDataCheck; var send_function = scApp.getFunBaseObj <OHxCToMtl_ReplyCarInDataCheck>(MTS.EQPT_ID) as OHxCToMtl_ReplyCarInDataCheck; try { recevie_function.Read(bcfApp, MTS.EqptObjectCate, MTS.EQPT_ID); LogHelper.Log(logger: logger, LogLevel: LogLevel.Info, Class: nameof(MTSValueDefMapActionNew), Device: DEVICE_NAME_MTL, Data: recevie_function.ToString(), VehicleID: MTS.EQPT_ID); ushort vh_num = recevie_function.CarID; ushort hand_shake = recevie_function.Handshake; AVEHICLE pre_car_in_vh = scApp.VehicleBLL.cache.getVhByNum(vh_num); if (pre_car_in_vh != null) { MaintainLift mtl = null; if (SCUtility.isMatche(MTS.EQPT_ID, "MTS")) { mtl = scApp.EquipmentBLL.cache.GetMaintainLift(); } var check_result = scApp.MTLService.checkVhAndMTxCarInStatus(MTS, mtl, pre_car_in_vh); send_function.ReturnCode = check_result.isSuccess ? (UInt16)1 : (UInt16)3; LogHelper.Log(logger: logger, LogLevel: LogLevel.Info, Class: nameof(MTSValueDefMapActionNew), Device: DEVICE_NAME_MTL, Data: $"check mts car in result, is success:{check_result.isSuccess},result:{check_result.result}", VehicleID: MTS.EQPT_ID); } else { send_function.ReturnCode = 2; LogHelper.Log(logger: logger, LogLevel: LogLevel.Info, Class: nameof(MTSValueDefMapActionNew), Device: DEVICE_NAME_MTL, Data: $"check mts car in result, vehicle num:{vh_num} not exist.", VehicleID: MTS.EQPT_ID); } send_function.Handshake = hand_shake; send_function.Write(bcfApp, MTS.EqptObjectCate, MTS.EQPT_ID); LogHelper.Log(logger: logger, LogLevel: LogLevel.Info, Class: nameof(MTSValueDefMapActionNew), Device: DEVICE_NAME_MTL, Data: send_function.ToString(), VehicleID: MTS.EQPT_ID); MTS.SynchronizeTime = DateTime.Now; if (send_function.Handshake == 1 && send_function.ReturnCode == 1) { scApp.MTLService.processCarInScenario(MTS); } } catch (Exception ex) { logger.Error(ex, "Exception"); } finally { scApp.putFunBaseObj <MtlToOHxC_RequestCarInDataCheck>(recevie_function); scApp.putFunBaseObj <OHxCToMtl_ReplyCarInDataCheck>(send_function); } }
private void cmb_mtl_SelectedIndexChanged(object sender, EventArgs e) { string device_id = (sender as ComboBox).Text; MTL = bcApp.SCApplication.getEQObjCacheManager().getEquipmentByEQPTID(device_id) as MaintainLift; MTLValueDefMapActionBase = MTL.getMapActionByIdentityKey(nameof(MTLValueDefMapActionNew)) as MTxValueDefMapActionBase; }
private void CarOutFinish(MaintainLift mtx) { LogHelper.Log(logger: logger, LogLevel: LogLevel.Info, Class: nameof(MTLService), Device: SCAppConstants.DeviceName.DEVICE_NAME_MTx, Data: $"Process CarOutFinish!", XID: mtx.DeviceID); mtx.SetCarOutInterlock(false); if (mtx.DokingMaintainDevice != null && mtx.DokingMaintainDevice is MaintainSpace) { mtx.DokingMaintainDevice.SetCarInMoving(false); } }
private void CarOutStart(MaintainLift mtx) { LogHelper.Log(logger: logger, LogLevel: LogLevel.Info, Class: nameof(MTLService), Device: SCAppConstants.DeviceName.DEVICE_NAME_MTx, Data: $"Process CarOutStart!", XID: mtx.DeviceID); mtx.SetCarOutInterlock(true); if (mtx.DokingMaintainDevice != null && mtx.DokingMaintainDevice is MaintainSpace) { //因為MTL的前方有DockingMTS,因此要觸發CAR IN INTERLOCK,通知將門放下 mtx.DokingMaintainDevice.SetCarInMoving(true); } }
public void carInSafetyAndVehicleStatusCheck(MaintainLift mtl) { CarInStart(mtl); //在收到MTL的 Car in safety check後,就可以叫Vh移動至Car in 的buffer區(MTL Home) //不過要先判斷vh是否已經在Auto模式下如果是則先將它變成AutoLocal的模式 if (!mtl.CarInSafetyCheck || mtl.MTxMode != ProtocolFormat.OHTMessage.MTxMode.Auto) { LogHelper.Log(logger: logger, LogLevel: LogLevel.Warn, Class: nameof(MTLService), Device: SCAppConstants.DeviceName.DEVICE_NAME_MTx, Data: $"Device:{mtl.DeviceID} car in safety check in on, but mts mode:{mtl.MTxMode}, can't excute car in.", XID: mtl.DeviceID); return; } AVEHICLE car_in_vh = vehicleBLL.cache.getVhByAddressID(mtl.MTL_ADDRESS); if (car_in_vh != null && car_in_vh.isTcpIpConnect) { if (car_in_vh.MODE_STATUS == ProtocolFormat.OHTMessage.VHModeStatus.Manual) { VehicleService.ModeChangeRequest(car_in_vh.VEHICLE_ID, OperatingVHMode.OperatingAuto); if (SpinWait.SpinUntil(() => car_in_vh.MODE_STATUS == VHModeStatus.AutoMtl, 10000)) { //mtl.SetCarInMoving(true); VehicleService.doAskVhToCarInBufferAddress(car_in_vh.VEHICLE_ID, mtl.MTL_CAR_IN_BUFFER_ADDRESS); } else { LogHelper.Log(logger: logger, LogLevel: LogLevel.Info, Class: nameof(MTLService), Device: SCAppConstants.DeviceName.DEVICE_NAME_MTx, Data: $"vh:{car_in_vh.VEHICLE_ID} request car in, but can't change to auto mode.", XID: mtl.DeviceID, VehicleID: car_in_vh.VEHICLE_ID); CarInFinish(mtl); } } else if (car_in_vh.MODE_STATUS == ProtocolFormat.OHTMessage.VHModeStatus.AutoMtl) { //mtl.SetCarInMoving(true); VehicleService.doAskVhToCarInBufferAddress(car_in_vh.VEHICLE_ID, mtl.MTL_CAR_IN_BUFFER_ADDRESS); } else { LogHelper.Log(logger: logger, LogLevel: LogLevel.Info, Class: nameof(MTLService), Device: SCAppConstants.DeviceName.DEVICE_NAME_MTx, Data: $"vh:{car_in_vh.VEHICLE_ID} request car in, but status is incorrect current status:{car_in_vh.MODE_STATUS}.", XID: mtl.DeviceID, VehicleID: car_in_vh.VEHICLE_ID); } } }
public void start(SCApplication app) { scApp = app; List <AEQPT> eqpts = app.getEQObjCacheManager().getAllEquipment(); foreach (var eqpt in eqpts) { if (eqpt is IMaintainDevice) { IMaintainDevice maintainDevice = eqpt as IMaintainDevice; if (maintainDevice is MaintainSpace) { MaintainSpace maintainSpace = eqpt as MaintainSpace; maintainSpace.addEventHandler(nameof(MTLService), nameof(maintainSpace.Plc_Link_Stat), PublishMTSInfo); maintainSpace.addEventHandler(nameof(MTLService), nameof(maintainSpace.Is_Eq_Alive), PublishMTSInfo); maintainSpace.addEventHandler(nameof(MTLService), nameof(maintainSpace.MTxMode), PublishMTSInfo); maintainSpace.addEventHandler(nameof(MTLService), nameof(maintainSpace.Interlock), PublishMTSInfo); maintainSpace.addEventHandler(nameof(MTLService), nameof(maintainSpace.CurrentCarID), PublishMTSInfo); maintainSpace.addEventHandler(nameof(MTLService), nameof(maintainSpace.CurrentPreCarOurDistance), PublishMTSInfo); maintainSpace.addEventHandler(nameof(MTLService), nameof(maintainSpace.SynchronizeTime), PublishMTSInfo); maintainSpace.addEventHandler(nameof(MTLService), nameof(maintainSpace.CarOutInterlock), PublishMTSInfo); maintainSpace.addEventHandler(nameof(MTLService), nameof(maintainSpace.CarInMoving), PublishMTSInfo); } else if (maintainDevice is MaintainLift) { MaintainLift maintainLift = eqpt as MaintainLift; maintainLift.addEventHandler(nameof(MTLService), nameof(maintainLift.Plc_Link_Stat), PublishMTLInfo); maintainLift.addEventHandler(nameof(MTLService), nameof(maintainLift.Is_Eq_Alive), PublishMTLInfo); maintainLift.addEventHandler(nameof(MTLService), nameof(maintainLift.MTxMode), PublishMTLInfo); maintainLift.addEventHandler(nameof(MTLService), nameof(maintainLift.Interlock), PublishMTLInfo); maintainLift.addEventHandler(nameof(MTLService), nameof(maintainLift.CurrentCarID), PublishMTLInfo); maintainLift.addEventHandler(nameof(MTLService), nameof(maintainLift.MTLLocation), PublishMTLInfo); maintainLift.addEventHandler(nameof(MTLService), nameof(maintainLift.CurrentPreCarOurDistance), PublishMTLInfo); maintainLift.addEventHandler(nameof(MTLService), nameof(maintainLift.SynchronizeTime), PublishMTLInfo); maintainLift.addEventHandler(nameof(MTLService), nameof(maintainLift.CarOutInterlock), PublishMTLInfo); maintainLift.addEventHandler(nameof(MTLService), nameof(maintainLift.CarInMoving), PublishMTLInfo); } } } VehicleService = app.VehicleService; vehicleBLL = app.VehicleBLL; reportBLL = app.ReportBLL; // mtl = app.getEQObjCacheManager().getEquipmentByEQPTID("MTL") as MaintainLift; }
private void interlock_change_refreshUI() { try { MaintainLift MTL = app.ObjCacheManager.GetMTLMTSByID("MTL") as MaintainLift; //displayForInterlock(MTL.EQPT_ID, MTL.Interlock); displayForInterlockNew(MTL.EQPT_ID, MTL.CarOutSafetyCheck, MTL.CarInMoving); MaintainSpace MTS = app.ObjCacheManager.GetMTLMTSByID("MTS") as MaintainSpace; //displayForInterlock(MTS.EQPT_ID, MTS.Interlock); displayForInterlockNew(MTS.EQPT_ID, MTS.CarOutSafetyCheck, MTS.CarInMoving); MaintainSpace MTS2 = app.ObjCacheManager.GetMTLMTSByID("MTS2") as MaintainSpace; //displayForInterlock(MTS2.EQPT_ID, MTS2.Interlock); displayForInterlockNew(MTS2.EQPT_ID, MTS2.CarOutSafetyCheck, MTS2.CarInMoving); } catch (Exception ex) { logger.Error(ex, "Exception"); } }
private void refreshUI() { grid_MTLMTS1.Items.Refresh(); grid_MTS2.Items.Refresh(); MaintainLift MTL = app.ObjCacheManager.GetMTLMTSByID("MTL") as MaintainLift; displayForInterlock(MTL.EQPT_ID, MTL.Interlock); displayForVehicleLift(MTL.EQPT_ID, MTL.MTLLocation.ToString(), !string.IsNullOrWhiteSpace(MTL.CurrentCarID)); MaintainSpace MTS = app.ObjCacheManager.GetMTLMTSByID("MTS") as MaintainSpace; displayForInterlock(MTS.EQPT_ID, MTS.Interlock); displayForVehicleLift(MTS.EQPT_ID, null, !string.IsNullOrWhiteSpace(MTS.CurrentCarID)); MaintainSpace MTS2 = app.ObjCacheManager.GetMTLMTSByID("MTS2") as MaintainSpace; displayForInterlock(MTS2.EQPT_ID, MTS2.Interlock); displayForVehicleLift(MTS2.EQPT_ID, null, !string.IsNullOrWhiteSpace(MTS2.CurrentCarID)); }
public (bool isSuccess, string result) processCarOutScenario(MaintainLift mtx, AVEHICLE preCarOutVh) { string pre_car_out_vh_id = preCarOutVh.VEHICLE_ID; string pre_car_out_vh_ohtc_cmd_id = preCarOutVh.OHTC_CMD; string pre_car_out_vh_cur_adr_id = preCarOutVh.CUR_ADR_ID; bool isSuccess; string result = "OK"; mtx.CancelCarOutRequest = false; mtx.CarOurSuccess = false; mtx.SetCarOutInterlock(true); //isSuccess = VehicleService.doReservationVhToMaintainsBufferAddress(pre_car_out_vh_id, MTL_CAR_OUT_BUFFER_ADDRESS); isSuccess = VehicleService.doReservationVhToMaintainsBufferAddress(pre_car_out_vh_id, mtx.MTL_SYSTEM_OUT_ADDRESS); if (isSuccess && SCUtility.isEmpty(pre_car_out_vh_ohtc_cmd_id)) { //在收到OHT的ID:132-命令結束後或者在變為AutoLocal後此時OHT沒有命令的話則會呼叫此Function來創建一個Transfer command,讓Vh移至移動至System out上 if (SCUtility.isMatche(pre_car_out_vh_cur_adr_id, mtx.MTL_SYSTEM_OUT_ADDRESS)) { VehicleService.doAskVhToMaintainsAddress(pre_car_out_vh_id, mtx.MTL_ADDRESS); } else { VehicleService.doAskVhToSystemOutAddress(pre_car_out_vh_id, mtx.MTL_SYSTEM_OUT_ADDRESS); } } if (isSuccess) { //carOutVhID = pre_car_out_vh_id; mtx.PreCarOutVhID = pre_car_out_vh_id; Task.Run(() => RegularUpdateRealTimeCarInfo(mtx, preCarOutVh)); } else { mtx.SetCarOutInterlock(false); isSuccess = false; result = $"Reservation vh to mtl fail."; } return(isSuccess, result); }
public void PublishMTLInfo(object sender, PropertyChangedEventArgs e) { try { MaintainLift eqpt = sender as MaintainLift; if (sender == null) { return; } byte[] line_serialize = BLL.LineBLL.Convert2GPB_MTLMTSInfo(eqpt); scApp.getNatsManager().PublishAsync (SCAppConstants.NATS_SUBJECT_MTLMTS, line_serialize); //TODO 要改用GPP傳送 //var line_Serialize = ZeroFormatter.ZeroFormatterSerializer.Serialize(line); //scApp.getNatsManager().PublishAsync // (string.Format(SCAppConstants.NATS_SUBJECT_LINE_INFO), line_Serialize); } catch (Exception ex) { logger.Error(ex, "Exception:"); } }
public void putMTL_MTSCheckInfo(sc.ProtocolFormat.OHTMessage.MTL_MTS_INFO newMTLMTSInfo) { if (newMTLMTSInfo == null) { return; } AEQPT eqpt = Eqpts.Where(e => e.EQPT_ID == newMTLMTSInfo.StationID.Trim()).SingleOrDefault(); if (eqpt is MaintainSpace) { MaintainSpace MTS = eqpt as MaintainSpace; MTS.Plc_Link_Stat = newMTLMTSInfo.NetworkLink ? sc.App.SCAppConstants.LinkStatus.LinkOK : sc.App.SCAppConstants.LinkStatus.LinkFail; MTS.Is_Eq_Alive = newMTLMTSInfo.Alive; MTS.MTxMode = newMTLMTSInfo.Mode ? sc.ProtocolFormat.OHTMessage.MTxMode.Auto : sc.ProtocolFormat.OHTMessage.MTxMode.Manual; MTS.Interlock = newMTLMTSInfo.Interlock; MTS.CurrentCarID = newMTLMTSInfo.CarID; MTS.CurrentPreCarOurDistance = Convert.ToUInt32(newMTLMTSInfo.Distance); MTS.SynchronizeTime = Convert.ToDateTime(newMTLMTSInfo.SynchronizeTime); MTS.CarOutInterlock = newMTLMTSInfo.CarOutInterlock; MTS.CarInMoving = newMTLMTSInfo.CarInMoving; } else if (eqpt is MaintainLift) { MaintainLift MTL = eqpt as MaintainLift; MTL.Plc_Link_Stat = newMTLMTSInfo.NetworkLink ? sc.App.SCAppConstants.LinkStatus.LinkOK : sc.App.SCAppConstants.LinkStatus.LinkFail; MTL.Is_Eq_Alive = newMTLMTSInfo.Alive; MTL.MTxMode = newMTLMTSInfo.Mode ? sc.ProtocolFormat.OHTMessage.MTxMode.Auto : sc.ProtocolFormat.OHTMessage.MTxMode.Manual; MTL.Interlock = newMTLMTSInfo.Interlock; MTL.CurrentCarID = newMTLMTSInfo.CarID; MTL.MTLLocation = newMTLMTSInfo.MTLLocation == MTLLocation.Bottorn.ToString() ? MTLLocation.Bottorn : newMTLMTSInfo.MTLLocation == MTLLocation.Upper.ToString() ? MTLLocation.Upper : MTLLocation.None; MTL.CurrentPreCarOurDistance = Convert.ToUInt32(newMTLMTSInfo.Distance); MTL.SynchronizeTime = Convert.ToDateTime(newMTLMTSInfo.SynchronizeTime); MTL.CarOutInterlock = newMTLMTSInfo.CarOutInterlock; MTL.CarInMoving = newMTLMTSInfo.CarInMoving; } MTLMTSInfoUpdate?.Invoke(this, EventArgs.Empty); }
private void refreshUI() { try { grid_MTLMTS1.Items.Refresh(); grid_MTS2.Items.Refresh(); MaintainLift MTL = app.ObjCacheManager.GetMTLMTSByID("MTL") as MaintainLift; //displayForInterlock(MTL.EQPT_ID, MTL.Interlock); displayForInterlockNew(MTL.EQPT_ID, MTL.CarOutSafetyCheck, MTL.CarInMoving); displayForVehicleLift(MTL.EQPT_ID, MTL.MTLLocation.ToString(), !string.IsNullOrWhiteSpace(MTL.CurrentCarID)); MaintainSpace MTS = app.ObjCacheManager.GetMTLMTSByID("MTS") as MaintainSpace; //displayForInterlock(MTS.EQPT_ID, MTS.Interlock); displayForInterlockNew(MTS.EQPT_ID, MTS.CarOutSafetyCheck, MTS.CarInMoving); displayForVehicleLift(MTS.EQPT_ID, null, !string.IsNullOrWhiteSpace(MTS.CurrentCarID)); MaintainSpace MTS2 = app.ObjCacheManager.GetMTLMTSByID("MTS2") as MaintainSpace; //displayForInterlock(MTS2.EQPT_ID, MTS2.Interlock); displayForInterlockNew(MTS2.EQPT_ID, MTS2.CarOutSafetyCheck, MTS2.CarInMoving); displayForVehicleLift(MTS2.EQPT_ID, null, !string.IsNullOrWhiteSpace(MTS2.CurrentCarID)); grid_CMDDetail.Items.Refresh(); //if (cb_VehicleID.SelectedItem != null) //{ // string select_vh_id = (string)cb_VehicleID.SelectedItem; // if (!string.IsNullOrEmpty(select_vh_id)) // { // AVEHICLE select_vh = app.ObjCacheManager.GetVEHICLE(select_vh_id); // if (!select_vh.isTcpIpConnect) // { // btn_CarOutReq.IsEnabled = false; // } // else // { // btn_CarOutReq.IsEnabled = true; // } // //if (select_vh.MODE_STATUS == VHModeStatus.AutoRemote) // //{ // // btn_AutoR.IsEnabled = false; // // btn_AutoMTS.IsEnabled = true; // // btn_AutoMTL.IsEnabled = true; // // btn_Cmd.IsEnabled = false; // // //cb_MvToStation.Items.Clear(); // //} // //else if (select_vh.MODE_STATUS == VHModeStatus.AutoMts) // //{ // // btn_AutoR.IsEnabled = true; // // btn_AutoMTS.IsEnabled = false; // // btn_AutoMTL.IsEnabled = true; // // btn_Cmd.IsEnabled = true; // // //cb_MvToStation.Items.Clear(); // // ////cb_MvToStation.Items.Add("MTS1"); // // ////cb_MvToStation.Items.Add("MTS2"); // //} // //else if (select_vh.MODE_STATUS == VHModeStatus.AutoMtl) // //{ // // btn_AutoR.IsEnabled = true; // // btn_AutoMTS.IsEnabled = true; // // btn_AutoMTL.IsEnabled = false; // // btn_Cmd.IsEnabled = true; // // //cb_MvToStation.Items.Clear(); // // //cb_MvToStation.Items.Add("MTL1"); // //} // //else // //{ // // btn_AutoR.IsEnabled = true; // // btn_AutoMTS.IsEnabled = true; // // btn_AutoMTL.IsEnabled = true; // // btn_Cmd.IsEnabled = false; // // //cb_MvToStation.Items.Clear(); // //} // } // else // { // //btn_AutoR.IsEnabled = false; // //btn_AutoMTS.IsEnabled = false; // //btn_AutoMTL.IsEnabled = false; // //btn_Cmd.IsEnabled = false; // btn_CarOutReq.IsEnabled = false; // //cb_MvToStation.Items.Clear(); // } //} //else //{ // //btn_AutoR.IsEnabled = false; // //btn_AutoMTS.IsEnabled = false; // //btn_AutoMTL.IsEnabled = false; // //btn_Cmd.IsEnabled = false; // btn_CarOutReq.IsEnabled = false; // //cb_MvToStation.Items.Clear(); //} } catch (Exception ex) { logger.Error(ex, "Exception"); } }
public virtual void setContext(BaseEQObject baseEQ) { this.eqpt = baseEQ as MaintainLift; }