Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

LowStock.cshtml

@model LowStockProductSearchModel

@{
    //page title
    ViewBag.PageTitle = T("Admin.Reports.LowStock").Text;
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Low stock");
}

@{
    const string hideSearchBlockAttributeName = "LowStockPage.HideSearchBlock";
    var hideSearchBlock = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideSearchBlockAttributeName);
}

@T("Admin.Reports.LowStock")

 
@await Html.PartialAsync("Table", new DataTablesModel { Name = "products-grid", UrlRead = new DataUrl("LowStockList", "Report", null), SearchButtonId = "search-products", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.SearchPublishedId)) }, ColumnCollection = new List { new ColumnProperty(nameof(LowStockProductModel.Name)) { Title = T("Admin.Catalog.Products.Fields.Name").Text, Width = "300", Render = new RenderCustom("renderColumnName") }, new ColumnProperty(nameof(LowStockProductModel.ManageInventoryMethod)) { Title = T("Admin.Catalog.Products.Fields.ManageInventoryMethod").Text, Width = "150" }, new ColumnProperty(nameof(LowStockProductModel.StockQuantity)) { Title = T("Admin.Catalog.Products.Fields.StockQuantity").Text, Width = "100" }, new ColumnProperty(nameof(LowStockProductModel.Published)) { Title = T("Admin.Catalog.Products.Fields.Published").Text, Width = "100", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderBoolean() }, new ColumnProperty(nameof(LowStockProductModel.Id)) { Title = T("Admin.Common.View").Text, Width = "100", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonView(new DataUrl("~/Admin/Product/Edit/")) } } })