Show charts above the bill list on the Strom page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
034bc4e0f0
commit
52870bb089
2 changed files with 28 additions and 27 deletions
|
|
@ -9,32 +9,6 @@
|
||||||
<FluentButton IconStart="@(new Icons.Regular.Size16.Add())" Appearance="Appearance.Neutral" OnClick="AddAsync">Neue Abrechnung hinzufügen</FluentButton>
|
<FluentButton IconStart="@(new Icons.Regular.Size16.Add())" Appearance="Appearance.Neutral" OnClick="AddAsync">Neue Abrechnung hinzufügen</FluentButton>
|
||||||
</FluentStack>
|
</FluentStack>
|
||||||
|
|
||||||
<div class="table-scroll">
|
|
||||||
<FluentDataGrid Items="@source.AsQueryable()" RowSize="DataGridRowSize.Medium">
|
|
||||||
<PropertyColumn Title="Von" Property="@(p => p.PeriodFrom)" Format="dd.MM.yyyy" Sortable="true" IsDefaultSortColumn="true" InitialSortDirection="SortDirection.Descending" />
|
|
||||||
<PropertyColumn Title="Bis" Property="@(p => p.PeriodTo)" Format="dd.MM.yyyy" Sortable="true" />
|
|
||||||
<PropertyColumn Title="Netz kWh" Property="@(p => p.GridKwh)" Format="#,0.0" Align="Align.End" />
|
|
||||||
<PropertyColumn Title="PV kWh" Property="@(p => p.PvKwh)" Format="#,0.0" Align="Align.End" />
|
|
||||||
<PropertyColumn Title="Total kWh" Property="@(p => p.TotalKwh)" Format="#,0.0" Align="Align.End" />
|
|
||||||
<PropertyColumn Title="PV-Anteil" Property="@(p => p.PvShare)" Format="P1" Align="Align.End" />
|
|
||||||
<PropertyColumn Title="Netz CHF" Property="@(p => p.GridChf)" Format="C2" Align="Align.End" />
|
|
||||||
<PropertyColumn Title="PV CHF" Property="@(p => p.PvChf)" Format="C2" Align="Align.End" />
|
|
||||||
<PropertyColumn Title="Nebenkosten" Property="@(p => p.SideCostsChf)" Format="C2" Align="Align.End" />
|
|
||||||
<PropertyColumn Title="Total CHF" Property="@(p => p.TotalChf)" Format="C2" Align="Align.End" />
|
|
||||||
<PropertyColumn Title="Akonto" Property="@(p => p.AdvanceChf)" Format="C2" Align="Align.End" />
|
|
||||||
<TemplateColumn Title="Saldo" Align="Align.End">
|
|
||||||
<span class="@(context.Balance >= 0 ? "due" : "credit")">@Chf(context.Balance)</span>
|
|
||||||
</TemplateColumn>
|
|
||||||
<PropertyColumn Title="CHF/kWh" Property="@(p => p.ChfPerKwh)" Format="0.000" Align="Align.End" />
|
|
||||||
<TemplateColumn Align="Align.Center" Width="50px">
|
|
||||||
<FluentButton IconEnd="@(new Icons.Regular.Size16.Delete())" Appearance="Appearance.Neutral" title="Löschen" aria-label="Löschen" OnClick="@(() => DeleteAsync(context.Id))" />
|
|
||||||
</TemplateColumn>
|
|
||||||
<TemplateColumn Align="Align.Center" Width="50px">
|
|
||||||
<FluentButton IconEnd="@(new Icons.Regular.Size16.Edit())" Appearance="Appearance.Neutral" title="Bearbeiten" aria-label="Bearbeiten" OnClick="@(() => EditAsync(context.Id))" />
|
|
||||||
</TemplateColumn>
|
|
||||||
</FluentDataGrid>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@if (source.Count == 0)
|
@if (source.Count == 0)
|
||||||
{
|
{
|
||||||
<FluentMessageBar Intent="MessageIntent.Info" AllowDismiss="false">Noch keine Abrechnungen erfasst.</FluentMessageBar>
|
<FluentMessageBar Intent="MessageIntent.Info" AllowDismiss="false">Noch keine Abrechnungen erfasst.</FluentMessageBar>
|
||||||
|
|
@ -60,4 +34,30 @@
|
||||||
AriaLabel="Gesamtkosten pro Abrechnungsperiode" />
|
AriaLabel="Gesamtkosten pro Abrechnungsperiode" />
|
||||||
</FluentCard>
|
</FluentCard>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<div class="table-scroll">
|
||||||
|
<FluentDataGrid Items="@source.AsQueryable()" RowSize="DataGridRowSize.Medium">
|
||||||
|
<PropertyColumn Title="Von" Property="@(p => p.PeriodFrom)" Format="dd.MM.yyyy" Sortable="true" IsDefaultSortColumn="true" InitialSortDirection="SortDirection.Descending" />
|
||||||
|
<PropertyColumn Title="Bis" Property="@(p => p.PeriodTo)" Format="dd.MM.yyyy" Sortable="true" />
|
||||||
|
<PropertyColumn Title="Netz kWh" Property="@(p => p.GridKwh)" Format="#,0.0" Align="Align.End" />
|
||||||
|
<PropertyColumn Title="PV kWh" Property="@(p => p.PvKwh)" Format="#,0.0" Align="Align.End" />
|
||||||
|
<PropertyColumn Title="Total kWh" Property="@(p => p.TotalKwh)" Format="#,0.0" Align="Align.End" />
|
||||||
|
<PropertyColumn Title="PV-Anteil" Property="@(p => p.PvShare)" Format="P1" Align="Align.End" />
|
||||||
|
<PropertyColumn Title="Netz CHF" Property="@(p => p.GridChf)" Format="C2" Align="Align.End" />
|
||||||
|
<PropertyColumn Title="PV CHF" Property="@(p => p.PvChf)" Format="C2" Align="Align.End" />
|
||||||
|
<PropertyColumn Title="Nebenkosten" Property="@(p => p.SideCostsChf)" Format="C2" Align="Align.End" />
|
||||||
|
<PropertyColumn Title="Total CHF" Property="@(p => p.TotalChf)" Format="C2" Align="Align.End" />
|
||||||
|
<PropertyColumn Title="Akonto" Property="@(p => p.AdvanceChf)" Format="C2" Align="Align.End" />
|
||||||
|
<TemplateColumn Title="Saldo" Align="Align.End">
|
||||||
|
<span class="@(context.Balance >= 0 ? "due" : "credit")">@Chf(context.Balance)</span>
|
||||||
|
</TemplateColumn>
|
||||||
|
<PropertyColumn Title="CHF/kWh" Property="@(p => p.ChfPerKwh)" Format="0.000" Align="Align.End" />
|
||||||
|
<TemplateColumn Align="Align.Center" Width="50px">
|
||||||
|
<FluentButton IconEnd="@(new Icons.Regular.Size16.Delete())" Appearance="Appearance.Neutral" title="Löschen" aria-label="Löschen" OnClick="@(() => DeleteAsync(context.Id))" />
|
||||||
|
</TemplateColumn>
|
||||||
|
<TemplateColumn Align="Align.Center" Width="50px">
|
||||||
|
<FluentButton IconEnd="@(new Icons.Regular.Size16.Edit())" Appearance="Appearance.Neutral" title="Bearbeiten" aria-label="Bearbeiten" OnClick="@(() => EditAsync(context.Id))" />
|
||||||
|
</TemplateColumn>
|
||||||
|
</FluentDataGrid>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Settings": {
|
"Settings": {
|
||||||
"DataPath": "/home/schaad/Documents/Developer/Data/Accounting/",
|
"DataPath_": "/home/schaad/Documents/Developer/Data/Accounting/",
|
||||||
|
"DataPath": "D:\\Developer\\AccountingData",
|
||||||
"FixerIoApiKey": "ee23142f1120bb1223b0e76f98abfa97",
|
"FixerIoApiKey": "ee23142f1120bb1223b0e76f98abfa97",
|
||||||
"DefaultMandator": "Claudio Schaad"
|
"DefaultMandator": "Claudio Schaad"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue