using Yw.Entity;
namespace PBS.Entity
{
///
/// 设施
///
[SysType("pbs-facility")]
[SugarTable("pbs_facility")]
public class Facility : BaseEntity , IParas, IFlags, ITagName, IUseStatus, ISorter, System.ICloneable
{
///
///
///
public Facility() { }
///
///
///
public Facility(Facility rhs) : base(rhs)
{
this.PlaceID = rhs.PlaceID;
this.PackageID = rhs.PackageID;
this.Name = rhs.Name;
this.WaterSupply = rhs.WaterSupply;
this.SupplyMode = rhs.SupplyMode;
this.Floor = rhs.Floor;
this.FloorHeight = rhs.FloorHeight;
this.Households = rhs.Households;
this.MaxWaterDemand = rhs.MaxWaterDemand;
this.ServicePipeLength = rhs.ServicePipeLength;
this.ConstantPressure = rhs.ConstantPressure;
this.TerminalPressure = rhs.TerminalPressure;
this.Paras = rhs.Paras;
this.Flags = rhs.Flags;
this.TagName = rhs.TagName;
this.UseStatus = rhs.UseStatus;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
}
///
/// 场所标识
///
public long PlaceID { get; set; }
///
/// 成套设备标识
///
public long PackageID { get; set; }
///
/// 名称
///
[SugarColumn(Length = 50, IsNullable = true)]
public string Name { get; set; }
///
/// 供水单元
///
public int WaterSupply { get; set; }
///
/// 供水模式
///
public int SupplyMode { get; set; }
///
/// 楼层
///
public int Floor { get; set; }
///
/// 层高
///
public double FloorHeight { get; set; }
///
/// 户数
///
public int Households { get; set; }
///
/// 最大需水量
///
public double MaxWaterDemand { get; set; }
///
/// 入户管长
///
public double ServicePipeLength { get; set; }
///
/// 恒定压力
///
public double ConstantPressure { get; set; }
///
/// 末端压力
///
public double TerminalPressure { get; set; }
///
/// 参数
///
[SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string Paras { get; set; }
///
/// 标签
///
[SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string Flags { get; set; }
///
/// 标志
///
[SugarColumn(Length = 500, IsNullable = true)]
public string TagName { get; set; }
///
/// 使用状态
///
public int UseStatus { get; set; }
///
/// 排序码
///
public int SortCode { get; set; }
///
/// 说明
///
[SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string Description { get; set; }
///
///
///
public Facility Clone()
{
return (Facility)this.MemberwiseClone();
}
object ICloneable.Clone()
{
return this.MemberwiseClone();
}
}
}