добавлено название вакансии в статистику
This commit is contained in:
parent
cd61162e19
commit
ce45f973f5
@ -49,7 +49,7 @@ namespace CandidateReviewBusinessLogic.BusinessLogic
|
|||||||
|
|
||||||
public List<ResumeViewModel> GetResumesStatistics(ReportBindingModel model)
|
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.DateFrom.HasValue || resume.CreatedAt >= model.DateFrom.Value) &&
|
||||||
(!model.DateTo.HasValue || resume.CreatedAt <= model.DateTo.Value)).ToList();
|
(!model.DateTo.HasValue || resume.CreatedAt <= model.DateTo.Value)).ToList();
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ namespace CandidateReviewBusinessLogic.BusinessLogic
|
|||||||
_saveToPdf.CreateDocStatistics(new PdfInfo
|
_saveToPdf.CreateDocStatistics(new PdfInfo
|
||||||
{
|
{
|
||||||
FileName = model.FileName,
|
FileName = model.FileName,
|
||||||
Title = "Статистика по откликам на вакансию",
|
Title = _vacancyStorage.GetElement(new VacancySearchModel { Id = model.VacancyId }).JobTitle,
|
||||||
Resumes = GetResumesStatistics(model),
|
Resumes = GetResumesStatistics(model),
|
||||||
DateFrom = model.DateFrom,
|
DateFrom = model.DateFrom,
|
||||||
DateTo = model.DateTo
|
DateTo = model.DateTo
|
||||||
|
@ -11,7 +11,7 @@ namespace CandidateReviewBusinessLogic.OfficePackage
|
|||||||
|
|
||||||
CreateParagraph(new PdfParagraph
|
CreateParagraph(new PdfParagraph
|
||||||
{
|
{
|
||||||
Text = info.Title,
|
Text = $"Статистика по резюме на вакансию: {info.Title}",
|
||||||
Style = "NormalTitle",
|
Style = "NormalTitle",
|
||||||
ParagraphAlignment = PdfParagraphAlignmentType.Center
|
ParagraphAlignment = PdfParagraphAlignmentType.Center
|
||||||
});
|
});
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user