Webiant Logo Webiant Logo
  1. No results found.

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

OrderSearchModel.cs

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

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

/// 
/// Represents an order search model
/// 
public partial record OrderSearchModel : BaseSearchModel
{
    #region Ctor

    public OrderSearchModel()
    {
        AvailableOrderStatuses = new List();
        AvailablePaymentStatuses = new List();
        AvailableShippingStatuses = new List();
        AvailableStores = new List();
        AvailableVendors = new List();
        AvailableWarehouses = new List();
        AvailablePaymentMethods = new List();
        AvailableCountries = new List();
        OrderStatusIds = new List();
        PaymentStatusIds = new List();
        ShippingStatusIds = new List();
        LicenseCheckModel = new();
    }

    #endregion

    #region Properties

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

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

    [NopResourceDisplayName("Admin.Orders.List.OrderStatus")]
    public IList OrderStatusIds { get; set; }

    [NopResourceDisplayName("Admin.Orders.List.PaymentStatus")]
    public IList PaymentStatusIds { get; set; }

    [NopResourceDisplayName("Admin.Orders.List.ShippingStatus")]
    public IList ShippingStatusIds { get; set; }

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

    [NopResourceDisplayName("Admin.Orders.List.Store")]
    public int StoreId { get; set; }

    [NopResourceDisplayName("Admin.Orders.List.Vendor")]
    public int VendorId { get; set; }

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

    [NopResourceDisplayName("Admin.Orders.List.Product")]
    public int ProductId { get; set; }

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

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

    public bool BillingPhoneEnabled { get; set; }

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

    [NopResourceDisplayName("Admin.Orders.List.BillingCountry")]
    public int BillingCountryId { get; set; }

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

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

    public bool IsLoggedInAsVendor { get; set; }

    public IList AvailableOrderStatuses { get; set; }

    public IList AvailablePaymentStatuses { get; set; }

    public IList AvailableShippingStatuses { get; set; }

    public IList AvailableStores { get; set; }

    public IList AvailableVendors { get; set; }

    public IList AvailableWarehouses { get; set; }

    public IList AvailablePaymentMethods { get; set; }

    public IList AvailableCountries { get; set; }

    public LicenseCheckModel LicenseCheckModel { get; set; }

    public bool HideStoresList { get; set; }

    #endregion
}