добавлено название вакансии в статистику

This commit is contained in:
Татьяна Артамонова 2024-12-15 16:22:42 +04:00
parent cd61162e19
commit ce45f973f5
3 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ namespace CandidateReviewBusinessLogic.BusinessLogic
public List<ResumeViewModel> GetResumesStatistics(ReportBindingModel model)
{
var list = _resumeStorage.GetFullList().Where(resume =>
var list = _resumeStorage.GetFilteredList(new ResumeSearchModel { VacancyId = model.VacancyId }).Where(resume =>
(!model.DateFrom.HasValue || resume.CreatedAt >= model.DateFrom.Value) &&
(!model.DateTo.HasValue || resume.CreatedAt <= model.DateTo.Value)).ToList();
@ -70,7 +70,7 @@ namespace CandidateReviewBusinessLogic.BusinessLogic
_saveToPdf.CreateDocStatistics(new PdfInfo
{
FileName = model.FileName,
Title = "Статистика по откликам на вакансию",
Title = _vacancyStorage.GetElement(new VacancySearchModel { Id = model.VacancyId }).JobTitle,
Resumes = GetResumesStatistics(model),
DateFrom = model.DateFrom,
DateTo = model.DateTo

View File

@ -11,7 +11,7 @@ namespace CandidateReviewBusinessLogic.OfficePackage
CreateParagraph(new PdfParagraph
{
Text = info.Title,
Text = $"Статистика по резюме на вакансию: {info.Title}",
Style = "NormalTitle",
ParagraphAlignment = PdfParagraphAlignmentType.Center
});