tx
2025-04-22 e0b138b3e057de6f57021e6c8963868f5c5acc5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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)
        {
 
        }
 
 
 
    }
}