127 lines
3.1 KiB
C#
127 lines
3.1 KiB
C#
using Sinvo.EplanHpD.Plugin.WPFUI.Extension;
|
|
|
|
namespace Sinvo.EplanHpD.Plugin.WPFUI.Models
|
|
{
|
|
public class MotorModel : CheckedModel
|
|
{
|
|
/// <summary>
|
|
/// 电机功率
|
|
/// </summary>
|
|
private string _motorPower;
|
|
/// <summary>
|
|
/// <inheritdoc cref="_motorPower"/>
|
|
/// </summary>
|
|
public string MotorPower
|
|
{
|
|
get { return _motorPower; }
|
|
set
|
|
{
|
|
_motorPower = value;
|
|
OnPropertyChanged(nameof(MotorPower));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 品牌
|
|
/// </summary>
|
|
private string _brand;
|
|
/// <summary>
|
|
/// <inheritdoc cref="_brand"/>
|
|
/// </summary>
|
|
public string Brand
|
|
{
|
|
get { return _brand; }
|
|
set
|
|
{
|
|
_brand = value;
|
|
OnPropertyChanged(nameof(Brand));
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 电机系列
|
|
/// </summary>
|
|
private string _motorSerie;
|
|
/// <summary>
|
|
/// <inheritdoc cref="_motorSerie"/>
|
|
/// </summary>
|
|
public string MotorSerie
|
|
{
|
|
get { return _motorSerie; }
|
|
set
|
|
{
|
|
_motorSerie = value;
|
|
OnPropertyChanged(nameof(MotorSerie));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 电机型号
|
|
/// </summary>
|
|
private string _motorModel;
|
|
/// <summary>
|
|
/// <inheritdoc cref="_motorModel"/>
|
|
/// </summary>
|
|
public string MotorModelStr
|
|
{
|
|
get { return _motorModel; }
|
|
set
|
|
{
|
|
_motorModel = value;
|
|
OnPropertyChanged(nameof(MotorModelStr));
|
|
}
|
|
}
|
|
private string _axisNo;
|
|
/// <summary>
|
|
/// 轴号
|
|
/// </summary>
|
|
public string AxisNo
|
|
{
|
|
get => _axisNo;
|
|
set
|
|
{
|
|
_axisNo = value;
|
|
OnPropertyChanged(nameof(AxisNo));
|
|
}
|
|
}
|
|
|
|
private string _occPartId;
|
|
/// <summary>
|
|
/// 部件ID
|
|
/// </summary>
|
|
public string OccPartId
|
|
{
|
|
get => _occPartId;
|
|
set
|
|
{
|
|
_occPartId = value;
|
|
OnPropertyChanged(nameof(OccPartId));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 部件ID
|
|
/// </summary>
|
|
public string MotorUniqueFlag
|
|
{
|
|
get => this.GetUniqueFlag();
|
|
set
|
|
{
|
|
OnPropertyChanged(nameof(MotorUniqueFlag));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 从其他对象复制属性
|
|
/// </summary>
|
|
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;
|
|
}
|
|
}
|
|
}
|