EPLAN_PROD_Plugin/Sinvo.EplanHpD.Plugin.WPFUI/Datas/Brands.cs

98 lines
3.2 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sinvo.EplanHpD.Plugin.WPFUI.Datas
{
2025-02-10 09:53:41 +08:00
/// <summary>
2025-04-03 17:30:50 +08:00
/// TODO1: 品牌类型,线材逻辑不同应拆分为不同的服务实现
/// TODO2: 从配置文件中读取品牌数据
2025-02-10 09:53:41 +08:00
/// </summary>
public static class Brands
{
public const string UNKNOWN = "未知";
public const string ANCHUAN = "安川";
public const string HUICHUAN = "汇川";
public const string SANLING = "三菱";
public const string SANLING_HK_KT = "HK-KT";
public static BrandData GetBrandData(string brandName)
{
if(!BrandDataList.ContainsKey(brandName))
{
return null;
}
return BrandDataList[brandName];
}
/// <summary>
2025-04-03 17:30:50 +08:00
/// 品牌信息列表
/// </summary>
public static Dictionary<string, BrandData> BrandDataList = new Dictionary<string, BrandData>
2025-04-03 17:30:50 +08:00
{
/*
2025-04-03 17:30:50 +08:00
1. 线JZSP-
2. SGMX
3. -E
4. 线0-750KW
5. Sheet名称:
*/
{ANCHUAN,
2025-04-14 17:58:45 +08:00
new BrandData {
Name = ANCHUAN,
ComplexLine = false,
SheetName = ANCHUAN,
Prefix = "JZSP-",
MotorPrefix = "SGMX",
Suffix = "-E",
MotorCablePowerRangeStart = 0,
MotorCablePowerRangeEnd = 750
}
},
2025-04-03 17:30:50 +08:00
/*
1. 线S6-L-
2. MS1H
3.
4. 线
5. Sheet名称:
*/
{HUICHUAN,
2025-04-14 17:58:45 +08:00
new BrandData {
Name = HUICHUAN,
ComplexLine = false,
SheetName = HUICHUAN,
Prefix = "S6-L-",
MotorPrefix = "MS1H",
Suffix = "",
MotorCablePowerRangeStart = 0,
MotorCablePowerRangeEnd = 0
}
},
2025-04-03 17:30:50 +08:00
/*
1. 线MR-
2. HK-KT
3.
4. 线
5. Sheet名称: HK_KT
*/
{SANLING_HK_KT,
2025-04-14 17:58:45 +08:00
new BrandData {
Name = SANLING_HK_KT,
ComplexLine = true,
SheetName = SANLING_HK_KT,
Prefix = "MR-",
MotorPrefix = "HK-KT",
Suffix = "",
MotorCablePowerRangeStart = 0,
MotorCablePowerRangeEnd = 0
}
},
};
}
}