add remain columns for models
This commit is contained in:
parent
5d47723a43
commit
87ef50effd
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,5 +9,7 @@
|
|||||||
int Lifetime { get; }
|
int Lifetime { get; }
|
||||||
|
|
||||||
int ClientId { get; }
|
int ClientId { get; }
|
||||||
|
|
||||||
|
Dictionary<int, (IPlanProductionModel, int)> PlanProductionMachines { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -9,5 +9,7 @@
|
|||||||
int ClientId { get; }
|
int ClientId { get; }
|
||||||
|
|
||||||
int RequirementId { get; }
|
int RequirementId { get; }
|
||||||
|
|
||||||
|
Dictionary<int, (IMachineModel, int)> ProductMachines { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user