Documents: Add .bold for tables
This commit is contained in:
@ -74,7 +74,7 @@ namespace Elwig.Documents {
|
||||
);
|
||||
var totalDict = buckets.GroupBy(b => b.Key[2..]).ToDictionary(g => g.Key, g => g.Sum(a => a.Value.DeliveryStrict));
|
||||
var totals = attributes.Select(a => totalDict.TryGetValue(a, out int value) ? value : 0);
|
||||
tbl += "<tr class=\"sum\"><td></td>" + string.Join("", totals.Select(v => $"<td class=\"number\">{v:N0}</td>")) +
|
||||
tbl += "<tr class=\"sum bold\"><td></td>" + string.Join("", totals.Select(v => $"<td class=\"number\">{v:N0}</td>")) +
|
||||
$"<td class=\"number\">{totalDict.Values.Sum():N0}</td></tr>";
|
||||
|
||||
return "<table class=\"sortenaufteilung small number cohere\">" + tbl + "</table>";
|
||||
|
@ -83,7 +83,7 @@
|
||||
lastVariant = p.Variant;
|
||||
}
|
||||
}
|
||||
<tr class="sum">
|
||||
<tr class="sum bold">
|
||||
<td colspan="8">Gesamt:</td>
|
||||
<td colspan="2" class="number">@($"{Model.Data.Rows.Sum(p => p.Weight):N0}")</td>
|
||||
<td></td>
|
||||
|
@ -51,7 +51,7 @@
|
||||
<td class="number">@($"{p.Weight:N0}")</td>
|
||||
</tr>
|
||||
}
|
||||
<tr class="sum">
|
||||
<tr class="sum bold">
|
||||
@{
|
||||
var kmw = Elwig.Helpers.Utils.AggregateDeliveryPartsKmw(Model.Deliveries);
|
||||
var oe = Elwig.Helpers.Utils.KmwToOe(kmw);
|
||||
|
@ -63,7 +63,7 @@
|
||||
}
|
||||
}
|
||||
@if (Model.Delivery.Parts.Count() > 1) {
|
||||
<tr class="main sum">
|
||||
<tr class="main sum bold">
|
||||
<td colspan="6">Gesamt:</td>
|
||||
<td class="center">@($"{Model.Delivery.Oe:N0}")</td>
|
||||
<td class="center">@($"{Model.Delivery.Kmw:N1}")</td>
|
||||
|
@ -117,7 +117,7 @@ main table.number thead tr:first-child th:first-child {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
main table tr.sum td {
|
||||
main table tr.bold td {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@ -145,3 +145,7 @@ main table th.narrow {
|
||||
|
||||
main table .lborder {border-left: 0.5pt solid black;}
|
||||
main table .rborder {border-right: 0.5pt solid black;}
|
||||
|
||||
main table .fleft {
|
||||
float: left;
|
||||
}
|
||||
|
@ -202,7 +202,7 @@
|
||||
lastContract = contractType.AreaComType.DisplayName;
|
||||
}
|
||||
}
|
||||
<tr class="sum">
|
||||
<tr class="sum bold">
|
||||
<td colspan="3">Gesamt:</td>
|
||||
<td class="number">@($"{Model.Member.ActiveAreaCommitments.Select(a => a.Area).Sum():N0}")</td>
|
||||
<td colspan="2"></td>
|
||||
|
Reference in New Issue
Block a user