| | |
| | | { |
| | | public class CurrentTreeViewModel |
| | | { |
| | | public CurrentTreeViewModel(PumpSeriesDto rhs) : base() |
| | | public CurrentTreeViewModel(Vmo.PumpSeries rhs) : base() |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.CatalogID = rhs.CatalogID; |
| | |
| | | this.Paras = rhs.Paras; |
| | | this.Flags = rhs.Flags; |
| | | this.TagName = rhs.TagName; |
| | | this.UseStatus = rhs.UseStatus; |
| | | this.UseStatus = (eUseStatus)rhs.UseStatus; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Description = rhs.Description; |
| | | this.Model = rhs; |
| | | this.ImageIndex = ImageLib.Series; |
| | | } |
| | | |
| | | public CurrentTreeViewModel(PumpGroupDto rhs) : base() |
| | | public CurrentTreeViewModel(Vmo.PumpGroup rhs) : base() |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | |
| | | this.ImageIndex = ImageLib.Group; |
| | | } |
| | | |
| | | public void Reset(UpdatePumpSeriesDto rhs) |
| | | public void Reset(Vmo.PumpSeries rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.CatalogID = rhs.CatalogID; |
| | |
| | | this.Model = rhs; |
| | | } |
| | | |
| | | public void Reset(UpdatePumpGroupDto rhs) |
| | | public void Reset(Vmo.PumpGroup rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |