@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions optCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "queryStandard", Name = "cgbCollege", ID = "cgbCollege", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "queryClass", Name = "cbgStandard", ID = "cbgStandard", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center } }, OnLoadSuccessFun = "queryClass", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", Name = "cbgClassmajor", ID = "cbgClassmajor", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center } }, IsAutoLoad = false, OnLoadSuccessFun = "reload", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions optCourse = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", OnSelect = "reload", Name = "cgbCourse", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; } @section scripts{ } @Html.Position()
查询条件
@Html.PositionCondition()
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "ddlSchoolyear", ID = "ddlSchoolyear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnSelect = "reload" }, new Dictionary { { "data-condition", "dgScoreConvertByReplaceList" } })
  • @(EMIS.Utility.RSL.Get("College")):
  • @Html.ComboGrid(optCollege, new Dictionary { { "data-condition", "dgScoreConvertByReplaceList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ddlYear", ID = "ddlYear", OnSelect = "queryStandard" }, new Dictionary { { "data-condition", "dgScoreConvertByReplaceList" } })
  • 专业:
  • @Html.ComboGrid(optStandard, new Dictionary { { "data-condition", "dgScoreConvertByReplaceList" } })
  • 班级:
  • @Html.ComboGrid(optClassmajor, new Dictionary { { "data-condition", "dgScoreConvertByReplaceList" } })
  • 课程名称:
  • @Html.ComboGrid(optCourse, new Dictionary { { "data-condition", "dgScoreConvertByReplaceList" } })
  • 状态:
  • @Html.DropdownList(new DropdownListOptions { Name = "ddlRecordStatus", ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.ES_EducationSchedulingAdjustment).Name), BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgScoreConvertByReplaceList" } })
替换认定列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn { FieldName = "ScoreConvertByReplaceID" }, new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=60 }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=60 }, new BoundFieldColumn { FieldName="StandardDesc", HeaderText="专业", Align=AlignStyle.Center, Width=60 }, new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center, Width=200 }, new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=60 }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=50 }, new BoundFieldColumn { FieldName="TargetCourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=40 }, new BoundFieldColumn { FieldName="TargetCourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=40 }, new BoundFieldColumn { FieldName="TotalScore", HeaderText="成绩", Align=AlignStyle.Center, Width=40 }, new BoundFieldColumn { FieldName="SourceCourseCode", HeaderText="原始课程代码", Align=AlignStyle.Center, Width=40 }, new BoundFieldColumn { FieldName="SourceCourseName", HeaderText="原始课程名称", Align=AlignStyle.Center, Width=40 }, new ApproveStatusColumn { FieldName="RecordStatusDesc", TableName=typeof(EMIS.Entities.ER_ScoreConvertByReplace).Name, IDFieldName="ScoreConvertByReplaceID", HeaderText="状态", Align=AlignStyle.Center,Width=0.04 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ScoreConvert/ByReplaceList"), ID = "dgScoreConvertByReplaceList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })