Contractor's data models fix.
This commit is contained in:
parent
bc4efdc01a
commit
67e03f94a1
17
ComputerStoreDataModels/Enums/OrderStatus.cs
Normal file
17
ComputerStoreDataModels/Enums/OrderStatus.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ComputerStoreDataModels.Enums
|
||||
{
|
||||
public enum OrderStatus
|
||||
{
|
||||
Unknown = -1,
|
||||
Accepted = 0,
|
||||
InProcess = 1,
|
||||
Ready = 2,
|
||||
Given = 3
|
||||
}
|
||||
}
|
14
ComputerStoreDataModels/Enums/OrderType.cs
Normal file
14
ComputerStoreDataModels/Enums/OrderType.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ComputerStoreDataModels.Enums
|
||||
{
|
||||
public enum OrderType
|
||||
{
|
||||
Consigment = 0,
|
||||
Request = 1
|
||||
}
|
||||
}
|
@ -9,7 +9,10 @@ namespace ComputerStoreDataModels.Models
|
||||
public interface IOrderModel : IID
|
||||
{
|
||||
double Price { get; }
|
||||
DateTime Date { get; }
|
||||
OrderType Type { get; }
|
||||
OrderStatus Status { get; }
|
||||
DateTime DateCreate { get; }
|
||||
DateTime? DateImplement { get; }
|
||||
int UserID { get; }
|
||||
}
|
||||
}
|
||||
|
@ -11,6 +11,5 @@ namespace ComputerStoreDataModels.Models
|
||||
string Name { get; }
|
||||
double Price { get; }
|
||||
Dictionary<int,(IComponentModel,int)> ProductComponents { get; }
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user