@model EMIS.ViewModel.CultureplanManage.PlanManagement.PlanApplicationView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Approve"; var isEnabled = (Request["planApplicationID"] ?? "") == ""; //年级专业 ComboGridOptions cgopGrademajor = new ComboGridOptions { TextField = "Name", ValueField = "GrademajorID", OnSelect = "queryGrademajor", IsEnabled = isEnabled, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.2 }, new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.3 } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //课程信息 ComboGridOptions cgopCourse = new ComboGridOptions { ID = "CoursematerialID", TextField = "CourseName", ValueField = "CoursematerialID", IsEnabled = isEnabled, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }, new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.1, CustomFormatFun="SetRedColumn" } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/GetEnableAndUseCoursematerialView?coursematerialID=" + Model.CoursematerialID), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //教研室 ComboGridOptions cgopDepartment = new ComboGridOptions { TextField = "Name", ValueField = "DepartmentID", IsEnabled = isEnabled, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.2 }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CourseCollege"), Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Department/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //授课方式 ListControlOptions lcoptm = new ListControlOptions { ID = "TeachingModeIDList", Name = "TeachingModeIDList", TextField = "Name", ValueField = "Value", ColumnCount = 4, IsEnabled = isEnabled, SelectedValueUrl = @Url.Content("~/PlanApplicationApprove/TeachingModeTypeList?planApplicationID=" + Model.PlanApplicationID) }; //授课地点 ListControlOptions lcoptp = new ListControlOptions { ID = "TeachingPlaceIDList", Name = "TeachingPlaceIDList", TextField = "Name", ValueField = "Value", ColumnCount = 4, IsEnabled = isEnabled, SelectedValueUrl = @Url.Content("~/PlanApplicationApprove/TeachingPlaceList?planApplicationID=" + Model.PlanApplicationID) }; var listAction = ViewBag.ListAction as List; var defaultAction = listAction.FirstOrDefault(x => true); var defaultActionValue = (defaultAction == null ? null : defaultAction.Value); } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("Approve")
@Html.HiddenFor(x => x.PlanApplicationID)
@Html.LabelFor(x => x.SchoolyearCode): @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, TextField = "Text", ValueField = "Value", IsEnabled = isEnabled, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") }) @Html.LabelFor(x => x.GrademajorName): @Html.ComboGridFor(x => x.GrademajorID, cgopGrademajor)
@Html.LabelFor(x => x.GradeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeID), new DropdownListOptions() { IsEnabled = false }) @Html.LabelFor(x => x.StandardCode): @Html.TextBoxFor(x => x.StandardCode, new TextBoxOptions() { IsEnabled=false })
@Html.LabelFor(x => x.StandardName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x => x.StandardID), new DropdownListOptions() { IsEnabled = false }) @Html.LabelFor(x => x.EducationID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), new DropdownListOptions() { IsEnabled = false })
@Html.LabelFor(x => x.LearningformID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, (x => x.LearningformID), new DropdownListOptions() { IsEnabled = false }) @Html.LabelFor(x => x.LearnSystem): @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.CourseName): @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse) @Html.LabelFor(x => x.DepartmentName): @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)
@Html.LabelFor(x => x.CourseStructureName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseStructure, x => x.CourseStructureID, new DropdownListOptions() { IsEnabled = isEnabled }) @Html.LabelFor(x => x.CourseCategoryName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseCategory, x => x.CourseCategoryID, new DropdownListOptions() { IsEnabled = isEnabled })
@Html.LabelFor(x => x.CourseTypeName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID, new DropdownListOptions() { IsEnabled = isEnabled }) @Html.LabelFor(x => x.CourseQualityName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseQuality, x => x.CourseQualityID, new DropdownListOptions() { IsEnabled = isEnabled })
教学设置信息
@Html.LabelFor(x => x.Credit): @Html.TextBoxFor(x => x.Credit, new TextBoxOptions() { IsEnabled = isEnabled }) @Html.LabelFor(x => x.HandleModeName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HandleMode, (x => x.HandleModeID), new DropdownListOptions() { IsEnabled = isEnabled })
@Html.LabelFor(x => x.TheoryCourse): @Html.TextBoxFor(x => x.TheoryCourse, new TextBoxOptions() { IsEnabled = isEnabled }) @Html.LabelFor(x => x.Practicehours): @Html.TextBoxFor(x => x.Practicehours, new TextBoxOptions() { IsEnabled = isEnabled })
@Html.LabelFor(x => x.Trialhours): @Html.TextBoxFor(x => x.Trialhours, new TextBoxOptions() { IsEnabled = isEnabled }) @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 = isEnabled }) @Html.LabelFor(x => x.PracticeWeeklyNum): @Html.TextBoxFor(x => x.PracticeWeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled })
@Html.LabelFor(x => x.TrialWeeklyNum): @Html.TextBoxFor(x => x.TrialWeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled }) @Html.LabelFor(x => x.SchoolweeksNum): @Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.WeeklyHours): @Html.TextBoxFor(x => x.WeeklyHours, new TextBoxOptions() { IsEnabled = isEnabled }) @Html.LabelFor(x => x.WeeklyNum): @Html.TextBoxFor(x => x.WeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled })
@Html.LabelFor(x => x.StartWeeklyNum): @Html.TextBoxFor(x => x.StartWeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled }) @Html.LabelFor(x => x.EndWeeklyNum): @Html.TextBoxFor(x => x.EndWeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled })
其它信息
@Html.LabelFor(x => x.IsSpecialtycore): @Html.CheckBoxFor(x => x.IsSpecialtycore, new Dictionary() { { "disabled", "false" } }) @Html.LabelFor(x => x.IsCooperation): @Html.CheckBoxFor(x => x.IsCooperation, new Dictionary() { { "disabled", "false" } })
@Html.LabelFor(x => x.IsRequired): @Html.CheckBoxFor(x => x.IsRequired, new Dictionary() { { "disabled", "false" } }) @Html.LabelFor(x => x.IsElective): @Html.CheckBoxFor(x => x.IsElective, new Dictionary() { { "disabled", "false" } })
@Html.LabelFor(x => x.IsNetworkCourse): @Html.CheckBoxFor(x => x.IsNetworkCourse, new Dictionary() { { "disabled", "false" } }) @Html.LabelFor(x => x.IsMainCourse): @Html.CheckBoxFor(x => x.IsMainCourse, new Dictionary() { { "disabled", "false" } })
@Html.LabelFor(x => x.IsNeedMaterial): @Html.CheckBoxFor(x => x.IsNeedMaterial, new Dictionary() { { "disabled", "false" } }) @Html.LabelFor(x => x.CourseFineID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseFine, x => x.CourseFineID, new DropdownListOptions() { IsEnabled = isEnabled })
@Html.LabelFor(x => x.PracticeTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_PracticeType, x => x.PracticeTypeID, new DropdownListOptions() { IsEnabled = isEnabled }) @Html.LabelFor(x => x.TeachinglanguageID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Teachinglanguage, x => x.TeachinglanguageID, new DropdownListOptions() { IsEnabled = isEnabled })
@Html.LabelFor(x => x.ExaminationModeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, x => x.ExaminationModeID, new DropdownListOptions() { IsEnabled = isEnabled }) @Html.LabelFor(x=>x.ResultTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType, (x => x.ResultTypeID), new DropdownListOptions() { IsEnabled = isEnabled })
@Html.LabelFor(x => x.TeachingModeIDList): @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, lcoptm)
@Html.LabelFor(x => x.TeachingPlaceIDList): @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.EM_TeachingPlace, lcoptp)
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 18px" }, { "disabled", "true" } })
@Html.LabelFor(x => x.Action): @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ID = "ddlAction", Name = "ddlAction", ItemList = listAction, SelectedValue = defaultActionValue })
@Html.LabelFor(x => x.Comment): @Html.TextAreaFor(x => x.Comment, new Dictionary { { "style", "width: 90%;min-height: 30px" } })
}