ÎļþÃû´Ó WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/ThreeLinkViewModel.cs ÐÞ¸Ä |
| | |
| | | public ThreeLinkViewModel(Vmo.AssetsThreelinkMainVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Description = rhs.Description; |
| | | if (rhs.Caliber == null) |
| | | { |
| | | this.Caliber = "é»è®¤"; |
| | |
| | | { |
| | | this.Caliber = rhs.Caliber.ToString(); |
| | | } |
| | | if (rhs.MaterialName == null) |
| | | if (rhs.Material == null) |
| | | { |
| | | this.MaterialName = "é»è®¤"; |
| | | this.Material = "é»è®¤"; |
| | | } |
| | | else |
| | | { |
| | | this.MaterialName = rhs.MaterialName.ToString(); |
| | | this.Material = rhs.Material.ToString(); |
| | | } |
| | | this.Name = rhs.Name; |
| | | this.SortCode = rhs.SortCode; |
| | | this.KeyWord = rhs.KeyWord; |
| | | this.IsDefault = rhs.IsDefault; |
| | | this.Coefficient = rhs.Coefficient; |
| | | this.KeyWord = string.Join(",", rhs.KeyWord); |
| | | this.RunThroughMinorLoss = rhs.RunThroughMinorLoss; |
| | | this.BranchThroughMinorLoss = rhs.BranchThroughMinorLoss; |
| | | this.MinorLoss = rhs.MinorLoss; |
| | | this.Description = rhs.Description; |
| | | } |
| | | |
| | | public void Reset(Vmo.AssetsThreelinkMainVmo rhs) |
| | |
| | | { |
| | | this.Caliber = rhs.Caliber.ToString(); |
| | | } |
| | | if (rhs.MaterialName == null) |
| | | if (rhs.Material == null) |
| | | { |
| | | this.MaterialName = "é»è®¤"; |
| | | this.Material = "é»è®¤"; |
| | | } |
| | | else |
| | | { |
| | | this.MaterialName = rhs.MaterialName.ToString(); |
| | | this.Material = rhs.Material.ToString(); |
| | | } |
| | | this.Description = rhs.Description; |
| | | this.Name = rhs.Name; |
| | | this.KeyWord = rhs.KeyWord; |
| | | this.IsDefault = rhs.IsDefault; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Coefficient = rhs.Coefficient; |
| | | this.KeyWord = string.Join(",", rhs.KeyWord); |
| | | this.RunThroughMinorLoss = rhs.RunThroughMinorLoss; |
| | | this.BranchThroughMinorLoss = rhs.BranchThroughMinorLoss; |
| | | this.MinorLoss = rhs.MinorLoss; |
| | | this.Description = rhs.Description; |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <summary> |
| | | /// åç§° |
| | | /// </summary> |
| | | [DisplayName("åç§°")] |
| | | |
| | | [DisplayName("åå·")] |
| | | [Browsable(true)] |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç³»åID |
| | | /// </summary> |
| | | |
| | | [DisplayName("ç³»åID")] |
| | | [Browsable(false)] |
| | | public long SeriesID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å£å¾ |
| | | /// </summary> |
| | | [DisplayName("å£å¾(mm)")] |
| | | |
| | | [DisplayName("å£å¾")] |
| | | [Browsable(true)] |
| | | public string Caliber { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ææ |
| | | /// </summary> |
| | | |
| | | [DisplayName("ææ")] |
| | | [Browsable(true)] |
| | | public string MaterialName { get; set; } |
| | | public string Material { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç³»æ° |
| | | /// </summary> |
| | | [DisplayName("æå¤±ç³»æ°")] |
| | | |
| | | [DisplayName("ç³»æ°")] |
| | | [Browsable(true)] |
| | | public double? Coefficient { get; set; } |
| | | public double MinorLoss { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è¿è¡éè¿æå¤±ç³»æ° |
| | | /// </summary> |
| | | |
| | | [DisplayName("è¿è¡éè¿æå¤±ç³»æ°")] |
| | | [Browsable(true)] |
| | | public double? RunThroughCoefficient { get; set; } |
| | | public double? RunThroughMinorLoss { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯ç®¡éè¿æå¤±ç³»æ° |
| | | /// </summary> |
| | | |
| | | [DisplayName("æ¯ç®¡éè¿æå¤±ç³»æ°")] |
| | | [Browsable(true)] |
| | | public double? BranchThroughCoefficient { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æåºç |
| | | /// </summary> |
| | | [DisplayName("æåºç ")] |
| | | [Browsable(true)] |
| | | public int SortCode { get; set; } |
| | | public double? BranchThroughMinorLoss { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è¯å«å
³é®å |
| | | /// </summary> |
| | | |
| | | [DisplayName("å
³é®å")] |
| | | [Browsable(true)] |
| | | public string KeyWord { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦é»è®¤ |
| | | /// æåºç |
| | | /// </summary> |
| | | [DisplayName("æ¯å¦é»è®¤")] |
| | | |
| | | [DisplayName("æåºç ")] |
| | | [Browsable(true)] |
| | | public bool IsDefault { get; set; } |
| | | public int SortCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 说æ |