List.cshtml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopUser = new ComboGridOptions
  7. {
  8. TextField = "UserName",
  9. ValueField = "UserID",
  10. Name = "StudentsComboGrid",
  11. ID = "StudentNo",
  12. OnChange = "reload",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.12, Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.08, Align=AlignStyle.Center }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Students/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. }
  28. @section scripts{
  29. <script src="~/Scripts/Business/ShareRecord/List.js"></script>
  30. <script type="text/javascript">
  31. var nonSelect = "@DropdownList.SELECT_ALL";
  32. </script>
  33. }
  34. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  35. @Html.Position()
  36. <form id="formQuery" method="post" action="@Url.Content("~/ShareRecord/Excel")">
  37. @Html.PositionCondition()
  38. <div class="search_keyword">
  39. @Html.Hidden("selectedIDs")
  40. <div class="search_input">
  41. <ul>
  42. <li class="sn" style="padding-left: 5px;">日期起止:</li>
  43. <li class="sv">
  44. @Html.TextBox(new TextBoxOptions { ID = "StartTime", Name = "StartTime", TextBoxType = TextBoxType.Date, OnChange = "startDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgShareRecordList" } })
  45. @Html.TextBox(new TextBoxOptions { ID = "EndTime", Name = "EndTime", TextBoxType = TextBoxType.Date, OnSelect = "endDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgShareRecordList" } })
  46. </li>
  47. <li class="sn" style="padding-left: 5px;">文章标题:</li>
  48. <li class="sv">
  49. @Html.TextBox(new TextBoxOptions { Name = "Title", ID = "Title", }, new Dictionary<string, string> { { "data-condition", "dgShareRecordList" }, { "onchange", "reload()" } })
  50. </li>
  51. <li class="sn" style="padding-left: 5px;">分享人:</li>
  52. <li class="sv">
  53. @Html.ComboGrid(cgopUser, new Dictionary<string, string> { { "data-condition", "dgShareRecordList" } })
  54. </li>
  55. </ul>
  56. </div>
  57. </div>
  58. </form>
  59. <div class="p_title">
  60. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  61. 分享记录列表
  62. </div>
  63. <div style="margin-right: 10px; line-height: 30px; font-size: 12px ;" width="0.7">@Html.ContextMenuBar("List")</div>
  64. </div>
  65. @Html.PositionBatchModify()
  66. <div class="search_list">
  67. @Html.DataGrid(new DataGridOptions
  68. {
  69. Columns = new List<DataGridColumn>()
  70. {
  71. new CheckBoxFieldColumn{ HeaderText="", FieldName="ShareRecordID" },
  72. new BoundFieldColumn { FieldName="YearMonthDay", HeaderText="日期", Align=AlignStyle.Center,Width=0.08},
  73. new BoundFieldColumn { FieldName="Time", HeaderText="时间", Align=AlignStyle.Center,Width=0.05},
  74. new BoundFieldColumn { FieldName="Title", HeaderText="文章标题", Align=AlignStyle.Center,Width=0.28 },
  75. new BoundFieldColumn { FieldName="UserName", HeaderText="分享人", Align=AlignStyle.Center,Width=0.1 },
  76. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center,Width=0.12 },
  77. new BoundFieldColumn { FieldName="Count", HeaderText="积分", Align=AlignStyle.Center,Width=0.05 },
  78. },
  79. IsCheckOnSelect = true,
  80. DataSourceUrl = Url.Content("~/ShareRecord/List"),
  81. ID = "dgShareRecordList",
  82. IsPagination = true,
  83. PageSize = 50,
  84. IsShowRowNumbers = true,
  85. IsSingleSelect = false
  86. })
  87. </div>
  88. </div>