Добавление ViewModel кассира.

This commit is contained in:
Programmist73 2023-04-01 12:55:58 +04:00
parent 5de1b3c5f8
commit 9b32082d02
7 changed files with 130 additions and 1 deletions

View File

@ -10,7 +10,6 @@
<Folder Include="BusinessLogicsContacts\" /> <Folder Include="BusinessLogicsContacts\" />
<Folder Include="SearchModels\" /> <Folder Include="SearchModels\" />
<Folder Include="StoragesContracts\" /> <Folder Include="StoragesContracts\" />
<Folder Include="ViewModels\" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -15,6 +15,8 @@ namespace BankYouBankruptContracts.BindingModels
public int ClientId { get; set; } public int ClientId { get; set; }
public int AccountNumber { get; set; }
public string PasswordAccount { get; set; } = string.Empty; public string PasswordAccount { get; set; } = string.Empty;
public double Balance { get; set; } public double Balance { get; set; }

View File

@ -0,0 +1,36 @@
using BankYouBankruptDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankYouBankruptContracts.ViewModels
{
public class AccountViewModel : IAccountModel
{
public int Id { get; set; }
public int CashierId { get; set; }
public int ClientId { get; set; }
[DisplayName("Номер счёта")]
public int AccountNumber { get; set; }
[DisplayName("Имя")]
public string Name { get; set; } = string.Empty;
[DisplayName("Отчество")]
public string Patronymic { get; set; } = string.Empty;
public string PasswordAccount { get; set; } = string.Empty;
[DisplayName("Баланс")]
public double Balance { get; set; }
[DisplayName("Дата открытия")]
public DateTime DateOpen { get; set; } = DateTime.Now;
}
}

View File

@ -0,0 +1,26 @@
using BankYouBankruptDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankYouBankruptContracts.ViewModels
{
public class CashWithdrawalViewModel : ICashWithdrawalModel
{
public int Id { get; set; }
public int AccountId { get; set; }
[DisplayName("Номер счёта")]
public int AccountNumber { get; set; }
[DisplayName("Сумма выданных наличных")]
public int Sum { get; set; }
[DisplayName("Дата операции")]
public DateTime DateOperation { get; set; } = DateTime.Now;
}
}

View File

@ -0,0 +1,32 @@
using BankYouBankruptDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankYouBankruptContracts.ViewModels
{
public class CashierViewModel : ICashierModel
{
public int Id { get; set; }
public string Password { get; set; } = string.Empty;
[DisplayName("Имя")]
public string Name { get; set; } = string.Empty;
[DisplayName("Фамилия")]
public string Surname { get; set; } = string.Empty;
[DisplayName("Отчество")]
public string Patronymic { get; set; } = string.Empty;
[DisplayName("Телефон")]
public string Telephone { get; set; } = string.Empty;
[DisplayName("Почта")]
public string Email { get; set; } = string.Empty;
}
}

View File

@ -0,0 +1,31 @@
using BankYouBankruptDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankYouBankruptContracts.ViewModels
{
public class MoneyTransferViewModel : IMoneyTransferModel
{
public int Id { get; set; }
[DisplayName("Сумма перевода")]
public int Sum { get; set; }
public int AccountSenderId { get; set; }
[DisplayName("Номер счёта отп.")]
public int AccountSenderNumber { get; set; }
public int AccountPayeeId { get; set; }
[DisplayName("Номер счёта получ.")]
public int AccountPayeeNumber { get; set; }
[DisplayName("Дата операции")]
public DateTime DateOperation { get; set; } = DateTime.Now;
}
}

View File

@ -1,6 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Security.Principal;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -9,6 +10,8 @@ namespace BankYouBankruptDataModels.Models
//банковский счёт //банковский счёт
public interface IAccountModel : IId public interface IAccountModel : IId
{ {
int AccountNumber { get; }
int CashierId { get; } int CashierId { get; }
int ClientId { get; } int ClientId { get; }