Merge branch 'main' of http://student.git.athene.tech/shadowik/CourseWork_BankYouBankrupt
This commit is contained in:
commit
675b8b33f0
@ -15,6 +15,8 @@ namespace BankYouBankruptContracts.BindingModels
|
||||
|
||||
public int ClientId { get; set; }
|
||||
|
||||
public string AccountNumber { get; set; } = string.Empty;
|
||||
|
||||
public string PasswordAccount { get; set; } = string.Empty;
|
||||
|
||||
public double Balance { get; set; }
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Principal;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@ -9,6 +10,8 @@ namespace BankYouBankruptDataModels.Models
|
||||
//банковский счёт
|
||||
public interface IAccountModel : IId
|
||||
{
|
||||
string AccountNumber { get; }
|
||||
|
||||
int CashierId { get; }
|
||||
|
||||
int ClientId { get; }
|
||||
|
Loading…
Reference in New Issue
Block a user