В процессе

This commit is contained in:
Artyom_Yashin 2024-05-26 17:24:34 +04:00
parent cb7913100c
commit 40cb6fef8b
2 changed files with 18 additions and 3 deletions

View File

@ -507,9 +507,21 @@ namespace BankClientApp.Controllers
{
return Redirect("~/Home/Enter");
}
ViewBag.Cards = new List<CardViewModel>();
ViewBag.Cards = APIClient.GetRequest<List<CardViewModel>>($"api/card/getcardlist?clientid={APIClient.Client.Id}");
return View();
}
[HttpPost]
public void TransferListReport(List<int> cards, bool word, bool excel)
{
if (APIClient.Client == null)
{
throw new Exception("Вы как суда попали? Суда вход только авторизованным");
}
APIClient.PostRequest<ReportBindingModel>($"api/report/savetransferword", new ReportBindingModel{
});
}
#endregion
#region//ошибки

View File

@ -18,10 +18,13 @@
}
</select>
</div>
<asp:RadioButton id="word" name="word" runat="server" GroupName="format">Получать в формате Word</asp:RadioButton>
<asp:RadioButton id="excel" name="excel" runat="server" GroupName="format">Получать в формате Word</asp:RadioButton>
<input id="word" type="radio" name=" word" value="Получать в формате Word" GroupName="format"/>
<input id="word" type="radio" name=" word" value="Получать в формате Word" GroupName="format" />
</div>
<div class="row">
<div class="col-9"></div>
<div class="col-1"><input type="submit" value="Word" class="btn btn-primary" /></div>
<div class="col-1"><input type="submit" value="Excel" class="btn btn-primary" /></div>
<div class="col-1"><input type="submit" value="Получить список" class="btn btn-primary" /></div>
</div>
</form>