2025-01-10 14:41:51 +08:00
|
|
|
|
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>
|
2025-01-10 14:41:51 +08:00
|
|
|
|
public static class Brands
|
|
|
|
|
{
|
|
|
|
|
public const string UNKNOWN = "未知";
|
|
|
|
|
public const string ANCHUAN = "安川";
|
2025-03-28 16:49:31 +08:00
|
|
|
|
public const string HUICHUAN = "汇川";
|
2025-01-10 14:41:51 +08:00
|
|
|
|
public const string SANLING = "三菱";
|
|
|
|
|
public const string SANLING_HK_KT = "HK-KT";
|
2025-03-28 16:49:31 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static BrandData GetBrandData(string brandName)
|
|
|
|
|
{
|
|
|
|
|
if(!BrandDataList.ContainsKey(brandName))
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
return BrandDataList[brandName];
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
2025-04-03 17:30:50 +08:00
|
|
|
|
/// 品牌信息列表
|
2025-03-28 16:49:31 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
public static Dictionary<string, BrandData> BrandDataList = new Dictionary<string, BrandData>
|
2025-04-03 17:30:50 +08:00
|
|
|
|
{
|
2025-03-28 16:49:31 +08:00
|
|
|
|
/*
|
2025-04-03 17:30:50 +08:00
|
|
|
|
安川电机
|
|
|
|
|
1. 线缆型号前缀:JZSP-
|
|
|
|
|
2. 电机型号前缀:SGMX
|
|
|
|
|
3. 型号后缀:-E
|
|
|
|
|
4. 电机带前段线的功率范围:0-750KW
|
|
|
|
|
5. 数据表中Sheet名称: 安川
|
|
|
|
|
*/
|
2025-03-28 16:49:31 +08:00
|
|
|
|
{ANCHUAN,
|
2025-04-14 17:58:45 +08:00
|
|
|
|
new BrandData {
|
2025-03-28 16:49:31 +08:00
|
|
|
|
Name = ANCHUAN,
|
|
|
|
|
ComplexLine = false,
|
|
|
|
|
SheetName = ANCHUAN,
|
|
|
|
|
Prefix = "JZSP-",
|
|
|
|
|
MotorPrefix = "SGMX",
|
2025-04-02 17:24:34 +08:00
|
|
|
|
Suffix = "-E",
|
|
|
|
|
MotorCablePowerRangeStart = 0,
|
|
|
|
|
MotorCablePowerRangeEnd = 750
|
2025-03-28 16:49:31 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2025-04-03 17:30:50 +08:00
|
|
|
|
/*
|
|
|
|
|
汇川电机
|
|
|
|
|
1. 线缆型号前缀:S6-L-
|
|
|
|
|
2. 电机型号前缀:MS1H
|
|
|
|
|
3. 型号后缀:无
|
|
|
|
|
4. 电机带前段线的功率范围:无
|
|
|
|
|
5. 数据表中Sheet名称: 汇川
|
|
|
|
|
*/
|
2025-03-28 16:49:31 +08:00
|
|
|
|
{HUICHUAN,
|
2025-04-14 17:58:45 +08:00
|
|
|
|
new BrandData {
|
2025-03-28 16:49:31 +08:00
|
|
|
|
Name = HUICHUAN,
|
|
|
|
|
ComplexLine = false,
|
|
|
|
|
SheetName = HUICHUAN,
|
|
|
|
|
Prefix = "S6-L-",
|
|
|
|
|
MotorPrefix = "MS1H",
|
2025-04-02 17:24:34 +08:00
|
|
|
|
Suffix = "",
|
|
|
|
|
MotorCablePowerRangeStart = 0,
|
|
|
|
|
MotorCablePowerRangeEnd = 0
|
2025-03-28 16:49:31 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2025-04-03 17:30:50 +08:00
|
|
|
|
/*
|
|
|
|
|
三菱电机
|
|
|
|
|
1. 线缆型号前缀:MR-
|
|
|
|
|
2. 电机型号前缀:HK-KT
|
|
|
|
|
3. 型号后缀:无
|
|
|
|
|
4. 电机带前段线的功率范围:无
|
|
|
|
|
5. 数据表中Sheet名称: HK_KT
|
|
|
|
|
*/
|
2025-03-28 16:49:31 +08:00
|
|
|
|
{SANLING_HK_KT,
|
2025-04-14 17:58:45 +08:00
|
|
|
|
new BrandData {
|
2025-03-28 16:49:31 +08:00
|
|
|
|
Name = SANLING_HK_KT,
|
|
|
|
|
ComplexLine = true,
|
|
|
|
|
SheetName = SANLING_HK_KT,
|
|
|
|
|
Prefix = "MR-",
|
|
|
|
|
MotorPrefix = "HK-KT",
|
2025-04-02 17:24:34 +08:00
|
|
|
|
Suffix = "",
|
|
|
|
|
MotorCablePowerRangeStart = 0,
|
|
|
|
|
MotorCablePowerRangeEnd = 0
|
2025-03-28 16:49:31 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
};
|
2025-01-10 14:41:51 +08:00
|
|
|
|
}
|
|
|
|
|
}
|