成品检验

This commit is contained in:
qianhao.xu
2024-12-27 10:08:11 +08:00
parent b75378c493
commit 80c122558f
15 changed files with 972 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DOAN.Model.MES.quality.FQC
{
/// <summary>
/// 成品缺陷
/// </summary>
[SugarTable("qc_finishedproduct_defect_collection")]
public class QcFinishedproductDefectCollection
{
/// <summary>
/// 雪花
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
public string Id { get; set; }
/// <summary>
/// 工单号
/// </summary>
public string Workorder { get; set; }
/// <summary>
/// 缺陷描述
/// </summary>
[SugarColumn(ColumnName = "defect_code")]
public string DefectCode { get; set; }
/// <summary>
/// 数量
/// </summary>
public int? Number { get; set; }
/// <summary>
/// CreatedBy
/// </summary>
[SugarColumn(ColumnName = "created_by")]
public string CreatedBy { get; set; }
/// <summary>
/// CreatedTime
/// </summary>
[SugarColumn(ColumnName = "created_time")]
public DateTime? CreatedTime { get; set; }
/// <summary>
/// UpdatedBy
/// </summary>
[SugarColumn(ColumnName = "updated_by")]
public string UpdatedBy { get; set; }
/// <summary>
/// UpdatedTime
/// </summary>
[SugarColumn(ColumnName = "updated_time")]
public DateTime? UpdatedTime { get; set; }
}
}

View File

@@ -0,0 +1,126 @@
using System.ComponentModel.DataAnnotations;
namespace DOAN.Model.MES.quality.IPQC.Dto;
/// <summary>
/// 缺陷收集查询对象
/// </summary>
public class QcDefectCollectionQueryDto : PagerInfo
{
public string MaterialCode { get; set; }
public string MaterialName { get; set; }
public DateTime? DateTime { get; set; }
public string LineCode { get; set; }
public int? Tqm { get; set; }
public int? Type { get; set; }
}
/// <summary>
/// 缺陷收集输入输出对象
/// </summary>
public class QcDefectCollectionDto
{
[Required(ErrorMessage = "id不能为空")] public string Id { get; set; }
public string LineCode { get; set; }
public DateTime? DateTime { get; set; }
public string MaterialCode { get; set; }
public string MaterialName { get; set; }
/// <summary>
/// 产品编码
/// </summary>
public string ProductCode { get; set; }
/// <summary>
/// 产品名称
/// </summary>
public string ProductName { get; set; }
public string BatchNumber { get; set; }
public string Unit { get; set; }
/// <summary>
/// 供应商编码
/// </summary>
public string SupplierCode { get; set; }
public string SupplierName { get; set; }
public decimal PlanNum { get; set; }
public decimal ActualNum { get; set; }
public decimal Quantity { get; set; }
public string ProcessName { get; set; }
public string Superintendent { get; set; }
public string DefectDescription { get; set; }
public int? Tqm { get; set; }
public int? Type { get; set; }
public string Remark { get; set; }
public string CreatedBy { get; set; }
public DateTime? CreatedTime { get; set; }
public string UpdatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
}
/// <summary>
/// 报损单
/// </summary>
public class QcDefectCollectionQueryDto2 : PagerInfo
{
public string MaterialCode { get; set; }
public string MaterialName { get; set; }
public DateTime? DateTime { get; set; }
public string LineCode { get; set; }
//public int? Tqm { get; set; }
public int? Type { get; set; }
public string SupplierCode { get; set; }
/// <summary>
/// 供应商名称
/// </summary>
public string SupplierName { get; set; }
/// <summary>
/// 产品编码
/// </summary>
public string ProductCode { get; set; }
/// <summary>
/// 产品名称
/// </summary>
public string ProductName { get; set; }
}

View File

