using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation.Application
{
///
/// 信号
///
public class SignalLogicDto
{
///
///
///
public SignalLogicDto() { }
///
///
///
///
public SignalLogicDto(Model.Signal_SignalType rhs)
{
this.ID = rhs.ID;
this.CorpID = rhs.CorpID;
this.MonitorPointID = rhs.MonitorPointID;
this.Name = rhs.Name;
this.SignalType = rhs.SignalType.Identifier;
this.ValueType = rhs.SignalType.ValueType;
this.UnitValue = rhs.GetEnUnitName();
this.DecimalPlaces = rhs.DecimalPlaces;
this.CoordParas = rhs.GetCoordParas();
this.Flags = rhs.Flags?.ToList();
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
}
///
/// 标识
///
public long ID { get; set; }
///
/// 客户标识
///
public long CorpID { get; set; }
///
/// 测点标识
///
public long MonitorPointID { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 信号类型
///
public string SignalType { get; set; }
///
/// 值类型
///
public Model.Monitor.eValueType ValueType { get; set; }
///
/// 显示单位
///
public string UnitValue { get; set; }
///
/// 显示小数位数
///
public int? DecimalPlaces { get; set; }
///
/// 坐标参数
///
public object CoordParas { get; set; }
///
/// 标签列表
///
public List Flags { get; set; }
///
/// 排序码
///
public int SortCode { get; set; }
///
/// 说明
///
public string Description { get; set; }
}
}