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