Compare commits
No commits in common. "b66f3733a6625453998fbd4d6ea04288ea184b40" and "a2ba2798ed6368eb20912bb18074071ebd46cf4c" have entirely different histories.
b66f3733a6
...
a2ba2798ed
@ -149,7 +149,7 @@ namespace BankYouBankruptBusinessLogic.BusinessLogics
|
|||||||
Dictionary<(int, int), int> cashWithdrawals = _cashWithdrawalLogic.ReadList(new CashWithdrawalSearchModel()
|
Dictionary<(int, int), int> cashWithdrawals = _cashWithdrawalLogic.ReadList(new CashWithdrawalSearchModel()
|
||||||
{
|
{
|
||||||
AccountId = AccountId,
|
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));
|
.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()
|
Dictionary<(int, int), int> moneyTransfers = _moneyTransferLogic.ReadList(new MoneyTransferSearchModel()
|
||||||
|
@ -26,9 +26,6 @@
|
|||||||
<th>
|
<th>
|
||||||
Номер счёта
|
Номер счёта
|
||||||
</th>
|
</th>
|
||||||
<th>
|
|
||||||
Баланс
|
|
||||||
</th>
|
|
||||||
<th>
|
<th>
|
||||||
CVC
|
CVC
|
||||||
</th>
|
</th>
|
||||||
@ -44,9 +41,6 @@
|
|||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(modelItem => item.Number)
|
@Html.DisplayFor(modelItem => item.Number)
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
@Html.DisplayFor(modelItem => item.Sum)
|
|
||||||
</td>
|
|
||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(modelItem => item.CVC)
|
@Html.DisplayFor(modelItem => item.CVC)
|
||||||
</td>
|
</td>
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using BankYouBankruptDataModels.Enums;
|
using BankYouBankruptDataModels.Models;
|
||||||
using BankYouBankruptDataModels.Models;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
@ -15,8 +14,6 @@ namespace BankYouBankruptContracts.ViewModels
|
|||||||
|
|
||||||
public int DebitingId { get; set; }
|
public int DebitingId { get; set; }
|
||||||
|
|
||||||
public StatusEnum DebitingStatus { get; set; }
|
|
||||||
|
|
||||||
[DisplayName("Номер заявки на снятие средств")]
|
[DisplayName("Номер заявки на снятие средств")]
|
||||||
public int DebbitingNumber { get; set; }
|
public int DebbitingNumber { get; set; }
|
||||||
|
|
||||||
|
@ -22,9 +22,6 @@ namespace BankYouBankruptContracts.ViewModels.Client.Default
|
|||||||
[DisplayName("Номер карты")]
|
[DisplayName("Номер карты")]
|
||||||
public string Number { get; set; } = string.Empty;
|
public string Number { get; set; } = string.Empty;
|
||||||
|
|
||||||
[DisplayName("Баланс карты")]
|
|
||||||
public double Sum { get; set; }
|
|
||||||
|
|
||||||
public string CVC { get; set; } = string.Empty;
|
public string CVC { get; set; } = string.Empty;
|
||||||
|
|
||||||
[DisplayName("Период действия")]
|
[DisplayName("Период действия")]
|
||||||
|
@ -24,8 +24,6 @@ namespace BankYouBankruptDatabaseImplement.Models
|
|||||||
[Required]
|
[Required]
|
||||||
public int AccountId { get; set; }
|
public int AccountId { get; set; }
|
||||||
|
|
||||||
public virtual Account Account { get; set; }
|
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public string Number { get; set; } = string.Empty;
|
public string Number { get; set; } = string.Empty;
|
||||||
|
|
||||||
@ -48,7 +46,6 @@ namespace BankYouBankruptDatabaseImplement.Models
|
|||||||
ClientID = ClientID,
|
ClientID = ClientID,
|
||||||
ClientSurname = Client.Surname,
|
ClientSurname = Client.Surname,
|
||||||
Number = Number,
|
Number = Number,
|
||||||
Sum = Account.Balance,
|
|
||||||
Period = Period,
|
Period = Period,
|
||||||
CVC = CVC
|
CVC = CVC
|
||||||
};
|
};
|
||||||
@ -59,7 +56,6 @@ namespace BankYouBankruptDatabaseImplement.Models
|
|||||||
{
|
{
|
||||||
Id = model.Id,
|
Id = model.Id,
|
||||||
AccountId = model.AccountId,
|
AccountId = model.AccountId,
|
||||||
Account = context.Accounts.First(x => x.Id == model.AccountId),
|
|
||||||
ClientID = model.ClientID,
|
ClientID = model.ClientID,
|
||||||
Client = context.Clients.First(x => x.Id == model.ClientID),
|
Client = context.Clients.First(x => x.Id == model.ClientID),
|
||||||
Number = model.Number,
|
Number = model.Number,
|
||||||
|
@ -69,7 +69,6 @@ namespace BankYouBankruptDatabaseImplement.Models
|
|||||||
AccountNumber = Account.AccountNumber,
|
AccountNumber = Account.AccountNumber,
|
||||||
SurmaneCashier = Cashier.Surname,
|
SurmaneCashier = Cashier.Surname,
|
||||||
DebbitingNumber = Debiting.Id,
|
DebbitingNumber = Debiting.Id,
|
||||||
DebitingStatus = Debiting.Status,
|
|
||||||
Sum = Sum,
|
Sum = Sum,
|
||||||
DateOperation = DateOperation
|
DateOperation = DateOperation
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user