@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 } }; } @section scripts{ } @Html.Position()
查询条件
@Html.PositionCondition()
  • @(EMIS.Utility.RSL.Get("College")):
  • @Html.ComboGrid(optCollege, new Dictionary { { "data-condition", "dgStudentPrintTimesList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ddlYear", ID = "ddlYear", OnSelect = "queryStandard" }, new Dictionary { { "data-condition", "dgStudentPrintTimesList" } })
  • 专业:
  • @Html.ComboGrid(optStandard, new Dictionary { { "data-condition", "dgStudentPrintTimesList" } })
  • 班级:
  • @Html.ComboGrid(optClassmajor, new Dictionary { { "data-condition", "dgStudentPrintTimesList" } })
学生打印次数
@Html.ContextMenuBar("List")
  • 批量修改:
  • @Html.DropdownList(new DropdownListOptions() { BindType = DropdownListBindType.None, ItemList = new List { new DropdownListItem { Text = "已打印次数", Value = "Times" } }, Name = "ddlBatchModify", ID = "ddlBatchModify" })
  • @Html.TextBox(new TextBoxOptions { ID = "Times_NumberBox", Name = "Times_NumberBox", TextBoxType = TextBoxType.Normal }, new Dictionary { { "number", "true" } })
  • 确定   取消
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn { FieldName = "UserID" }, new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="YearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 }, new BoundFieldColumn { FieldName="StandardDesc", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="Times", HeaderText="已打印次数", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="ModifyTime", HeaderText="最新打印时间", Align=AlignStyle.Center, Width=0.1, Formatter = Formatter.LongDate } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/StudentPrintTimes/List"), ID = "dgStudentPrintTimesList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })