wangxinhui
4 天以前 9ec715d2deb18a269dd49c48da91a36632d08c81
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
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>
        [Navigate(NavigateType.OneToMany, nameof(Dt_CheckOrderResult.CheckOrderId), nameof(CheckOrderId))]
        public List<Dt_CheckOrderResult> Details { get; set; }
    }
}