Files
604WGJ/JinYuan.Models/ConstValue.cs
T

64 lines
1.5 KiB
C#
Raw Normal View History

2026-08-12 14:32:27 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JinYuan.Models
{
public class ConstValue
{
/// <summary>
/// CCD采集项数
/// </summary>
2026-08-13 10:01:28 +08:00
public const int COUNT_CCD = 13;
2026-08-12 14:32:27 +08:00
/// <summary>
/// CCD采集项名称列表
/// </summary>
2026-08-13 10:01:28 +08:00
public static string[] CCDNameArr = new string[COUNT_CCD] {
"大面A",
"底部棱边1",
"四个侧棱边",
"电芯二侧面",
"大面B",
"防爆阀",
"二维码",
"二个底部长棱",
"底部棱边2",
"正负极极柱-1",
"正负极极柱-2",
"正负塑胶圈",
"顶底部检测"
2026-08-12 14:32:27 +08:00
};
2026-08-13 10:01:28 +08:00
/// <summary>
/// CCD采集项(单独地址)列表
/// </summary>
public static Dictionary<string, string> CCDSpecialDic = new Dictionary<string, string> {
{ "CCD_FLATNESS", "测厚(平面度)" },
2026-08-21 18:53:34 +08:00
{ "CCDFLATNESSResult", "测厚(平面度)结果" }
2026-08-13 10:01:28 +08:00
};
public static string JudgeResult(int result)
{
string resultStr = string.Empty;
if (result == 1)
{
resultStr = "OK";
}
2026-08-31 20:37:39 +08:00
else if (result == 2)
2026-08-13 10:01:28 +08:00
{
resultStr = "NG";
}
else
{
resultStr = "缺图";
}
return resultStr;
}
2026-08-12 14:32:27 +08:00
}
}