using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
namespace ISupply.Model
{
///
/// 成套设备模板
///
public class Kit : Model.BaseModel, System.ICloneable
{
public Kit()
{ }
public Kit(Kit rhs) : base(rhs)
{
this.Name = rhs.Name;
this.NO = rhs.NO;
this.Specification = rhs.Specification;
this.EquipmentCount = rhs.EquipmentCount;
//this.RunningMode = rhs.RunningMode;
//this.RunningCount = rhs.RunningCount;
//this.Qr = rhs.Qr;
//this.Hr = rhs.Hr;
//this.Pr = rhs.Pr;
//this.Vr = rhs.Vr;
//this.CoolingMethod = rhs.CoolingMethod;
//this.SafetyFeature = rhs.SafetyFeature;
this.Wattage = rhs.Wattage;
this.Flags = rhs.Flags;
this.TagName = rhs.TagName;
this.UseStatus = rhs.UseStatus;
this.FluidTempMax = rhs.FluidTempMax;
this.MaximumOperatingPressure = rhs.MaximumOperatingPressure;
this.MaximumOperatingTemperature = rhs.MaximumOperatingTemperature;
this.MotorIPRating = rhs.MotorIPRating;
this.NetWeight = rhs.NetWeight;
this.NumberofMotorPoles = rhs.NumberofMotorPoles;
this.OverallHeight = rhs.OverallHeight;
this.OverallLength = rhs.OverallLength;
this.PanelStandHeight = rhs.PanelStandHeight;
this.Phase = rhs.Phase;
this.Flow = rhs.Flow;
this.SpeedType = rhs.SpeedType;
this.OverallWidth = rhs.OverallWidth;
this.Suctiondiameter = rhs.Suctiondiameter;
this.SuctionConnectiondiameter = rhs.SuctionConnectiondiameter;
this.DischargeConnectiondiameter = rhs.DischargeConnectiondiameter;
this.ProductRange = rhs.ProductRange;
this.PumpModel = rhs.PumpModel;
this.Frequency = rhs.Frequency;
this.FluidTempMin = rhs.FluidTempMin;
this.ConnectionType = rhs.ConnectionType;
this.Dischargediameter = rhs.Dischargediameter;
this.Approvals = rhs.Approvals;
this.Head = rhs.Head;
this.Voltage = rhs.Voltage;
this.FullLoadAmperes = rhs.FullLoadAmperes;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
this.UseCount = rhs.UseCount;
this.SupplierID = rhs.SupplierID;
}
public void Reset(Kit rhs)
{
this.ID = rhs.ID;
this.OverallWidth = rhs.OverallWidth;
this.FullLoadAmperes = rhs.FullLoadAmperes;
this.Name = rhs.Name;
this.NO = rhs.NO;
this.Wattage = rhs.Wattage;
this.Specification = rhs.Specification;
this.EquipmentCount = rhs.EquipmentCount;
this.Flags = rhs.Flags;
this.TagName = rhs.TagName;
this.UseStatus = rhs.UseStatus;
this.MaximumOperatingPressure = rhs.MaximumOperatingPressure;
this.MaximumOperatingTemperature = rhs.MaximumOperatingTemperature;
this.MotorIPRating = rhs.MotorIPRating;
this.NetWeight = rhs.NetWeight;
this.FluidTempMax = rhs.FluidTempMax;
this.NumberofMotorPoles = rhs.NumberofMotorPoles;
this.OverallHeight = rhs.OverallHeight;
this.OverallLength = rhs.OverallLength;
this.PanelStandHeight = rhs.PanelStandHeight;
this.Phase = rhs.Phase;
this.SpeedType = rhs.SpeedType;
this.Flow = rhs.Flow;
this.Voltage = rhs.Voltage;
this.DischargeConnectiondiameter = rhs.DischargeConnectiondiameter;
this.Suctiondiameter = rhs.Suctiondiameter;
this.SuctionConnectiondiameter = rhs.SuctionConnectiondiameter;
this.ProductRange = rhs.ProductRange;
this.PumpModel = rhs.PumpModel;
this.FluidTempMin = rhs.FluidTempMin;
this.Frequency = rhs.Frequency;
this.ConnectionType = rhs.ConnectionType;
this.Dischargediameter = rhs.Dischargediameter;
this.Approvals = rhs.Approvals;
this.Head = rhs.Head;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
this.UseCount = rhs.UseCount;
this.SupplierID = rhs.SupplierID;
}
///
/// 名称
///
[Display(Name = "名称")]
public string Name { get; set; }
///
/// 编号
///
[Display(Name = "编号")]
public string NO { get; set; }
///
/// 规格
///
[Display(Name = "规格")]
public string Specification { get; set; }
///
/// 设备数量
///
[Display(Name = "设备数量")]
public int EquipmentCount { get; set; }
///
/// 使用数量
///
[Display(Name = "使用数量")]
public int UseCount { get; set; }
[Display(Name = "厂商")]
public long SupplierID { get; set; }
/////
///// 运行方式
/////
//[Display(Name = "运行方式")]
//public string RunningMode { get; set; }
/////
///// 运行数量
/////
//[Display(Name = "运行数量")]
//public int RunningCount { get; set; }
/////
///// 流量(m³/h)
/////
//[Display(Name = "流量(m³/h)")]
//public double Qr { get; set; }
/////
///// 扬程(m)
/////
//[Display(Name = "扬程(m)")]
//public double Hr { get; set; }
/////
///// 功率(kw)
/////
//[Display(Name = "功率(kw)")]
//public double Pr { get; set; }
/////
///// 电压(V)
/////
//[Display(Name = "电压(V)")]
//public double Vr { get; set; }
/////
///// 冷却方式
/////
//[Display(Name = "冷却方式")]
//public string CoolingMethod { get; set; }
/////
///// 保护功能
/////
//[Display(Name = "保护功能")]
//public string SafetyFeature { get; set; }
///
/// 标签列表
///
[Display(Name = "标签列表")]
public List Flags { get; set; }
///
/// 标签名称
///
[Display(Name = "标签名称")]
public string TagName { get; set; }
///
/// 使用状态
///
[Display(Name = "使用状态")]
public Model.eUseStatus UseStatus { get; set; }
///
/// 进口口径(DN)
///
public double Suctiondiameter { get; set; }
///
/// 出口口径(DN)
///
public double Dischargediameter { get; set; }
///
/// 连接方式
///
public string ConnectionType { get; set; }
///
/// 进口连接管尺寸(DN)
///
public double SuctionConnectiondiameter { get; set; }
///
/// 出口连接管尺寸(DN)
///
public double DischargeConnectiondiameter { get; set; }
///
/// 满载电流(A)
///
public double FullLoadAmperes { get; set; }
///
/// 瓦数
///
public double Wattage { get; set; }
///
/// 电压
///
public double Voltage { get; set; }
///
/// 频率 (Hz)
///
public double Frequency { get; set; }
///
/// 相数
///
public double Phase { get; set; }
///
/// 最大额定压力(PSI)
///
public double MaximumOperatingPressure { get; set; }
///
/// 最小介质温度(F)
///
public double FluidTempMin { get; set; }
///
/// 最大介质温度(F)
///
public double FluidTempMax { get; set; }
///
/// 最大环境温度(F)
///
public double MaximumOperatingTemperature { get; set; }
///
/// 净重(lbs)
///
public double NetWeight { get; set; }
///
/// 流量(GPM)
///
public double Flow { get; set; }
///
/// 扬程(ft)
///
public double Head { get; set; }
///
/// 总高(in)
///
public double OverallHeight { get; set; }
///
/// 总宽(in)
///
public double OverallWidth { get; set; }
///
///总长(in)
///
public double OverallLength { get; set; }
///
/// 认证
///
public string Approvals { get; set; }
///
/// 启动方式
///
public string ProductRange { get; set; }
///
/// 电机防护等级
///
public string MotorIPRating { get; set; }
///
/// 电机级数
///
public int NumberofMotorPoles { get; set; }
///
/// 泵类型
///
public string PumpType { get; set; }
///
/// 泵型号
///
public string PumpModel { get; set; }
///
/// 控制柜高度(in)
///
public double PanelStandHeight { get; set; }
///
/// 调速方式
///
public string SpeedType { get; set; }
///
/// 排序码
///
[Display(Name = "排序码")]
public int SortCode { get; set; }
///
/// 说明
///
[Display(Name = "说明")]
public string Description { get; set; }
///
///
///
public Kit Clone()
{
return (Kit)this.MemberwiseClone();
}
object ICloneable.Clone()
{
return this.MemberwiseClone();
}
}
}