|
@@ -314,10 +314,11 @@ namespace EVCB_OCPP.WSServer.Message
|
|
|
|
|
|
if (registerCount > 0)
|
|
|
{
|
|
|
- string voltage_text = item.sampledValue.Where(x => x.measurand == Measurand.Voltage).Select(x => x.value).FirstOrDefault();
|
|
|
- decimal voltage = decimal.Parse(voltage_text);
|
|
|
+ string voltage_text = item.sampledValue.Where(x => x.measurand == Measurand.Voltage).Select(x => x.value).FirstOrDefault();
|
|
|
+ decimal voltage = decimal.Parse(voltage_text);
|
|
|
string current_text = item.sampledValue.Where(x => x.measurand == Measurand.Current_Import).Select(x => x.value).FirstOrDefault();
|
|
|
decimal current = decimal.Parse(current_text);
|
|
|
+
|
|
|
decimal meterStart = 0;
|
|
|
string energyRegister_text = item.sampledValue.Where(x => x.measurand == Measurand.Energy_Active_Import_Register).Select(x => x.value).FirstOrDefault();
|
|
|
decimal energyRegister = decimal.Parse(energyRegister_text);
|
|
@@ -349,6 +350,7 @@ namespace EVCB_OCPP.WSServer.Message
|
|
|
}
|
|
|
foreach (var sampleVaule in item.sampledValue)
|
|
|
{
|
|
|
+
|
|
|
decimal value = Convert.ToDecimal(sampleVaule.value);
|
|
|
|
|
|
if (sampleVaule.context == ReadingContext.Sample_Periodic && sampleVaule.measurand == Measurand.Energy_Active_Import_Interval)
|
|
@@ -833,6 +835,7 @@ namespace EVCB_OCPP.WSServer.Message
|
|
|
if (_confirm.status == DataTransferStatus.Accepted)
|
|
|
{
|
|
|
decimal couponPoint = 0m;
|
|
|
+ string farewellMessage = string.Empty;
|
|
|
string receipt = string.Empty;
|
|
|
List<ChargingBill> bill = new List<ChargingBill>();
|
|
|
List<ChargingPrice> chargingPrices = new List<ChargingPrice>();
|
|
@@ -1049,9 +1052,7 @@ namespace EVCB_OCPP.WSServer.Message
|
|
|
|
|
|
if (jo.ContainsKey("FarewellMessage"))
|
|
|
{
|
|
|
- string _Message = jo["FarewellMessage"].Value<string>();
|
|
|
-
|
|
|
-
|
|
|
+ farewellMessage = jo["FarewellMessage"].Value<string>();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1086,7 +1087,8 @@ namespace EVCB_OCPP.WSServer.Message
|
|
|
parkingFee = parkingCost,
|
|
|
currency = currency,
|
|
|
couponPoint = couponPoint,
|
|
|
- accountBalance = accountBalance - tx.Cost
|
|
|
+ accountBalance = accountBalance - tx.Cost,
|
|
|
+ farewellMessage= farewellMessage
|
|
|
})
|
|
|
})
|
|
|
|