refactor(报废单): 重构报废单DTO和实体类结构 fix(报废单): 修复审批和撤销逻辑中的问题 feat(报废单): 添加工单关联和库存操作功能 style(报废单): 优化代码格式和注释
204 lines
5.6 KiB
C#
204 lines
5.6 KiB
C#
namespace DOAN.Model.BZFM
|
|
{
|
|
/// <summary>
|
|
/// 不良品记录表
|
|
/// </summary>
|
|
[SugarTable("qc_scrap_records")]
|
|
public class QcScrapRecords
|
|
{
|
|
// Keep original fields and attributes; only adjusted order for clarity.
|
|
|
|
/// <summary>
|
|
/// 主键ID
|
|
/// </summary>
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 报废单号
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "scrap_order_no")]
|
|
public string ScrapOrderNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 报废日期
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "scrap_date")]
|
|
public DateTime? ScrapDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 报废数量
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "scrap_quantity")]
|
|
public decimal ScrapQuantity { get; set; }
|
|
|
|
/// <summary>
|
|
/// 单位
|
|
/// </summary>
|
|
public string Unit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 处置方式
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "disposal_method")]
|
|
public string DisposalMethod { get; set; }
|
|
|
|
/// <summary>
|
|
/// 报废类型
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "scrap_type")]
|
|
public string ScrapType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 报废原因
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "scrap_reason")]
|
|
public string ScrapReason { get; set; }
|
|
|
|
/// <summary>
|
|
/// 成本影响金额
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "cost_impact")]
|
|
public decimal CostImpact { get; set; } = 0.00m;
|
|
|
|
/// <summary>
|
|
/// 当前记录状态
|
|
/// </summary>
|
|
public string Status { get; set; } = "待审批";
|
|
|
|
/// <summary>
|
|
/// 审批日期
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "approval_date")]
|
|
public DateTime? ApprovalDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 主管/班组长
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "supervisor_name")]
|
|
public string SupervisorName { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 质检员
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "quality_inspector")]
|
|
public string QualityInspector { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 操作员
|
|
/// </summary>
|
|
public string Operator { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 库位编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "location_code")]
|
|
public string LocationCode { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 工位
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "work_station")]
|
|
public string WorkStation { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 物料编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "material_code")]
|
|
public string MaterialCode { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 物料名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "material_name")]
|
|
public string MaterialName { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 产品编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "product_code")]
|
|
public string ProductCode { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 产品名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "product_name")]
|
|
public string ProductName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 批次号
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "batch_no")]
|
|
public string BatchNo { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 炉号
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "stove_code")]
|
|
public string StoveCode { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 线别
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "line_code")]
|
|
public string LineCode { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 工单号
|
|
/// </summary>
|
|
public string Workorder { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 供应商编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "supplier_code")]
|
|
public string SupplierCode { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 供应商名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "supplier_name")]
|
|
public string SupplierName { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
public string Remark { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 创建人ID
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "created_by")]
|
|
public long CreatedBy { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "created_time")]
|
|
public DateTime? CreatedTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 更新人ID
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "updated_by")]
|
|
public long? UpdatedBy { get; set; }
|
|
|
|
/// <summary>
|
|
/// 更新时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "updated_time")]
|
|
public DateTime? UpdatedTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 租户ID
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "tenant_id")]
|
|
public long? TenantId { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 版本号
|
|
/// </summary>
|
|
public int? Version { get; set; } = 1;
|
|
}
|
|
}
|