namespace IStation.Application
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public class EquipmentFullLogicalTreeDto : Yw.Dto.LogicalTreeDto
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public EquipmentFullLogicalTreeDto() { }
|
|
/// <summary>
|
///
|
/// </summary>
|
public EquipmentFullLogicalTreeDto(Model.LogicSite rhs)
|
{
|
this.Id = $"{IStation.DataType.LogicSite}_{rhs.ID}";
|
this.ParentId = string.Empty;
|
this.LogicalName = rhs.Name;
|
this.LogicalType = DataType.LogicSite;
|
this.LogicalID = rhs.ID;
|
this.LogicalModel = null;
|
this.SortCode = rhs.SortCode;
|
this.Description = rhs.Description;
|
this.Children = new List<LogicalTreeDto>();
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public EquipmentFullLogicalTreeDto(Yw.Model.Equipment rhs)
|
{
|
this.Id = $"{Yw.Assets.DataType.Equipment}_{rhs.ID}";
|
this.ParentId = string.Empty;
|
this.LogicalName = rhs.Name;
|
this.LogicalType = Yw.Assets.DataType.Equipment;
|
this.LogicalID = rhs.ID;
|
this.LogicalModel = null;
|
this.SortCode = rhs.SortCode;
|
this.Description = rhs.Description;
|
this.Children = new List<LogicalTreeDto>();
|
}
|
|
|
|
|
|
|
|
}
|
}
|