add remain columns for models

This commit is contained in:
DavidMakarov 2024-04-27 17:25:46 +04:00
parent 5d47723a43
commit 87ef50effd
8 changed files with 18 additions and 4 deletions

View File

@ -13,5 +13,7 @@ namespace FactoryContracts.BindingModels
public int Lifetime { get; set; } public int Lifetime { get; set; }
public int ClientId { get; set; } public int ClientId { get; set; }
public Dictionary<int, (IPlanProductionModel, int)> PlanProductionMachines { get; set; } = new();
} }
} }

View File

@ -13,5 +13,7 @@ namespace FactoryContracts.BindingModels
public int ClientId { get; set; } public int ClientId { get; set; }
public int RequirementId { get; set; } public int RequirementId { get; set; }
public Dictionary<int, (IMachineModel, int)> ProductMachines { get; set; } = new();
} }
} }

View File

@ -20,5 +20,8 @@ namespace FactoryContracts.ViewModels
[DisplayName("Логин клиента")] [DisplayName("Логин клиента")]
public string ClientLogin { get; set; } = string.Empty; public string ClientLogin { get; set; } = string.Empty;
[DisplayName("Планы производства")]
public Dictionary<int, (IPlanProductionModel, int)> PlanProductionMachines { get; set; } = new();
} }
} }

View File

@ -1,5 +1,4 @@
using FactoryDataModels.Enums; using FactoryDataModels.Models;
using FactoryDataModels.Models;
using System.ComponentModel; using System.ComponentModel;
namespace FactoryContracts.ViewModels namespace FactoryContracts.ViewModels

View File

@ -22,5 +22,8 @@ namespace FactoryContracts.ViewModels
[DisplayName("Цена продукта")] [DisplayName("Цена продукта")]
public double Price { get; set; } public double Price { get; set; }
[DisplayName("Станки")]
public Dictionary<int, (IMachineModel, int)> ProductMachines { get; set; } = new();
} }
} }

View File

@ -9,5 +9,7 @@
int Lifetime { get; } int Lifetime { get; }
int ClientId { get; } int ClientId { get; }
Dictionary<int, (IPlanProductionModel, int)> PlanProductionMachines { get; }
} }
} }

View File

@ -3,14 +3,15 @@
public interface IPlanProductionModel : IId public interface IPlanProductionModel : IId
{ {
int ExecutionPhaseId { get; } int ExecutionPhaseId { get; }
int ClientId { get; } int ClientId { get; }
string ProductionName { get; } string ProductionName { get; }
int Count { get; } int Count { get; }
DateTime Term { get; } DateTime Term { get; }
Dictionary<int, (IWorkpieceModel, int)> PlanProductionWorkpieces { get; } Dictionary<int, (IWorkpieceModel, int)> PlanProductionWorkpieces { get; }
} }
} }

View File

@ -9,5 +9,7 @@
int ClientId { get; } int ClientId { get; }
int RequirementId { get; } int RequirementId { get; }
Dictionary<int, (IMachineModel, int)> ProductMachines { get; }
} }
} }