@@ -0,0 +1,152 @@
namespace DOAN.Model.MES.quality.IPQC
{
/// <summary>
/// 缺陷收集
/// </summary>
[SugarTable("qc_defect_collection")]
public class QcDefectCollection
{
/// <summary>
/// id
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
public string Id { get; set; }
/// <summary>
/// 线别
/// </summary>
[SugarColumn(ColumnName = "line_code")]
public string LineCode { get; set; }
/// <summary>
/// 日期
/// </summary>
[SugarColumn(ColumnName = "date_time")]
public DateTime? DateTime { get; set; }
/// <summary>
/// 原材料编码
/// </summary>
[SugarColumn(ColumnName = "material_code")]
public string MaterialCode { get; set; }
/// <summary>
/// 原材料名称
/// </summary>
[SugarColumn(ColumnName = "material_name")]
public string MaterialName { get; set; }
/// <summary>
/// 产品编码
/// </summary>
[SugarColumn(ColumnName = "product_code")]
public string ProductCode { get; set; }
/// <summary>
/// 产品名称
/// </summary>
[SugarColumn(ColumnName = "product_name")]
public string ProductName { get; set; }
/// <summary>
/// 批号
/// </summary>
[SugarColumn(ColumnName = "batch_number")]
public string BatchNumber { get; set; }
/// <summary>
/// 单位
/// </summary>
public string Unit { get; set; }
public string Specification { get; set; }
/// <summary>
/// 供应商编码
/// </summary>
[SugarColumn(ColumnName = "supplier_code")]
public string SupplierCode { get; set; }
/// <summary>
/// 供应商名称
/// </summary>
[SugarColumn(ColumnName = "supplier_name")]
public string SupplierName { get; set; }
/// <summary>
/// 计划数量
/// </summary>
[SugarColumn(ColumnName = "plan_num")]
public decimal PlanNum { get; set; }
/// <summary>
/// 实际数量
/// </summary>
[SugarColumn(ColumnName = "actual_num")]
public decimal ActualNum { get; set; }
/// <summary>
/// 缺陷数量
/// </summary>
public decimal Quantity { get; set; }
/// <summary>
/// 工序名称
/// </summary>
[SugarColumn(ColumnName = "process_name")]
public string ProcessName { get; set; }
/// <summary>
/// 负责人
/// </summary>
public string Superintendent { get; set; }
/// <summary>
/// 缺陷描述
/// </summary>
[SugarColumn(ColumnName = "defect_description")]
public string DefectDescription { get; set; }
/// <summary>
/// 5M1E1-人 2-机 3-料 4-法 5-环 6-测)
/// </summary>
public int? Tqm { get; set; }
/// <summary>
/// 1报损单 2索赔单
/// </summary>
public int? Type { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 创建人
/// </summary>
[SugarColumn(ColumnName = "cREATED_BY")]
public string CreatedBy { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(ColumnName = "cREATED_TIME")]
public DateTime? CreatedTime { get; set; }
/// <summary>
/// 更新人
/// </summary>
[SugarColumn(ColumnName = "uPDATED_BY")]
public string UpdatedBy { get; set; }
/// <summary>
/// 更新时间
/// </summary>
[SugarColumn(ColumnName = "uPDATED_TIME")]
public DateTime? UpdatedTime { get; set; }
}
}

View File

@@ -0,0 +1,47 @@
using System.ComponentModel.DataAnnotations;
namespace DOAN.Model.MES.quality.IQC.Dto
{
/// <summary>
/// 缺陷类别查询对象
/// </summary>
public class QcDefectConfigQueryDto : PagerInfo
{
public string Name { get; set; }
public string Code { get; set; }
public string Group { get; set; }
public string QcType { get; set; }
public string Status { get; set; }
}
/// <summary>
/// 缺陷类别输入输出对象
/// </summary>
public class QcDefectConfigDto
{
[Required(ErrorMessage = "主键不能为空")]
public int Id { get; set; }
public string Name { get; set; }
public string Code { get; set; }
public string Group { get; set; }
public string QcType { get; set; }
public string Status { get; set; }
public string CreatedBy { get; set; }
public DateTime? CreatedTime { get; set; }
public string UpdatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
}
}

View File

@@ -0,0 +1,66 @@
namespace DOAN.Model.MES.quality.IQC
{
/// <summary>
/// 缺陷类别
/// </summary>
[SugarTable("qc_defect_config")]
public class QcDefectConfig
{
/// <summary>
/// 主键
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 编号
/// </summary>
public string Code { get; set; }
/// <summary>
/// 组
/// </summary>
public string Group { get; set; }
/// <summary>
/// 质检类别(FQC,IPQC,IQC)
/// </summary>
[SugarColumn(ColumnName = "qc_type")]
public string QcType { get; set; }
/// <summary>
/// 是否生效
/// </summary>
public string Status { get; set; }
/// <summary>
/// 创建人
/// </summary>
[SugarColumn(ColumnName = "cREATED_BY")]
public string CreatedBy { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(ColumnName = "cREATED_TIME")]
public DateTime? CreatedTime { get; set; }
/// <summary>
/// 更新人
/// </summary>
[SugarColumn(ColumnName = "uPDATED_BY")]
public string UpdatedBy { get; set; }
/// <summary>
/// 更新时间
/// </summary>
[SugarColumn(ColumnName = "uPDATED_TIME")]
public DateTime? UpdatedTime { get; set; }
}
}