Beispiel #1
0
 public string GetAdminRuleComments(AdministrativeRuleEnum algoEnum)
 {
     return(this.AdministrativeRuleComments[algoEnum]);
 }
        public HostView(AdministrativeRuleEnum ruleEnum) : this()
        {
            this.Title = $"规则-{ruleEnum.GetLocalDescription()}";

            if (ruleEnum == AdministrativeRuleEnum.AmPmClassHour)
            {
                FillContainer(new AmPmClassHourView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.ArrangeContinuousPlanFlush)
            {
                FillContainer(new ArrangeContinuousPlanFlush());
            }
            else if (ruleEnum == AdministrativeRuleEnum.ClassHourAverage)
            {
                FillContainer(new ClassHourAverageView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.ClassHourSameOpen)
            {
                FillContainer(new ClassHourSameOpenView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.ClassUnion)
            {
                FillContainer(new ClassUnionView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.CourseArrangeContinuous)
            {
                FillContainer(new CourseArrangeContinuous());
            }
            else if (ruleEnum == AdministrativeRuleEnum.CourseLimit)
            {
                FillContainer(new CourseLimitView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.CourseTime)
            {
                FillContainer(new CourseTimeView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.MasterApprenttice)
            {
                FillContainer(new MasterApprentticeView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.MutexGroup)
            {
                FillContainer(new MutexGroupView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.OddDualWeek)
            {
                FillContainer(new OddDualWeekView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.TeacherAmPmNoContinues)
            {
                FillContainer(new AmPmNoContinuesView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.TeacherMaxDaysPerWeek)
            {
                FillContainer(new Rule.Teacher.MaxDaysPerWeekView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.TeacherMaxGapsPerDay)
            {
                FillContainer(new Rule.Teacher.MaxGapsPerDayView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.TeacherMaxHoursDaily)
            {
                FillContainer(new Rule.Teacher.MaxHoursDailyView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.TeacherTime)
            {
                FillContainer(new TeacherTimeView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.TeachingPlanFlush)
            {
                FillContainer(new PlanFlushView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.TeacherPriorityBalanceRule)
            {
                FillContainer(new TeacherPriorityBalanceView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.TeacherHalfDayWorkRule)
            {
                FillContainer(new TeacherHalfDayWorkView());
            }
            else if (ruleEnum == AdministrativeRuleEnum.LockedCourse)
            {
                FillContainer(new LockedCourseView());
            }
        }