namespace MES.Service.Dto.service;
///
/// SPI/AOI主表DTO
///
public class SpiAoiHeaderDto
{
///
/// 测试日期(格式:yyyy-MM-dd)
///
public string TestDate { get; set; }
///
/// 测试时间(格式:HH:mm:ss)
///
public string TestTime { get; set; }
///
/// 测试结果(固定为三种:0:0:1;0:测试为OK,0;0;0:1:测试为Fail
///
public string TestResult { get; set; }
///
/// 板面(T或B)
///
public string Surface { get; set; }
///
/// 测试点数
///
public int? TotalPoints { get; set; }
///
/// 实际不良点数
///
public int? ActualDefects { get; set; }
///
/// 设备型号
///
public string? EquipmentModel { get; set; }
///
/// 批次工单
///
public string? WorkOrder { get; set; }
///
/// 机种
///
public string? ProductModel { get; set; }
///
/// 条码
///
public string BoardBarcode { get; set; }
///
/// SMT组别
///
public string? SmtGroup { get; set; }
///
/// 线别
///
public string? LineName { get; set; }
}
///
/// SPI/AOI子表DTO
///
public class SpiAoiDetailDto
{
///
/// 机器名称
///
public string? MachineName { get; set; }
///
/// 生产线名
///
public string? LineDisplayName { get; set; }
///
/// Legacy header identifier (optional).
///
public decimal? HeaderId { get; set; }
///
/// 面积超出数量
///
public int AreaOverflowCount { get; set; }
///
/// 面积不足数量
///
public int AreaUnderflowCount { get; set; }
///
/// 高度超出数量
///
public int ExceedingHeightCount { get; set; }
///
/// 高度不足数量
///
public int InsufficientHeightCount { get; set; }
///
/// X偏移数量
///
public int XDeviationCount { get; set; }
///
/// Y偏移数量
///
public int YDeviationCount { get; set; }
///
/// 塌陷数量
///
public int CollapseCount { get; set; }
///
/// 拉尖数量(焊锡拉尖)
///
public int SolderPullTipCount { get; set; }
///
/// 异形数量
///
public int AbnormalityCount { get; set; }
///
/// 投入板数
///
public int InputBoards { get; set; }
///
/// OK板数
///
public int OkBoards { get; set; }
///
/// 通过板数
///
public int PassBoards { get; set; }
///
/// 合格
///
public decimal? PassRate { get; set; }
///
/// 不良板数
///
public int DefectBoards { get; set; }
///
/// 不良
///
public decimal? DefectRate { get; set; }
///
/// 不良
///
public int? DefectPpm { get; set; }
///
/// 不良点数
///
public int DefectPoints { get; set; }
///
/// 实测点数
///
public int MeasuredPoints { get; set; }
///
/// 待测点数
///
public int PendingPoints { get; set; }
}
///
/// AOI主表上传响应DTO
///
public class SpiAoiHeaderUploadResponse
{
///
/// 主表ID
///
public decimal HeaderId { get; set; }
}
///
/// SPI明细上传响应DTO
///
public class SpiAoiDetailUploadResponse
{
///
/// 插入的子表记录数
///
public int DetailCount { get; set; }
}