@using Abp.Notifications @using ContractService.Authorization @using ContractService.Configuration @using ContractService.Views.Shared.SearchForm @using ContractService.Views.Shared.Table @{ ViewBag.ActiveMenu = PermissionNames.Pages; //The menu item will be active for this page. ViewBag.Title = L("NotificationTitle"); List states = new List { new SelectListItem() {Text = @"全部通知", Value = ""}, new SelectListItem() {Text = L("NoRead"), Value = ((int)UserNotificationState.Unread)+""}, new SelectListItem() {Text = L("HasRead"), Value = ((int)UserNotificationState.Read)+""} }, names= IwbNotificationName.GetNameList() ; var table = new TableViewModel(IwbConsts.ApiAppUrl + "Notification/GetAll", ViewBag.ActiveMenu, new SearchFormViewModel(new List() { new SearchItem("state", L("notificationState"), FieldType.I).SetSelectItem(states), new SearchItem("date", L("notificationDate"), FieldType.Dn) })).SetFields(new List() { new FieldItem("name", L("notificationName")), new FieldItem("text", L("notificationText"), isSort: false), new FieldItem("time", L("notificationDate")), new FieldItem("notificationState", L("notificationState"), "StateFormatter", isSort: false), new FieldItem("", L("Actions"), "ActionFormatter"), }); } @Html.Partial("Table/_Table", table) @section scripts{ }
@Html.DropDownList("hid-state", states) @Html.DropDownList("hid-name", names)
@section css{ }