Webiant Logo Webiant Logo
  1. No results found.

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

ShipmentList.cshtml

@model ShipmentSearchModel

@{
    //page title
    ViewBag.PageTitle = T("Admin.Orders.Shipments.List").Text;

    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Shipments");
}

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

@T("Admin.Orders.Shipments.List")

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.OrderShipmentListButtons, additionalData = Model })
@await Html.PartialAsync("Table", new DataTablesModel { Name = "shipments-grid", UrlRead = new DataUrl("ShipmentListSelect", "Order", null), SearchButtonId = "search-shipments", PrimaryKeyColumn = nameof(ShipmentModel.Id), Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.StartDate), typeof(DateTime?)), new FilterParameter(nameof(Model.EndDate), typeof(DateTime?)), new FilterParameter(nameof(Model.TrackingNumber)), new FilterParameter(nameof(Model.CountryId)), new FilterParameter(nameof(Model.StateProvinceId)), new FilterParameter(nameof(Model.County)), new FilterParameter(nameof(Model.City)), new FilterParameter(nameof(Model.WarehouseId)), new FilterParameter(nameof(Model.LoadNotShipped), typeof(bool)), new FilterParameter(nameof(Model.LoadNotReadyForPickup), typeof(bool)), new FilterParameter(nameof(Model.LoadNotDelivered),typeof(bool)) }, ColumnCollection = new List { new ColumnProperty(null) { Render = new RenderChildCaret(), Width = "5", Searchable = false, ClassName = NopColumnClassDefaults.ChildControl, }, new ColumnProperty(nameof(ShipmentModel.Id)) { IsMasterCheckBox = true, Render = new RenderCheckBox("checkbox_shipments"), Searchable = false, ClassName = NopColumnClassDefaults.CenterAll, Width = "50" }, new ColumnProperty(nameof(ShipmentModel.Id)) { Title = T("Admin.Orders.Shipments.ID").Text, Width = "80" }, new ColumnProperty(nameof(ShipmentModel.CustomOrderNumber)) { Title = T("Admin.Orders.Shipments.CustomOrderNumber").Text, Width = "100" }, new ColumnProperty(nameof(ShipmentModel.PickupInStore)) { Title = T("Admin.Orders.Shipments.PickupInStore").Text, Width = "100", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderBoolean() }, new ColumnProperty(nameof(ShipmentModel.TrackingNumber)) { Title = T("Admin.Orders.Shipments.TrackingNumber").Text }, new ColumnProperty(nameof(ShipmentModel.TotalWeight)) { Title = T("Admin.Orders.Shipments.TotalWeight").Text, Width = "100" }, new ColumnProperty(nameof(ShipmentModel.ShippedDate)) { Title = T("Admin.Orders.Shipments.ShippedDate").Text, Width = "150" }, new ColumnProperty(nameof(ShipmentModel.ReadyForPickupDate)) { Title = T("Admin.Orders.Shipments.ReadyForPickupDate").Text, Width = "150" }, new ColumnProperty(nameof(ShipmentModel.DeliveryDate)) { Title = T("Admin.Orders.Shipments.DeliveryDate").Text, Width = "150" }, new ColumnProperty(nameof(OrderModel.Id)) { Title = T("Admin.Common.View").Text, Width = "100", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonView(new DataUrl("~/Admin/Order/ShipmentDetails/")) } }, ChildTable = new DataTablesModel { Name = "products-grid", UrlRead = new DataUrl("ShipmentsItemsByShipmentId", "Order", null), IsChildTable = true, Paging = false, Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(ShipmentItemSearchModel.ShipmentId), nameof(OrderModel.Id), true) }, ColumnCollection = new List { new ColumnProperty(nameof(ShipmentItemModel.ProductName)) { Title = T("Admin.Orders.Shipments.Products.ProductName").Text, Width = "400" }, new ColumnProperty(nameof(ShipmentItemModel.ShippedFromWarehouse)) { Title = T("Admin.Orders.Shipments.Products.Warehouse").Text, Width = "150" }, new ColumnProperty(nameof(ShipmentItemModel.QuantityInThisShipment)) { Title = T("Admin.Orders.Shipments.Products.QtyShipped").Text, Width = "150" }, new ColumnProperty(nameof(ShipmentItemModel.ItemWeight)) { Title = T("Admin.Orders.Shipments.Products.ItemWeight").Text, Width = "150" }, new ColumnProperty(nameof(ShipmentItemModel.ItemDimensions)) { Title = T("Admin.Orders.Shipments.Products.ItemDimensions").Text, Width = "150" } } } })
@*export selected (Excel). We don't use GET approach because it's limited to 2K-4K chars and won't work for large number of entities*@