Готово
This commit is contained in:
parent
2e0ba1ba5e
commit
a1a7cad61f
@ -79,13 +79,13 @@ namespace ProjectTourAgency.Reports
|
||||
.Union(data.Select(x => new string[] {
|
||||
x.ClientName.ToString(),
|
||||
x.Date.ToString(),
|
||||
x.CountIn?.ToString() ?? string.Empty,
|
||||
x.CountOut?.ToString() ?? string.Empty }))
|
||||
x.CountIn?.ToString() ?? "NO",
|
||||
x.CountOut?.ToString() ?? "NO"}))
|
||||
.Union(new[] { new string[] {
|
||||
"Всего",
|
||||
"",
|
||||
data.Sum(x => x.CountIn ?? 0).ToString("NO"),
|
||||
data.Sum(x => x.CountOut ?? 0).ToString("NO")
|
||||
data.Sum(x => x.CountIn ?? 0) == 0 ? "NO" : data.Sum(x => x.CountIn ?? 0).ToString(),
|
||||
data.Sum(x => x.CountOut ?? 0) == 0 ? "NO" : data.Sum(x => x.CountOut ?? 0).ToString()
|
||||
}})
|
||||
.ToList();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user