Заготовки для реализаций
This commit is contained in:
parent
774921e24b
commit
4699447735
@ -0,0 +1,52 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.BuisnessLogicsContracts;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketBuisnessLogic.Implementations;
|
||||||
|
|
||||||
|
internal class MasterBuisnessLogicContract : IMasterBuisnessLogicContract
|
||||||
|
{
|
||||||
|
public List<MasterDataModel> GetAllMasters(bool onlyActive = true)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<MasterDataModel> GetAllMastersByBirthDate(DateTime fromDate, DateTime toDate, bool onlyActive = true)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<MasterDataModel> GetAllMastersByEmploymentDate(DateTime fromDate, DateTime toDate, bool onlyActive = true)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<MasterDataModel> GetAllMastersByPost(string postId, bool onlyActive = true)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public MasterDataModel GetMasterByData(string data)
|
||||||
|
{
|
||||||
|
return new("", "", "", default, default, default);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void InsertMaster(MasterDataModel masterDataModel)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdateMaster(MasterDataModel masterDataModel)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void DeleteMaster(string id)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,41 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.BuisnessLogicsContracts;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketBuisnessLogic.Implementations;
|
||||||
|
|
||||||
|
internal class OrderBuisnessLogicContract : IOrderBuisnessLogicContract
|
||||||
|
{
|
||||||
|
public List<OrderDataModel> GetAllOrder()
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<OrderDataModel> GetAllOrderByBirthDate(DateTime fromDate, DateTime toDate)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public OrderDataModel GetOrderByData(string data)
|
||||||
|
{
|
||||||
|
return new("", default, default, default);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void InsertOrder(MasterDataModel masterDataModel)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdateOrder(MasterDataModel masterDataModel)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
public void DeleteOrder(string id)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,46 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.BuisnessLogicsContracts;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketBuisnessLogic.Implementations;
|
||||||
|
|
||||||
|
internal class PostBuisnessLogicContract : IPostBuisnessLogicContract
|
||||||
|
{
|
||||||
|
public List<PostDataModel> GetAllDataOfPost(string postId)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PostDataModel> GetAllPost(bool onlyActive)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public PostDataModel GetPostByData(string data)
|
||||||
|
{
|
||||||
|
return new("", "", "", default, 0, default, default);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void InsertPost(PostDataModel postDataModel)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void RestorePost(string id)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdatePost(PostDataModel postDataModel)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
public void DeletePost(string id)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.BuisnessLogicsContracts;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketBuisnessLogic.Implementations;
|
||||||
|
|
||||||
|
internal class SalaryBuisnessLogicContract : ISalaryBuisnessLogicContract
|
||||||
|
{
|
||||||
|
public List<SalaryDataModel> GetAllSalariesByPeriod(DateTime fromDate, DateTime toDate)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<SalaryDataModel> GetAllSalariesByPeriodByMaster(DateTime fromDate, DateTime toDate, string masterId)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
public void CalculateSalaryByMounth(DateTime date)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.BuisnessLogicsContracts;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
using TwoFromTheCasketContratcs.Enums;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketBuisnessLogic.Implementations;
|
||||||
|
|
||||||
|
internal class ServiceBuisnessLogicContract : IServiceBuisnessLogicContract
|
||||||
|
{
|
||||||
|
public List<ServiceDataModel> GetAllServices(bool onlyActive)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ServiceDataModel> GetAllServicesByMasterId(string masterId, bool onlyActive)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ServiceDataModel> GetAllServicesByServiceType(ServiceType serviceType, bool onlyActive)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public void InsertService(ServiceDataModel serviceDataModel)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdateService(ServiceDataModel serviceDataModel)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
public void DeleteService(string id)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.BuisnessLogicsContracts;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketBuisnessLogic.Implementations;
|
||||||
|
|
||||||
|
internal class ServiceHistoryBuisnessLogicContract : IServiceHistoryBuisnessLogicContract
|
||||||
|
{
|
||||||
|
public List<ServiceHistoryDataModel> GetAllService()
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ServiceHistoryDataModel> GetAllServicesByChangeDate(DateTime fromDate, DateTime toDate)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ServiceHistoryDataModel> GetAllServicesByServiceId(string serviceId)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,51 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.BuisnessLogicsContracts;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketBuisnessLogic.Implementations;
|
||||||
|
|
||||||
|
internal class ServiceOrderBuisnessLogicContract : IServiceOrderBuisnessLogicContract
|
||||||
|
{
|
||||||
|
public List<ServiceOrderDataModel> GetAllServiceOrder()
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ServiceOrderDataModel> GetAllServiceOrdersByMasterId(string masterId)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ServiceOrderDataModel> GetAllServiceOrdersByOrderId(string orderId)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ServiceOrderDataModel> GetAllServiceOrdersByServiceId(string serviceId)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public ServiceOrderDataModel GetElementByTimeOfWorking(int timeOfWorking)
|
||||||
|
{
|
||||||
|
return new("","","",0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void InsertServiceOrder(ServiceOrderDataModel serviceOrder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdateServiceOrder(ServiceOrderDataModel serviceOrder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
public void DeleteServiceOrder(string id)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\TwoFromTheCasketContratcs\TwoFromTheCasketContratcs.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TwoFromTheCasketContratcs",
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TwoFromTheCasketTest", "TwoFromTheCasketTest\TwoFromTheCasketTest.csproj", "{71E6B2F8-F494-4500-A887-481047D885DF}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TwoFromTheCasketTest", "TwoFromTheCasketTest\TwoFromTheCasketTest.csproj", "{71E6B2F8-F494-4500-A887-481047D885DF}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TwoFromTheCasketBuisnessLogic", "TwoFromTheCasketBuisnessLogic\TwoFromTheCasketBuisnessLogic.csproj", "{371435E4-6D04-4302-86C8-23F063FBE57A}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@ -21,6 +23,10 @@ Global
|
|||||||
{71E6B2F8-F494-4500-A887-481047D885DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{71E6B2F8-F494-4500-A887-481047D885DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{71E6B2F8-F494-4500-A887-481047D885DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{71E6B2F8-F494-4500-A887-481047D885DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{71E6B2F8-F494-4500-A887-481047D885DF}.Release|Any CPU.Build.0 = Release|Any CPU
|
{71E6B2F8-F494-4500-A887-481047D885DF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{371435E4-6D04-4302-86C8-23F063FBE57A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{371435E4-6D04-4302-86C8-23F063FBE57A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{371435E4-6D04-4302-86C8-23F063FBE57A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{371435E4-6D04-4302-86C8-23F063FBE57A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketContratcs.BuisnessLogicsContracts;
|
||||||
|
|
||||||
|
public interface IMasterBuisnessLogicContract
|
||||||
|
{
|
||||||
|
List<MasterDataModel> GetAllMasters(bool onlyActive = true);
|
||||||
|
|
||||||
|
List<MasterDataModel> GetAllMastersByPost(string postId, bool onlyActive = true);
|
||||||
|
List<MasterDataModel> GetAllMastersByBirthDate(DateTime fromDate, DateTime toDate, bool onlyActive = true);
|
||||||
|
|
||||||
|
List<MasterDataModel> GetAllMastersByEmploymentDate(DateTime fromDate, DateTime toDate, bool onlyActive = true);
|
||||||
|
|
||||||
|
MasterDataModel GetMasterByData(string data);
|
||||||
|
|
||||||
|
void InsertMaster(MasterDataModel masterDataModel);
|
||||||
|
|
||||||
|
void UpdateMaster(MasterDataModel masterDataModel);
|
||||||
|
|
||||||
|
void DeleteMaster(string id);
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketContratcs.BuisnessLogicsContracts;
|
||||||
|
|
||||||
|
public interface IOrderBuisnessLogicContract
|
||||||
|
{
|
||||||
|
List<OrderDataModel> GetAllOrder();
|
||||||
|
|
||||||
|
List<OrderDataModel> GetAllOrderByBirthDate(DateTime fromDate, DateTime toDate);
|
||||||
|
|
||||||
|
OrderDataModel GetOrderByData(string data);
|
||||||
|
|
||||||
|
void InsertOrder(MasterDataModel masterDataModel);
|
||||||
|
|
||||||
|
void UpdateOrder(MasterDataModel masterDataModel);
|
||||||
|
|
||||||
|
void DeleteOrder(string id);
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketContratcs.BuisnessLogicsContracts;
|
||||||
|
|
||||||
|
public interface IPostBuisnessLogicContract
|
||||||
|
{
|
||||||
|
List<PostDataModel> GetAllPost(bool onlyActive);
|
||||||
|
|
||||||
|
List<PostDataModel> GetAllDataOfPost(string postId);
|
||||||
|
|
||||||
|
PostDataModel GetPostByData(string data);
|
||||||
|
|
||||||
|
void InsertPost(PostDataModel postDataModel);
|
||||||
|
|
||||||
|
void UpdatePost(PostDataModel postDataModel);
|
||||||
|
|
||||||
|
void DeletePost(string id);
|
||||||
|
|
||||||
|
void RestorePost(string id);
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketContratcs.BuisnessLogicsContracts;
|
||||||
|
|
||||||
|
public interface ISalaryBuisnessLogicContract
|
||||||
|
{
|
||||||
|
List<SalaryDataModel> GetAllSalariesByPeriod(DateTime fromDate, DateTime toDate);
|
||||||
|
|
||||||
|
List<SalaryDataModel> GetAllSalariesByPeriodByMaster(DateTime fromDate, DateTime toDate, string masterId);
|
||||||
|
|
||||||
|
void CalculateSalaryByMounth(DateTime date);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,26 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
using TwoFromTheCasketContratcs.Enums;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketContratcs.BuisnessLogicsContracts;
|
||||||
|
|
||||||
|
public interface IServiceBuisnessLogicContract
|
||||||
|
{
|
||||||
|
List<ServiceDataModel> GetAllServices(bool onlyActive);
|
||||||
|
|
||||||
|
List<ServiceDataModel> GetAllServicesByServiceType(ServiceType serviceType, bool onlyActive);
|
||||||
|
|
||||||
|
List<ServiceDataModel> GetAllServicesByMasterId(string masterId, bool onlyActive);
|
||||||
|
|
||||||
|
void InsertService(ServiceDataModel serviceDataModel);
|
||||||
|
|
||||||
|
void UpdateService(ServiceDataModel serviceDataModel);
|
||||||
|
|
||||||
|
void DeleteService(string id);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
using TwoFromTheCasketContratcs.Enums;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketContratcs.BuisnessLogicsContracts;
|
||||||
|
|
||||||
|
public interface IServiceHistoryBuisnessLogicContract
|
||||||
|
{
|
||||||
|
List<ServiceHistoryDataModel> GetAllService();
|
||||||
|
|
||||||
|
List<ServiceHistoryDataModel> GetAllServicesByServiceId(string serviceId);
|
||||||
|
|
||||||
|
List<ServiceHistoryDataModel> GetAllServicesByChangeDate(DateTime fromDate, DateTime toDate);
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketContratcs.BuisnessLogicsContracts;
|
||||||
|
|
||||||
|
public interface IServiceOrderBuisnessLogicContract
|
||||||
|
{
|
||||||
|
List<ServiceOrderDataModel> GetAllServiceOrder();
|
||||||
|
|
||||||
|
List<ServiceOrderDataModel> GetAllServiceOrdersByOrderId(string orderId);
|
||||||
|
|
||||||
|
List<ServiceOrderDataModel> GetAllServiceOrdersByServiceId(string serviceId);
|
||||||
|
|
||||||
|
List<ServiceOrderDataModel> GetAllServiceOrdersByMasterId(string masterId);
|
||||||
|
|
||||||
|
ServiceOrderDataModel GetElementByTimeOfWorking(int timeOfWorking);
|
||||||
|
|
||||||
|
void InsertServiceOrder(ServiceOrderDataModel serviceOrder);
|
||||||
|
|
||||||
|
void UpdateServiceOrder(ServiceOrderDataModel serviceOrder);
|
||||||
|
|
||||||
|
void DeleteServiceOrder(string id);
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketContratcs.StorageContracts;
|
||||||
|
|
||||||
|
public interface IMasterStorageContract
|
||||||
|
{
|
||||||
|
List<MasterDataModel> GetList();
|
||||||
|
|
||||||
|
MasterDataModel? GetElementById(string id);
|
||||||
|
|
||||||
|
MasterDataModel? GetElementByName(string name);
|
||||||
|
|
||||||
|
void AddElement(MasterDataModel masterDataModel);
|
||||||
|
|
||||||
|
void UpdElement(MasterDataModel masterDataModel);
|
||||||
|
|
||||||
|
void DelElement(string id);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
using TwoFromTheCasketContratcs.Enums;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketContratcs.StorageContracts;
|
||||||
|
|
||||||
|
public interface IOrderStorageContract
|
||||||
|
{
|
||||||
|
List<OrderDataModel> GetList();
|
||||||
|
|
||||||
|
OrderDataModel? GetElementById(string id);
|
||||||
|
|
||||||
|
OrderDataModel? GetElementByDate(DateTime date);
|
||||||
|
|
||||||
|
OrderDataModel? GetElementByStatus(StatusType status);
|
||||||
|
|
||||||
|
void AddElement(OrderDataModel orderDataModel);
|
||||||
|
|
||||||
|
void UpdElement(OrderDataModel orderDataModel);
|
||||||
|
|
||||||
|
void DelElement(string id);
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketContratcs.StorageContracts;
|
||||||
|
|
||||||
|
public interface IPostStorageContract
|
||||||
|
{
|
||||||
|
List<PostDataModel> GetList(bool onlyActual = true);
|
||||||
|
|
||||||
|
List<PostDataModel> GetPostWithHistory(string postId);
|
||||||
|
|
||||||
|
PostDataModel? GetElementById(string id);
|
||||||
|
|
||||||
|
PostDataModel? GetElementByName(string name);
|
||||||
|
|
||||||
|
void AddElement(PostDataModel postDataModel);
|
||||||
|
|
||||||
|
void UpdElement(PostDataModel postDataModel);
|
||||||
|
|
||||||
|
void DelElement(string id);
|
||||||
|
|
||||||
|
void ResElement(string id);
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
using TwoFromTheCasketContratcs.Enums;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketContratcs.StorageContracts;
|
||||||
|
|
||||||
|
public interface ISalaryStorageContract
|
||||||
|
{
|
||||||
|
List<SalaryDataModel> GetList();
|
||||||
|
|
||||||
|
SalaryDataModel? GetElementByMasterId(string masterId);
|
||||||
|
|
||||||
|
SalaryDataModel? GetElementBySalaryDate(DateTime salaryDate);
|
||||||
|
|
||||||
|
void AddElement(SalaryDataModel salaryDataModel);
|
||||||
|
|
||||||
|
void UpdElement(SalaryDataModel salaryDataModel);
|
||||||
|
|
||||||
|
void DelElement(string id);
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketContratcs.StorageContracts;
|
||||||
|
|
||||||
|
public interface IServiceHistoryStorageContract
|
||||||
|
{
|
||||||
|
List<ServiceHistoryDataModel> GetList();
|
||||||
|
|
||||||
|
ServiceHistoryDataModel? GetElementByServiceId(string serviceId);
|
||||||
|
|
||||||
|
void AddElement(ServiceHistoryDataModel serviceHistoryDataModel);
|
||||||
|
|
||||||
|
void UpdElement(ServiceHistoryDataModel serviceHistoryDataModel);
|
||||||
|
|
||||||
|
void DelElement(string id);
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketContratcs.StorageContracts;
|
||||||
|
|
||||||
|
public interface IServiceOrderStorageContract
|
||||||
|
{
|
||||||
|
List<ServiceOrderDataModel> GetList();
|
||||||
|
|
||||||
|
ServiceOrderDataModel? GetElementByOrderId(string orderId);
|
||||||
|
|
||||||
|
ServiceOrderDataModel? GetElementByServiceId(string serviceId);
|
||||||
|
|
||||||
|
ServiceOrderDataModel? GetElementByMasterId(string masterId);
|
||||||
|
void AddElement(ServiceOrderDataModel serviceDataModel);
|
||||||
|
|
||||||
|
void UpdElement(ServiceOrderDataModel serviceDataModel);
|
||||||
|
|
||||||
|
void DelElement(string id);
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using TwoFromTheCasketContratcs.DataModels;
|
||||||
|
using TwoFromTheCasketContratcs.Enums;
|
||||||
|
|
||||||
|
namespace TwoFromTheCasketContratcs.StorageContracts;
|
||||||
|
|
||||||
|
public interface IServiceStorageContract
|
||||||
|
{
|
||||||
|
List<ServiceDataModel> GetList();
|
||||||
|
|
||||||
|
ServiceDataModel? GetElementById(string id);
|
||||||
|
|
||||||
|
ServiceDataModel? GetElementByServiceName(string name);
|
||||||
|
|
||||||
|
ServiceDataModel? GetElementByMasterId(string masterId);
|
||||||
|
void AddElement(ServiceDataModel serviceDataModel);
|
||||||
|
|
||||||
|
void UpdElement(ServiceDataModel serviceDataModel);
|
||||||
|
|
||||||
|
void DelElement(string id);
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user