lixiaojun
2024-11-06 a5f3c47ee959183e3059fc6672b4b07f99eb9c1a
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
using Yw.Service.PhartRelation;
 
namespace IStation.Server
{
    /// <summary>
    /// 能效图表上下文项
    /// </summary>
    public class EpEtaDiagramAnalyContextItem
    {
        /// <summary>
        /// 
        /// </summary>
        public EpEtaDiagramAnalyContextItem() { }
 
        /// <summary>
        /// 
        /// </summary>
        public EpEtaDiagramAnalyContextItem(Yw.Model.PhartDiagram diagram, List<Yw.Model.PhartGraph> graphList)
        {
            this.ID = diagram.ID;
            this.Name = diagram.Name;
            this.NO = diagram.NO;
            this.Description = diagram.Description;
 
            if (graphList != null && graphList.Count > 0)
            {
                var graphQHList = graphList.Where(x => x.GraphType == (int)Yw.PhartRelation.eGraphType.QH).ToList();
                if (graphQHList.Count > 0)
                {
                    this.CurveQHList = graphQHList.Select(x => (Yw.Pump.CurveQHHelper.ToModel(x.GeometryInfo), x.GetGraphParas<Yw.Model.PhartRelation.QHGraphParasModel>())).ToList();
                }
                var graphQPList = graphList.Where(x => x.GraphType == (int)Yw.PhartRelation.eGraphType.QP).ToList();
                if (graphQPList != null && graphQPList.Count > 0)
                {
                    this.CurveQPList = graphQPList.Select(x => (Yw.Pump.CurveQPHelper.ToModel(x.GeometryInfo), x.GetGraphParas<Yw.Model.PhartRelation.QPGraphParasModel>())).ToList();
                }
 
                var graphQEList = graphList.Where(x => x.GraphType == (int)Yw.PhartRelation.eGraphType.QE).ToList();
                if (graphQEList != null && graphQEList.Count > 0)
                {
                    this.CurveQEList = graphQEList.Select(x => (Yw.Pump.CurveQEHelper.ToModel(x.GeometryInfo), x.GetGraphParas<Yw.Model.PhartRelation.QEGraphParasModel>())).ToList();
                }
            }
        }
 
        /// <summary>
        /// id
        /// </summary>
        public long ID { get; set; }
 
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
 
        /// <summary>
        /// 编号
        /// </summary>
        public string NO { get; set; }
 
        /// <summary>
        /// 说明
        /// </summary>
        public string Description { get; set; }
 
        /// <summary>
        /// 流量扬程曲线表达式
        /// </summary>
        public List<(Yw.Pump.CurveQH CurveQH, Yw.Model.PhartRelation.QHGraphParasModel GraphParas)> CurveQHList { get; set; }
 
        /// <summary>
        /// 流量功率曲线表达式
        /// </summary>
        public List<(Yw.Pump.CurveQP CurveQP, Yw.Model.PhartRelation.QPGraphParasModel GraphParas)> CurveQPList { get; set; }
 
        /// <summary>
        /// 流量效率曲线表达式
        /// </summary>
        public List<(Yw.Pump.CurveQE CurveQE, Yw.Model.PhartRelation.QEGraphParasModel GraphParas)> CurveQEList { get; set; }
 
 
 
 
 
    }
}