@using FHT.Management.Interfaces.ViewModels @using FHT.Core.UI.InputModels.Search @using FHT.Utilities @using MvcPaging @using FHT @model SearchReportInputModel @{ ViewBag.Title = "企业举报处理"; Layout = "~/Views/Shared/_Layout.cshtml"; var reports = (FHT.DDD.QueryResult)ViewBag.Reports; } @section styles{ @Styles.Render("~/Content/select2") }
@using (Html.BeginForm("CompanyReports", "Report", FormMethod.Get, new { role = "form" })) {
@Html.RequiredLabelFor(m => m.Message, new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.Message, new { @class = "form-control"})
@Html.RequiredLabelFor(m => m.IsDeal, new{@class="pull-left fht-control-label"})
@Html.CheckBoxFor(m => m.IsDeal,new{@class="agent-checkbox"})
}
@if (reports.Data.Any()) { foreach (var report in reports.Data) { } } else { }
编号 企业名称 举报人 原因 内容 状态 时间 操作
@report.ReportId @if (report.Target != null) { @report.Target.Name } else { @:None } @(!string.IsNullOrEmpty(report.Name) ? report.Name : "匿名") @report.ReasonType.GetEnumDescription() @report.Message.CutStr(40) @(report.IsDeal ? "已处理" : "未处理") @report.Created.ToShortDateString() @if (!report.IsDeal) { @Html.ActionLink("处理", "ReportCompanyDetail", new { reportId = report.ReportId }, new { target = "_blank" }) } else { @:/ }
暂无数据
@if ((reports.TotalCount - 1) / Model.Limit > 0) { @Html.Pager(Model.Limit, Model.CurrPage, (int)reports.TotalCount).Options(opt => { opt.Action("CompanyReports") .PageRouteValueKey("CurrPage") .AddRouteValue("IsDeal", Model.IsDeal) .AddRouteValue("Message", Model.Message) .SetNextPageText(">") .DisplayTemplate("BootstrapPagination") .SetPreviousPageText("<"); }) }