2025-01-22 16:45:50 +08:00
|
|
|
|
using Sinvo.EplanHpD.Plugin.WPFUI.Models;
|
|
|
|
|
using Sinvo.EplanHpD.Plugin.WPFUI.Utils;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Sinvo.EplanHpD.Plugin.WPFUI.Extension
|
|
|
|
|
{
|
|
|
|
|
public static class MotorModelUniqueFlagExt
|
|
|
|
|
{
|
2025-04-03 17:30:50 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取电机唯一标识
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model"></param>
|
|
|
|
|
/// <returns></returns>
|
2025-01-22 16:45:50 +08:00
|
|
|
|
public static string GetUniqueFlag(this MotorModel model)
|
|
|
|
|
{
|
|
|
|
|
// 调整唯一标识生成规则,项目名称+轴号
|
2025-01-23 09:08:45 +08:00
|
|
|
|
return $"{LectotypeManager.CURRENT_DOC_NAME}_{model.AxisNo}";
|
2025-01-22 16:45:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|