Фикс функции фильтрации диагнозов, фикс фиьлтрации по датам
This commit is contained in:
parent
775a442ee8
commit
ac12c85d7d
@ -50,7 +50,11 @@ namespace PolyclinicDatabaseImplement.Implements
|
||||
}
|
||||
if (model.To != null)
|
||||
{
|
||||
elements = elements.Where(x => x.DateStopDiagnose <= model.To.Value).ToList();
|
||||
elements = elements
|
||||
.Where(x => x.DateStartDiagnose <= model.To.Value)
|
||||
.Where(x => x.DateStopDiagnose != null)
|
||||
.Where(x => x.DateStopDiagnose <= model.To.Value)
|
||||
.ToList();
|
||||
}
|
||||
return elements;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user