@model EMIS.ViewModel.EvaluationManage.EvaluationSettingView @using EMIS.ViewModel; @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ Layout = "~/Views/Shared/_Layout.cshtml"; ViewBag.Title = "评价设定编辑"; var schoolyearID = ViewBag.schoolyearID;//学年学期 var coursematerialID = ViewBag.coursematerialID;//课程 //var campusID = ViewBag.schoolyearID; var collegeID = ViewBag.collegeID;//院系所 var departmentID = ViewBag.departmentID; //教 研 室 //加载教学任务班信息 var cgopEducationMissionClassID = new ComboGridOptions { TextField = "Name", ValueField = "EducationMissionClassID", OnSelect = "SelectEducationMissionDropdownList", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="任务班名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="StartWeeklyNum", HeaderText="开始周次", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="EndWeeklyNum", HeaderText="结束周次", Align=AlignStyle.Center }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Action("EducationMissionClassList", "EvaluationSetting"), IsPagination = true, // OnLoadSuccessFun="LoadMissionDropdownList", IsShowRowNumbers = true, IsSingleSelect = false } }; //加载评价表名信息 var cgopEducationTableID = new ComboGridOptions { TextField = "Name", ValueField = "TableID", //OnSelect = "SelectCallback", OnSelect = "SelectEducationTableList", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Code", HeaderText="评价编号", Align=AlignStyle.Center ,}, new BoundFieldColumn { FieldName="Name", HeaderText="评价表名", Align=AlignStyle.Center ,}, new BoundFieldColumn { FieldName="Type", HeaderText="评价类型", Align=AlignStyle.Center ,}, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EvaluationTable/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //加载院系所 ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "SelectCollegeDropdownList", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, OnLoadSuccessFun = "QueryCollegeDropdownList" } }; //加载教研室 ComboGridOptions cgopDepartment = new ComboGridOptions { TextField = "Name", ValueField = "DepartmentID", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="No", HeaderText="教研室编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Department/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, OnLoadSuccessFun = "QueryDepartmentDropdownList" } }; //加载课程名称 ComboGridOptions cgopCoursematerial = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", OnSelect = "SelectBuildingsDropdownList", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, // DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), DataSourceUrl = Url.Content("~/EvaluationSetting/GetCoursematerialQuery"), IsPagination = true, IsShowRowNumbers = true, OnLoadSuccessFun = "LoadMissionDropdownList", IsSingleSelect = false } }; }
@using (Ajax.BeginForm(new AjaxOptions { Url = "/EvaluationSetting/Edit", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
评价设定信息
@if (Model.OpenStatus == (int)CF_YesOrNoStatus.No) { @Html.ContextMenuBar("Edit") }
@Html.HiddenFor(x => x.EvaluationSettingID)
@Html.LabelFor(m => m.SchoolyearID): @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value", ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", OnSelect = "SelectSchoolyearDropdownList", OnLoadSuccess = "LoadMissionDropdownList" }) @Html.LabelFor(m => m.CollegeID): @Html.DropdownListFor(x => x.CollegeID, new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanids"), TextField = "Text", ValueField = "Value", ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "SelectCollegeDropdownList", OnLoadSuccess = "QueryCollegeDropdownList" }) @* @Html.ComboGridFor(x => x.CollegeID, cgopCollege)*@
@Html.LabelFor(m => m.DepartmentID): @Html.DropdownListFor(x => x.DepartmentID, new DropdownListOptions { BindType = DropdownListBindType.None, TextField = "Text", ValueField = "Value", ID = "DepartmentDropdown", Name = "DepartmentDropdown", OnLoadSuccess = "QueryDepartmentDropdownList", OnSelect = "SelectDepartmentDropdownList" }) @* @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)*@ @Html.LabelFor(m => m.CoursematerialID): @Html.ComboGridFor(x => x.CoursematerialID, cgopCoursematerial)
@Html.LabelFor(m => m.EducationMissionClassID): @Html.ComboGridFor(m => m.EducationMissionClassID, cgopEducationMissionClassID) @Html.LabelFor(m => m.EvaluationTableID): @Html.ComboGridFor(m => m.EvaluationTableID, cgopEducationTableID)
@Html.LabelFor(m => m.EvaluationTableTypeName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_EvaluationTableType, (x => x.EvaluationTableTypeID), new DropdownListOptions { BindType = DropdownListBindType.None, ID = "EvaluationTableTypeDropdown", Name = "EvaluationTableTypeDropdown" }) @Html.LabelFor(m => m.OpenStatus): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_YesOrNoStatus, m => m.OpenStatus)
}
@section scripts{ }