Правки
This commit is contained in:
parent
94dacd99f1
commit
d2241ea027
@ -13,7 +13,7 @@ namespace IceCreamShopContracts.BindingModels
|
|||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public int IceCreamId { get; set; }
|
public int IceCreamId { get; set; }
|
||||||
public int ImplementerId { get; set; }
|
public int? ImplementerId { get; set; } = null;
|
||||||
public int ClientId { get; set; }
|
public int ClientId { get; set; }
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
public double Sum { get; set; }
|
public double Sum { get; set; }
|
||||||
|
@ -16,7 +16,7 @@ namespace IceCreamShopContracts.ViewModels
|
|||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public int IceCreamId { get; set; }
|
public int IceCreamId { get; set; }
|
||||||
public int ClientId { get; set; }
|
public int ClientId { get; set; }
|
||||||
public int ImplementerId { get; set; }
|
public int? ImplementerId { get; set; } = null;
|
||||||
[DisplayName("Клиент")]
|
[DisplayName("Клиент")]
|
||||||
public string ClientFIO { get; set; } = string.Empty;
|
public string ClientFIO { get; set; } = string.Empty;
|
||||||
[DisplayName("Мороженное")]
|
[DisplayName("Мороженное")]
|
||||||
|
@ -11,7 +11,7 @@ namespace IceCreamShopDataModels.Models
|
|||||||
{
|
{
|
||||||
int IceCreamId { get; }
|
int IceCreamId { get; }
|
||||||
int ClientId { get; }
|
int ClientId { get; }
|
||||||
int ImplementerId { get; }
|
int? ImplementerId { get; }
|
||||||
int Count { get; }
|
int Count { get; }
|
||||||
double Sum { get; }
|
double Sum { get; }
|
||||||
OrderStatus Status { get; }
|
OrderStatus Status { get; }
|
||||||
|
@ -30,8 +30,8 @@ namespace IceCreamShopDatabaseImplement.Models
|
|||||||
public int ClientId { get; private set; }
|
public int ClientId { get; private set; }
|
||||||
public virtual Client Client { get; private set; }
|
public virtual Client Client { get; private set; }
|
||||||
[Required]
|
[Required]
|
||||||
public int ImplementerId { get; private set; }
|
public int? ImplementerId { get; private set; } = null;
|
||||||
public virtual Implementer Implementer { get; private set; }
|
public virtual Implementer? Implementer { get; private set; }
|
||||||
public static Order? Create(IceCreamShopDataBase context, OrderBindingModel model)
|
public static Order? Create(IceCreamShopDataBase context, OrderBindingModel model)
|
||||||
{
|
{
|
||||||
if (model == null)
|
if (model == null)
|
||||||
@ -78,7 +78,7 @@ namespace IceCreamShopDatabaseImplement.Models
|
|||||||
IceCreamName = IceCream.IceCreamName,
|
IceCreamName = IceCream.IceCreamName,
|
||||||
Id = Id,
|
Id = Id,
|
||||||
ClientFIO = Client.ClientFIO,
|
ClientFIO = Client.ClientFIO,
|
||||||
ImplementerFIO = Implementer.ImplementerFIO
|
ImplementerFIO = (Implementer != null ? Implementer.ImplementerFIO : string.Empty)
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ namespace IceCreamShopFileImplement.Models
|
|||||||
{
|
{
|
||||||
public int Id { get; private set; }
|
public int Id { get; private set; }
|
||||||
public int IceCreamId { get; private set; }
|
public int IceCreamId { get; private set; }
|
||||||
public int ImplementerId { get; private set; }
|
public int? ImplementerId { get; private set; } = null;
|
||||||
public int ClientId { get; private set; }
|
public int ClientId { get; private set; }
|
||||||
public int Count { get; private set; }
|
public int Count { get; private set; }
|
||||||
public double Sum { get; private set; }
|
public double Sum { get; private set; }
|
||||||
|
@ -18,7 +18,7 @@ namespace IceCreamShopListImplement.Models
|
|||||||
public int Id { get; private set; }
|
public int Id { get; private set; }
|
||||||
public int IceCreamId { get; private set; }
|
public int IceCreamId { get; private set; }
|
||||||
public int ClientId { get; private set; }
|
public int ClientId { get; private set; }
|
||||||
public int ImplementerId { get; private set; }
|
public int? ImplementerId { get; private set; }
|
||||||
public int Count { get; private set; }
|
public int Count { get; private set; }
|
||||||
public double Sum { get; private set; }
|
public double Sum { get; private set; }
|
||||||
public OrderStatus Status { get; private set; }
|
public OrderStatus Status { get; private set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user