начало работы

This commit is contained in:
ityurner02@mail.ru 2023-02-06 19:06:43 +04:00
parent 69eccd4c2c
commit 1226d497f9
7 changed files with 78 additions and 1 deletions

View File

@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 17
VisualStudioVersion = 17.3.32825.248 VisualStudioVersion = 17.3.32825.248
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlumbingRepair", "PlumbingRepair\PlumbingRepair.csproj", "{F0AEA1F3-7D99-4EC1-B79F-97E6927ECBCA}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PlumbingRepair", "PlumbingRepair\PlumbingRepair.csproj", "{F0AEA1F3-7D99-4EC1-B79F-97E6927ECBCA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlumbingRepairDataModels", "PlumbingRepairDataModels\PlumbingRepairDataModels.csproj", "{90DD7D7A-91FD-403D-8D3A-FE8842AA5848}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -15,6 +17,10 @@ Global
{F0AEA1F3-7D99-4EC1-B79F-97E6927ECBCA}.Debug|Any CPU.Build.0 = Debug|Any CPU {F0AEA1F3-7D99-4EC1-B79F-97E6927ECBCA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F0AEA1F3-7D99-4EC1-B79F-97E6927ECBCA}.Release|Any CPU.ActiveCfg = Release|Any CPU {F0AEA1F3-7D99-4EC1-B79F-97E6927ECBCA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F0AEA1F3-7D99-4EC1-B79F-97E6927ECBCA}.Release|Any CPU.Build.0 = Release|Any CPU {F0AEA1F3-7D99-4EC1-B79F-97E6927ECBCA}.Release|Any CPU.Build.0 = Release|Any CPU
{90DD7D7A-91FD-403D-8D3A-FE8842AA5848}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{90DD7D7A-91FD-403D-8D3A-FE8842AA5848}.Debug|Any CPU.Build.0 = Debug|Any CPU
{90DD7D7A-91FD-403D-8D3A-FE8842AA5848}.Release|Any CPU.ActiveCfg = Release|Any CPU
{90DD7D7A-91FD-403D-8D3A-FE8842AA5848}.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,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PlumbingRepairDataModels.Enums
{
public enum OrderStatus
{
Неизвестен = -1,
Принят = 0,
Выполняется = 1,
Готов = 2,
Выдан = 3
}
}

View File

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

View File

@ -0,0 +1,8 @@
namespace PlumbingRepairDataModels.Models
{
public interface IComponentModel : IId
{
string ComponentName { get; }
double Cost { get; }
}
}

View File

@ -0,0 +1,15 @@
using PlumbingRepairDataModels.Enums;
namespace PlumbingRepairDataModels.Models
{
public interface IOrderModel : IId
{
int WorkId { get; }
string WorkName { get; }
int Count { get; }
double Sum { get; }
OrderStatus Status { get; }
DateTime DateCreate { get; }
DateTime? DateImplement { get; }
}
}

View File

@ -0,0 +1,9 @@
namespace PlumbingRepairDataModels.Models
{
public interface IWorkModel : IId
{
string WorkName { get; }
double Price { get; }
Dictionary<int, (IComponentModel, int)> WorkComponents { get; }
}
}

View File

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