Compare commits

..

No commits in common. "b66f3733a6625453998fbd4d6ea04288ea184b40" and "a2ba2798ed6368eb20912bb18074071ebd46cf4c" have entirely different histories.

6 changed files with 2 additions and 19 deletions

View File

@ -149,7 +149,7 @@ namespace BankYouBankruptBusinessLogic.BusinessLogics
Dictionary<(int, int), int> cashWithdrawals = _cashWithdrawalLogic.ReadList(new CashWithdrawalSearchModel()
{
AccountId = AccountId,
}).Where(x => x.DebitingStatus == StatusEnum.Закрыта ).GroupBy(x => new { x.DateOperation.Month, x.DateOperation.Year })
}).GroupBy(x => new { x.DateOperation.Month, x.DateOperation.Year })
.Select(x => new { x.Key.Month, x.Key.Year, Sum = x.Select(y => y.Sum).Sum() }).ToDictionary(x => (x.Month, x.Year), x => (x.Sum));
Dictionary<(int, int), int> moneyTransfers = _moneyTransferLogic.ReadList(new MoneyTransferSearchModel()

View File

@ -26,9 +26,6 @@
<th>
Номер счёта
</th>
<th>
Баланс
</th>
<th>
CVC
</th>
@ -44,9 +41,6 @@
<td>
@Html.DisplayFor(modelItem => item.Number)
</td>
<td>
@Html.DisplayFor(modelItem => item.Sum)
</td>
<td>
@Html.DisplayFor(modelItem => item.CVC)
</td>

View File

@ -1,5 +1,4 @@
using BankYouBankruptDataModels.Enums;
using BankYouBankruptDataModels.Models;
using BankYouBankruptDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@ -15,8 +14,6 @@ namespace BankYouBankruptContracts.ViewModels
public int DebitingId { get; set; }
public StatusEnum DebitingStatus { get; set; }
[DisplayName("Номер заявки на снятие средств")]
public int DebbitingNumber { get; set; }

View File

@ -22,9 +22,6 @@ namespace BankYouBankruptContracts.ViewModels.Client.Default
[DisplayName("Номер карты")]
public string Number { get; set; } = string.Empty;
[DisplayName("Баланс карты")]
public double Sum { get; set; }
public string CVC { get; set; } = string.Empty;
[DisplayName("Период действия")]

View File

@ -24,8 +24,6 @@ namespace BankYouBankruptDatabaseImplement.Models
[Required]
public int AccountId { get; set; }
public virtual Account Account { get; set; }
[Required]
public string Number { get; set; } = string.Empty;
@ -48,7 +46,6 @@ namespace BankYouBankruptDatabaseImplement.Models
ClientID = ClientID,
ClientSurname = Client.Surname,
Number = Number,
Sum = Account.Balance,
Period = Period,
CVC = CVC
};
@ -59,7 +56,6 @@ namespace BankYouBankruptDatabaseImplement.Models
{
Id = model.Id,
AccountId = model.AccountId,
Account = context.Accounts.First(x => x.Id == model.AccountId),
ClientID = model.ClientID,
Client = context.Clients.First(x => x.Id == model.ClientID),
Number = model.Number,

View File

@ -69,7 +69,6 @@ namespace BankYouBankruptDatabaseImplement.Models
AccountNumber = Account.AccountNumber,
SurmaneCashier = Cashier.Surname,
DebbitingNumber = Debiting.Id,
DebitingStatus = Debiting.Status,
Sum = Sum,
DateOperation = DateOperation
};