@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; string userName = ViewBag.UserName; ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", Name = "CollegeComboGrid", ID = "CollegeComboGrid", OnSelect = "SelectCollegeComboGrid", GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { 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/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopdepartment = new ComboGridOptions { TextField = "Name", ValueField = "DepartmentID", Name = "DepartmentComboGrid", ID = "DepartmentComboGrid", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { 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 } }; ComboGridOptions cgopCourse = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", Name = "CoursematerialComboGrid", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()@*查询条件用IE8有问题*@
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgop, new Dictionary { { "data-condition", "dgScoreList" } })
  • 教研室:
  • @Html.ComboGrid(cgopdepartment, new Dictionary { { "data-condition", "dgScoreList" } })
  • 课程名称:
  • @Html.ComboGrid(cgopCourse, new Dictionary { { "data-condition", "dgScoreList" } })
  • 课程类型:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_CourseType, new DropdownListOptions { Name = "DictionaryCourseType", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgScoreList" } })
  • 考试性质:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ExamsCategory, new DropdownListOptions { Name = "DictionaryExamsCategory", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgScoreList" } })
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "SchoolyearDropdown", OnSelect = "reload", SelectedValue = ViewBag.SchoolYearID }, new Dictionary { { "data-condition", "dgScoreList" } })
  • 年级:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { Name = "DictionaryGrade", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgScoreList" } })
  • 状态:
  • @* @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ScoreState, new DropdownListOptions { Name = "DictionaryScoreState", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgScoreList" } })*@ @Html.DropdownList(new DropdownListOptions { Name = "DictionaryScoreState", ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.ER_FinalExamination).Name), BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgScoreList" } })
@*
  • 是否只查看录入人为自己的记录:
  • @Html.CheckBox("isCheck", true, new Dictionary { { "onclick", "checkBox()" }, { "data-condition", "dgScoreList" } })
*@
成绩录入列表
@Html.ContextMenuBar("List")
@Html.Hidden("hid_UserName", userName) @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="FinalExaminationID"}, new BoundFieldColumn { HeaderText="", FieldName="FinalExaminationID",IsHidden=true }, new LinkButtonColumn { Text = "进入录入", HeaderText="进入录入", Align=AlignStyle.Center , EnableFieldName = "IsEntry", Handle="edit",Width=0.05 }, new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center ,Width=0.08 ,Handle="editDetails"}, new BoundFieldColumn { FieldName="GradeYearID", HeaderText="年级", Align=AlignStyle.Center,Width=0.04 }, new BoundFieldColumn { FieldName="ClassName", HeaderText="录入班级名称", Align=AlignStyle.Center, Width=0.16 }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center,Width=0.05 }, new BoundFieldColumn { FieldName="ExamsCategoryName", HeaderText="考试性质", Align=AlignStyle.Center,Width=0.05 }, new BoundFieldColumn { FieldName="CreatorUserNo", HeaderText="录入人编号", Align=AlignStyle.Center,Width=0.05 }, new BoundFieldColumn { FieldName="CreatorUserName", HeaderText="录入人姓名", Align=AlignStyle.Center,Width=0.05 }, new BoundFieldColumn { FieldName="EntryDeadlineTime", HeaderText="录入截止日期", Align=AlignStyle.Center, Width=0.07, Formatter= Formatter.OnlyYearMonthDay }, new LinkButtonColumn { FieldName="StudentCount", HeaderText="学生数", Align=AlignStyle.Center, Handle="StudentList",Width=0.03 }, new BoundFieldColumn { FieldName="SAPunlogStudentCount", HeaderText="未录入人数", Align=AlignStyle.Center, Width=0.05 }, new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName=typeof(EMIS.Entities.ER_FinalExamination).Name, IDFieldName="FinalExaminationID", HeaderText="状态", Align=AlignStyle.Center,Width=0.04 }, new BoundFieldColumn { FieldName="ApprovalEndStatus", HeaderText="已通过", Align=AlignStyle.Center,IsHidden=true }, //new LinkButtonColumn { Text="详细", HeaderText="详细", Align=AlignStyle.Center ,Width=0.03, Handle="editDetails" } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Score/List"), ID = "dgScoreList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })