namespace HStation.WinFrmUI { /// /// /// public class AssetsThreelinkFactorMgrViewModel { /// /// /// public AssetsThreelinkFactorMgrViewModel() { } /// /// /// public AssetsThreelinkFactorMgrViewModel(HStation.Vmo.AssetsThreelinkFactorVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.Caliber = rhs.Caliber; this.Material = rhs.Material; this.BranchThroughMinorLoss = rhs.BranchThroughMinorLoss; this.RunThroughMinorLoss = rhs.RunThroughMinorLoss; this.Description = rhs.Description; this.Vmo = rhs; } /// /// /// public void Reset(HStation.Vmo.AssetsThreelinkFactorVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.Caliber = rhs.Caliber; this.Material = rhs.Material; this.BranchThroughMinorLoss = rhs.BranchThroughMinorLoss; this.RunThroughMinorLoss = rhs.RunThroughMinorLoss; this.Description = rhs.Description; this.Vmo = rhs; } /// /// id /// [Display(Name = "ID")] public long ID { get; set; } /// /// 型号 /// [Display(Name = "型号")] public string Name { get; set; } /// /// 口径 /// [Display(Name = "口径")] public double? Caliber { get; set; } /// /// 材料 /// [Display(Name = "材料")] public string Material { get; set; } /// /// 主管通过损失系数 /// [Display(Name = "主管通过损失系数")] public double? RunThroughMinorLoss { get; set; } /// /// 支管通过损失系数 /// [Display(Name = "支管通过损失系数")] public double? BranchThroughMinorLoss { get; set; } /// /// 排序码 /// [Display(Name = "排序码")] public int SortCode { get { return this.Vmo.SortCode; } set { this.Vmo.SortCode = value; } } /// /// 说明 /// [Display(Name = "说明")] public string Description { get; set; } /// /// /// public HStation.Vmo.AssetsThreelinkFactorVmo Vmo { get; set; } } }