61 lines
1.8 KiB
C#
61 lines
1.8 KiB
C#
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.Catalog;
|
|
|
|
/// <summary>
|
|
/// Represents a tier price model
|
|
/// </summary>
|
|
public partial record TierPriceModel : BaseNopEntityModel
|
|
{
|
|
#region Ctor
|
|
|
|
public TierPriceModel()
|
|
{
|
|
AvailableStores = new List<SelectListItem>();
|
|
AvailableCustomerRoles = new List<SelectListItem>();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
public int ProductId { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Catalog.Products.TierPrices.Fields.CustomerRole")]
|
|
public int CustomerRoleId { get; set; }
|
|
|
|
public IList<SelectListItem> AvailableCustomerRoles { get; set; }
|
|
|
|
public string CustomerRole { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Catalog.Products.TierPrices.Fields.Store")]
|
|
public int StoreId { get; set; }
|
|
|
|
public IList<SelectListItem> AvailableStores { get; set; }
|
|
|
|
public string Store { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Catalog.Products.TierPrices.Fields.Quantity")]
|
|
public int Quantity { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Catalog.Products.TierPrices.Fields.Price")]
|
|
public decimal Price { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Catalog.Products.TierPrices.Fields.Price")]
|
|
public string FormattedPrice { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Catalog.Products.TierPrices.Fields.StartDateTimeUtc")]
|
|
[UIHint("DateTimeNullable")]
|
|
public DateTime? StartDateTimeUtc { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Catalog.Products.TierPrices.Fields.EndDateTimeUtc")]
|
|
[UIHint("DateTimeNullable")]
|
|
public DateTime? EndDateTimeUtc { get; set; }
|
|
|
|
public string PrimaryStoreCurrencyCode { get; set; }
|
|
|
|
#endregion
|
|
} |