using System;
|
using System.Collections.Generic;
|
using TProduct.Model;
|
|
namespace TProduct.WinFrmUI.TPump
|
{
|
public class CalcNpshTestBaseDlg : TProduct.WinFrmUI.TBase.CalcBaseDlg
|
{
|
public Action<TProduct.Model.PumpNpshTestRecordViewModel, int> OnSaveRecord = null;
|
|
public virtual void NewTestRecord(
|
List<TProduct.Model.MonitorPointValuePure> valueList, bool isAutoCalc)
|
{
|
}
|
public virtual void EditTestRecord(TProduct.Model.PumpNpshTestRecordViewModel record)
|
{
|
}
|
|
protected List<TProduct.Model.WorkBenchMonitorPoint> _allMonitorList = null;
|
public virtual void InitialMonitorInfo(List<TProduct.Model.WorkBenchMonitorPoint> allMonitorList)
|
{
|
this._allMonitorList = allMonitorList;
|
}
|
|
protected TProduct.Model.WorkBenchBase _currentBench = null;
|
protected TProduct.Model.TestProjectParas _testParas = null;
|
protected bool _isTemperatureTrn = false; //是否温度换算
|
protected double _atmospherePressure = 101.3;//大气压(Kp)
|
protected double _elevation = 100;//海拔高度
|
protected TProduct.Model.ePowerTestMethod _powerTestMethod = Model.ePowerTestMethod.功率;
|
protected double _jzTemplate = 25;
|
|
internal void SetTestInfo(
|
TProduct.Model.WorkBenchBase bench,
|
TProduct.Model.TestProjectItemView testItem)
|
{
|
if (bench == null || testItem == null)
|
return;
|
this._testItemID = testItem.ItemID;
|
this._testItem = testItem;
|
|
this._testParas = testItem.ProjectParas;
|
|
this._isTemperatureTrn = _testParas.IsTemperatureTrn;
|
this._jzTemplate = _testParas.JzWenDu;
|
|
var method = new Model.WorkBenchMethod4Pump(bench.TestMethod);
|
if (method.Power != null)
|
{
|
_powerTestMethod = method.Power.Value;
|
}
|
|
var bench_setting = new WorkBenchSetting4Pump(bench.TestSetting);
|
this._elevation = bench_setting.Elevation;
|
this._atmospherePressure = bench_setting.AtmosphericPressure;
|
|
}
|
|
protected double _ratedN = 2900;
|
protected TProduct.Model.RatedParas4Pump _ratedParas = null;
|
internal void SetRatedParas(double ratedN, TProduct.Model.RatedParas4Pump ratedParas)
|
{
|
_ratedN = ratedN;
|
_ratedParas = ratedParas;
|
}
|
|
/// <summary>
|
/// 设置电机参数
|
/// </summary>
|
/// <param name="ratedEta"></param>
|
/// <param name="eatCurve"></param>
|
public virtual void SetMotorInfo(double ratedEta, Eventech.Model.CurveExpress eatCurve)
|
{
|
|
}
|
|
|
|
}
|
}
|