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; }
|
|
|
|
|
|
}
|
}
|