Compare commits
6 Commits
Task_1_Mod
...
Task_2_Bus
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d24753be0 | |||
| 9e29b56923 | |||
| 319f927922 | |||
| ff8ba79abc | |||
| 19883910fb | |||
| 905eb68b2b |
@@ -1,2 +1,2 @@
|
||||
# PIBD-23_Coursework_Bank
|
||||
|
||||
[](https://git.io/typing-svg)
|
||||
|
||||
9
TheBank/BankBusinessLogic/BankBusinessLogic.csproj
Normal file
9
TheBank/BankBusinessLogic/BankBusinessLogic.csproj
Normal file
@@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,14 @@
|
||||
using BankContracts.DataModels;
|
||||
|
||||
namespace BankContracts.BusinessLogicContracts;
|
||||
|
||||
public interface IClerkBusinessLogicContract
|
||||
{
|
||||
List<ClerkDataModel> GetAllClerks();
|
||||
|
||||
ClerkDataModel GetClerkByData(string data);
|
||||
|
||||
void InsertClerk(ClerkDataModel clerkDataModel);
|
||||
|
||||
void UpdateClerk(ClerkDataModel clerkDataModel);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using BankContracts.DataModels;
|
||||
|
||||
namespace BankContracts.BusinessLogicContracts;
|
||||
|
||||
public interface IClientBusinessLogicContract
|
||||
{
|
||||
List<ClientDataModel> GetAllClients();
|
||||
|
||||
List<ClientDataModel> GetClientByClerk(string clerkId);
|
||||
|
||||
ClientDataModel GetClientByData(string data);
|
||||
|
||||
void InsertClient(ClientDataModel clientDataModel);
|
||||
|
||||
void UpdateClient(ClientDataModel clientDataModel);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using BankContracts.DataModels;
|
||||
|
||||
namespace BankContracts.BusinessLogicContracts;
|
||||
|
||||
public interface ICreditProgramBusinessLogicContract
|
||||
{
|
||||
List<CreditProgramDataModel> GetAllCreditPrograms();
|
||||
|
||||
List<CreditProgramDataModel> GetCreditProgramByStorekeeper(string storekeeperId);
|
||||
|
||||
List<CreditProgramDataModel> GetCreditProgramByPeriod(string periodId);
|
||||
|
||||
CreditProgramDataModel GetCreditProgramByData(string data);
|
||||
|
||||
void InsertCreditProgram(CreditProgramDataModel creditProgramDataModel);
|
||||
|
||||
void UpdateCreditProgram(CreditProgramDataModel creditProgramDataModel);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using BankContracts.DataModels;
|
||||
namespace BankContracts.BusinessLogicContracts;
|
||||
|
||||
public interface ICurrencyBusinessLogicContract
|
||||
{
|
||||
List<CurrencyDataModel> GetAllCurrencys();
|
||||
|
||||
List<CurrencyDataModel> GetCurrencyByStorekeeper(string storekeeperId);
|
||||
|
||||
CurrencyDataModel GetCurrencyByData(string data);
|
||||
|
||||
void InsertCurrency(CurrencyDataModel currencyDataModel);
|
||||
|
||||
void UpdateCurrency(CurrencyDataModel currencyDataModel);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using BankContracts.DataModels;
|
||||
|
||||
namespace BankContracts.BusinessLogicContracts;
|
||||
|
||||
public interface IDepositBusinessLogicContract
|
||||
{
|
||||
List<DepositDataModel> GetAllDeposits();
|
||||
|
||||
List<DepositDataModel> GetDepositByClerk(string clerkId);
|
||||
|
||||
DepositDataModel GetDepositByData(string data);
|
||||
|
||||
void InsertDeposit(DepositDataModel depositDataModel);
|
||||
|
||||
void UpdateDeposit(DepositDataModel depositDataModel);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using BankContracts.DataModels;
|
||||
|
||||
namespace BankContracts.BusinessLogicContracts;
|
||||
|
||||
public interface IPeriodBusinessLogicContract
|
||||
{
|
||||
List<PeriodDataModel> GetAllPeriods();
|
||||
|
||||
PeriodDataModel GetPeriodByData(string data);
|
||||
|
||||
List<PeriodDataModel> GetAllPeriodsByStorekeeper(string storekeeperId);
|
||||
|
||||
List<PeriodDataModel> GetAllPeriodsByStartTime(DateTime fromDate, DateTime toDate);
|
||||
|
||||
List<PeriodDataModel> GetAllPeriodsByEndTime(DateTime fromDate, DateTime toDate);
|
||||
|
||||
void InsertPeriod(PeriodDataModel periodataModel);
|
||||
|
||||
void UpdatePeriod(PeriodDataModel periodataModel);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using BankContracts.DataModels;
|
||||
|
||||
namespace BankContracts.BusinessLogicContracts;
|
||||
|
||||
public interface IReplenishmentBusinessLogicContract
|
||||
{
|
||||
List<ReplenishmentDataModel> GetAllReplenishments();
|
||||
|
||||
ReplenishmentDataModel GetReplenishmentByData(string data);
|
||||
|
||||
List<ReplenishmentDataModel> GetAllReplenishmentsByDate(DateTime fromDate, DateTime toDate);
|
||||
|
||||
List<ReplenishmentDataModel> GetAllReplenishmentsByDeposit(string depositId);
|
||||
|
||||
List<ReplenishmentDataModel> GetAllReplenishmentsByClerk(string clerkId);
|
||||
|
||||
void InsertReplenishment(ReplenishmentDataModel replenishmentataModel);
|
||||
|
||||
void UpdateReplenishment(ReplenishmentDataModel replenishmentataModel);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using BankContracts.DataModels;
|
||||
|
||||
namespace BankContracts.BusinessLogicContracts;
|
||||
|
||||
public interface IStorekeeperBusinessLogicContract
|
||||
{
|
||||
List<StorekeeperDataModel> GetAllStorekeepers();
|
||||
|
||||
StorekeeperDataModel GetStorekeeperByData(string data);
|
||||
|
||||
void InsertStorekeeper(StorekeeperDataModel storekeeperDataModel);
|
||||
|
||||
void UpdateStorekeeper(StorekeeperDataModel storekeeperDataModel);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using BankContracts.DataModels;
|
||||
|
||||
namespace BankContracts.StorageContracts;
|
||||
|
||||
public interface IClerkStorageContract
|
||||
{
|
||||
List<ClerkDataModel> GetList();
|
||||
|
||||
ClerkDataModel? GetElementById(string id);
|
||||
|
||||
ClerkDataModel? GetElementByPhoneNumber(string phoneNumber);
|
||||
|
||||
ClerkDataModel? GetElementByLogin(string login);
|
||||
|
||||
void AddElement(ClerkDataModel clerkDataModel);
|
||||
|
||||
void UpdElement(ClerkDataModel clerkDataModel);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using BankContracts.DataModels;
|
||||
|
||||
namespace BankContracts.StorageContracts;
|
||||
|
||||
public interface IClientStorageContract
|
||||
{
|
||||
List<ClientDataModel> GetList();
|
||||
|
||||
ClientDataModel? GetElementById(string id);
|
||||
|
||||
ClientDataModel? GetElementByName(string name);
|
||||
|
||||
ClientDataModel? GetElementBySurname(string surname);
|
||||
|
||||
void AddElement(ClientDataModel clientDataModel);
|
||||
|
||||
void UpdElement(ClientDataModel clientDataModel);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using BankContracts.DataModels;
|
||||
|
||||
namespace BankContracts.StorageContracts;
|
||||
|
||||
public interface ICreditProgramStorageContract
|
||||
{
|
||||
List<CreditProgramDataModel> GetList();
|
||||
|
||||
CreditProgramDataModel? GetElementById(string id);
|
||||
|
||||
void AddElement(CreditProgramDataModel creditProgramDataModel);
|
||||
|
||||
void UpdElement(CreditProgramDataModel creditProgramDataModel);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using BankContracts.DataModels;
|
||||
|
||||
namespace BankContracts.StorageContracts;
|
||||
|
||||
public interface ICurrencyStorageContract
|
||||
{
|
||||
List<CurrencyDataModel> GetList();
|
||||
|
||||
CurrencyDataModel? GetElementById(string id);
|
||||
|
||||
CurrencyDataModel? GetElementByAbbreviation(string abbreviation);
|
||||
|
||||
void AddElement(CurrencyDataModel currencyDataModel);
|
||||
|
||||
void UpdElement(CurrencyDataModel currencyDataModel);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using BankContracts.DataModels;
|
||||
|
||||
namespace BankContracts.StorageContracts;
|
||||
|
||||
public interface IDepositStorageContract
|
||||
{
|
||||
List<DepositDataModel> GetList();
|
||||
|
||||
DepositDataModel? GetElementById(string id);
|
||||
|
||||
DepositDataModel? GetElementByName(string name);
|
||||
|
||||
void AddElement(DepositDataModel depositDataModel);
|
||||
|
||||
void UpdElement(DepositDataModel depositDataModel);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using BankContracts.DataModels;
|
||||
|
||||
namespace BankContracts.StorageContracts;
|
||||
|
||||
public interface IPeriodStorageContract
|
||||
{
|
||||
List<PeriodDataModel> GetList(DateTime startDate, DateTime endDate);
|
||||
|
||||
PeriodDataModel? GetElementById(string id);
|
||||
|
||||
void AddElement(PeriodDataModel periodDataModel);
|
||||
|
||||
void UpdElement(PeriodDataModel periodDataModel);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using BankContracts.DataModels;
|
||||
|
||||
namespace BankContracts.StorageContracts;
|
||||
|
||||
public interface IReplenishmentStorageContract
|
||||
{
|
||||
List<ReplenishmentDataModel> GetList();
|
||||
|
||||
ReplenishmentDataModel? GetElementById(string id);
|
||||
|
||||
void AddElement(ReplenishmentDataModel replenishmentDataModel);
|
||||
|
||||
void UpdElement(ReplenishmentDataModel replenishmentDataModel);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using BankContracts.DataModels;
|
||||
namespace BankContracts.StorageContracts;
|
||||
|
||||
public interface IStorekeeperStorageContract
|
||||
{
|
||||
List<StorekeeperDataModel> GetList();
|
||||
|
||||
StorekeeperDataModel? GetElementById(string id);
|
||||
|
||||
StorekeeperDataModel? GetElementByPhoneNumber(string phoneNumber);
|
||||
|
||||
StorekeeperDataModel? GetElementByLogin(string login);
|
||||
|
||||
void AddElement(StorekeeperDataModel storekeeperDataModel);
|
||||
|
||||
void UpdElement(StorekeeperDataModel storekeeperDataModel);
|
||||
}
|
||||
Reference in New Issue
Block a user