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