using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation.Model { /// /// 能效业务树分析上下文项 /// public class EtaLogicTreeAnalyContextItem { /// ///业务树标识 /// public long TreeID { get; set; } /// /// 父级标识 /// public long ParentID { get; set; } /// /// 父级标识列表 /// public List ParentIds { get; set; } /// /// 业务类型(业务区域或泵站等) /// public string LogicType { get; set; } /// /// 业务标识 /// public long LogicID { get; set; } /// /// 业务标识 /// public long ObjectID { get; set; } /// /// 业务名称 /// public string LogicName { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 业务上下文项 /// public EtaAnalyContextLogicBaseItem LogicContextItem { get; set; } /// /// 子项 /// public List Children { get; set; } /// /// 是否是泵站 /// /// public bool IsStation() { if (this.LogicType == IStation.ObjectType.Station) { return true; } else { return false; } } /// /// 是否是业务区域 /// /// public bool IsLogicArea() { if (this.LogicType == IStation.ObjectType.LogicArea) { return true; } else { return false; } } } }