using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEA_Core.Attributes; using WIDESEA_Core.CodeConfigEnum; using WIDESEA_Core.DB.Models; namespace WIDESEA_Model.Models { /// /// 质检单 /// [SugarTable(nameof(Dt_CheckOrder), "质检单")] public class Dt_CheckOrder : BaseEntity { /// /// 主键 /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")] public int CheckOrderId { get; set; } /// /// 仓库主键 /// [SugarColumn(IsNullable = false, ColumnDescription = "仓库主键")] public int WarehouseId { get; set; } /// /// 检验单号 /// [CodeRule(RuleCodeEnum.CheckOrderRule)] [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "检验单号")] public string CheckOrderNo { get; set; } /// /// 收货单号/送检出库单号 /// [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "收货单号/送检出库单号")] public string ReceiveOrderNo { get; set; } /// /// 质检单状态 /// [SugarColumn(IsNullable = false, ColumnDescription = "质检单状态")] public int CheckOrderStatus { get; set; } /// /// 审批状态 /// [SugarColumn(IsNullable = false, ColumnDescription = "审批状态")] public int AuditStatus { get; set; } /// /// 收货单明细行号/送检出库详情行号 /// [SugarColumn(IsNullable = false, ColumnDescription = "收货单明细行号/送检出库详情行号")] public int ReceiveDetailRowNo { get; set; } /// /// 物料编号 /// [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "物料编号")] public string MaterielCode { get; set; } /// /// 批次号 /// [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "批次号")] public string LotNo { get; set; } /// /// 物料规格 /// [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "物料规格")] public string MaterielSpec { get; set; } /// /// 合格数量 /// [SugarColumn(IsNullable = true, ColumnDescription = "合格数量")] public float? QualifiedQuantity { get; set; } /// /// 特采数量 /// [SugarColumn(IsNullable = true, ColumnDescription = "特采数量")] public float? DefectedQuantity { get; set; } /// /// 退货数量 /// [SugarColumn(IsNullable = true, ColumnDescription = "退货数量")] public float? ReturnQuantity { get; set; } /// /// 报废数量 /// [SugarColumn(IsNullable = true, ColumnDescription = "报废数量")] public float? ScrappedQuantity { get; set; } /// /// 检验总数(收货数量) /// [SugarColumn(IsNullable = false, ColumnDescription = "检验总数")] public float ReceivedQuantity { get; set; } /// /// 检验结果 /// [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "检验结果")] public string Result { get; set; } /// /// 特采说明 /// [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "特采说明")] public string DefectedNote { get; set; } /// /// 检验人 /// [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "检验人")] public string CheckUserName { get; set; } /// /// 检验上传状态 /// [SugarColumn(IsNullable = true, ColumnDescription = "检验上传状态")] public int UploadStatus { get; set; } /// /// 单位 /// [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "单位")] public string Unit { get; set; } /// /// 检验单类型 /// [SugarColumn(IsNullable = true, ColumnDescription = "检验单类型")] public int OrderType { get; set; } /// /// 质检结果 /// [Navigate(NavigateType.OneToMany, nameof(Dt_CheckOrderResult.CheckOrderId), nameof(CheckOrderId))] public List Details { get; set; } } }