Реализации без наполнения(51 минут осталось)
This commit is contained in:
parent
e5fcdd39c1
commit
09e7bc69f6
@ -0,0 +1,36 @@
|
||||
using PapaCarloContracts.BusinessLogicContracts;
|
||||
using PapaCarloContracts.DataModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PapaCarloBusinessLogic.Implementations
|
||||
{
|
||||
internal class BlankBusinessLogicContract : IBlankBusinessLogicContract
|
||||
{
|
||||
public void DeleteBlank(string id)
|
||||
{
|
||||
}
|
||||
|
||||
public List<BlankDataModel> GetAllBlanks()
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public BlankDataModel GetBlankByData(string data)
|
||||
{
|
||||
return new("", "", "", "");
|
||||
}
|
||||
|
||||
public void InsertBlank(BlankDataModel blankDataModel)
|
||||
{
|
||||
}
|
||||
|
||||
public void UpdateBlank(BlankDataModel blankDataModel)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
using PapaCarloContracts.BusinessLogicContracts;
|
||||
using PapaCarloContracts.DataModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PapaCarloBusinessLogic.Implementations
|
||||
{
|
||||
internal class CuttingBusinessLogicContract : ICuttingBusinessLogicContract
|
||||
{
|
||||
public void CancelCutting(string id)
|
||||
{
|
||||
}
|
||||
|
||||
public List<CuttingDataModel> GetAllCuttingsByBlankByPeriod(string blankId, DateTime fromDate, DateTime toDate)
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public List<CuttingDataModel> GetAllCuttingsByWorkerByPeriod(string workerId, DateTime fromDate, DateTime toDate)
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public List<CuttingDataModel> GetAllCuttningsByPeriod(DateTime fromDate, DateTime toDate)
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public CuttingDataModel GetCuttingByData(string data)
|
||||
{
|
||||
return new("", "", "", true, []);
|
||||
}
|
||||
|
||||
public void InsertSale(CuttingDataModel cuttingDataModel)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
using PapaCarloContracts.BuisinessLogicsContracts;
|
||||
using PapaCarloContracts.DataModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PapaCarloBusinessLogic.Implementations;
|
||||
|
||||
internal class PostBusinessLogicContract : IPostBusinessLogicContract
|
||||
{
|
||||
public void DeletePost(string id)
|
||||
{
|
||||
}
|
||||
|
||||
public List<PostDataModel> GetAllDataOfPost(string postId)
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public List<PostDataModel> GetAllPosts(bool onlyActive)
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public PostDataModel GetPostByData(string data)
|
||||
{
|
||||
return new("", "", "", 0, true, DateTime.Now);
|
||||
}
|
||||
|
||||
public void InsertPost(PostDataModel postDataModel)
|
||||
{
|
||||
}
|
||||
|
||||
public void RestorePost(string id)
|
||||
{
|
||||
}
|
||||
|
||||
public void UpdatePost(PostDataModel postDataModel)
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
using PapaCarloContracts.BusinessLogicContracts;
|
||||
using PapaCarloContracts.DataModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PapaCarloBusinessLogic.Implementations;
|
||||
|
||||
internal class ProductBusinessLogicContract : IProductBusinessLogicContract
|
||||
{
|
||||
public void DeleteProduct(string id)
|
||||
{
|
||||
}
|
||||
|
||||
public List<ProductDataModel> GetAllProducts(bool onlyActive = true)
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public List<ProductDataModel> GetAllProductsByBlank(string blankId, bool onlyActive = true)
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public ProductDataModel GetProductByData(string data)
|
||||
{
|
||||
return new("", "", 0, 0, false);
|
||||
}
|
||||
|
||||
public List<ProductHistoryDataModel> GetProductHistoryByProduct(string productId)
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public void InsertProduct(ProductDataModel productDataModel)
|
||||
{
|
||||
}
|
||||
|
||||
public void UpdateProduct(ProductDataModel productDataModel)
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
using PapaCarloContracts.BusinessLogicContracts;
|
||||
using PapaCarloContracts.DataModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PapaCarloBusinessLogic.Implementations;
|
||||
|
||||
internal class SalaryBusinessLogicContract : ISalaryBusinessLogicContract
|
||||
{
|
||||
public void CalculateSalaryByMounth(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,49 @@
|
||||
using PapaCarloContracts.BusinessLogicContracts;
|
||||
using PapaCarloContracts.DataModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PapaCarloBusinessLogic.Implementations;
|
||||
|
||||
internal class WorkerBusinessLogicContract : IWorkerBusinessLogicContract
|
||||
{
|
||||
public void DeleteWorker(string id)
|
||||
{
|
||||
}
|
||||
|
||||
public List<WorkerDataModel> GetAllWorkers(bool onlyActive = true)
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public List<WorkerDataModel> GetAllWorkersByBirthDate(DateTime fromDate, DateTime toDate, bool onlyActive = true)
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public List<WorkerDataModel> GetAllWorkersByEmploymentDate(DateTime fromDate, DateTime toDate, bool onlyActive = true)
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public List<WorkerDataModel> GetAllWorkersByPost(string postId, bool onlyActive = true)
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public WorkerDataModel GetWorkerByData(string data)
|
||||
{
|
||||
return new("", "", "", DateTime.Now, DateTime.Now, true);
|
||||
}
|
||||
|
||||
public void InsertWorker(WorkerDataModel workerDataModel)
|
||||
{
|
||||
}
|
||||
|
||||
public void UpdateWorker(WorkerDataModel workerDataModel)
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\PapaCarloContracts\PapaCarloContracts.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -1,12 +1,14 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.12.35514.174 d17.12
|
||||
VisualStudioVersion = 17.12.35514.174
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PapaCarloContracts", "PapaCarloContracts\PapaCarloContracts.csproj", "{13339D4F-E8FC-4847-8D79-966E3CC2145D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PapaCarloTests", "PapaCarloTests\PapaCarloTests.csproj", "{30C630DE-DFCA-4672-B554-56984275B0AE}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PapaCarloBusinessLogic", "PapaCarloBusinessLogic\PapaCarloBusinessLogic.csproj", "{2966A76B-CF78-47C3-8F6D-F227A396B916}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@ -21,6 +23,10 @@ Global
|
||||
{30C630DE-DFCA-4672-B554-56984275B0AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{30C630DE-DFCA-4672-B554-56984275B0AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{30C630DE-DFCA-4672-B554-56984275B0AE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2966A76B-CF78-47C3-8F6D-F227A396B916}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2966A76B-CF78-47C3-8F6D-F227A396B916}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2966A76B-CF78-47C3-8F6D-F227A396B916}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2966A76B-CF78-47C3-8F6D-F227A396B916}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
Loading…
x
Reference in New Issue
Block a user