Införande av repository method
This commit is contained in:
13
Accounting.BLI/Accounting.BLI.csproj
Normal file
13
Accounting.BLI/Accounting.BLI.csproj
Normal file
@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Accounting.Models\Accounting.Models.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
16
Accounting.BLI/IAccountRecords.cs
Normal file
16
Accounting.BLI/IAccountRecords.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using Accounting.Models;
|
||||
|
||||
namespace Accounting.BLI
|
||||
{
|
||||
public interface IAccountRecords
|
||||
{
|
||||
bool AddAccountRecord(AccountRecord record);
|
||||
AccountRecord SaveAcountRecord(AccountRecord record);
|
||||
bool DeleteAccountRecord(AccountRecord record);
|
||||
bool DeleteAllAccountRecords();
|
||||
IEnumerable<AccountRecord> GetAllAccBetweenDates(DateTime dateFrom, DateTime dateTo);
|
||||
IEnumerable<AccountRecord> GetAllAccounts();
|
||||
AccountRecord GetAccount(int id);
|
||||
AccountRecord GetAccountByDateBelKonto(DateTime _date, double _belopp, string _konto);
|
||||
}
|
||||
}
|
||||
13
Accounting.BLI/IExcellent.cs
Normal file
13
Accounting.BLI/IExcellent.cs
Normal file
@ -0,0 +1,13 @@
|
||||
namespace Accounting.BLI
|
||||
{
|
||||
public interface IExcellent
|
||||
{
|
||||
int Columns { get; set; }
|
||||
string DataType { get; set; }
|
||||
int Rows { get; set; }
|
||||
|
||||
void Dispose();
|
||||
void ExcellentStart(string path, int Sheet);
|
||||
string ReadCell(int i, int j);
|
||||
}
|
||||
}
|
||||
11
Accounting.BLI/IReadingIn.cs
Normal file
11
Accounting.BLI/IReadingIn.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using Accounting.Models;
|
||||
|
||||
namespace Accounting.BLI
|
||||
{
|
||||
public interface IReadingIn
|
||||
{
|
||||
bool ReadAndSaveInvoices(string fullFileName);
|
||||
IEnumerable<AccountRecord> readXLS(string FilePath);
|
||||
void Dispose();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user