Add remaining fields for query
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
@RendDistinctValues("Latitude [°]", Model.Select(m => m.Site.Latitude?.ToString()))
|
||||
@RendDistinctValues("Longitude [°]", Model.Select(m => m.Site.Longitude?.ToString()))
|
||||
@RendDistinctValues("Elevation [m]", Model.Select(m => m.Site.Elevation?.ToString()))
|
||||
@RendDistinctValues("CO2S",
|
||||
@*@RendDistinctValues("CO2S",
|
||||
Model.Select(m =>
|
||||
m.SiteName + " (" + m.Id + "): " +
|
||||
string.Join(", ",
|
||||
@@ -33,21 +33,33 @@
|
||||
m.SiteName + " (" + m.Id + "): " +
|
||||
(m.Data?.Max(d => d.CO2S)
|
||||
- m.Data?.Min(d => d.CO2S))), "<br />")
|
||||
@RendValue("CO2S Max Range", Model.Max(m =>
|
||||
m.Data?.Max(d => d.CO2S)
|
||||
- m.Data?.Min(d => d.CO2S))?.ToString())
|
||||
@RendValue("CO2S Min Range", Model.Min(m =>
|
||||
m.Data?.Max(d => d.CO2S)
|
||||
- m.Data?.Min(d => d.CO2S))?.ToString())*@
|
||||
|
||||
@RendValue("CO2 response curves (CO2S) Max range", Model.Max(m =>
|
||||
m.Data?.Max(d => d.CO2S)
|
||||
- m.Data?.Min(d => d.CO2S))?.ToString())
|
||||
|
||||
@RendValue("Light response curves (PARi) Max range", Model.Max(m =>
|
||||
m.Data?.Max(d => d.PARi)
|
||||
- m.Data?.Min(d => d.PARi))?.ToString())
|
||||
|
||||
@RendValue("Temperature response curves (Tleaf) Max Range", Model.Max(m =>
|
||||
m.Data?.Max(d => d.Tleaf)
|
||||
- m.Data?.Min(d => d.Tleaf))?.ToString())
|
||||
|
||||
@RendValue("Fluorometry measurements (PhiPS2) Max Range", Model.Max(m =>
|
||||
m.Data?.Max(d => d.PhiPS2)
|
||||
- m.Data?.Min(d => d.PhiPS2))?.ToString())
|
||||
|
||||
@helper RendValue(string label, string value)
|
||||
{
|
||||
<div class="row pb-lg-2 pb-sm-1 @if (ViewData.Model == null){<text>d-none</text> }">
|
||||
<div class="col-sm-3 text-truncate border-right border-bottom pl-4 pl-sm-5">
|
||||
<div class="row pb-lg-2 pb-sm-1 @if (ViewData.Model == null || string.IsNullOrEmpty(value)){<text>d-none</text> }">
|
||||
<div class="col-sm-5 text-truncate border-right border-bottom pl-4 pl-sm-5">
|
||||
@Html.Raw(label)
|
||||
</div>
|
||||
<div class="col-sm-9 border-bottom pl-5 pl-sm-2">
|
||||
<div class="col-sm-7 border-bottom pl-5 pl-sm-2">
|
||||
@Html.Raw(@value)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user