Files
kunshan-bzfm-mes-backend/DOAN.Model/MES/Quality/IPQC/Dto/QcScrapRecordsDto.cs
git_rabbit 722ef40fd2 feat(报废管理): 实现报废单和转用单的创建与审批流程
添加报废审批DTO和供应商字段
实现创建报废单/转用单功能
新增审批和撤销报废记录接口
优化查询条件并生成唯一报废单号
2026-01-26 17:57:18 +08:00

102 lines
2.7 KiB
C#

namespace DOAN.Model.BZFM.Dto
{
/// <summary>
/// 报废记录表查询对象
/// </summary>
public class QcScrapRecordsQueryDto : PagerInfo
{
public string MaterialCode { get; set; }
public string ProductCode { get; set; }
public string Workorder { get; set; }
public string BatchNo { get; set; }
public DateTime? StartTime { get; set; }
public DateTime? EndTime { get; set; }
public string ScrapOrderNo { get; set; }
public string StoveCode { get; set; }
public string SupplierCode { get; set; }
public string ScrapType { get; set; }
public string LineCode { get; set; }
public string Status { get; set; }
}
/// <summary>
/// 报废记录表输入输出对象
/// </summary>
public class QcScrapRecordsDto
{
public string WorkStation { get; set; }
public int? Version { get; set; }
public long? TenantId { get; set; }
public DateTime? UpdatedTime { get; set; }
public long? UpdatedBy { get; set; }
public DateTime? CreatedTime { get; set; }
public long CreatedBy { get; set; }
public string Remark { get; set; }
public string LocationCode { get; set; }
public decimal CostImpact { get; set; }
public string QualityInspector { get; set; }
public string Status { get; set; }
public DateTime? ApprovalDate { get; set; }
[Required(ErrorMessage = "报废日期不能为空")]
public DateTime? ScrapDate { get; set; }
public string SupervisorName { get; set; }
public string Operator { get; set; }
public long Id { get; set; }
public string DisposalMethod { get; set; }
public string ScrapType { get; set; }
public string ScrapReason { get; set; }
public string Unit { get; set; }
[Required(ErrorMessage = "报废数量不能为空")]
public decimal ScrapQuantity { get; set; }
public string BatchNo { get; set; }
public string MaterialName { get; set; }
[Required(ErrorMessage = "物料编码不能为空")]
public string MaterialCode { get; set; }
public string ProductName { get; set; }
public string ProductCode { get; set; }
public string StoveCode { get; set; }
public string LineCode { get; set; }
public string Workorder { get; set; }
public string ScrapOrderNo { get; set; }
public string SupplierCode { get; set; }
public string SupplierName { get; set; }
[ExcelColumn(Name = "状态:草稿,待审批,已批准,已拒绝")]
public string StatusLabel { get; set; }
}
}