Created project with models for construction company

This commit is contained in:
abazov73 2023-03-26 14:36:35 +04:00
parent e422b6ef99
commit 8761d86e50
8 changed files with 106 additions and 0 deletions

View File

@ -5,6 +5,8 @@ VisualStudioVersion = 17.3.32825.248
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConstructionCompanyView", "ConstructionCompanyView\ConstructionCompanyView.csproj", "{E6C11D11-F20B-4A39-8FDA-82C75463ACBE}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConstructionCompanyView", "ConstructionCompanyView\ConstructionCompanyView.csproj", "{E6C11D11-F20B-4A39-8FDA-82C75463ACBE}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConstructionCompanyDataModels", "ConstructionCompanyDataModels\ConstructionCompanyDataModels.csproj", "{78CB5CC6-B587-41DD-B595-13138E6351C8}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@ -15,6 +17,10 @@ Global
{E6C11D11-F20B-4A39-8FDA-82C75463ACBE}.Debug|Any CPU.Build.0 = Debug|Any CPU {E6C11D11-F20B-4A39-8FDA-82C75463ACBE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E6C11D11-F20B-4A39-8FDA-82C75463ACBE}.Release|Any CPU.ActiveCfg = Release|Any CPU {E6C11D11-F20B-4A39-8FDA-82C75463ACBE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E6C11D11-F20B-4A39-8FDA-82C75463ACBE}.Release|Any CPU.Build.0 = Release|Any CPU {E6C11D11-F20B-4A39-8FDA-82C75463ACBE}.Release|Any CPU.Build.0 = Release|Any CPU
{78CB5CC6-B587-41DD-B595-13138E6351C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{78CB5CC6-B587-41DD-B595-13138E6351C8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{78CB5CC6-B587-41DD-B595-13138E6351C8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{78CB5CC6-B587-41DD-B595-13138E6351C8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConstructionCompanyDataModels.Enums
{
public enum OrderStatus
{
Неизвестен = -1,
Принят = 0,
Выполняется = 1,
Завершён = 2
}
}

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConstructionCompanyDataModels
{
public interface IId
{
int Id { get; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConstructionCompanyDataModels.Models
{
public interface IEmployeeModel : IId
{
string Name { get; }
int PositionID { get; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConstructionCompanyDataModels.Models
{
public interface IMaterialModel : IId
{
string Name { get; }
int Quantity { get; }
}
}

View File

@ -0,0 +1,20 @@
using ConstructionCompanyDataModels.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConstructionCompanyDataModels.Models
{
public interface IOrderModel : IId
{
string Description { get; }
string Adress { get; }
double Price { get; }
OrderStatus Status { get; }
string CustomerNumber { get; }
DateOnly DateBegin { get; }
DateOnly? DateEnd { get; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConstructionCompanyDataModels.Models
{
public interface IPositionModel : IId
{
string Name { get; }
double Salary { get; }
}
}