@model EMIS.ViewModel.MinorManage.MinorPlanManage.MinorSpecialtyPlanView @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("~/MinorSpecialtyPlan/TeachingModeType?MinorPlanID=" + Model.MinorPlanID) }; ListControlOptions lcoptp = new ListControlOptions { Name = "TeachingPlaceID", TextField = "Name", ValueField = "Value", ColumnCount = 4, SelectedValueUrl = @Url.Content("~/MinorSpecialtyPlan/TeachingPlace?MinorPlanID=" + Model.MinorPlanID) }; } @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.DisplayFor(x => x.StandardName) @Html.LabelFor(x => x.CoursematerialID): @Html.DisplayFor(x => x.CourseName)
@Html.LabelFor(x => x.DepartmentName): @Html.DisplayFor(x => x.DepartmentName) @Html.LabelFor(x => x.CourseStructureID): @Html.DisplayFor(x => x.CourseStructureName)
@Html.LabelFor(x => x.CourseCategoryID): @Html.DisplayFor(x => x.CourseCategoryName) @Html.LabelFor(x => x.CourseQualityID): @Html.DisplayFor(x => x.CourseQualityName)
@Html.LabelFor(x => x.CourseTypeID): @Html.DisplayFor(x => x.CourseTypeName) @Html.LabelFor(x => x.ExaminationModeID): @Html.DisplayFor(x => x.ExaminationModeName)
@Html.LabelFor(x=>x.ResultTypeID) @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType, (x => x.ResultTypeID)) @Html.LabelFor(x => x.SchoolyearNumID): @Html.DisplayFor(x => x.SchoolyearNumName)
@Html.LabelFor(x => x.StarttermID): @Html.DisplayFor(x => x.StarttermName) @Html.LabelFor(x => x.SchoolcodeID): @Html.DisplayFor(x => x.SchoolcodeName)
@Html.LabelFor(x => x.TeachinglanguageID): @Html.DisplayFor(x => x.TeachinglanguageName) @Html.LabelFor(x => x.PracticeTypeID): @Html.DisplayFor(x => x.PracticeTypeName)
@Html.LabelFor(x => x.CourseFineID): @Html.DisplayFor(x => x.CourseFineName) @Html.LabelFor(x => x.IsRequired): @Html.DisplayFor(x => x.IsRequiredName)
@Html.LabelFor(x => x.IsSpecialtycore): @Html.DisplayFor(x => x.IsSpecialtycoreName) @Html.LabelFor(x => x.IsCooperation): @Html.DisplayFor(x => x.IsCooperationName)
@Html.LabelFor(x => x.IsElective): @Html.DisplayFor(x => x.IsElectiveName) @Html.LabelFor(x => x.IsNetworkCourse): @Html.DisplayFor(x => x.IsNetworkCourseName)
@Html.LabelFor(x => x.IsMainCourse): @Html.DisplayFor(x => x.IsMainCourseName) @Html.LabelFor(x => x.Credit): @Html.TextBoxFor(x => x.Credit)
@Html.LabelFor(x => x.IsEnable): @Html.DisplayFor(x => x.IsEnableName) @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.HandleModeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HandleMode, (x => x.HandleModeID)) @Html.LabelFor(x => x.IsNeedMaterial): @Html.CheckBoxFor(x => x.IsNeedMaterial)
@Html.LabelFor(x => x.Remarks): @Html.TextAreaFor(x => x.Remarks, new Dictionary { { "style", "width:500px;" } })
}