private void Init()
        {
            //AlarmWayOR = new AlarmWayInfo();

            AlarmGroupsList = new AlarmGroupsDA().selectAllDate();
            DisarmTimeList = new DisarmTimeDA().selectAllDate();

              StatusLeve = new ObservableCollection<StatusOR>() {
            new StatusOR(){ ID=1,Name="1级"},
            new StatusOR(){ ID=2,Name="2级"},
            new StatusOR(){ ID=3,Name="3级"},
            new StatusOR(){ ID=4,Name="4级"}
            };
            if (OperationType == OpType.Alert)
            {
                //AlarmWayOR.
                    InitAlarm(EventTypeObj.Alarmway);
                //告警组
                CheckAlarm(EventTypeObj.Alarmtarget);

                //撤防
                foreach (DisarmTimeOR li in DisarmTimeList)
                {
                    if (li.Disarmid.ToString()== EventTypeObj.Disarmid)
                    {
                        li.IsSelected = true;
                    }
                }

                //状态
                foreach (StatusOR obj in StatusLeve)
                {
                    if (obj.ID == EventTypeObj.Alarmlevel)
                    {
                        SelectStatusOR = obj;
                        break;
                    }
                }
            }
        }
        public void Init()
        {
            if (_DisarmTimeORList != null)
            {
                _DisarmTimeORList.Clear();
            }
            else
            {
                _DisarmTimeORList = new ObservableCollection<DisarmTimeOR>();
            }

            DisarmTimeDA _DA = new DisarmTimeDA();
            var v=_DA.selectAllDate();
            foreach (var vobj in v)
            {
                _DisarmTimeORList.Add(vobj);
            }
        }