2023-05-18 21:57:00 +04:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using UniversityContracts.BindingModels;
|
|
|
|
|
using UniversityContracts.BusinessLogicContracts;
|
|
|
|
|
using UniversityContracts.ViewModels;
|
|
|
|
|
|
|
|
|
|
namespace UniversityRestAPI.Controllers
|
|
|
|
|
{
|
|
|
|
|
[Route("api/[controller]/[action]")]
|
|
|
|
|
[ApiController]
|
|
|
|
|
public class ReportProviderController : Controller
|
|
|
|
|
{
|
|
|
|
|
private readonly IReportProviderLogic reportLogic;
|
|
|
|
|
|
|
|
|
|
public ReportProviderController(IReportProviderLogic reportLogic)
|
|
|
|
|
{
|
|
|
|
|
this.reportLogic = reportLogic;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpPost]
|
|
|
|
|
public byte[] StudentDisciplineList(StudentDisciplineListBindingModel listModel)
|
|
|
|
|
{
|
|
|
|
|
byte[] file = reportLogic.SaveListFile(listModel);
|
|
|
|
|
return file;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpPost]
|
|
|
|
|
public List<ReportStreamStudentEdStatPeriodViewModel> GetReportData(ReportBindingModel reportModel)
|
|
|
|
|
{
|
|
|
|
|
var list = reportLogic.GetStreamStudentEdStatPeriod(reportModel);
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpPost]
|
2023-05-19 02:00:18 +04:00
|
|
|
|
public void SendByMailStatusReport(ReportBindingModel reportModel)
|
2023-05-18 21:57:00 +04:00
|
|
|
|
{
|
2023-05-19 02:00:18 +04:00
|
|
|
|
reportLogic.SendByMailStatusReport(reportModel);
|
2023-05-18 21:57:00 +04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|