This commit is contained in:
shadowik 2023-04-01 09:00:53 +04:00
commit 675b8b33f0
6 changed files with 130 additions and 0 deletions

View File

@ -15,6 +15,8 @@ namespace BankYouBankruptContracts.BindingModels
public int ClientId { get; set; } public int ClientId { get; set; }
public string AccountNumber { get; set; } = string.Empty;
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 string AccountNumber { get; set; } = string.Empty;
[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
{ {
string AccountNumber { get; }
int CashierId { get; } int CashierId { get; }
int ClientId { get; } int ClientId { get; }