Main.cshtml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "Main";
  6. }
  7. @section scripts{
  8. <script type="text/javascript">
  9. function viewAnnouncement(rowindex, rowdata) {
  10. // var redirectTo = @Url.Content("~/Announcement/AnnouncementView")+"?announcementID=" + rowdata.AnnouncementID;
  11. // $.popupTopWindow("公告信息", redirectTo, 750, 450, null, null);
  12. top.$('#sysWindow').dialog({
  13. title: '公告信息',
  14. width: 750,
  15. height: 450,
  16. content: '<iframe id="iframe1" frameborder="0" scrolling="no" src="@Url.Content("~/Announcement/AnnouncementView")?announcementID=' + rowdata.AnnouncementID + '"></iframe>',
  17. modal: true
  18. });
  19. }
  20. </script>
  21. }
  22. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  23. @Html.Position()
  24. <div class="p_SearchTitle">
  25. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;"></div>
  26. </div>
  27. <div class="search_list">
  28. @Html.DataGrid(new DataGridOptions
  29. {
  30. Columns = new List<DataGridColumn>()
  31. {
  32. new LinkButtonColumn { FieldName="Title", HeaderText="标题", Align=AlignStyle.Center , 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="CreateUserName", HeaderText="发送人", Align=AlignStyle.Center, Width=0.04 },
  36. new BoundFieldColumn { FieldName="CreateTimeDec", HeaderText="发送时间", Formatter = Formatter.LongDate, Align=AlignStyle.Center, Width=0.04 },
  37. },
  38. IsCheckOnSelect = true,
  39. PageSize = 10,
  40. DataSourceUrl = Url.Content("~/Announcement/GetUserAnnouncementViewList"),
  41. ID = "dgAnnouncementList",
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false
  45. })
  46. </div>
  47. </div>