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