Адаптив забабахан :)
This commit is contained in:
parent
eca89f4549
commit
f2eb8081d5
@ -310,12 +310,14 @@ namespace BankYouBankruptCashierApp.Controllers
|
||||
{
|
||||
ViewBag.Debitings = APICashier.GetRequest<List<DebitingViewModel>>("/api/Account/FindOpenDebiting");
|
||||
|
||||
ViewBag.Accounts = APICashier.GetRequest<List<AccountViewModel>>("/api/Account/GetAllAccounts");
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
//одобрения заявки на снятие Post-запросом
|
||||
[HttpPost]
|
||||
public void CloseDebiting(int debitingId)
|
||||
public void CloseDebiting(int debitingId, int accountId)
|
||||
{
|
||||
if (APICashier.Cashier == null)
|
||||
{
|
||||
@ -337,7 +339,7 @@ namespace BankYouBankruptCashierApp.Controllers
|
||||
CashierId = APICashier.Cashier.Id,
|
||||
DebitingId = debitingId,
|
||||
Sum = APICashier.Debiting.Sum,
|
||||
AccountId = APICashier.Card.AccountId
|
||||
AccountId = accountId
|
||||
});
|
||||
|
||||
APICashier.Debiting = null;
|
||||
|
@ -23,7 +23,7 @@
|
||||
<div class="row">
|
||||
<div class="col-4">Номер счёта для снятия:</div>
|
||||
<div class="col-8">
|
||||
<select id="accountId" name="accountId" class="form-control" asp-items="@(new SelectList( @ViewBag.Debitings, "Id", "Id"))">
|
||||
<select id="accountId" name="accountId" class="form-control" asp-items="@(new SelectList( @ViewBag.Accounts, "Id", "AccountNumber"))">
|
||||
<option disabled selected>Выберите счёт</option>
|
||||
</select>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user