123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- @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<DataGridColumn>()
- {
- 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{
- <script src="~/Scripts/Business/ShareRecord/List.js"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @Html.Position()
- <form id="formQuery" method="post" action="@Url.Content("~/ShareRecord/Excel")">
- @Html.PositionCondition()
- <div class="search_keyword">
- @Html.Hidden("selectedIDs")
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">日期起止:</li>
- <li class="sv">
- @Html.TextBox(new TextBoxOptions { ID = "StartTime", Name = "StartTime", TextBoxType = TextBoxType.Date, OnChange = "startDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgShareRecordList" } })
- 至
- @Html.TextBox(new TextBoxOptions { ID = "EndTime", Name = "EndTime", TextBoxType = TextBoxType.Date, OnSelect = "endDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgShareRecordList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">文章标题:</li>
- <li class="sv">
- @Html.TextBox(new TextBoxOptions { Name = "Title", ID = "Title", }, new Dictionary<string, string> { { "data-condition", "dgShareRecordList" }, { "onchange", "reload()" } })
- </li>
- <li class="sn" style="padding-left: 5px;">分享人:</li>
- <li class="sv">
- @Html.ComboGrid(cgopUser, new Dictionary<string, string> { { "data-condition", "dgShareRecordList" } })
- </li>
- </ul>
- </div>
- </div>
- </form>
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 分享记录列表
- </div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px ;" width="0.7">@Html.ContextMenuBar("List")</div>
- </div>
- @Html.PositionBatchModify()
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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
- })
- </div>
- </div>
|