using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RIZO.Service.PLCBackground.Stations
{
///
/// 入站校验结果
///
public enum EntryPermissionResult
{
//1之前工位数据正常
AllowIntoStation = 1,
// 2上工位无记录
NoRecordAtPreviousStation = 2,
// 3上工位NG
PreviousStationNG = 3,
// 4扫码产品型号错误
ProductModelError = 4,
//5本工位NG
CurrentStationNG = 5,
//6时间超出规定无法生产
TimeExceeded = 6,
//7固化时间未到规定时间
CuringTimeNotReached = 7,
// 8未找到时间属性
TimeAttributeNotFound = 8,
// 10条码为空
BarcodeEmpty = 10,
//0之前工位数据异常
PreviousStationDataAbnormal = 0,
//11 未知异常
UnkownException = 11,
//12 最大重复入站次数
MaximumRepeatedEntries = 12
}
///
/// 出站校验结果
///
public enum OutPermissionResult
{
///
/// 1 OK - 成功
///
OK = 1,
///
/// 2 产品时间属性增加失败
///
ProductTimeAttributeAddFailed = 2,
///
/// 3 产品条码合并失败
///
ProductBarcodeMergeFailed = 3,
///
/// 4 产品结果上传次数超出
///
ProductUploadCountExceeded = 4,
///
/// 5 时间属性移除失败
///
TimeAttributeRemoveFailed = 5,
///
/// 6 数据保存失败
///
DataSaveFailed = 6,
///
/// 10 上传条码为空
///
UploadBarcodeEmpty = 10,
///
/// 11 未知异常
///
UnkownException = 11,
///
/// 工艺参数NG
///
ProcessParameterNG = 12
}
}