647556386
2025-10-18 d01658c63cd541fe4ea5cec5c4bd7f23b9408cdb
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Attributes;
using WIDESEA_Core.CodeConfigEnum;
 
namespace WIDESEA_DTO.Inbound
{
    public class AddInboundOrderModel
    {
        // <summary>
        /// 仓库Id
        /// </summary>
        [PropertyValidate("仓库Id", NotNullAndEmpty = true)]
        public int WarehouseId { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        [PropertyValidate("单据编号", NotNullAndEmpty = true)]
        public string OrderNo { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        [PropertyValidate("上游单据编号", NotNullAndEmpty = true)]
        public string UpperOrderNo { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        [PropertyValidate("单据类型", NotNullAndEmpty = true)]
        public int OrderType { get; set; }
        /// <summary>
        /// 报废明细
        /// </summary>
        [PropertyValidate("入库单明细", NotNullAndEmpty = true)]
        public List<InboundOrderDetailDTO> Details { get; set; }
    }
 
    [ModelValidate]
    public class InboundOrderDetailDTO
    {
        /// <summary>
        /// 物料编码
        /// </summary>
        [PropertyValidate("物料编码", NotNullAndEmpty = true)]
        public string MaterielCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        [PropertyValidate("物料名称", NotNullAndEmpty = true)]
        public string MaterielName { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        [PropertyValidate("批次号", NotNullAndEmpty = true)]
        public string BatchNo { get; set; }
 
        /// <summary>
        /// 供应商批次号
        /// </summary>
        [PropertyValidate("供应商批次号", NotNullAndEmpty = true)]
        public string SupplierBatch { get; set; }
        /// <summary>
        /// 单据数量
        /// </summary>
        [PropertyValidate("单据数量", NotNullAndEmpty = true)]
        public decimal OrderQuantity { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [PropertyValidate("备注", NotNullAndEmpty = false)]
        public string Remark { get; set; }
    }
}