71 lines
1.8 KiB
C#
71 lines
1.8 KiB
C#
using GroupLine.App.ModelDto;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace GroupLine.App
|
|
{
|
|
[MetadataType(typeof(MagTorqueDto))]
|
|
public class MagTorqueDto : ValidateModelBase
|
|
{
|
|
private string _CylinderNo;
|
|
/// <summary>
|
|
/// 筒体编号
|
|
/// </summary>
|
|
public string CylinderNo
|
|
{
|
|
get { return _CylinderNo; }
|
|
set { _CylinderNo = value; RaisePropertyChanged(() => CylinderNo); }
|
|
}
|
|
|
|
private string _ModelType;
|
|
/// <summary>
|
|
/// 机种类型
|
|
/// </summary>
|
|
public string ModelType
|
|
{
|
|
get { return _ModelType; }
|
|
set { _ModelType = value; RaisePropertyChanged(() => CylinderNo); }
|
|
}
|
|
|
|
|
|
|
|
private decimal _MagValue;
|
|
/// <summary>
|
|
/// 磁束值
|
|
/// </summary>
|
|
public decimal MagValue
|
|
{
|
|
get { return _MagValue; }
|
|
set { _MagValue = value; RaisePropertyChanged(() => MagValue); }
|
|
}
|
|
private decimal _TorqueValue;
|
|
/// <summary>
|
|
/// 扭矩值
|
|
/// </summary>
|
|
public decimal TorqueValue
|
|
{
|
|
get { return _TorqueValue; }
|
|
set { _TorqueValue = value; RaisePropertyChanged(() => TorqueValue); }
|
|
}
|
|
private string _Result;
|
|
/// <summary>
|
|
/// 结果
|
|
/// </summary>
|
|
public string Result
|
|
{
|
|
get { return _Result; }
|
|
set { _Result = value; RaisePropertyChanged(() => Result); }
|
|
}
|
|
private DateTime _CreateTime;
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
public DateTime CreateTime
|
|
{
|
|
get { return _CreateTime; }
|
|
set { _CreateTime = value; RaisePropertyChanged(() => CreateTime); }
|
|
}
|
|
|
|
}
|
|
}
|