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; }
|
|
/// <summary>
|
/// 所属对象标识
|
/// </summary>
|
public long BelongID { get; set; }
|
|
/// <summary>
|
/// 所属对象类型
|
/// </summary>
|
public string BelongType { get; set; }
|
|
/// <summary>
|
/// 用水器具标识
|
/// </summary>
|
public long WaterUtensilID { get; set; }
|
|
/// <summary>
|
/// 数量
|
/// </summary>
|
public int Count { get; set; }
|
|
/// <summary>
|
/// 额定流量
|
/// </summary>
|
public double RatedFlow { get; set; }
|
|
/// <summary>
|
/// 最小额定流量
|
/// </summary>
|
public double MinRatedFlow { get; set; }
|
|
/// <summary>
|
/// 标签列表
|
/// </summary>
|
public string Flags { get; set; }
|
|
/// <summary>
|
/// 标签名称
|
/// </summary>
|
public string TagName { get; set; }
|
|
/// <summary>
|
/// 使用状态
|
/// </summary>
|
public int UseStatus { get; set; }
|
|
/// <summary>
|
/// 排序码
|
/// </summary>
|
public int SortCode { get; set; }
|
|
/// <summary>
|
/// 说明
|
/// </summary>
|
public string Description { get; set; }
|
|
|
|
|
}
|
|
|
public class WaterEquivalentCollection : List<WaterEquivalent>
|
{
|
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
|
{
|
/// <summary>
|
/// 当量模板
|
/// </summary>
|
public WaterEquivalentTemplate waterEquivalents = new WaterEquivalentTemplate();
|
/// <summary>
|
/// 用户水表的集合
|
/// </summary>
|
public List<string> Meters = new List<string>();
|
}
|
|
|
|
|
}
|