using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace IStation.Calculation.Eta.Model
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public class PumpAnaResult
|
{
|
/// <summary>
|
///
|
/// </summary>
|
/// <param name="context"></param>
|
public PumpAnaResult(IStation.Model.EtaEnginePumpAnalyContextItem context)
|
{
|
this._context = context;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
protected IStation.Model.EtaEnginePumpAnalyContextItem _context = null;
|
/// <summary>
|
/// /
|
/// </summary>
|
public IStation.Model.EtaEnginePumpAnalyContextItem Context
|
{
|
get
|
{
|
return _context;
|
}
|
set
|
{
|
_context = value;
|
}
|
}
|
/// <summary>
|
///
|
/// </summary>
|
protected IStation.Model.EtaSingleRealRecordPure _result_pump = null;
|
/// <summary>
|
/// /
|
/// </summary>
|
public IStation.Model.EtaSingleRealRecordPure AnaResult
|
{
|
get
|
{
|
return _result_pump;
|
}
|
set
|
{
|
_result_pump = value;
|
}
|
}
|
|
|
|
private int _serialNO = 0;
|
/// <summary>
|
///
|
/// </summary>
|
public int SerialNO
|
{
|
get
|
{
|
return _serialNO;
|
}
|
set
|
{
|
_serialNO = value;
|
}
|
}
|
|
|
private long _machine_id = 0;
|
/// <summary>
|
///
|
/// </summary>
|
public long MachineID
|
{
|
get
|
{
|
return _machine_id;
|
}
|
set
|
{
|
_machine_id = value;
|
}
|
}
|
|
private long _pipe_line_id = 0;
|
/// <summary>
|
///
|
/// </summary>
|
public long PipeLineID
|
{
|
get
|
{
|
return _pipe_line_id;
|
}
|
set
|
{
|
_pipe_line_id = value;
|
}
|
}
|
|
|
/// <summary>
|
/// 是否开机
|
/// </summary>
|
public bool IsRunIng
|
{
|
get
|
{
|
if (_result_pump == null)
|
return false;
|
return _result_pump.RSa == IStation.RunStatus.Run ? true : false;
|
}
|
}
|
|
/// <summary>
|
/// 是否变频
|
/// </summary>
|
public bool IsFrequency
|
{
|
get
|
{
|
if (_context == null)
|
return false;
|
if (_context.RatedParas == null)
|
return false;
|
return _context.RatedParas.IsFrequency;
|
}
|
}
|
|
|
|
#region 测点
|
private long monitor_id_pump_flow = 0;// 流量计
|
//
|
/// <summary>
|
///
|
/// </summary>
|
public long MonitorID_PumpFlow
|
{
|
get { return monitor_id_pump_flow; }
|
set { monitor_id_pump_flow = value; }
|
}
|
private long monitor_id_run_status = 0; //运行状态
|
/// <summary>
|
/// //
|
/// </summary>
|
public long MonitorID_RunStatus
|
{
|
get { return monitor_id_run_status; }
|
set { monitor_id_run_status = value; }
|
}
|
|
|
/// <summary>
|
///
|
/// </summary>
|
public bool Is液位代替进口压力
|
{
|
get { return is液位代替进口压力; }
|
set { is液位代替进口压力 = value; }
|
}
|
private bool is液位代替进口压力 = false;
|
|
|
|
/// <summary>
|
///
|
/// </summary>
|
public bool Is液位代替出口压力
|
{
|
get { return is液位代替出口压力; }
|
set { is液位代替出口压力 = value; }
|
}
|
private bool is液位代替出口压力 = false;
|
|
|
private long monitor_id_inlet_press = 0;//进口压力
|
/// <summary>
|
///
|
/// </summary>
|
public long MonitorID_InletPress
|
{
|
get { return monitor_id_inlet_press; }
|
set { monitor_id_inlet_press = value; }
|
}
|
private long monitor_id_outlet_press = 0;//出口压力
|
/// <summary>
|
///
|
/// </summary>
|
public long MonitorID_OutletPress
|
{
|
get { return monitor_id_outlet_press; }
|
set { monitor_id_outlet_press = value; }
|
}
|
|
private long monitor_id_motor_power = 0;//瞬间功率
|
/// <summary>
|
///
|
/// </summary>
|
public long MonitorID_MotorPower
|
{
|
get { return monitor_id_motor_power; }
|
set { monitor_id_motor_power = value; }
|
}
|
|
private long monitor_id_motor_frequence = 0;//频率
|
/// <summary>
|
///
|
/// </summary>
|
public long MonitorID_Frequence
|
{
|
get { return monitor_id_motor_frequence; }
|
set { monitor_id_motor_frequence = value; }
|
}
|
|
private long monitor_id_motor_zhuansu = 0;//转速
|
/// <summary>
|
///
|
/// </summary>
|
public long MonitorID_ZhuanSu
|
{
|
get { return monitor_id_motor_zhuansu; }
|
set { monitor_id_motor_zhuansu = value; }
|
}
|
|
private long monitor_id_motor_ele_current = 0;//电流
|
/// <summary>
|
///
|
/// </summary>
|
public long MonitorID_ele_current
|
{
|
get { return monitor_id_motor_ele_current; }
|
set { monitor_id_motor_ele_current = value; }
|
}
|
|
|
|
#endregion
|
|
#region 分析结果
|
bool _ana_flow_ok = false;
|
/// <summary>
|
///
|
/// </summary>
|
public bool Ana_flow_ok
|
{
|
get { return _ana_flow_ok; }
|
set { _ana_flow_ok = value; }
|
}
|
|
bool _ana_head_ok = false;
|
/// <summary>
|
///
|
/// </summary>
|
public bool Ana_head_ok
|
{
|
get { return _ana_head_ok; }
|
set { _ana_head_ok = value; }
|
}
|
|
bool _ana_power_ok = true;
|
/// <summary>
|
///
|
/// </summary>
|
public bool Ana_power_ok
|
{
|
get { return _ana_power_ok; }
|
set { _ana_power_ok = value; }
|
}
|
|
bool _ana_eta_ok = false;
|
/// <summary>
|
///
|
/// </summary>
|
public bool Ana_eta_ok
|
{
|
get { return _ana_eta_ok; }
|
set { _ana_eta_ok = value; }
|
}
|
#endregion
|
|
}
|
}
|