using Sinvo.EplanHpD.Plugin.WPFUI.Extension;
namespace Sinvo.EplanHpD.Plugin.WPFUI.Models
{
public class MotorModel : CheckedModel
{
///
/// 电机功率
///
private string _motorPower;
///
///
///
public string MotorPower
{
get { return _motorPower; }
set
{
_motorPower = value;
OnPropertyChanged(nameof(MotorPower));
}
}
///
/// 品牌
///
private string _brand;
///
///
///
public string Brand
{
get { return _brand; }
set
{
_brand = value;
OnPropertyChanged(nameof(Brand));
}
}
///
/// 电机系列
///
private string _motorSerie;
///
///
///
public string MotorSerie
{
get { return _motorSerie; }
set
{
_motorSerie = value;
OnPropertyChanged(nameof(MotorSerie));
}
}
///
/// 电机型号
///
private string _motorModel;
///
///
///
public string MotorModelStr
{
get { return _motorModel; }
set
{
_motorModel = value;
OnPropertyChanged(nameof(MotorModelStr));
}
}
private string _axisNo;
///
/// 轴号
///
public string AxisNo
{
get => _axisNo;
set
{
_axisNo = value;
OnPropertyChanged(nameof(AxisNo));
}
}
private string _occPartId;
///
/// 部件ID
///
public string OccPartId
{
get => _occPartId;
set
{
_occPartId = value;
OnPropertyChanged(nameof(OccPartId));
}
}
///
/// 部件ID
///
public string MotorUniqueFlag
{
get => this.GetUniqueFlag();
set
{
OnPropertyChanged(nameof(MotorUniqueFlag));
}
}
///
/// 从其他对象复制属性
///
public void CopyFrom(MotorModel motor)
{
this.MotorPower = motor.MotorPower;
this.Brand = motor.Brand;
this.MotorSerie = motor.MotorSerie;
this.MotorModelStr = motor.MotorModelStr;
this.AxisNo = motor.AxisNo;
//this.OccPartId = motor.OccPartId;
}
}
}