增加累计流量字段数据库的保存
This commit is contained in:
parent
0a1dca0114
commit
11a754be0d
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -69,7 +69,7 @@ namespace ShuiBiao
|
|||
}));
|
||||
|
||||
|
||||
//开启输入任务
|
||||
////开启输入任务
|
||||
//Task.Run(new Action(() =>
|
||||
//{
|
||||
// BaudRate();
|
||||
|
@ -1376,7 +1376,7 @@ namespace ShuiBiao
|
|||
Console.WriteLine("瞬时流量" + _instantaneousFlow.ToString() + "m³/h");
|
||||
wd.instantaneous_delivery = (decimal)_instantaneousFlow;
|
||||
Console.WriteLine("累积流量:" + positiveFlow + "m³");
|
||||
|
||||
wd.integrated_flux = positiveFlow;
|
||||
Console.WriteLine("水温:" + _waterTemperature + "℃");
|
||||
wd.water_temperature = (decimal)_waterTemperature;
|
||||
Console.WriteLine("累积运行时间:" + RunTime + "h");
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -33,6 +33,7 @@ namespace DataService.Model
|
|||
private string _version_number;
|
||||
private decimal? _instantaneous_delivery;
|
||||
private string _transient_flow_symbol;
|
||||
private decimal? _integrated_flux;
|
||||
private decimal? _cumulative_running_time;
|
||||
private decimal? _positive_cumulative_traffic;
|
||||
private decimal? _positive_cumulative_run_time;
|
||||
|
@ -108,6 +109,14 @@ namespace DataService.Model
|
|||
get{return _transient_flow_symbol;}
|
||||
}
|
||||
/// <summary>
|
||||
/// 累积流量
|
||||
/// </summary>
|
||||
public decimal? integrated_flux
|
||||
{
|
||||
set { _integrated_flux = value; }
|
||||
get { return _integrated_flux; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 累积运行时间
|
||||
/// </summary>
|
||||
public decimal? cumulative_running_time
|
||||
|
@ -204,7 +213,7 @@ namespace DataService.Model
|
|||
get{return _acquisition_time;}
|
||||
}
|
||||
/// <summary>
|
||||
/// 诊断代码
|
||||
/// 采集时间
|
||||
/// </summary>
|
||||
public string diagnostic_code
|
||||
{
|
||||
|
@ -251,20 +260,22 @@ namespace DataService.Model
|
|||
set{ _r3=value;}
|
||||
get{return _r3;}
|
||||
}
|
||||
/// <summary>
|
||||
/// 通过验证
|
||||
/// </summary>
|
||||
public bool IsValid
|
||||
{
|
||||
get;set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 采集时间(字符串)
|
||||
/// </summary>
|
||||
public string acquisition_timeA
|
||||
{
|
||||
get;set;
|
||||
}
|
||||
#endregion Model
|
||||
|
||||
|
||||
private bool _isValid;
|
||||
/// <summary>
|
||||
/// 数据是否有效
|
||||
/// </summary>
|
||||
public bool IsValid { get { return _isValid; } set { _isValid = value; } }
|
||||
|
||||
private string _acquisition_timeA;
|
||||
/// <summary>
|
||||
/// 采集时间
|
||||
/// </summary>
|
||||
public string acquisition_timeA { get { return _acquisition_timeA; } set { _acquisition_timeA = value; } }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue