@model EMIS.ViewModel.SelectCourse.ExecutableFreeSelectionCouseView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Details"; ComboGridOptions cgopDepartment = new ComboGridOptions { TextField = "Name", ValueField = "DepartmentID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.3 } //new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 } //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.3 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Department/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "ClassroomID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="Code", HeaderText="教室代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="ClassroomTypeName", HeaderText="教室类型", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="Totalseating", HeaderText="总座位数", Align=AlignStyle.Center, Width=0.1 }, }, IsCheckOnSelect = true, // DataSourceUrl = Url.Content("~/CollegeClassroom/ClassroomListComboGrid?collegeID=" + Model.CollegeID), DataSourceUrl = Url.Content("~/Classroom/List"),//去除院系条件 IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopCoursesTime = new ComboGridOptions { TextField = "TimesSegmentName", ValueField = "CoursesTimeID", GridOptions = new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="CoursesTimeID"}, new BoundFieldColumn { FieldName="Times", HeaderText="节次", Align=AlignStyle.Center, Width=0.02 }, new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="StartDate", HeaderText="开始时间", CustomFormatFun="formatStartTime", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="EndDate", HeaderText="结束时间", CustomFormatFun="formatEndTime", Align=AlignStyle.Center, Width=0.05 } }, IsCheckOnSelect = true, // DataSourceUrl = Url.Content("~/CollegeClassroom/ClassroomListComboGrid?collegeID=" + Model.CollegeID), DataSourceUrl = Url.Content("~/CoursesTime/List"),//去除院系条件 IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ListControlOptions lcop = new ListControlOptions { Name = "TeachingModeID", TextField = "Name", ValueField = "Value", ColumnCount = 4, SelectedValueUrl = @Url.Content("~/ExecutableFreeSelectionCouse/TeachingModeType?ExecutableFreeSelectionCouseID=" + Model.ExecutableFreeSelectionCouseID) }; ListControlOptions lcopGrade = new ListControlOptions { Name = "GradeYear", TextField = "Name", ValueField = "Value", ColumnCount = 4, SelectedValueUrl = @Url.Content("~/ExecutableFreeSelectionCouse/GradeYear?ExecutableFreeSelectionCouseID=" + Model.ExecutableFreeSelectionCouseID) }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { HttpMethod = "Post", OnSuccess = "EMISFunction.FormSuccess" })) {
@*
任选设定信息
*@
@Html.HiddenFor(x => x.ExecutableFreeSelectionCouseID) @**@ @* *@
@Html.LabelFor(x => x.DefaultClassName): @Html.TextBoxFor(x => x.DefaultClassName, new Dictionary { { "style", "width:85%;" } })
@Html.LabelFor(x => x.SchoolyearCode): @Html.TextBoxFor(x => x.SchoolyearCode, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.CourseName): @Html.TextBoxFor(x => x.CourseName, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.CourseTypeID): @Html.TextBoxFor(x => x.CourseTypeName, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.DepartmentName): @Html.TextBoxFor(x => x.DepartmentName, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.CourseStructureID): @Html.TextBoxFor(x => x.CourseStructureName, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.CourseCategoryID): @Html.TextBoxFor(x => x.CourseCategoryName, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.CourseQualityID): @Html.TextBoxFor(x => x.CourseQualityName, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.TeachinglanguageID): @Html.TextBoxFor(x => x.TeachinglanguageName, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.ExaminationModeID): @Html.TextBoxFor(x => x.ExaminationModeName, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x=>x.ResultTypeID) @Html.TextBoxFor(x => x.ResultTypeName, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.SchoolyearNumID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID, null, new Dictionary { { "disabled", "disabled" } }) @Html.LabelFor(x => x.SchoolcodeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Semester, x => x.SchoolcodeID, null, new Dictionary { { "disabled", "disabled" } })
@Html.LabelFor(x => x.PracticeTypeID): @Html.TextBoxFor(x => x.PracticeTypeName, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.IsNeedMaterial): @Html.CheckBoxFor(x => x.IsNeedMaterial)
@Html.LabelFor(x => x.HandleModeID): @Html.TextBoxFor(x => x.HandleModeName, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.PeopleNumlower): @Html.TextBoxFor(x => x.PeopleNumlower, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.Credit): @Html.TextBoxFor(x => x.Credit, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.PeopleNumlimit): @Html.TextBoxFor(x => x.PeopleNumlimit, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.TheoryCourse): @Html.TextBoxFor(x => x.TheoryCourse, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.Practicehours): @Html.TextBoxFor(x => x.Practicehours, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.Trialhours): @Html.TextBoxFor(x => x.Trialhours, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.Totalhours): @Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
上课周次信息
@Html.LabelFor(x => x.TheoryWeeklyNum): @Html.TextBoxFor(x => x.TheoryWeeklyNum, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.PracticeWeeklyNum): @Html.TextBoxFor(x => x.PracticeWeeklyNum, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.TrialWeeklyNum): @Html.TextBoxFor(x => x.TrialWeeklyNum, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.SchoolweeksNum): @Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.StartWeeklyNum): @Html.TextBoxFor(x => x.StartWeeklyNum, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.EndWeeklyNum): @Html.TextBoxFor(x => x.EndWeeklyNum, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.WeeklyHours): @Html.TextBoxFor(x => x.WeeklyHours, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.WeeklyNum): @Html.TextBoxFor(x => x.WeeklyNum, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.Weekday): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ES_WeekDay, (x => x.Weekday)) @Html.LabelFor(x => x.CoursesTimeID): @Html.ComboGridFor(x => x.CoursesTimeID, cgopCoursesTime)
@Html.LabelFor(x => x.StartEndWeeklyNum): @Html.TextBoxFor(x => x.StartEndWeeklyNum, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.ClassroomName): @Html.TextBoxFor(x => x.ClassroomName, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.Scheduling): @*@Html.ContextMenuBar("Edit-SchedulingGrid")*@ @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn { FieldName="ExecutableFreeSelectionCouseSchedulingID" }, new DictionaryDropdownListColumn { HeaderText="授课星期", FieldName="Weekday", DictionaryType=EMIS.ViewModel.DictionaryItem.ES_WeekDay,Width=80 }, new TriggerBoxColumn { HeaderText="节次", FieldName="CoursesTimeID", TextFieldName="Times", TargetTextFieldName="Times", TargetFieldName="CoursesTimeID", TriggerHandle="",Width=80 }, //new DictionaryDropdownListColumn { HeaderText="教室类型", FieldName="ClassroomTypeID", DictionaryType=EMIS.ViewModel.DictionaryItem.CF_ClassroomType,Width=80 }, //new TriggerBoxColumn { HeaderText="教室", FieldName="ClassroomID", TextFieldName="ClassroomName", TargetTextFieldName="Name", TargetFieldName="ClassroomID", TriggerHandle="selectClassroom",Width=80 } }, PageSize = 5, IsPostBack = true, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExecutableFreeSelectionCouse/GetSchedulingViewList?ExecutableFreeSelectionCouseID=" + Model.ExecutableFreeSelectionCouseID), ID = "dgSchedulingList", //OnLoadSuccessFun = "SetTotalView", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, MaxHeight = 110 })
@Html.LabelFor(x => x.GradeYear): @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, lcopGrade)
@Html.LabelFor(x => x.SpecialtyID): @*@Html.ContextMenuBar("Edit-SpecialtyGrid")*@ @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyID" }, new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 }, new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.04 } //new BoundFieldColumn { FieldName="ScienceclassName", HeaderText="专业科类", Align=AlignStyle.Center, Width=0.04 }, //new BoundFieldColumn { FieldName="PropertyName", HeaderText="专业属性", Align=AlignStyle.Center, Width=0.04 }, //new BoundFieldColumn { FieldName="StandardTitleName", HeaderText="专业称号", Align=AlignStyle.Center, Width=0.04 }, //new BoundFieldColumn { FieldName="StandardLevelName", HeaderText="称号级别", Align=AlignStyle.Center, Width=0.04 } }, PageSize =20, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExecutableFreeSelectionCouse/SpecialtyList?ExecutableFreeSelectionCouseID=" + Request["ExecutableFreeSelectionCouseID"]), IsPostBack = true, ID = "dgSpecialtyList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
@Html.LabelFor(x => x.Teachers): @* @Html.ContextMenuBar("Edit-TeacherGrid")*@ @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn { FieldName="UserID" }, new BoundFieldColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 }, new DictionaryDropdownListColumn { FieldName="TeachingMethod", HeaderText="任课方式", Align=AlignStyle.Center, Width=0.04, DictionaryType = EMIS.ViewModel.DictionaryItem.EM_TeachingMethod } }, PageSize = 3, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExecutableFreeSelectionCouse/TeacherList?ExecutableFreeSelectionCouseID=" + Request["ExecutableFreeSelectionCouseID"]), IsPostBack = true, ID = "dgTeacherList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, MaxHeight = 65 })
@Html.LabelFor(x => x.TeachingModeID): @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, lcop)
@Html.LabelFor(x => x.Remarks): @Html.TextAreaFor(x => x.Remarks, new Dictionary { { "style", "width:85%;" } })
}