Webiant Logo Webiant Logo
  1. No results found.

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

ShipmentSearchModel.cs

using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.Rendering;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Web.Areas.Admin.Models.Orders;

/// 
/// Represents a shipment search model
/// 
public partial record ShipmentSearchModel : BaseSearchModel
{
    #region Ctor

    public ShipmentSearchModel()
    {
        AvailableCountries = new List();
        AvailableStates = new List();
        AvailableWarehouses = new List();
        ShipmentItemSearchModel = new ShipmentItemSearchModel();
    }

    #endregion

    #region Properties

    [NopResourceDisplayName("Admin.Orders.Shipments.List.StartDate")]
    [UIHint("DateNullable")]
    public DateTime? StartDate { get; set; }

    [NopResourceDisplayName("Admin.Orders.Shipments.List.EndDate")]
    [UIHint("DateNullable")]
    public DateTime? EndDate { get; set; }

    [NopResourceDisplayName("Admin.Orders.Shipments.List.TrackingNumber")]
    public string TrackingNumber { get; set; }

    public IList AvailableCountries { get; set; }

    [NopResourceDisplayName("Admin.Orders.Shipments.List.Country")]
    public int CountryId { get; set; }

    public IList AvailableStates { get; set; }

    [NopResourceDisplayName("Admin.Orders.Shipments.List.StateProvince")]
    public int StateProvinceId { get; set; }

    [NopResourceDisplayName("Admin.Orders.Shipments.List.County")]
    public string County { get; set; }

    [NopResourceDisplayName("Admin.Orders.Shipments.List.City")]
    public string City { get; set; }

    [NopResourceDisplayName("Admin.Orders.Shipments.List.LoadNotShipped")]
    public bool LoadNotShipped { get; set; }

    [NopResourceDisplayName("Admin.Orders.Shipments.List.LoadNotReadyForPickup")]
    public bool LoadNotReadyForPickup { get; set; }

    [NopResourceDisplayName("Admin.Orders.Shipments.List.LoadNotDelivered")]
    public bool LoadNotDelivered { get; set; }

    [NopResourceDisplayName("Admin.Orders.Shipments.List.Warehouse")]
    public int WarehouseId { get; set; }

    public IList AvailableWarehouses { get; set; }

    public ShipmentItemSearchModel ShipmentItemSearchModel { get; set; }

    #endregion
}