@model EMIS.ViewModel.EvaluationManage.StudentEvaluation.EvaluationStudentSettingScoreView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var isEnable = Request["type"] == "detail" ? false : true; //院系所 ComboGridOptions cgopCollege = new ComboGridOptions { ID = "CollegeID", TextField = "Name", ValueField = "CollegeID", IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; //教研室 ComboGridOptions cgopDepartment = new ComboGridOptions { ID = "DepartmentID", TextField = "Name", ValueField = "DepartmentID", IsEnabled = false, 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 } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Department/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //课程信息 ComboGridOptions cgopCourse = new ComboGridOptions { ID = "CoursematerialID", TextField = "CourseName", ValueField = "CoursematerialID", IsEnabled = false, 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" } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/GetEnableAndUseCoursematerialView?coursematerialID=" + Model.CoursematerialID), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //任课教师 ComboGridOptions cgopStaff = new ComboGridOptions { TextField = "Name", ValueField = "UserID", IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="StaffCode", HeaderText="教师工号", Align=AlignStyle.Center ,Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,Width=0.1 } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //参评类型 ComboGridOptions cgopEvaluationParticipateType = new ComboGridOptions { TextField = "ParticipateTypeName", ValueField = "EvaluationParticipateTypeID", OnSelect = "queryEvaluationParticipateType", IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.1, OrderFieldName="ParticipateTypeID" }, new BoundFieldColumn { FieldName="IsStudentName", HeaderText="学生用", Align=AlignStyle.Center, Width=0.08, OrderFieldName="IsStudent", CustomFormatFun="SetRedColumn"} }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EvaluationParticipateType/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //评价表名 ComboGridOptions cgopEvaluationTable = new ComboGridOptions { TextField = "Name", ValueField = "EvaluationTableID", OnSelect = "queryEvaluationTable", IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Code", HeaderText="编号", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.25 }, //new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.12, OrderFieldName="ParticipateTypeID" }, //new BoundFieldColumn { FieldName="IsStudentName", HeaderText="学生用", Align=AlignStyle.Center, Width=0.1, OrderFieldName="IsStudent", CustomFormatFun="SetRedColumn" }, new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="IsEnabledName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.1, OrderFieldName="IsEnabled", CustomFormatFun="SetRedColumn" } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EvaluationTable/GetEvaluationTableEnabledAndUseList?evaluationTableID=" + Model.EvaluationTableID), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@if (Request["type"] != "detail") { @Html.ContextMenuBar("Edit") }
@Html.HiddenFor(x => x.EvaluationStudentSettingScoreID) @Html.HiddenFor(x => x.EvaluationStudentSettingID) @Html.HiddenFor(x => x.EducationMissionClassID)
@Html.LabelFor(x => x.MissionClassName): @Html.TextBoxFor(x => x.MissionClassName, new TextBoxOptions() { IsEnabled = false }, new Dictionary { { "style", "width:92%;" } })
@Html.LabelFor(x => x.SchoolyearCode): @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, TextField = "Text", ValueField = "Value", IsEnabled = false, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") }) @Html.LabelFor(x => x.CollegeName): @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
@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 = false }) @Html.LabelFor(x => x.CourseCategoryName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseCategory, x => x.CourseCategoryID, new DropdownListOptions() { IsEnabled = false })
@Html.LabelFor(x => x.CourseTypeName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID, new DropdownListOptions() { IsEnabled = false }) @Html.LabelFor(x => x.CourseQualityName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseQuality, x => x.CourseQualityID, new DropdownListOptions() { IsEnabled = false })
@Html.LabelFor(x => x.Credit): @*@Html.TextBoxFor(x => x.Credit, new Dictionary { { "readOnly", "true" } })*@ @Html.TextBoxFor(x => x.Credit, new TextBoxOptions() { IsEnabled = false }) @Html.LabelFor(x => x.HandleModeID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_HandleMode, (x => x.HandleModeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
@Html.LabelFor(x => x.TeachingModeID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, (x => x.TeachingModeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false }) @Html.LabelFor(x => x.MissionClassStatus): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.EM_EducationMissionClassStatus, (x => x.MissionClassStatus), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
@Html.LabelFor(x => x.ParticipateTypeName): @Html.ComboGridFor(x => x.EvaluationParticipateTypeID, cgopEvaluationParticipateType) @Html.LabelFor(x => x.EvaluationTableName): @Html.ComboGridFor(x => x.EvaluationTableID, cgopEvaluationTable)
@Html.LabelFor(x => x.StaffName): @Html.ComboGridFor(x => x.UserID, cgopStaff) @Html.LabelFor(x => x.TeachingMethodID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.EM_TeachingMethod, (x => x.TeachingMethodID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
@Html.LabelFor(x => x.ParticipateCount): @Html.TextBoxFor(x => x.ParticipateCount, new TextBoxOptions() { IsEnabled = false }) @Html.LabelFor(x => x.ValidityParticipateCount): @Html.TextBoxFor(x => x.ValidityParticipateCount, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.ValidityParticipateRate): @Html.TextBoxFor(x => x.ValidityParticipateRate, new TextBoxOptions() { IsEnabled = false }) @Html.LabelFor(x => x.TotalScore): @Html.TextBoxFor(x => x.TotalScore, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.Remark): @if (!isEnable) { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 60px" }, { "disabled", "true" } }) } else { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 60px" } }) }
}