@using FHT.Core.UI.ViewModels @using FHT.Core.UI.InputModels.Search @using FHT.Core.UI.ViewModels.Product @using FHT.Utilities @using FHT.Core.CommonTypes @using MvcPaging @using FHT @model SearchProductInputModel @{ ViewBag.Title = "产品信息审核"; Layout = "~/Views/Shared/_Layout.cshtml"; var products = (FHT.DDD.QueryResult)ViewBag.Products; } @section styles{ @Styles.Render("~/Content/layer") @Styles.Render("~/Content/select2") }
@using (Html.BeginForm("AuditProductManage", "Audit", FormMethod.Get, new { role = "form" })) {
@Html.RequiredLabelFor(m => m.ProductId, new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.ProductId, new { @class = "form-control"})
@Html.RequiredLabelFor(m => m.CompanyId, new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.CompanyId, new { @class = "form-autocomplate", data_autocomplate_url="/Company/AutoCompleteSearch"})
@Html.RequiredLabelFor(m => m.Title, new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.Title, new { @class = "form-control"})
}
@if (products.Data.Any()) { foreach (var product in products.Data) { } } else { }
编号 名称 所属企业 已付费 已认证 创建日期 状态 操作
@product.ProductId @product.Title @product.Company.CompanyName @(product.IsPay ? "是" : "否") @(product.Company.IsCompanyVerified ? "是" : "否") @product.CreatedTime.ToShortDateString() @product.AuditStatus.GetEnumDescription() @if (product.IsDeleted) { @:/ } else { @Html.ActionLink("编辑", "Form", new { productId = product.ProductId }, new { target = "_blank" }) }
暂无数据
@if ((products.TotalCount - 1) / Model.Limit > 0) { @Html.Pager(Model.Limit, Model.CurrPage, (int)products.TotalCount).Options(opt => { opt.Action("Index") .PageRouteValueKey("CurrPage") .AddRouteValue("Title", Model.Title) .AddRouteValue("CompanyId", Model.CompanyId) .AddRouteValue("ProductId", Model.ProductId) .SetNextPageText(">") .DisplayTemplate("BootstrapPagination") .SetPreviousPageText("<"); }) }
@section scripts{ @Scripts.Render("~/bundles/layer") }