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 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(); }