@model EMIS.ViewModel.MinorManage.MinorCourseManage.MinorSpecialtyCourseView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions cgop = new ComboGridOptions { TextField = "StandardName", ValueField = "SpecialtyID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="Code", HeaderText="专业代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Specialty/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopCourse = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", 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("~/Coursematerial/GetIsEnableCoursematerialView"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopDepartment = new ComboGridOptions { TextField = "Name", ValueField = "DepartmentID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Width=0.1, Align=AlignStyle.Center } }, 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("~/MinorSpecialtyCourse/TeachingModeType?MinorCourseID=" + Model.MinorCourseID) }; ListControlOptions lcoptp = new ListControlOptions { Name = "TeachingPlaceID", TextField = "Name", ValueField = "Value", ColumnCount = 4, SelectedValueUrl = @Url.Content("~/MinorSpecialtyCourse/TeachingPlace?MinorCourseID=" + Model.MinorCourseID) }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@if (Request["isView"] != "1") {
@Html.ContextMenuBar("Edit")
}
@Html.HiddenFor(x => x.MinorCourseID)
@Html.LabelFor(x => x.StandardID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, x => x.StandardID) @Html.LabelFor(x => x.CoursematerialID): @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
@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.CourseTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID) @Html.LabelFor(x => x.ExaminationModeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, x => x.ExaminationModeID)
@Html.LabelFor(x => x.SchoolyearNumID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID) @Html.LabelFor(x => x.SchoolcodeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Semester, x => x.SchoolcodeID)
@Html.LabelFor(x => x.TeachinglanguageID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Teachinglanguage, x => x.TeachinglanguageID) @Html.LabelFor(x => x.PracticeTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_PracticeType, x => x.PracticeTypeID)
@Html.LabelFor(x => x.CourseFineID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseFine, x => x.CourseFineID) @Html.LabelFor(x=>x.ResultTypeID) @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType, (x => x.ResultTypeID))
@Html.LabelFor(x => x.IsRequired): @Html.CheckBoxFor(x => x.IsRequired) @Html.LabelFor(x => x.IsSpecialtycore): @Html.CheckBoxFor(x => x.IsSpecialtycore)
@Html.LabelFor(x => x.IsCooperation): @Html.CheckBoxFor(x => x.IsCooperation) @Html.LabelFor(x => x.IsElective): @Html.CheckBoxFor(x => x.IsElective)
@Html.LabelFor(x => x.IsNetworkCourse): @Html.CheckBoxFor(x => x.IsNetworkCourse) @Html.LabelFor(x => x.IsMainCourse): @Html.CheckBoxFor(x => x.IsMainCourse)
@Html.LabelFor(x => x.IsEnable): @Html.CheckBoxFor(x => x.IsEnable) @Html.LabelFor(x => x.Credit): @Html.TextBoxFor(x => x.Credit)
@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.LabelFor(x => x.TeachingPlaceID): @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.EM_TeachingPlace, lcoptp)
@Html.LabelFor(x => x.Remarks): @Html.TextAreaFor(x => x.Remarks, new Dictionary { { "style", "width:98%;" } })
}