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