namespace Admin.NET.Plugin.AiDOP.Manufacturing.Dto;
///
/// S6 过程检验单(IPQC)列表 查询入参(只读)。读 mdp_std_ipqc_inspection。
/// 查询条件对齐旧系统「过程检验单列表」页:单据编号 + 生产批号。
///
public class IpqcInspectionListInput
{
/// 页码(从 1 开始)
public int Page { get; set; } = 1;
/// 每页条数
public int PageSize { get; set; } = 10;
/// 单据编号(bill_no,模糊匹配)
public string? BillNo { get; set; }
/// 生产批号(production_batch_no,模糊匹配)
public string? ProductionBatchNo { get; set; }
/// 排序字段(前端列 prop:billNo / effectiveDate)
public string? SortField { get; set; }
/// 排序方向(asc / desc)
public string? SortOrder { get; set; }
/// 租户 ID(前端 withAidopTenantParams 注入;为空则不按租户过滤)
public long? TenantId { get; set; }
}
///
/// S6 过程检验单(IPQC)列表 行(只读)。字段对齐前端骨架列 prop(camelCase)。
/// 全部来自过程检验单头表 qms_gcjyd(归口后 mdp_std_ipqc_inspection)。
///
public class IpqcInspectionListRow
{
/// 主键 id(mdp_std_ipqc_inspection.id)
public long Id { get; set; }
/// 单据编号(bill_no ← qms_gcjyd.djbh)
public string? BillNo { get; set; }
/// 产品型号(product_model ← cplx)
public string? ProductModel { get; set; }
/// 生产批号(production_batch_no ← scph)
public string? ProductionBatchNo { get; set; }
/// 生产工单(production_work_order ← lydjbh 来源单据编号)
public string? ProductionWorkOrder { get; set; }
/// 结果判定(result_judgement ← jgpd,字典码原样透出,语义解码后置)
public string? ResultJudgement { get; set; }
/// 附件(attachment ← fj)
public string? Attachment { get; set; }
/// 备注(remark ← bz)
public string? Remark { get; set; }
/// 检验人(inspector ← jyr)
public string? Inspector { get; set; }
/// 工序编码(process_code ← gxbm)
public string? ProcessCode { get; set; }
/// 工序名称(process_name ← gxmc)
public string? ProcessName { get; set; }
/// 生产人员(production_person ← sczyry)
public string? ProductionPerson { get; set; }
/// 样本量(sample_qty ← ybl)
public decimal? SampleQty { get; set; }
/// 表单编号(form_no ← bdbh)
public string? FormNo { get; set; }
/// 版本号(version_no ← bbh)
public string? VersionNo { get; set; }
/// 生效日期(effective_date ← sxrq)
public DateTime? EffectiveDate { get; set; }
/// 物料编码(material_code ← wlbm)
public string? MaterialCode { get; set; }
/// 物料名称(material_name ← wlmc)
public string? MaterialName { get; set; }
/// 检规版本(inspec_standard_version ← jgbb)
public string? InspecStandardVersion { get; set; }
/// 检规编号(inspec_standard_code ← jgbh)
public string? InspecStandardCode { get; set; }
/// 源检验单 id(qms_gcjyd.id = mdp_std.source_row_id;流程 BizId 用此)
public long SourceRowId { get; set; }
}
///
/// S6 过程检验单(IPQC)详情(只读):头(mdp_std_ipqc_inspection)+ 明细(mdp_std_ipqc_inspection_detail 确定子集列)。
/// 查不到返回 null。明细为空返回空数组(前端"暂无明细")。
///
public class IpqcInspectionDetailDto
{
/// 主键 id(mdp_std_ipqc_inspection.id)
public long Id { get; set; }
public string? BillNo { get; set; }
public string? ProductModel { get; set; }
public string? ProductionBatchNo { get; set; }
public string? ProductionWorkOrder { get; set; }
public string? ResultJudgement { get; set; }
public string? Attachment { get; set; }
public string? Remark { get; set; }
public string? Inspector { get; set; }
public string? ProcessCode { get; set; }
public string? ProcessName { get; set; }
public string? ProductionPerson { get; set; }
public decimal? SampleQty { get; set; }
public string? FormNo { get; set; }
public string? VersionNo { get; set; }
public DateTime? EffectiveDate { get; set; }
public string? MaterialCode { get; set; }
public string? MaterialName { get; set; }
public string? InspecStandardVersion { get; set; }
public string? InspecStandardCode { get; set; }
/// 检验状态(inspection_status ← status)
public string? InspectionStatus { get; set; }
/// 源检验单 id(qms_gcjyd.id = mdp_std.source_row_id;流程 BizId 用此)
public long SourceRowId { get; set; }
/// 明细行(确定子集列;j1~j70 动态检验值列后置不返回)
public List Lines { get; set; } = new();
}
///
/// S6 过程检验单明细行(只读,确定子集列)。源自 qms_gcjydzb → mdp_std_ipqc_inspection_detail。
///
public class IpqcInspectionDetailLineDto
{
public long Id { get; set; }
/// 检验项目(inspection_item ← jyxm)
public string? InspectionItem { get; set; }
/// 检验依据(inspection_basis ← jyyj)
public string? InspectionBasis { get; set; }
/// 技术标准(technical_standard ← jsbz)
public string? TechnicalStandard { get; set; }
/// 检验方法(inspection_method ← jyff)
public string? InspectionMethod { get; set; }
/// 上限(upper_limit ← sx)
public string? UpperLimit { get; set; }
/// 下限(lower_limit ← xx)
public string? LowerLimit { get; set; }
/// 工序编码(process_code ← ProcessCode)
public string? ProcessCode { get; set; }
/// 工序名称(process_name ← ProcessName)
public string? ProcessName { get; set; }
/// 测量仪器(measurement_instrument ← MeasurementInstrument)
public string? MeasurementInstrument { get; set; }
/// 检验人(inspector ← Inspector)
public string? Inspector { get; set; }
/// 检验时间(inspection_time ← InspectionTime)
public DateTime? InspectionTime { get; set; }
/// 样本量(sample_qty ← ybl)
public int? SampleQty { get; set; }
/// 检验数量(inspection_qty ← jysl)
public decimal? InspectionQty { get; set; }
/// 不合格数量(unqualified_qty ← bhgsl)
public decimal? UnqualifiedQty { get; set; }
/// 结果判定(result_judgement ← pd,字典码原样透出)
public string? ResultJudgement { get; set; }
/// 非数值型OK(non_numeric_ok ← NonNumericalTypeOK)
public int? NonNumericOk { get; set; }
/// 非数值型NG(non_numeric_ng ← NonNumericalTypeNG)
public int? NonNumericNg { get; set; }
/// 备注(remark ← bz)
public string? Remark { get; set; }
/// 附件(attachment ← fj)
public string? Attachment { get; set; }
}