@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; //校区 ComboGridOptions cgopCampus = new ComboGridOptions { TextField = "Name", ValueField = "CampusID", ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "queryCampus", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Campus/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; //院系所 ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "queryCollege", 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 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; //List列表 var gridOptions = new DataGridOptions() { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="CollegeID" }, //new BoundFieldColumn { FieldName="CampusCode", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.02 }, new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("Campus"), Align=AlignStyle.Center, Width=0.03, OverflowLength=10 }, //new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.02 }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.04, OverflowLength=12 }, }, PageSize = 100, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ChangeTotal/List"), ID = "dgChangeTotalList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false }; var changeTypeList = (IEnumerable)ViewBag.ChangeTypeList; foreach (var changeType in changeTypeList) { gridOptions.Columns.Add(new BoundFieldColumn { FieldName = "ChangeType_" + changeType.Value, HeaderText = changeType.Name, Align = AlignStyle.Center, Width = 0.02, CustomFormatFun = "SetRedColumn" }); } gridOptions.Columns.Add(new BoundFieldColumn { FieldName = "ChangeTypeTotal", HeaderText = "总数", Align = AlignStyle.Center, Width = 0.02, CustomFormatFun = "SetRedColumn" }); } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
  • 异动学期:
  • @Html.DropdownList(new DropdownListOptions { ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnSelect = "reload" }, new Dictionary { { "data-condition", "dgChangeTotalList" } })
  • @EMIS.Utility.RSL.Get("Campus"):
  • @Html.ComboGrid(cgopCampus, new Dictionary { { "data-condition", "dgChangeTotalList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgChangeTotalList" } })
异动统计列表
@Html.ContextMenuBar("List")
@Html.DataGrid(gridOptions)