示例#1
0
        public void CurrentAlarmListRequestEvent(CurrentAlarmListRequest currentAlarmListJob, bool needReply = true)
        {
            AddLog(currentAlarmListJob.ToString());
            if (!needReply)
            {
                return;
            }
            CurrentAlarmListReport report = new CurrentAlarmListReport();

            report.Add(new CurrentAlarmListReport()
            {
                UNITID   = "1AED06-IND",
                ALIDLIST = new List <string>()
                {
                    "6239",
                    "6240",
                    "6241",
                    "6242",
                },
            });
            report.Add(new CurrentAlarmListReport()
            {
                UNITID   = "1AED06-IND1",
                ALIDLIST = new List <string>()
                {
                    "6239",
                    "6240",
                    "6241",
                    "6242",
                },
            });
            cimClient?.LaunchCurrentAlarmListReport(report);
        }
        public void HandleSecsMessage(SecsMessage secsMessage)
        {
            PrimaryMessage = secsMessage;
            switch (secsMessage.GetSFString())
            {
            case "S5F3":    // enable or disable alarm
                SubScenarioName = Resource.AMS_Enable_Disable_Alarm;
                AlarmEnableDisableRequest alarmEnableDisableJob = new AlarmEnableDisableRequest();
                alarmEnableDisableJob.Parse(PrimaryMessage.SecsItem);
                AMSCallBack.AlarmEnableDisableRequestEvent(alarmEnableDisableJob);
                secsMessage.S5F4(0);
                break;

            case "S5F103":    // current alarm set list request
                SubScenarioName = Resource.AMS_Alarm_List_Request;
                CurrentAlarmListRequest currentAlarmListJob = new CurrentAlarmListRequest();
                currentAlarmListJob.Parse(PrimaryMessage.SecsItem);
                AMSCallBack.CurrentAlarmListRequestEvent(currentAlarmListJob, true);
                break;

            default:
                break;
            }
        }
 public void CurrentAlarmListRequestEvent(CurrentAlarmListRequest currentAlarmListJob, bool needReply = true)
 {
     //throw new NotImplementedException();
 }
示例#4
0
 /// <summary>
 /// 接口方法,触发事件,无需调用
 /// </summary>
 public void CurrentAlarmListRequestEvent(CurrentAlarmListRequest currentAlarmListJob, bool needReply = true)
 {
     OnCurrentAlarmListRequest?.Invoke(this, new CIMEventArgs <CurrentAlarmListRequest>(currentAlarmListJob, needReply));
 }