@model EMIS.ViewModel.SelectCourse.OptionalCourseSettingView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; bool IsEnabled = true; if (Request["type"] != "add") { IsEnabled = false; } ComboGridOptions cgop = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "queryClass", IsEnabled = IsEnabled, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }, new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.2 }, new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Specialty/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopGrademajor = new ComboGridOptions { TextField = "Name", ValueField = "GrademajorID", IsEnabled = IsEnabled, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Width=0.2, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Width=0.08, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Width=0.2, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", OnSelect = "QueryClassmajor", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.1, Align=AlignStyle.Center } }, //OnLoadSuccessFun="QueryClassmajor", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/OptionalCourseSetting/Class?GrademajorID=" + Model.GrademajorID), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopCourse = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", OnSelect = "CoursematerialSelect", IsEnabled = IsEnabled, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/OptionalCoursePlan/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; 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 } }; ListControlOptions lcop = new ListControlOptions { Name = "TeachingModeID", TextField = "Name", ValueField = "Value", ColumnCount = 4, SelectedValueUrl = @Url.Content("~/OptionalCourseSetting/TeachingModeType?ExecutableOptionalCourseID=" + Model.ExecutableOptionalCourseID) }; ListControlOptions lcoptp = new ListControlOptions { Name = "TeachingPlaceID", TextField = "Name", ValueField = "Value", ColumnCount = 4, SelectedValueUrl = @Url.Content("~/SpecialtyCourse/TeachingPlace?specialtyCourseID=" + Model.SpecialtyCourseID) }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@*
限选设定信息
*@
@Html.ContextMenuBar("Create")
@Html.HiddenFor(x => x.ExecutableOptionalCourseID) @Html.HiddenFor(x => x.OptionalCourseID) @Html.HiddenFor(x => x.RecordStatusName) @Html.HiddenFor(x => x.RecordStatus) @* *@ @**@ @**@ @**@ @**@ @* *@ @* *@
@Html.LabelFor(x => x.DefaultClassName): @Html.ComboGridFor(x => x.ClassmajorID, cgopClassmajor) @Html.LabelFor(x => x.DefaultClassName): @Html.TextBoxFor(x => x.DefaultClassName, new Dictionary { { "style", "width:85%;" } })
@Html.LabelFor(x => x.SchoolYearCode): @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, TextField = "Text", ValueField = "Value", ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }) @Html.LabelFor(x => x.SchoolYearCode): @Html.TextBoxFor(x => x.SchoolYearCode, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.Grade): @Html.SchoolYearDropDownListFor(x => x.GradeID, new DropdownListOptions { OnSelect = "queryClass" })@Html.LabelFor(x => x.Grade):, new DropdownListOptions { OnSelect = "SchoolyearDictionaryDropDown" } @Html.TextBoxFor(x => x.Grade, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.StandardDesc): @Html.ComboGridFor(x => x.StandardID, cgop) @Html.LabelFor(x => x.GrademajorName): @Html.ComboGridFor(x => x.GrademajorID, cgopGrademajor)
@Html.LabelFor(x => x.CourseName): @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
@Html.LabelFor(x => x.SchoolyearNumID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID, new DropdownListOptions { IsEnabled = false }) @Html.HiddenFor(x => x.SchoolyearNumID) @Html.LabelFor(x => x.SchoolcodeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Semester, x => x.SchoolcodeID, new DropdownListOptions { IsEnabled = false }) @Html.HiddenFor(x => x.SchoolcodeID) @Html.LabelFor(x => x.SchoolyearNumID): @Html.TextBoxFor(x => x.SchoolyearNumName, new TextBoxOptions { IsEnabled = false }) @Html.HiddenFor(x => x.SchoolyearNumName) @Html.HiddenFor(x => x.SchoolyearNumID) @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID) @Html.LabelFor(x => x.SchoolcodeID): @Html.TextBoxFor(x => x.SchoolcodeName, new TextBoxOptions { IsEnabled = false }) @Html.HiddenFor(x => x.SchoolcodeName) @Html.HiddenFor(x => x.SchoolcodeID) @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Schoolcode, x => x.SchoolcodeID)
@Html.LabelFor(x => x.CourseTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID) @Html.LabelFor(x => x.DepartmentID): @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)
@Html.LabelFor(x => x.CourseStructureID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseStructure, x => x.CourseStructureID) @Html.LabelFor(x => x.CourseCategoryID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseCategory, x => x.CourseCategoryID)
@Html.LabelFor(x => x.CourseQualityID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseQuality, x => x.CourseQualityID) @Html.LabelFor(x => x.TeachinglanguageID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Teachinglanguage, x => x.TeachinglanguageID)
@Html.LabelFor(x => x.ExaminationModeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, x => x.ExaminationModeID) @Html.LabelFor(x => x.ResultTypeID) @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType, (x => x.ResultTypeID))
@Html.LabelFor(x => x.PracticeTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_PracticeType, x => x.PracticeTypeID) @Html.LabelFor(x => x.PeopleNumlower): @Html.TextBoxFor(x => x.PeopleNumlower)
@Html.LabelFor(x => x.IsEnable): @Html.CheckBoxFor(x => x.IsEnable, (Model.IsEnable)) @Html.LabelFor(x => x.IsOpened): @Html.CheckBoxFor(x => x.IsOpened, (Model.IsOpened))
@Html.LabelFor(x => x.Credit): @Html.TextBoxFor(x => x.Credit) @Html.LabelFor(x => x.PeopleNumlimit): @Html.TextBoxFor(x => x.PeopleNumlimit)
@Html.LabelFor(x => x.TheoryCourse): @Html.TextBoxFor(x => x.TheoryCourse) @Html.LabelFor(x => x.Practicehours): @Html.TextBoxFor(x => x.Practicehours)
@Html.LabelFor(x => x.Trialhours): @Html.TextBoxFor(x => x.Trialhours) @Html.LabelFor(x => x.Totalhours): @Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
上课周次信息
@Html.LabelFor(x => x.TheoryWeeklyNum): @Html.TextBoxFor(x => x.TheoryWeeklyNum) @Html.LabelFor(x => x.PracticeWeeklyNum): @Html.TextBoxFor(x => x.PracticeWeeklyNum)
@Html.LabelFor(x => x.TrialWeeklyNum): @Html.TextBoxFor(x => x.TrialWeeklyNum) @Html.LabelFor(x => x.SchoolweeksNum): @Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.StartWeeklyNum): @Html.TextBoxFor(x => x.StartWeeklyNum) @Html.LabelFor(x => x.EndWeeklyNum): @Html.TextBoxFor(x => x.EndWeeklyNum)
@Html.LabelFor(x => x.WeeklyHours): @Html.TextBoxFor(x => x.WeeklyHours) @Html.LabelFor(x => x.WeeklyNum): @Html.TextBoxFor(x => x.WeeklyNum)
@Html.LabelFor(x => x.TeachingModeID): @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, lcop)
@Html.ContextMenuBar("Edit-ClassGrid") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassmajorID" }, new BoundFieldColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Width=0.03 } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/OptionalCourseSetting/ClassList?executableOptionalCourseID=" + Model.ExecutableOptionalCourseID), IsPostBack = true, ID = "dgClassList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, MaxHeight = 110 })
@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("~/OptionalCourseSetting/TeacherList?executableOptionalCourseID=" + Model.ExecutableOptionalCourseID), IsPostBack = true, ID = "dgTeacherList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, MaxHeight = 65 })
@Html.CheckList(lcop)
@Html.LabelFor(x => x.Totalhours): @Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.Remarks): @Html.TextAreaFor(x => x.Remarks, new Dictionary { { "style", "width:85%;" } })
}