using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hydro.MapView
{
public class WaterEquivalent
{
public WaterEquivalent() { }
public WaterEquivalent(WaterEquivalent rhs)
{
this.ID = rhs.ID;
this.BelongID = rhs.BelongID;
this.BelongType = rhs.BelongType;
this.WaterUtensilID = rhs.WaterUtensilID;
this.Count = rhs.Count;
this.MinRatedFlow = rhs.MinRatedFlow;
this.RatedFlow = rhs.RatedFlow;
this.Flags = rhs.Flags;
this.TagName = rhs.TagName;
this.UseStatus = rhs.UseStatus;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
}
public long ID { get; set; }
///
/// 所属对象标识
///
public long BelongID { get; set; }
///
/// 所属对象类型
///
public string BelongType { get; set; }
///
/// 用水器具标识
///
public long WaterUtensilID { get; set; }
///
/// 数量
///
public int Count { get; set; }
///
/// 额定流量
///
public double RatedFlow { get; set; }
///
/// 最小额定流量
///
public double MinRatedFlow { get; set; }
///
/// 标签列表
///
public string Flags { get; set; }
///
/// 标签名称
///
public string TagName { get; set; }
///
/// 使用状态
///
public int UseStatus { get; set; }
///
/// 排序码
///
public int SortCode { get; set; }
///
/// 说明
///
public string Description { get; set; }
}
public class WaterEquivalentCollection : List
{
public WaterEquivalentCollection() { }
public WaterEquivalentCollection(WaterEquivalentCollection rhs)
{
foreach (var item in rhs)
{
this.Add(new WaterEquivalent(item));
}
}
}
public class WaterEquivalentTemplate
{
public WaterEquivalentTemplate() { }
public WaterEquivalentTemplate(WaterEquivalentTemplate rhs)
{
this.ID = rhs.ID;
this.Name = rhs.Name;
this.Description = rhs.Description;
this.WaterEquivalentCollection = new WaterEquivalentCollection(rhs.WaterEquivalentCollection);
}
public string ID { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public WaterEquivalentCollection WaterEquivalentCollection { get; set; }
}
public class WaterEquivalentSettings
{
///
/// 当量模板
///
public WaterEquivalentTemplate waterEquivalents = new WaterEquivalentTemplate();
///
/// 用户水表的集合
///
public List Meters = new List();
}
}