Создание папок, моделей, коммитимся первый раз
This commit is contained in:
parent
7460310045
commit
71991b8e5f
49
Bank/Bank.sln
Normal file
49
Bank/Bank.sln
Normal file
@ -0,0 +1,49 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.7.34202.233
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BankView", "Bank\BankView.csproj", "{C867FBC3-FA1E-479D-8368-D6EFAA70CA4B}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BankBusinessLogic", "BankBusinessLogic\BankBusinessLogic.csproj", "{FB305193-03D5-40E1-84E9-A27A81D7DB83}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BankDataModels", "BankDataModels\BankDataModels.csproj", "{A2791B88-CAB3-4D95-81E2-6724C9B6CB41}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BankContracts", "BankContracts\BankContracts.csproj", "{060D1745-51EC-49A1-8FC0-B78E64DAE760}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BankDatabaseImplement", "BankDatabaseImplement\BankDatabaseImplement.csproj", "{F485D64A-2C3A-419A-AB74-80DEC552BFEC}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C867FBC3-FA1E-479D-8368-D6EFAA70CA4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{C867FBC3-FA1E-479D-8368-D6EFAA70CA4B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C867FBC3-FA1E-479D-8368-D6EFAA70CA4B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C867FBC3-FA1E-479D-8368-D6EFAA70CA4B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{FB305193-03D5-40E1-84E9-A27A81D7DB83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{FB305193-03D5-40E1-84E9-A27A81D7DB83}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{FB305193-03D5-40E1-84E9-A27A81D7DB83}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{FB305193-03D5-40E1-84E9-A27A81D7DB83}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{A2791B88-CAB3-4D95-81E2-6724C9B6CB41}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{A2791B88-CAB3-4D95-81E2-6724C9B6CB41}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{A2791B88-CAB3-4D95-81E2-6724C9B6CB41}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{A2791B88-CAB3-4D95-81E2-6724C9B6CB41}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{060D1745-51EC-49A1-8FC0-B78E64DAE760}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{060D1745-51EC-49A1-8FC0-B78E64DAE760}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{060D1745-51EC-49A1-8FC0-B78E64DAE760}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{060D1745-51EC-49A1-8FC0-B78E64DAE760}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F485D64A-2C3A-419A-AB74-80DEC552BFEC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F485D64A-2C3A-419A-AB74-80DEC552BFEC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F485D64A-2C3A-419A-AB74-80DEC552BFEC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F485D64A-2C3A-419A-AB74-80DEC552BFEC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {5A059AF9-7988-49CF-9629-146B6935892B}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
11
Bank/Bank/BankView.csproj
Normal file
11
Bank/Bank/BankView.csproj
Normal file
@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
39
Bank/Bank/Form1.Designer.cs
generated
Normal file
39
Bank/Bank/Form1.Designer.cs
generated
Normal file
@ -0,0 +1,39 @@
|
||||
namespace Bank
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Text = "Form1";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
10
Bank/Bank/Form1.cs
Normal file
10
Bank/Bank/Form1.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace Bank
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
120
Bank/Bank/Form1.resx
Normal file
120
Bank/Bank/Form1.resx
Normal file
@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
17
Bank/Bank/Program.cs
Normal file
17
Bank/Bank/Program.cs
Normal file
@ -0,0 +1,17 @@
|
||||
namespace Bank
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
// To customize application configuration such as set high DPI settings or default font,
|
||||
// see https://aka.ms/applicationconfiguration.
|
||||
ApplicationConfiguration.Initialize();
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
14
Bank/BankBusinessLogic/BankBusinessLogic.csproj
Normal file
14
Bank/BankBusinessLogic/BankBusinessLogic.csproj
Normal file
@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="BusinessLogic\" />
|
||||
<Folder Include="OfficePackage\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
20
Bank/BankContracts/BankContracts.csproj
Normal file
20
Bank/BankContracts/BankContracts.csproj
Normal file
@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\BankDataModels\BankDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="ViewModels\" />
|
||||
<Folder Include="SearchModels\" />
|
||||
<Folder Include="StoragesModels\" />
|
||||
<Folder Include="BusinessLogicsContracts\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
28
Bank/BankContracts/BindingModels/AccountBindingModel.cs
Normal file
28
Bank/BankContracts/BindingModels/AccountBindingModel.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using BankDataModels.Enums;
|
||||
using BankDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankContracts.BindingModels
|
||||
{
|
||||
// Реализация сущности "Счёт"
|
||||
public class AccountBindingModel : IAccountModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public int CashierId { get; set; }
|
||||
|
||||
public int ClientId { get; set; }
|
||||
|
||||
public string AccountNumber { get; set; } = string.Empty;
|
||||
|
||||
public double Balance { get; set; }
|
||||
|
||||
public DateTime DateOpen { get; set; } = DateTime.Now;
|
||||
|
||||
public StatusAccount StatusAccount { get; set; } = StatusAccount.Закрыт;
|
||||
}
|
||||
}
|
29
Bank/BankContracts/BindingModels/CardBindingModel.cs
Normal file
29
Bank/BankContracts/BindingModels/CardBindingModel.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using BankDataModels.Enums;
|
||||
using BankDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankContracts.BindingModels
|
||||
{
|
||||
// Реализация сущности "Карта"
|
||||
public class CardBindingModel : ICardModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public int ClientId { get; set; }
|
||||
|
||||
public int AccountId { get; set; }
|
||||
|
||||
// Номер банковской карты
|
||||
public string Number { get; set; } = string.Empty;
|
||||
|
||||
public double Balance { get; set; }
|
||||
|
||||
public DateTime Period { get; set; } = DateTime.Now;
|
||||
|
||||
public StatusCard StatusCard { get; set; } = StatusCard.Закрыта;
|
||||
}
|
||||
}
|
27
Bank/BankContracts/BindingModels/CashierBindingModel.cs
Normal file
27
Bank/BankContracts/BindingModels/CashierBindingModel.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using BankDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankContracts.BindingModels
|
||||
{
|
||||
// Реализация сущности "Кассир"
|
||||
public class CashierBindingModel : ICashierModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public string Surname { get; set; } = string.Empty;
|
||||
|
||||
public string Patronymic { get; set; } = string.Empty;
|
||||
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
public string MobilePhone { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
27
Bank/BankContracts/BindingModels/ClientBindingModel.cs
Normal file
27
Bank/BankContracts/BindingModels/ClientBindingModel.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using BankDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankContracts.BindingModels
|
||||
{
|
||||
// Реализация сущности "Клиент"
|
||||
public class ClientBindingModel : IClientModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public string Surname { get; set; } = string.Empty;
|
||||
|
||||
public string Patronymic { get; set; } = string.Empty;
|
||||
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
public string MobilePhone { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
9
Bank/BankDataModels/BankDataModels.csproj
Normal file
9
Bank/BankDataModels/BankDataModels.csproj
Normal file
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
19
Bank/BankDataModels/Enums/StatusAccount.cs
Normal file
19
Bank/BankDataModels/Enums/StatusAccount.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels.Enums
|
||||
{
|
||||
public enum StatusAccount
|
||||
{
|
||||
Открыт = 0,
|
||||
|
||||
Закрыт = 1,
|
||||
|
||||
Отклонен = 2,
|
||||
|
||||
Счёт_просрочен = 3
|
||||
}
|
||||
}
|
19
Bank/BankDataModels/Enums/StatusCard.cs
Normal file
19
Bank/BankDataModels/Enums/StatusCard.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels.Enums
|
||||
{
|
||||
public enum StatusCard
|
||||
{
|
||||
Открыта = 0,
|
||||
|
||||
Закрыта = 1,
|
||||
|
||||
Отклонена = 2,
|
||||
|
||||
Карта_просрочена = 3
|
||||
}
|
||||
}
|
13
Bank/BankDataModels/IId.cs
Normal file
13
Bank/BankDataModels/IId.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
29
Bank/BankDataModels/Models/IAccountModel.cs
Normal file
29
Bank/BankDataModels/Models/IAccountModel.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using BankDataModels.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels.Models
|
||||
{
|
||||
// Интерфейс, отвечающий за cчёт
|
||||
public interface IAccountModel : IId
|
||||
{
|
||||
int CashierId { get; }
|
||||
|
||||
int ClientId { get; }
|
||||
|
||||
// Номер счёта
|
||||
string AccountNumber { get; }
|
||||
|
||||
// Сумма на счёте
|
||||
double Balance { get; }
|
||||
|
||||
// Дата открытия
|
||||
DateTime DateOpen { get; }
|
||||
|
||||
// Статус счёта
|
||||
StatusAccount StatusAccount { get; }
|
||||
}
|
||||
}
|
29
Bank/BankDataModels/Models/ICardModel.cs
Normal file
29
Bank/BankDataModels/Models/ICardModel.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using BankDataModels.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels.Models
|
||||
{
|
||||
// Интерфейс, отвечающий за банковскую карту
|
||||
public interface ICardModel : IId
|
||||
{
|
||||
int ClientId { get; }
|
||||
|
||||
int AccountId { get; }
|
||||
|
||||
// Номер банковской карты
|
||||
string Number { get; }
|
||||
|
||||
// Сумма на карте
|
||||
double Balance { get; }
|
||||
|
||||
// Период пользования картой
|
||||
DateTime Period { get; }
|
||||
|
||||
// Статус карты
|
||||
StatusCard StatusCard { get; }
|
||||
}
|
||||
}
|
20
Bank/BankDataModels/Models/ICashWithdrawalModel.cs
Normal file
20
Bank/BankDataModels/Models/ICashWithdrawalModel.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels.Models
|
||||
{
|
||||
// Интерфейс, отвечающий за выдачу наличных
|
||||
public interface ICashWithdrawalModel : IId
|
||||
{
|
||||
// Сумма наличисления наличных
|
||||
double Sum { get; } //?? все суммы глянуть !
|
||||
|
||||
// Дата выдачи наличных
|
||||
DateTime DateWithdrawal { get; }
|
||||
|
||||
int CashierId { get; }
|
||||
}
|
||||
}
|
30
Bank/BankDataModels/Models/ICashierModel.cs
Normal file
30
Bank/BankDataModels/Models/ICashierModel.cs
Normal file
@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels.Models
|
||||
{
|
||||
// Интерфейс, отвечающий за кассира
|
||||
public interface ICashierModel : IId
|
||||
{
|
||||
// Имя кассира
|
||||
string Name { get; }
|
||||
|
||||
// Фамилия кассира
|
||||
string Surname { get; }
|
||||
|
||||
// Отчество кассира
|
||||
string Patronymic { get; }
|
||||
|
||||
// Электронный адрес кассира
|
||||
string Email { get; }
|
||||
|
||||
// Пароль от аккаунта кассира
|
||||
string Password { get; }
|
||||
|
||||
// Мобильный телефон кассира
|
||||
string MobilePhone { get; }
|
||||
}
|
||||
}
|
30
Bank/BankDataModels/Models/IClientModel.cs
Normal file
30
Bank/BankDataModels/Models/IClientModel.cs
Normal file
@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels.Models
|
||||
{
|
||||
// Интерфейс, отвечающий за клиента
|
||||
public interface IClientModel : IId
|
||||
{
|
||||
// Имя клиента
|
||||
string Name { get; }
|
||||
|
||||
// Фамилия клиента
|
||||
string Surname { get; }
|
||||
|
||||
// Отчество клиента
|
||||
string Patronymic { get; }
|
||||
|
||||
// Электронная почта клиента
|
||||
string Email { get; }
|
||||
|
||||
// Пароль от аккаунта клиента
|
||||
string Password { get; }
|
||||
|
||||
// Мобильный телефон клиента
|
||||
string MobilePhone { get; }
|
||||
}
|
||||
}
|
20
Bank/BankDataModels/Models/ICreditingModel.cs
Normal file
20
Bank/BankDataModels/Models/ICreditingModel.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels.Models
|
||||
{
|
||||
// Интерфейс, отвечающий за пополнение карты
|
||||
public interface ICreditingModel : IId
|
||||
{
|
||||
// Сумма на пополнение карты
|
||||
double Sum { get; }
|
||||
|
||||
// Дата пополнения карты
|
||||
DateTime DateCredit { get; }
|
||||
|
||||
int ClientId { get; }
|
||||
}
|
||||
}
|
18
Bank/BankDataModels/Models/IDebitingModel.cs
Normal file
18
Bank/BankDataModels/Models/IDebitingModel.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels.Models
|
||||
{
|
||||
// Интерфейс, отвечающий за получение наличных по карте
|
||||
public interface IDebitingModel : IId
|
||||
{
|
||||
// Сумма снятия с карты
|
||||
double Sum { get; }
|
||||
|
||||
// Дата снятия денег
|
||||
DateTime DateDebit { get; }
|
||||
}
|
||||
}
|
22
Bank/BankDataModels/Models/IMoneyTransfersModel.cs
Normal file
22
Bank/BankDataModels/Models/IMoneyTransfersModel.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels.Models
|
||||
{
|
||||
// Интерфейс, отвечающий за перевод денег
|
||||
public interface IMoneyTransfersModel : IId
|
||||
{
|
||||
// Сумма перевода
|
||||
double Sum { get; }
|
||||
|
||||
// Дата перевода
|
||||
DateTime DateTransfer { get; }
|
||||
|
||||
int CashierId { get; }
|
||||
|
||||
int OperationReplenishment { get; }
|
||||
}
|
||||
}
|
9
Bank/BankDatabaseImplement/BankDatabaseImplement.csproj
Normal file
9
Bank/BankDatabaseImplement/BankDatabaseImplement.csproj
Normal file
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
7
Bank/BankDatabaseImplement/Class1.cs
Normal file
7
Bank/BankDatabaseImplement/Class1.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace BankDatabaseImplement
|
||||
{
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user