using System;
using System.Collections.Generic;
using System.Text;
namespace wms.service.Help.LayerPacking.model
{
///
/// 装箱失败原因
///
public class PackingFailureReason
{
///
/// 失败类型
///
public PackingFailureType Type { get; set; }
///
/// 失败消息
///
public string Message { get; set; }
///
/// 详细信息
///
public string Details { get; set; }
///
/// 发生时间
///
public DateTime Timestamp { get; set; }
///
/// 相关数据(如产品数量、约束值等)
///
public Dictionary RelatedData { get; set; }
///
/// 构造函数
///
public PackingFailureReason()
{
RelatedData = new Dictionary();
Timestamp = DateTime.Now;
}
}
///
/// 装箱失败类型
///
public enum PackingFailureType
{
///
/// 产品数量不足
///
InsufficientProducts,
///
/// 扭转值约束违反
///
TorsionConstraintViolation,
///
/// 焊点约束违反
///
SolderConstraintViolation,
///
/// 极值成对约束违反
///
ExtremePairConstraintViolation,
///
/// 层标准差约束违反
///
LayerStandardDeviationViolation,
///
/// 无法找到有效解
///
NoValidSolutionFound,
///
/// 其他错误
///
Other
}
}