using HStation.Dto;
|
using Yw.Dto;
|
|
namespace HStation.WinFrmUI.Xhs.Project
|
{
|
public class ProjectViewModel : XhsProjectDto
|
{
|
public ProjectViewModel(XhsProjectDto rhs)
|
{
|
this.ID = rhs.ID;
|
this.Name = rhs.Name;
|
this.Paras = rhs.Paras;
|
this.PrjNumber = rhs.PrjNumber;
|
this.Flags = rhs.Flags;
|
this.TagName = rhs.TagName;
|
this.Address = rhs.Address;
|
this.UseStatus = rhs.UseStatus;
|
this.SortCode = rhs.SortCode;
|
this.Description = rhs.Description;
|
this.CreateTime = rhs.CreateTime;
|
this.CustomerName = rhs.CustomerName;
|
this.CreateUserID = rhs.CreateUserID;
|
this.Version = rhs.Version;
|
this.MapPosition = rhs.MapPosition;
|
this.CreateUserDisplayName = rhs.CreateUserDisplayName;
|
}
|
|
public void Reset(ProjectViewModel rhs)
|
{
|
this.ID = rhs.ID;
|
this.Name = rhs.Name;
|
this.Paras = rhs.Paras;
|
this.Flags = rhs.Flags;
|
this.TagName = rhs.TagName;
|
this.SortCode = rhs.SortCode;
|
this.Description = rhs.Description;
|
this.CreateTime = rhs.CreateTime;
|
this.CustomerName = rhs.CustomerName;
|
this.CreateUserID = rhs.CreateUserID;
|
this.Version = rhs.Version;
|
this.MapPosition = rhs.MapPosition;
|
this.CreateUserDisplayName = rhs.CreateUserDisplayName;
|
}
|
|
public void Reset(UpdateXhsProjectInput rhs)
|
{
|
this.ID = rhs.ID;
|
this.Name = rhs.Name;
|
this.Paras = rhs.Paras;
|
this.Flags = rhs.Flags;
|
this.TagName = rhs.TagName;
|
this.SortCode = rhs.SortCode;
|
this.Description = rhs.Description;
|
this.CreateTime = rhs.CreateTime;
|
this.CustomerName = rhs.CustomerName;
|
this.CreateUserID = rhs.CreateUserID;
|
this.Version = rhs.Version;
|
this.MapPosition = rhs.MapPosition;
|
this.CreateUserDisplayName = rhs.CreateUserDisplayName;
|
}
|
}
|
}
|