1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Entities;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "Main";
- }
- @section scripts{
- <script type="text/javascript">
- function viewAnnouncement(rowindex, rowdata) {
- // var redirectTo = @Url.Content("~/Announcement/AnnouncementView")+"?announcementID=" + rowdata.AnnouncementID;
- // $.popupTopWindow("公告信息", redirectTo, 750, 450, null, null);
- top.$('#sysWindow').dialog({
- title: '公告信息',
- width: 750,
- height: 450,
- content: '<iframe id="iframe1" frameborder="0" scrolling="no" src="@Url.Content("~/Announcement/AnnouncementView")?announcementID=' + rowdata.AnnouncementID + '"></iframe>',
- modal: true
- });
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @Html.Position()
- <div class="p_SearchTitle">
- <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;"></div>
- </div>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="Title", HeaderText="标题", Align=AlignStyle.Center , Handle="viewAnnouncement" },
- new BoundFieldColumn { FieldName="AnnouncementTypeDesc", HeaderText="通知类型", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="CreateDepartmentName", HeaderText="发布部门", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="CreateUserName", HeaderText="发送人", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="CreateTimeDec", HeaderText="发送时间", Formatter = Formatter.LongDate, Align=AlignStyle.Center, Width=0.04 },
- },
- IsCheckOnSelect = true,
- PageSize = 10,
- DataSourceUrl = Url.Content("~/Announcement/GetUserAnnouncementViewList"),
- ID = "dgAnnouncementList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|