protected void secsDisconnected(object sender, SECSEventArgs e) { if (line.Secs_Link_Stat == SCAppConstants.LinkStatus.LinkFail) { return; } //not implement Dictionary <string, CommuncationInfo> dicCommunactionInfo = scApp.getEQObjCacheManager().CommonInfo.dicCommunactionInfo; if (dicCommunactionInfo.ContainsKey("MCS")) { dicCommunactionInfo["MCS"].IsConnectinoSuccess = false; } isOnlineWithMcs = false; line.Secs_Link_Stat = SCAppConstants.LinkStatus.LinkFail; line.connInfoUpdate_Disconnection(); AEQPT fourColorLight = scApp.getEQObjCacheManager().getEquipmentByEQPTID("FOUR_COLOR_LIGHT"); if (fourColorLight != null) { //Task.Run(() => fourColorLight.setFourColorLightBlue(false)); } SCUtility.RecodeConnectionInfo ("MCS", SCAppConstants.RecodeConnectionInfo_Type.Disconnection.ToString(), line.StopWatch_mcsConnectionTime.Elapsed.TotalSeconds); }
protected void secsConnected(object sender, SECSEventArgs e) { if (line.Secs_Link_Stat == SCAppConstants.LinkStatus.LinkOK) { return; } Dictionary <string, CommuncationInfo> dicCommunactionInfo = scApp.getEQObjCacheManager().CommonInfo.dicCommunactionInfo; if (dicCommunactionInfo.ContainsKey("MCS")) { dicCommunactionInfo["MCS"].IsConnectinoSuccess = true; } line.Secs_Link_Stat = SCAppConstants.LinkStatus.LinkOK; scApp.TransferService.TransferServiceLogger.Info(DateTime.Now.ToString("HH:mm:ss.fff ") + "MCS 連線"); isOnlineWithMcs = true; line.connInfoUpdate_Connection(); SCUtility.RecodeConnectionInfo ("MCS", SCAppConstants.RecodeConnectionInfo_Type.Connection.ToString(), line.StopWatch_mcsDisconnectionTime.Elapsed.TotalSeconds); ITimerAction timer = scApp.getBCFApplication().getTimerAction("SECSHeartBeat"); if (timer != null && !timer.IsStarted) { timer.start(); } initialWithMCS(); }
protected void secsDisconnected(object sender, SECSEventArgs e) { if (line.Secs_Link_Stat == SCAppConstants.LinkStatus.LinkFail) { return; } //not implement Dictionary <string, CommuncationInfo> dicCommunactionInfo = scApp.getEQObjCacheManager().CommonInfo.dicCommunactionInfo; if (dicCommunactionInfo.ContainsKey("MCS")) { dicCommunactionInfo["MCS"].IsConnectinoSuccess = false; } isOnlineWithMcs = false; line.Secs_Link_Stat = SCAppConstants.LinkStatus.LinkFail; Task.Run(() => scApp.LineService.OfflineWithHostByOp()); scApp.TransferService.TransferServiceLogger.Info(DateTime.Now.ToString("HH:mm:ss.fff ") + "MCS 斷線"); line.connInfoUpdate_Disconnection(); SCUtility.RecodeConnectionInfo ("MCS", SCAppConstants.RecodeConnectionInfo_Type.Disconnection.ToString(), line.StopWatch_mcsConnectionTime.Elapsed.TotalSeconds); }
protected void secsDisconnected(object sender, SECSEventArgs e) { if (line.Secs_Link_Stat == SCAppConstants.LinkStatus.LinkFail) return; //not implement Dictionary<string, CommuncationInfo> dicCommunactionInfo = scApp.getEQObjCacheManager().CommonInfo.dicCommunactionInfo; if (dicCommunactionInfo.ContainsKey("MCS")) { dicCommunactionInfo["MCS"].IsConnectinoSuccess = false; } isOnlineWithMcs = false; line.Secs_Link_Stat = SCAppConstants.LinkStatus.LinkFail; line.connInfoUpdate_Disconnection(); SCUtility.RecodeConnectionInfo ("MCS", SCAppConstants.RecodeConnectionInfo_Type.Disconnection.ToString(), line.StopWatch_mcsConnectionTime.Elapsed.TotalSeconds); }
protected void secsConnected(object sender, SECSEventArgs e) { if (line.Secs_Link_Stat == SCAppConstants.LinkStatus.LinkOK) { return; } Dictionary <string, CommuncationInfo> dicCommunactionInfo = scApp.getEQObjCacheManager().CommonInfo.dicCommunactionInfo; if (dicCommunactionInfo.ContainsKey("MCS")) { dicCommunactionInfo["MCS"].IsConnectinoSuccess = true; } line.Secs_Link_Stat = SCAppConstants.LinkStatus.LinkOK; AEQPT fourColorLight = scApp.getEQObjCacheManager().getEquipmentByEQPTID("FOUR_COLOR_LIGHT"); if (fourColorLight != null) { //Task.Run(() => fourColorLight.setFourColorLightBlue(true)); } isOnlineWithMcs = true; line.connInfoUpdate_Connection(); SCUtility.RecodeConnectionInfo ("MCS", SCAppConstants.RecodeConnectionInfo_Type.Connection.ToString(), line.StopWatch_mcsDisconnectionTime.Elapsed.TotalSeconds); ITimerAction timer = scApp.getBCFApplication().getTimerAction("SECSHeartBeat"); if (timer != null && !timer.IsStarted) { timer.start(); } initialWithMCS(); }