@model EMIS.ViewModel.EvaluationManage.StudentEvaluation.EvaluationStudentSettingDetailView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "EvaluationStudentEdit"; 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 { 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 cgopStudent = new ComboGridOptions { TextField = "StudentNo", ValueField = "UserID", OnSelect = "queryStudent", IsEnabled = isEnable, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="StudentNo", HeaderText="学号", Width=0.2, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Width=0.08, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Width=0.1, Align=AlignStyle.Center, OrderFieldName="StandardID", OverflowLength=6 }, new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Width=0.06, Align=AlignStyle.Center, OverflowLength=6 }, //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.1, Align=AlignStyle.Center, OverflowLength=6 }, new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Width=0.1, Align=AlignStyle.Center, OrderFieldName="InSchoolStatusID", CustomFormatFun="SetRedColumn" } //new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Width=0.1, Align=AlignStyle.Center, OrderFieldName="StudentStatus", CustomFormatFun="SetRedColumn" } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Student/StudentBaseInSchoolList?userID=" + Model.UserID), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccessNoClose", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@if (Request["type"] != "detail") { @Html.ContextMenuBar("StuConfirm") }
@Html.HiddenFor(x => x.EvaluationStudentSettingID) @Html.HiddenFor(x => x.EducationMissionClassID) @Html.Hidden("evaluationStudentSettingID")
@Html.LabelFor(x => x.StudentNo): @Html.ComboGridFor(x => x.UserID, cgopStudent) @Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = false })
@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.CourseTypeName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID, new DropdownListOptions() { IsEnabled = false }) @Html.LabelFor(x => x.TeachingModeID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, (x => x.TeachingModeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
}