@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions cgopUser = new ComboGridOptions { TextField = "UserName", ValueField = "UserID", Name = "StudentsComboGrid", ID = "StudentNo", OnChange = "reload", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.12, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.08, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Students/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.Position()
@Html.PositionCondition()
@Html.Hidden("selectedIDs")
  • 日期起止:
  • @Html.TextBox(new TextBoxOptions { ID = "StartTime", Name = "StartTime", TextBoxType = TextBoxType.Date, OnChange = "startDateChanged" }, new Dictionary { { "data-condition", "dgShareRecordList" } }) 至 @Html.TextBox(new TextBoxOptions { ID = "EndTime", Name = "EndTime", TextBoxType = TextBoxType.Date, OnSelect = "endDateChanged" }, new Dictionary { { "data-condition", "dgShareRecordList" } })
  • 文章标题:
  • @Html.TextBox(new TextBoxOptions { Name = "Title", ID = "Title", }, new Dictionary { { "data-condition", "dgShareRecordList" }, { "onchange", "reload()" } })
  • 分享人:
  • @Html.ComboGrid(cgopUser, new Dictionary { { "data-condition", "dgShareRecordList" } })
分享记录列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ShareRecordID" }, new BoundFieldColumn { FieldName="YearMonthDay", HeaderText="日期", Align=AlignStyle.Center,Width=0.08}, new BoundFieldColumn { FieldName="Time", HeaderText="时间", Align=AlignStyle.Center,Width=0.05}, new BoundFieldColumn { FieldName="Title", HeaderText="文章标题", Align=AlignStyle.Center,Width=0.28 }, new BoundFieldColumn { FieldName="UserName", HeaderText="分享人", Align=AlignStyle.Center,Width=0.1 }, new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center,Width=0.12 }, new BoundFieldColumn { FieldName="Count", HeaderText="积分", Align=AlignStyle.Center,Width=0.05 }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ShareRecord/List"), ID = "dgShareRecordList", IsPagination = true, PageSize = 50, IsShowRowNumbers = true, IsSingleSelect = false })