using System; using System.ComponentModel.DataAnnotations; namespace TProduct.Model { /// /// 设备型号扩展泵信息 /// public class ProductMainExPump : ProductMain, System.ICloneable { public ProductMainExPump() { } public ProductMainExPump(ProductMain main, ProductPump pump) { if (pump == null) return; this.ID = main.ID; this.CreateUserID = main.CreateUserID; this.CreateTime = main.CreateTime; this.UpdateUserID = main.UpdateUserID; this.UpdateTime = main.UpdateTime; this.Code = main.Code; this.Name = main.Name; this.SeriesID = main.SeriesID; this.RatedParas = main.RatedParas; this.MotorMainID = pump.MotorMainID; this.Ratedn = pump.Ratedn; this.D2 = pump.D2; this.PosiAngle = pump.PosiAngle; this.SortCode = main.SortCode; this.Tag = main.Tag; if(pump != null) { this.CurveFitTypeQH = pump.CurveFitTypeQH; this.CurveFitTypeQE = pump.CurveFitTypeQE; this.CurveFitTypeQP = pump.CurveFitTypeQP; } } public ProductMainExPump(ProductMainExPump rhs) : base(rhs) { this.MotorMainID = rhs.MotorMainID; this.Ratedn = rhs.Ratedn; this.D2 = rhs.D2; this.PosiAngle = rhs.PosiAngle; this.CurveFitTypeQH = rhs.CurveFitTypeQH; this.CurveFitTypeQE = rhs.CurveFitTypeQE; this.CurveFitTypeQP = rhs.CurveFitTypeQP; } public ProductMainExPump(ProductMainExPumpPart rhs) { this.CurveFitTypeQH = rhs.CurveFitTypeQH; this.CurveFitTypeQE = rhs.CurveFitTypeQE; this.CurveFitTypeQP = rhs.CurveFitTypeQP; this.ID = rhs.ID; this.CreateUserID = rhs.CreateUserID; this.CreateTime = rhs.CreateTime; this.UpdateUserID = rhs.UpdateUserID; this.UpdateTime = rhs.UpdateTime; this.Code = rhs.Code; this.Name = rhs.Name; this.SeriesID = rhs.SeriesID; this.RatedParas = rhs.RatedParas; this.MotorMainID = rhs.MotorMainID; this.Ratedn = rhs.Ratedn; this.D2 = rhs.D2; this.PosiAngle = rhs.PosiAngle; this.Tag = rhs.Tag; this.CurveFitTypeQH = rhs.CurveFitTypeQH; this.CurveFitTypeQE = rhs.CurveFitTypeQE; this.CurveFitTypeQP = rhs.CurveFitTypeQP; } public virtual void Reset(ProductMainExPump rhs) { this.ID = rhs.ID; this.CreateUserID = rhs.CreateUserID; this.CreateTime = rhs.CreateTime; this.UpdateUserID = rhs.UpdateUserID; this.UpdateTime = rhs.UpdateTime; this.Code = rhs.Code; this.Name = rhs.Name; this.SeriesID = rhs.SeriesID; this.RatedParas = rhs.RatedParas; this.MotorMainID = rhs.MotorMainID; this.Ratedn = rhs.Ratedn; this.D2 = rhs.D2; this.PosiAngle = rhs.PosiAngle; this.CurveFitTypeQH = rhs.CurveFitTypeQH; this.CurveFitTypeQE = rhs.CurveFitTypeQE; this.CurveFitTypeQP = rhs.CurveFitTypeQP; } /// /// 电机型号ID /// [Display(Name = "电机型号ID")] public long? MotorMainID { get; set; } /// /// 额定转速 /// [Display(Name = "额定转速")] public double? Ratedn { get; set; } /// /// 叶轮外径 /// [Display(Name = "叶轮外径")] public double? D2 { get; set; } /// /// 安放角(轴流泵) /// [Display(Name = "安放角(轴流泵)")] public double? PosiAngle { get; set; } /// /// /// [Display(Name = "扬程线拟合方式")] public Eventech.Model.eCurveFitType CurveFitTypeQH { get { return _curveFitTypeQH; } set { _curveFitTypeQH = value; } } private Eventech.Model.eCurveFitType _curveFitTypeQH = Eventech.Model.eCurveFitType.CubicCurve; /// /// /// [Display(Name = "效率线拟合方式")] public Eventech.Model.eCurveFitType CurveFitTypeQE { get { return _curveFitTypeQE; } set { _curveFitTypeQE = value; } } private Eventech.Model.eCurveFitType _curveFitTypeQE = Eventech.Model.eCurveFitType.CubicCurve; /// /// /// [Display(Name = "功率线拟合方式")] public Eventech.Model.eCurveFitType CurveFitTypeQP { get { return _curveFitTypeQP; } set { _curveFitTypeQP = value; } } private Eventech.Model.eCurveFitType _curveFitTypeQP = Eventech.Model.eCurveFitType.CubicCurve; public new ProductMainExPump Clone() { return (ProductMainExPump)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }