Заготовки реализаций
This commit is contained in:
parent
2911a5dce1
commit
d683764ca5
@ -0,0 +1,31 @@
|
|||||||
|
using SoftBedContracts.BusinessLogicsContracts;
|
||||||
|
using SoftBedContracts.DataModels;
|
||||||
|
|
||||||
|
namespace SoftBedBusinessLogic.Implementations;
|
||||||
|
|
||||||
|
internal class CollectBusinessLogicContract : ICollectBusinessLogicContract
|
||||||
|
{
|
||||||
|
public List<CollectDataModel> GetAllCollectByPeriod(DateTime fromDate, DateTime toDate)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<CollectDataModel> GetAllCollectByWorkerByPeriod(string workerId, DateTime fromDate, DateTime toDate)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<CollectDataModel> GetAllCollectsByFurnitureByPeriod(string furnitureId, DateTime fromDate, DateTime toDate)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public CollectDataModel GetCollectByData(string data)
|
||||||
|
{
|
||||||
|
return new("", "", "", 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void InsertCollect(CollectDataModel collectDataModel)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,35 @@
|
|||||||
|
using SoftBedContracts.BusinessLogicsContracts;
|
||||||
|
using SoftBedContracts.DataModels;
|
||||||
|
using SoftBedContracts.Enums;
|
||||||
|
|
||||||
|
namespace SoftBedBusinessLogic.Implementations;
|
||||||
|
|
||||||
|
internal class FurnitureBusinessLogicContract : IFurnitureBusinessLogicContract
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public List<FurnitureDataModel> GetAllFurniture(bool onlyActive = true)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
public List<FurnitureHistoryDataModel> GetFurnitureHistoryByFurniture(string furnitureId)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public FurnitureDataModel GetFurnitureByData(string data)
|
||||||
|
{
|
||||||
|
return new("", "", FurnitureType.None, 0, false, []);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void InsertFurniture(FurnitureDataModel furnitureDataModel)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdateFurniture(FurnitureDataModel furnitureDataModel)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
public void DeleteFurniture(string id)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
using SoftBedContracts.BusinessLogicsContracts;
|
||||||
|
using SoftBedContracts.DataModels;
|
||||||
|
using SoftBedContracts.Enums;
|
||||||
|
|
||||||
|
namespace SoftBedBusinessLogic.Implementations;
|
||||||
|
|
||||||
|
internal class PostBusinessLogicContract : IPostBusinessLogicContract
|
||||||
|
{
|
||||||
|
|
||||||
|
public List<PostDataModel> GetAllDataOfPost(string postId)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PostDataModel> GetAllPosts(bool onlyActive)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public PostDataModel GetPostByData(string data)
|
||||||
|
{
|
||||||
|
return new("", "", PostType.None, 0, true, DateTime.Now);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void InsertPost(PostDataModel postDataModel)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void RestorePost(string id)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdatePost(PostDataModel postDataModel)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
public void DeletePost(string id)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
using SoftBedContracts.BusinessLogicsContracts;
|
||||||
|
using SoftBedContracts.DataModels;
|
||||||
|
|
||||||
|
namespace SoftBedBusinessLogic.Implementations;
|
||||||
|
|
||||||
|
internal class SalaryBusinessLogicContract : ISalaryBusinessLogicContract
|
||||||
|
{
|
||||||
|
public void CalculateSalaryByMonth(DateTime date)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<SalaryDataModel> GetAllSalariesByPeriod(DateTime fromDate, DateTime toDate)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<SalaryDataModel> GetAllSalariesByPeriodByWorker(DateTime fromDate, DateTime toDate, string workerId)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
using SoftBedContracts.BusinessLogicsContracts;
|
||||||
|
using SoftBedContracts.DataModels;
|
||||||
|
|
||||||
|
namespace SoftBedBusinessLogic.Implementations;
|
||||||
|
|
||||||
|
internal class WorkPieceBusinessLogicContract : IWorkPieceBusinessLogicContract
|
||||||
|
{
|
||||||
|
|
||||||
|
public List<WorkPieceDataModel> GetAllWorkPieces()
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public WorkPieceDataModel GetWorkPiecesByData(string data)
|
||||||
|
{
|
||||||
|
return new("", "", 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void InsertPost(WorkPieceDataModel workPieceDataModel)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdatePost(WorkPieceDataModel workPieceDataModel)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
public void DeletePost(string id)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,43 @@
|
|||||||
|
using SoftBedContracts.BusinessLogicsContracts;
|
||||||
|
using SoftBedContracts.DataModels;
|
||||||
|
|
||||||
|
namespace SoftBedBusinessLogic.Implementations;
|
||||||
|
|
||||||
|
internal class WorkerBusinessLogicContract : IWorkerBusinessLogicContract
|
||||||
|
{
|
||||||
|
public List<WorkerDataModel> GetAllWorkers()
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<WorkerDataModel> GetAllWorkersByBirthDate(DateTime fromDate, DateTime toDate)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<WorkerDataModel> GetAllWorkersByEmploymentDate(DateTime fromDate, DateTime toDate)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<WorkerDataModel> GetAllWorkersByPost(string postId)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public WorkerDataModel GetWorkerByData(string data)
|
||||||
|
{
|
||||||
|
return new("", "", "", DateTime.Now, DateTime.Now);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void InsertWorker(WorkerDataModel workerDataModel)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdateWorker(WorkerDataModel workerDataModel)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
public void DeleteWorker(string id)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\SoftBedContracts\SoftBedContracts.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -6,7 +6,7 @@ public interface IWorkPieceBusinessLogicContract
|
|||||||
{
|
{
|
||||||
List<WorkPieceDataModel> GetAllWorkPieces();
|
List<WorkPieceDataModel> GetAllWorkPieces();
|
||||||
|
|
||||||
List<WorkPieceDataModel> GetWorkPiecesByData(string data);
|
WorkPieceDataModel GetWorkPiecesByData(string data);
|
||||||
|
|
||||||
void InsertPost(WorkPieceDataModel workPieceDataModel);
|
void InsertPost(WorkPieceDataModel workPieceDataModel);
|
||||||
|
|
||||||
|
@ -5,7 +5,9 @@ VisualStudioVersion = 17.9.34728.123
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SoftBedContracts", "SoftBedContracts\SoftBedContracts.csproj", "{B0AF813F-CC99-4892-AA65-4CDB225B7AA3}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SoftBedContracts", "SoftBedContracts\SoftBedContracts.csproj", "{B0AF813F-CC99-4892-AA65-4CDB225B7AA3}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SoftBedTests", "SoftBedTests\SoftBedTests.csproj", "{0E56A9DB-177A-4114-B437-DE0F6C9711F4}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SoftBedTests", "SoftBedTests\SoftBedTests.csproj", "{0E56A9DB-177A-4114-B437-DE0F6C9711F4}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SoftBedBusinessLogic", "SoftBedBusinessLogic\SoftBedBusinessLogic.csproj", "{C64D5EFE-D645-459C-8E48-F42ED08261C4}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@ -21,6 +23,10 @@ Global
|
|||||||
{0E56A9DB-177A-4114-B437-DE0F6C9711F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{0E56A9DB-177A-4114-B437-DE0F6C9711F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{0E56A9DB-177A-4114-B437-DE0F6C9711F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{0E56A9DB-177A-4114-B437-DE0F6C9711F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{0E56A9DB-177A-4114-B437-DE0F6C9711F4}.Release|Any CPU.Build.0 = Release|Any CPU
|
{0E56A9DB-177A-4114-B437-DE0F6C9711F4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{C64D5EFE-D645-459C-8E48-F42ED08261C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{C64D5EFE-D645-459C-8E48-F42ED08261C4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{C64D5EFE-D645-459C-8E48-F42ED08261C4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{C64D5EFE-D645-459C-8E48-F42ED08261C4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user