List.cshtml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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/ProjectShareManage/ProjectInformationList.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. 查询条件
  15. </div>
  16. </div>
  17. <form id="formQuery" method="post">
  18. @Html.PositionCondition()
  19. <div class="p_title">
  20. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  21. 项目资讯列表
  22. </div>
  23. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  24. </div>
  25. </form>
  26. <div class="search_list">
  27. @Html.DataGrid(new DataGridOptions
  28. {
  29. Columns = new List<DataGridColumn>()
  30. {
  31. new CheckBoxFieldColumn{ HeaderText="", FieldName="AnnouncementID"},
  32. new LinkButtonColumn { FieldName="Title", HeaderText="标题", Align=AlignStyle.Center, Width=0.06, Handle="viewAnnouncement" },
  33. new BoundFieldColumn { FieldName="AnnouncementTypeDesc", HeaderText="通知类型", Align=AlignStyle.Center, Width=0.06 },
  34. new BoundFieldColumn { FieldName="CreateDepartmentName", HeaderText="发布部门", Align=AlignStyle.Center, Width=0.04 },
  35. new BoundFieldColumn { FieldName="IsTopStr", HeaderText="是否置顶", Align=AlignStyle.Center, Width=0.02 },
  36. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="发送人", Align=AlignStyle.Center, Width=0.04 },
  37. new BoundFieldColumn { FieldName="CreateTimeDec", HeaderText="发送时间", Formatter = Formatter.LongDate, Align=AlignStyle.Center, Width=0.04 },
  38. //new BoundFieldColumn { FieldName="EndTime", HeaderText="截止时间", Formatter = Formatter.LongDate, Align=AlignStyle.Center, Width=0.04 }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/ProjectInformation/List"),
  42. ID = "dgProjectInformationList",
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false
  46. })
  47. </div>
  48. </div>