Simple merge.
This commit is contained in:
parent
076b27ba7d
commit
48f0dcb771
@ -10,8 +10,8 @@ using System.Xml.Linq;
|
||||
|
||||
namespace BankYouBankruptClientApp.Controllers
|
||||
{
|
||||
public class HomeController : Controller
|
||||
{
|
||||
public class HomeController : Controller
|
||||
{
|
||||
private readonly ILogger<HomeController> _logger;
|
||||
|
||||
public HomeController(ILogger<HomeController> logger)
|
||||
@ -213,7 +213,7 @@ namespace BankYouBankruptClientApp.Controllers
|
||||
ViewBag.Cards = APIClient.GetRequest<List<CardViewModel>>($"api/Card/GetAllCards").Select(x => new ClientSelectViewModel
|
||||
{
|
||||
Id = x.Id,
|
||||
FullName = x.ClientSurname + " " +x.Number.ToString()
|
||||
FullName = x.ClientSurname + " " + x.Number.ToString()
|
||||
}).ToList();
|
||||
return View();
|
||||
}
|
||||
@ -239,11 +239,22 @@ namespace BankYouBankruptClientApp.Controllers
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Получение отчёта
|
||||
|
||||
[HttpGet]
|
||||
public IActionResult CreateReport()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public void CreateReport(DateTime DateFrom, DateTime DateTo)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
[HttpGet]
|
||||
public IActionResult ReportWithCards()
|
||||
@ -260,7 +271,7 @@ namespace BankYouBankruptClientApp.Controllers
|
||||
LabelName = x.Number,
|
||||
IsChecked = false
|
||||
}).ToList()
|
||||
}) ;
|
||||
});
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
@ -274,11 +285,11 @@ namespace BankYouBankruptClientApp.Controllers
|
||||
List<int> cardList = cards.Where(x => x.IsChecked).Select(x => x.Id).ToList();
|
||||
List<ReportViewModel> creditings = APIClient.GetRequest<List<CreditingViewModel>>($"api/Client/getUsersCreditings?userId={APIClient.Client.Id}")
|
||||
.Where(x => cardList.Contains(x.CardId)).Select(x => new ReportViewModel() {
|
||||
Id=x.Id,
|
||||
CardId=x.CardId,
|
||||
DateOpen=x.DateOpen,
|
||||
DateClose=x.DateClose,
|
||||
CardNumber=x.CardNumber,
|
||||
Id = x.Id,
|
||||
CardId = x.CardId,
|
||||
DateOpen = x.DateOpen,
|
||||
DateClose = x.DateClose,
|
||||
CardNumber = x.CardNumber,
|
||||
Status = x.Status,
|
||||
Sum = x.Sum,
|
||||
TypeOperation = TypeOperationEnum.Пополнение
|
||||
@ -302,23 +313,7 @@ namespace BankYouBankruptClientApp.Controllers
|
||||
Cards = cards,
|
||||
Operations = result,
|
||||
|
||||
}) ;
|
||||
}
|
||||
|
||||
#region Получение отчёта
|
||||
|
||||
[HttpGet]
|
||||
public IActionResult CreateReport()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public void CreateReport(DateTime DateFrom, DateTime DateTo)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user