@using FHT.Core.UI.ViewModels @using FHT.Core.UI.InputModels.Search @using FHT.Core.UI.ViewModels.Account @using FHT.Utilities @using FHT.Core.CommonTypes @using MvcPaging @using FHT @model SearchUserInputModel @{ Layout = "~/Views/Shared/_Layout.cshtml"; ViewBag.Title = "用户审核"; var users = (FHT.DDD.QueryResult)ViewBag.Users; }
@using (Html.BeginForm("AuditUserManage", "Audit", FormMethod.Get, new { role = "form" })) {
@Html.RequiredLabelFor(m => m.Id,new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.Id, new { @class = "form-control"})
@Html.RequiredLabelFor(m => m.Account,new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.Account, new { @class = "form-control"})
@Html.RequiredLabelFor(m => m.RealName,new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.RealName, new { @class = "form-control"})
@Html.RequiredLabelFor(m => m.AuditStatus,new{@class="pull-left fht-control-label"})
@Html.EditorFor(m => m.AuditStatus, new { enumSource = typeof(AuditStatus) })
}
@if (users.Data.Any()) { foreach (var user in users.Data) { } } else { }
编号 账号 姓名 日期 冻结 状态 操作
@user.UserId @user.UserName @user.RealName @user.CreatedTime.ToShortDateString() @(!user.IsActive ? "是" : "否") @user.AuditStatus.GetEnumDescription() @Html.ActionLink("审核", "AuditUserDetail", new { userId = user.UserId }, new { target = "_blank" })
暂无数据
@if ((users.TotalCount - 1) / Model.Limit > 0) { @Html.Pager(Model.Limit, Model.CurrPage, (int)users.TotalCount).Options(opt => { opt.Action("AuditUserManage") .PageRouteValueKey("CurrPage") .AddRouteValue("Account", Model.Account) .AddRouteValue("AuditStatus", Model.AuditStatus) .AddRouteValue("RealName", Model.RealName) .SetNextPageText(">") .DisplayTemplate("BootstrapPagination") .SetPreviousPageText("<"); }) }