@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions collegeOption = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", Name = "cbgCollege", ID = "cbgCollege", OnSelect = "queryStandard", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center } }, OnLoadSuccessFun = "queryStandard", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions standardOption = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "queryClassmajor", Name = "cbgStandard", ID = "cbgStandard", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center } }, IsAutoLoad = false, OnLoadSuccessFun = "queryClassmajor", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions classmajorOption = 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 cgopLearnSystem = new ComboGridOptions { TextField = "LearnSystem", ValueField = "LearnSystem", OnSelect = "queryClassmajor", Name = "DictionaryLearnSystem", ID = "DictionaryLearnSystem", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Specialty/LearnSystem"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsShowHeader = false } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "ddlSchoolYear", OnSelect = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary { { "data-condition", "dgMisconductList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(collegeOption, new Dictionary { { "data-condition", "dgMisconductList" } })
  • 年级:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { ID = "ddlYear", Name = "ddlYear", BindType = DropdownListBindType.SelectAll, OnSelect = "queryStandard", OnLoadSuccess = "queryStandard" }, new Dictionary { { "data-condition", "dgMisconductList" } })
  • 专业名称:
  • @Html.ComboGrid(standardOption, new Dictionary { { "data-condition", "dgMisconductList" } })
  • @Html.RSLabel("EducationID"):
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "DictionaryEducation", Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "queryClassmajor" }, new Dictionary { { "data-condition", "dgMisconductList" } })
  • 学习形式:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "LearningformDictionaryDropDown", Name = "LearningformDictionaryDropDown", SelectedValue = BaseExtensions.GetDefaultLearnformForList(), OnSelect = "queryClassmajor" }, new Dictionary { { "data-condition", "dgMisconductList" } })
  • 学制:
  • @Html.ComboGrid(cgopLearnSystem, new Dictionary { { "data-condition", "dgMisconductList" } })
  • 班级名称:
  • @Html.ComboGrid(classmajorOption, new Dictionary { { "data-condition", "dgMisconductList" } })
  • 考试性质:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ExamsCategory, new DropdownListOptions { Name = "ddlExamsCategory", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgMisconductList" } })
  • 考试状态:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ExamsState, new DropdownListOptions { Name = "ddlExamsState", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgMisconductList" } })
  • 状态:
  • @Html.ApproveStatusDropDownList(typeof(EMIS.Entities.ER_Misconduct).Name, new DropdownListOptions { Name = "ddlRecordStatus", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgMisconductList" } })
违纪名单列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="MisconductID" }, new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width = 0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width = 0.04 }, new BoundFieldColumn { FieldName="ClassmajorName", 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.12 }, new BoundFieldColumn { FieldName="ExamsCategoryName", HeaderText="考试性质", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="ExamsStateName", HeaderText="考试状态", Align=AlignStyle.Center,Width=0.05 }, new BoundFieldColumn { FieldName="CreateTime", HeaderText="申请日期", Formatter=Formatter.OnlyYearMonthDay, Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="Reason", HeaderText="申请原因", Align=AlignStyle.Center, Width=0.08, OverflowLength=8 }, new ApproveStatusColumn { FieldName="RecordStatusName", TableName=typeof(EMIS.Entities.ER_Misconduct).Name, IDFieldName="MisconductID", HeaderText="状态", Align=AlignStyle.Center, Width=0.04 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Misconduct/List"), ID = "dgMisconductList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })