Compare commits

..

No commits in common. "fb000dd75c322de0292ca94857caecd4fa126f47" and "c77ed0a6e546514bcd28c8fa7e290758267748ee" have entirely different histories.

3 changed files with 6 additions and 64 deletions

View File

@ -512,28 +512,15 @@ namespace BankClientApp.Controllers
}
[HttpPost]
public void TransferListReport(List<int> cards, string format)
public void TransferListReport(List<int> cards, bool word, bool excel)
{
if (APIClient.Client == null)
{
throw new Exception("Вы как суда попали? Суда вход только авторизованным");
}
switch (format)
{
case "word":
APIClient.PostRequest<ReportBindingModel>($"api/report/savetransferstoword", new ReportBindingModel
{
SelectedCardIds = cards,
});
break;
case "excel":
APIClient.PostRequest<ReportBindingModel>($"api/report/savetransferstoword", new ReportBindingModel
{
SelectedCardIds = cards,
});
break;
default: break;
}
APIClient.PostRequest<ReportBindingModel>($"api/report/savetransferword", new ReportBindingModel{
});
}
#endregion

View File

@ -18,13 +18,9 @@
}
</select>
</div>
</div>
<div>
<input id="word" type="radio" name="format" value="word" />
<input id="word" type="radio" name="word" GroupName="format"/>
<label for="word">Получать в формате Word</label>
</div>
<div>
<input id="excel" type="radio" name="format" value="excel" />
<input id="excel" type="radio" name="excel" GroupName="format"/>
<label for="excel">Получать в формате Excel</label>
</div>
<div class="row">

View File

@ -1,41 +0,0 @@
using BankContracts.BindingModels;
using BankContracts.BusinessLogicsContracts;
using Microsoft.AspNetCore.Mvc;
namespace BankRestApi.Controllers
{
[Route("api/[controller]/[action]")]
[ApiController]
public class ReportController
{
private readonly ILogger _logger;
private readonly IReportLogic _logic;
public ReportController(ILogger<RequestController> logger, IReportLogic logic)
{
_logger = logger;
_logic = logic;
}
[HttpPost]
public void SaveRequestsToWord(ReportBindingModel? model)
{
}
[HttpPost]
public void SaveRequestsToExcel(ReportBindingModel? model)
{
}
[HttpPost]
public void SaveTransfersToWord(ReportBindingModel? model)
{
}
[HttpPost]
public void SaveTransfersToExcel(ReportBindingModel? model)
{
}
}
}