List.cshtml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/System/Announcement.js" type="text/javascript"></script>
  9. }
  10. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  11. @Html.Position()
  12. <div class="p_SearchTitle">
  13. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  14. 查询条件</div>
  15. </div>
  16. <form id="formQuery" method="post">
  17. @Html.PositionCondition()
  18. <div class="p_title">
  19. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  20. 通知公告列表</div>
  21. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  22. </div>
  23. </form>
  24. <div class="search_list">
  25. @Html.DataGrid(new DataGridOptions
  26. {
  27. Columns = new List<DataGridColumn>()
  28. {
  29. new CheckBoxFieldColumn{ HeaderText="", FieldName="AnnouncementID"},
  30. new BoundFieldColumn { FieldName="Title", HeaderText="标题", Align=AlignStyle.Center, Width=0.06 },
  31. new BoundFieldColumn { FieldName="AnnouncementTypeDesc", HeaderText="通知类型", Align=AlignStyle.Center, Width=0.06 },
  32. new BoundFieldColumn { FieldName="CreateDepartmentName", HeaderText="发布部门", Align=AlignStyle.Center, Width=0.04 },
  33. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="发送人", Align=AlignStyle.Center, Width=0.04 },
  34. new BoundFieldColumn { FieldName="CreateTimeDec", HeaderText="发送时间", Formatter = Formatter.LongDate, Align=AlignStyle.Center, Width=0.04 },
  35. //new BoundFieldColumn { FieldName="EndTime", HeaderText="截止时间", Formatter = Formatter.LongDate, Align=AlignStyle.Center, Width=0.04 }
  36. },
  37. IsCheckOnSelect = true,
  38. DataSourceUrl = Url.Content("~/Announcement/List"),
  39. ID = "dgAnnouncementList",
  40. IsPagination = true,
  41. IsShowRowNumbers = true,
  42. IsSingleSelect = false
  43. })
  44. </div>
  45. </div>