namespace IStation.Model
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public partial class SignalType
|
{
|
/// <summary>
|
/// 获取格式参数
|
/// </summary>
|
public object GetFormatParas()
|
{
|
object obj = null;
|
switch (FormatType)
|
{
|
case eFormatType.Numeric: obj = GetNumericFormatParas(); break;
|
case eFormatType.Enum: obj = GetEnumFormatParas(); break;
|
default: break;
|
}
|
return obj;
|
}
|
|
/// <summary>
|
/// 获取数值格式参数
|
/// </summary>
|
public NumericFormatParas GetNumericFormatParas()
|
{
|
return NumericFormatParas.ToModel(FormatParas);
|
}
|
|
/// <summary>
|
/// 获取枚举格式参数
|
/// </summary>
|
public EnumFormatParas GetEnumFormatParas()
|
{
|
return EnumFormatParas.ToModel(FormatParas);
|
}
|
|
|
|
|
}
|
}
|