/// <summary> /// Does the initialize. /// </summary> public virtual void doInit() { try { mcsMapAction = SCApplication.getInstance().getEQObjCacheManager().getLine().getMapActionByIdentityKey(typeof(AUOMCSDefaultMapAction).Name) as AUOMCSDefaultMapAction; ValueRead EQ_Ready_vr = null; if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "EQ_READY", out EQ_Ready_vr)) { EQ_Ready_vr.afterValueChange += (_sender, _e) => EQStatusReport(_sender, _e); } ValueRead EQ_Error_vr = null; if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "EQ_ERROR", out EQ_Error_vr)) { EQ_Error_vr.afterValueChange += (_sender, _e) => EQStatusReport(_sender, _e); } } catch (Exception ex) { logger.Error(ex, "Exection:"); } }
public virtual void doInit() { try { mcsMapAction = SCApplication.getInstance().getEQObjCacheManager().getLine().getMapActionByIdentityKey(typeof(AUOMCSDefaultMapAction).Name) as AUOMCSDefaultMapAction; ValueRead PortRequest_vr = null; if (bcfApp.tryGetReadValueEventstring(SCAppConstants.EQPT_OBJECT_CATE_PORT, PortStation.PORT_ID, "REQUEST", out PortRequest_vr)) { PortRequest_vr.afterValueChange += (_sender, _e) => PortStationDataChange(_sender, _e); } ValueRead PortReady_vr = null; if (bcfApp.tryGetReadValueEventstring(SCAppConstants.EQPT_OBJECT_CATE_PORT, PortStation.PORT_ID, "READY", out PortReady_vr)) { PortReady_vr.afterValueChange += (_sender, _e) => PortStationDataChange(_sender, _e); } } catch (Exception ex) { logger.Error(ex, "Exception:"); } }