fixed last missing bugs
This commit is contained in:
@@ -275,19 +275,19 @@
|
||||
<!-- Time Period Toggle -->
|
||||
<div class="time-toggle-container">
|
||||
<button class="@GetTimeButtonClass("all")" @onclick="SetTimePeriodAll" @onclick:stopPropagation>
|
||||
All periodes
|
||||
Volledige periode
|
||||
</button>
|
||||
<button class="@GetTimeButtonClass("year")" @onclick="SetTimePeriodYear" @onclick:stopPropagation>
|
||||
Per jaar
|
||||
Laatste jaar
|
||||
</button>
|
||||
<button class="@GetTimeButtonClass("month")" @onclick="SetTimePeriodMonth" @onclick:stopPropagation>
|
||||
Per maand
|
||||
Laatste maand
|
||||
</button>
|
||||
<button class="@GetTimeButtonClass("week")" @onclick="SetTimePeriodWeek" @onclick:stopPropagation>
|
||||
Per week
|
||||
Laatste week
|
||||
</button>
|
||||
<button class="@GetTimeButtonClass("day")" @onclick="SetTimePeriodDay" @onclick:stopPropagation>
|
||||
Per dag
|
||||
Laatste dag
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -461,6 +461,7 @@
|
||||
try
|
||||
{
|
||||
normalCost = calculator.CalculateCostOfEnergyUsage(FluviusDataRaw);
|
||||
simulatedCost = calculator.CalculateCostOfEnergyUsage(SimulationData);
|
||||
StepData[2].isProcessing = false;
|
||||
StepData[2].Completed = true;
|
||||
StateHasChanged();
|
||||
@@ -484,7 +485,7 @@
|
||||
};
|
||||
// Filter data based on selected period
|
||||
if(FluviusDataRaw.Length > 0) FilteredFluviusData = DataFilter.FilterData(FluviusDataRaw, filterOption);
|
||||
if(FilteredSimulationData.Length > 0) FilteredSimulationData = DataFilter.FilterData(SimulationData, filterOption);
|
||||
if(SimulationData.Length > 0) FilteredSimulationData = DataFilter.FilterData(SimulationData, filterOption);
|
||||
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
@@ -67,6 +67,8 @@ namespace BattSim.Services
|
||||
return baseCost + energyCost - returnCost + greenCertificateCost + heatingCertificateCost + dataManagmentCost +
|
||||
capacityCost + usageTariffCost + energyContributionCost + specialTariffsCost + flemishEnergyTarif;
|
||||
}
|
||||
|
||||
|
||||
private double CalculateYearCapacity(EnergyData[] energyData)
|
||||
{
|
||||
double peakSum = 0;
|
||||
|
||||
Reference in New Issue
Block a user