private void Init()
        {
            _Window.cbStation.SelectionChanged += new SelectionChangedEventHandler(cbStation_SelectionChanged);

            StationORList = new StationDA().selectAllStation();
            SchedulingORList = new SchedulingDA().selectAllDate();
            AlarmLevelSetORList = new AlarmLevelSetDA().selectAllDate();

            if (OperationType == OpType.Alert && AlarmGroupMembersObj != null)
            {
                if (StationORList != null)
                {
                    var vS = from f in StationORList where f.Stationid == AlarmGroupMembersObj.Stationid select f;
                    if (vS.Count() != 0)
                        SelectStationOR = vS.First();
                }
                cbStation_SelectionChanged(null, null);

                if (AlarmGroupsORList != null)//报警组
                {
                    var vag = from f in AlarmGroupsORList where f.Alarmgroupsid == AlarmGroupMembersObj.Alarmgroupsid select f;
                    if (vag.Count() != 0)
                        SelectAlarmGroupsOR = vag.First();
                }

                if (SchedulingORList != null)//排班
                {
                    var vSchd = from f in SchedulingORList where f.Frequency == AlarmGroupMembersObj.Scheduling select f;
                    if (vSchd.Count() != 0)
                        SelectSchedulingOR = vSchd.First();
                }

                if (AlarmLevelSetORList != null)//处理等级
                {
                    var valarm = from f in AlarmLevelSetORList where f.Id == AlarmGroupMembersObj.Processlevel select f;
                    if (valarm.Count() != 0)
                        SelectAlarmLevelSetOR = valarm.First();
                }
            }

            //SchedulingORList
            //
        }
        public void Init()
        {
            if (_SchedulingORList != null)
            {
                _SchedulingORList.Clear();
            }
            else
            {
                _SchedulingORList = new ObservableCollection<SchedulingOR>();
            }

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