Адаптив забабахан :)

This commit is contained in:
Programmist73 2023-05-17 20:56:10 +04:00
parent eca89f4549
commit f2eb8081d5
2 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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>