ningshuxia
2025-04-03 4917fb959e2befec07a693e72d7010c09494ec7c
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
 
namespace IStation.OpenDto
{
    /// <summary>
    /// 测试台基本信息
    /// </summary>
    public partial class WorkBenchBase : System.ICloneable
    {
        public WorkBenchBase() { }
 
 
        /// <summary>
        /// 标识
        /// </summary>
        [Display(Name = "标识")]
        public long ID { get; set; }
 
        /// <summary>
        /// 创建人
        /// </summary>
        [Display(Name = "创建人")]
        public string CreateUserName { get; set; }
 
        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        public DateTime CreateTime { get; set; }
 
        /// <summary>
        /// 更新人
        /// </summary>
        [Display(Name = "更新人")]
        public string UpdateUserName { get; set; }
 
        /// <summary>
        /// 更新时间
        /// </summary>
        [Display(Name = "更新时间")]
        public DateTime UpdateTime { get; set; }
        /// <summary>
        /// SortCode
        /// </summary>
        [Display(Name = "排序号")]
        public int SortCode { get; set; } = 0;
        /// <summary>
        /// 编号
        /// </summary>
        [Display(Name = "编号")]
        public string Code { get; set; }
 
        /// <summary>
        /// 名称
        /// </summary>
        [Display(Name = "名称")]
        public string Name { get; set; }
 
        #region Setting
 
        /// <summary>
        /// 汽蚀判定值(百分比)
        /// </summary>
        public double? NpshCriterion { set; get; } = 3;
 
        /// <summary>
        /// 是否温度换算
        /// </summary>
        public bool IsTemperatureTrn { get; set; }
 
        /// <summary>
        /// 海拔(m)
        /// </summary>
        public double Elevation { set; get; } = 100;
 
        /// <summary>
        /// 大气压(KPa)
        /// </summary>
        public double AtmosphericPressure { set; get; } = 101.3;
 
        /// <summary>
        /// 是否支持自动测试
        /// </summary>
        public bool IsAutoTestAble { get; set; } = false;
 
        /// <summary>
        /// 是否支持操控阀门开度
        /// </summary>
        public bool IsOperateValveDegree { get; set; } = false;
 
        /// <summary>
        /// 是否支持初始化时设置电气参数
        /// </summary>
        public bool IsInitialElectricalAble { get; set; } = false;
 
        #endregion Model
 
        #region Model
 
        /// <summary>
        /// 功率测试法
        /// </summary>
        public string TestMethodPower { get; set; }
 
        /// <summary>
        /// 压力测试法
        /// </summary>
        public string TestMethodPress { get; set; }
 
        /// <summary>
        /// 扭矩测试法
        /// </summary>
        public string TestMethodTorque { get; set; }
 
        /// <summary>
        /// 汽蚀测试法
        /// </summary>
        public string TestMethodNpsh { get; set; }
 
        /// <summary>
        /// 进口压力用清水池代替
        /// </summary>
        public int InletIsUseWaterLevel { get; set; } = 0;
        #endregion Model
 
        ///// <summary>
        ///// LinkInfo
        ///// </summary>
        //[Display(Name = "LinkInfo")]
        //public IStation.OpenDto.LinkInfo4Bench LinkInfo { get; set; }
 
        ///// <summary>
        ///// 发送查询,等待时间 
        ///// </summary>
        protected int _receiveWaitTime = 180;//
        public int ReceiveWaitTime { get { return _receiveWaitTime; } set { _receiveWaitTime = value; } }
 
        /// <summary>
        /// 定时器轮询时间
        /// </summary>
        protected int _pollTime = 300;//
        public int PollTime { get { return _pollTime; } set { _pollTime = value; } }
 
        /// <summary>
        /// 最后一次使用时间
        /// </summary>
        [Display(Name = "最后一次使用时间")]
        public DateTime? LastUseTime { get; set; }
 
        /// <summary>
        /// 最后一次使用人
        /// </summary>
        [Display(Name = "最后一次使用人")]
        public long? LastUseUserID { get; set; }
 
        /// <summary>
        /// 通讯类型
        /// </summary>
        [Display(Name = "通讯类型")]
        public string LinkType { get; set; }
 
        /// <summary>
        /// 使用状态
        /// </summary>
        [Display(Name = "使用状态")]
        public string UseStatus { get; set; }
 
 
        /// <summary>
        /// 管路标识 0表示没有设置 
        /// </summary>
        [Display(Name = "管路标识")]
        public int PipeIndex { get; set; }
 
        /// <summary>
        /// 管路参数 PipeParas4Pump 类
        /// </summary>
        [Display(Name = "管路参数对应(PipeParas4Pump)")]
        public string PipeParas { get; set; }
 
 
        ///// <summary>
        ///// 测试方法
        ///// </summary>
        //[Display(Name = "测试方法对应(WorkBenchParas4Method)")]
        //public string TestMethod { get; set; }
 
        ///// <summary>
        ///// 测试设定
        ///// </summary>
        //[Display(Name = "管路参数对应(WorkBenchParas4Setting)")]
        //public string TestSetting { get; set; }
 
        /// <summary>
        ///  标签
        /// </summary>
        [Display(Name = "标签")]
        public string Tag
        {
            get { return _tag; }
            set { _tag = value; }
        }
        private string _tag;
 
        /// <summary>
        ///  标签
        /// </summary>
        [Display(Name = "通讯标签")]
        public string LinkTag
        {
            get { return _linkTag; }
            set { _linkTag = value; }
        }
        private string _linkTag;
 
        /// <summary>
        /// 测点
        /// </summary>
        public List<MonitorPointBase> Points { get; set; }
 
 
 
 
        public WorkBenchBase Clone()
        {
            return (WorkBenchBase)MemberwiseClone();
        }
 
        object ICloneable.Clone()
        {
            return MemberwiseClone();
        }
    }
}