@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "CampusID", OnSelect = "QueryCampusDropdownList", Name = "CampusDropdown", ID = "CampusDropdown", 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.1 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Campus/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "QueryCollegeDropdownList", Name = "CollegeDropdown", ID = "CollegeDropdown", 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/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopDepartment = new ComboGridOptions { TextField = "Name", ValueField = "DepartmentID", OnSelect = "QueryDepartmentDropdownList", Name = "DepartmentDropdown", ID = "DepartmentDropdown", GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Department/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
  • @EMIS.Utility.RSL.Get("Campus"):
  • @Html.ComboGrid(cgop, new Dictionary { { "data-condition", "dgUserList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgUserList" } })
  • 教研室:
  • @Html.ComboGrid(cgopDepartment, new Dictionary { { "data-condition", "dgUserList" } })
  • 角色名称:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = "~/Role/RoleDropdownList", ID = "Role", Name = "Role", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgUserList" } })
  • 数据范围:
  • @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.SYS_DataRange, "dgUserList", new DropdownListOptions { ID = "DataRange", Name = "DataRange", OnSelect = "reload" })
  • 帐号状态:
  • @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.SYS_STATUS, "dgUserList", new DropdownListOptions { ID = "Stauts", Name = "Stauts", OnSelect = "reload" })
@*角色名称:@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = "~/Role/RoleDropdownList", ID = "Role", Name = "Role", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgUserList" } })  数据范围:@Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.SYS_DataRange, "dgUserList", new DropdownListOptions { ID = "DataRange", Name = "DataRange", OnSelect = "reload" })  帐号状态:@Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.SYS_STATUS, "dgUserList", new DropdownListOptions { ID = "Stauts", Name = "Stauts", OnSelect = "reload" }) *@
教师用户列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"}, new BoundFieldColumn { FieldName="LoginID", HeaderText="用户名", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, OrderFieldName="SexID", Width=0.03 }, //new BoundFieldColumn { FieldName="BirthDate", HeaderText="出生日期", Align=AlignStyle.Center, Formatter = Formatter.OnlyYearMonthDay, Width=0.06 }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08, OverflowLength=10 }, new BoundFieldColumn { FieldName="RoleOrderNo", HeaderText="角色序号", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="RoleName", HeaderText="角色名称", Align=AlignStyle.Center, Width=0.05, OverflowLength=6 }, //new BoundFieldColumn { FieldName="TypeName", HeaderText="角色类型", Align=AlignStyle.Center, OrderFieldName="TypeID", Width=0.04 }, new BoundFieldColumn { FieldName="DataRangeName", HeaderText="数据范围", Align=AlignStyle.Center, OrderFieldName="DataRange", Width=0.04 }, new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="帐号状态", Align=AlignStyle.Center, OrderFieldName="RecordStatus", Width=0.04 }, new BoundFieldColumn { FieldName="CreateTime", HeaderText="创建时间", Formatter=Formatter.LongDate, Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="ModifyTime", HeaderText="修改时间", Formatter=Formatter.LongDate, Align=AlignStyle.Center, Width=0.08 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/User/List"), ID = "dgUserList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })