V1.0.2.0
* Added RS232/RS485 Packet Analyzer (Tools -> Packet Analyzer) * Updated BMS History register request/response length by model * Fixed decimal truncation issue in Brazil locale for DB/CSV Log and Excel Export
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Data.OleDb;
|
||||
@@ -70,7 +71,7 @@ namespace LFP_Manager.Function
|
||||
List<String> rowValues = new List<string>();
|
||||
foreach (DataColumn column in dataTable.Columns)
|
||||
{
|
||||
rowValues.Add((row[column] != null && row[column] != DBNull.Value) ? row[column].ToString() : String.Empty);
|
||||
rowValues.Add((row[column] != null && row[column] != DBNull.Value) ? Convert.ToString(row[column], CultureInfo.InvariantCulture) : String.Empty);
|
||||
}
|
||||
//command.CommandText = $"INSERT INTO [{tableName}]({String.Join(",", columnNames.Select(c => $"[{c}]"))}) VALUES ({String.Join(",", rowValues.Select(r => $"'{r}'").ToArray())});";
|
||||
string a = String.Join(",", columnNames.Select(c => String.Format("[{0}]", c)));
|
||||
@@ -156,7 +157,7 @@ namespace LFP_Manager.Function
|
||||
List<String> rowValues = new List<string>();
|
||||
foreach (DataColumn column in dataTable.Columns)
|
||||
{
|
||||
rowValues.Add((row[column] != null && row[column] != DBNull.Value) ? row[column].ToString().Trim('\0') : String.Empty);
|
||||
rowValues.Add((row[column] != null && row[column] != DBNull.Value) ? Convert.ToString(row[column], CultureInfo.InvariantCulture).Trim('\0') : String.Empty);
|
||||
}
|
||||
//command.CommandText = $"INSERT INTO [{tableName}]({String.Join(",", columnNames.Select(c => $"[{c}]"))}) VALUES ({String.Join(",", rowValues.Select(r => $"'{r}'").ToArray())});";
|
||||
string a = String.Join(",", columnNames.Select(c => String.Format("[{0}]", c)));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -186,7 +186,8 @@ namespace LFP_Manager.Function
|
||||
case 32: // Temperature #2
|
||||
case 33: // Temperature #3
|
||||
case 34: // Temperature #4
|
||||
csUtils.MakeMaxAvgMinCellVoltage(ref aSystemData, 4);
|
||||
aSystemData.ValueData.CellTemperature[index - 31] = (short)(Convert.ToDouble(sdata) * 10);
|
||||
csUtils.MakeMaxAvgMinTemperature(ref aSystemData, 4);
|
||||
break;
|
||||
|
||||
case 37: aSystemData.cellQty = (short)(Convert.ToDouble(sdata) * 1); break; // Cell Number
|
||||
|
||||
Reference in New Issue
Block a user