This commit is contained in:
sofiaivv 2024-02-08 20:30:24 +04:00
parent 697db40b94
commit 2d53ba936b
6 changed files with 47 additions and 15 deletions

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PrecastConcretePlantContracts.BindingModels
{
internal class ComponentBindingModel
{
}
}

View File

@ -1,12 +1,15 @@
using System;
using PrecastConcretePlantDataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PrecastConcretePlantDataModels
namespace PrecastConcretePlantDataModels.Models
{
internal class IComponentModel
public interface IComponentModel : IId
{
string ComponentName { get; }
double Cost { get; }
}
}
}

View File

@ -6,7 +6,8 @@ using System.Threading.Tasks;
namespace PrecastConcretePlantDataModels
{
internal class IId
public interface IId
{
int Id { get; }
}
}
}

View File

@ -1,12 +1,19 @@
using System;
using PrecastConcretePlantDataModels.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PrecastConcretePlantDataModels
namespace PrecastConcretePlantDataModels.Models
{
internal class IOrderModel
public interface IOrderModel : IId
{
int ReinforcedId { get; }
int Count { get; }
double Sum { get; }
OrderStatus Status { get; }
DateTime DateCreate { get; }
DateTime? DateImplement { get; }
}
}

View File

@ -1,12 +1,16 @@
using System;
using PrecastConcretePlantDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PrecastConcretePlantDataModels
namespace PrecastConcretePlantDataModels.Models
{
internal class IReinforcedModel
public interface IReinforcedModel : IId
{
string ReinforcedName { get; }
double Price { get; }
Dictionary<int, (IComponentModel, int)> ReinforcedComponents { get; }
}
}

View File

@ -4,9 +4,14 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PrecastConcretePlantDataModels
namespace PrecastConcretePlantDataModels.Enums
{
internal class OrderStatus
public enum OrderStatus
{
Неизвестен = -1,
Принят = 0,
Выполняется = 1,
Готов = 2,
Выдан = 3
}
}
}