qinchulong
2024-10-12 7281004dc3854ed59e9164dcd27a59c8c2cf6667
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
using System;
using System.Collections.Generic;
using System.Linq;
using Magicodes.ExporterAndImporter.Core;
using SqlSugar;
using WIDESEA_Core.DB.Models;
namespace WIDESEA_Model.Models
{
    /// <summary>
    /// 入库单主表
    ///</summary>
    [SugarTable("Dt_InboundOrder")]
    public class Dt_InboundOrder : BaseEntity
    {
        
     
        /// <summary>
        /// 备  注:入库单ID
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="OrderId" ,IsPrimaryKey = true,IsIdentity = true) ]
        public int OrderId  { get; set;  } 
     
        /// <summary>
        /// 备  注:单据编号
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="InboundNo" ) ]
        public string? InboundNo  { get; set;  } 
     
        /// <summary>
        /// 备  注:上游单据编号
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="InboundUpperNo" ) ]
        public string? InboundUpperNo  { get; set;  } 
     
        /// <summary>
        /// 备  注:批次号
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="BatchNo" ) ]
        public string? BatchNo  { get; set;  } 
     
        /// <summary>
        /// 备  注:单据日期
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="InboundDate" ) ]
        public DateTime? InboundDate  { get; set;  }
 
        /// <summary>
        /// 备  注:上游单据类型 100 生产入库单;200 生产退料单;300 采购入库单;400 调拨入库单;500 销售退货单;600 空盘入库单;700 其他入库单
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="InboundType" ) ]
        public int? InboundType  { get; set;  } 
     
        /// <summary>
        /// 备  注:单据状态(0,未开始  1,组盘中  2,完成组盘 3,入库中  4,已入库 )
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="InboundState" ) ]
        public int? InboundState  { get; set;  } 
     
        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Remark" ) ]
        public string? Remark  { get; set;  } 
     
       
     
        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Spare1" ) ]
        public string? Spare1  { get; set;  } 
     
        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Spare2" ) ]
        public string? Spare2  { get; set;  } 
     
        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Spare3" ) ]
        public string? Spare3  { get; set;  } 
     
        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Spare4" ) ]
        public string? Spare4  { get; set;  } 
     
        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Spare5" ) ]
        public string? Spare5  { get; set;  }
 
        /// <summary>
        /// 入库单明细
        /// </summary>
        [SugarColumn(ColumnName = "Dt_InboundOrderDetailList")]
        [Navigate(NavigateType.OneToMany, nameof(Dt_InboundOrderDetail.OrderId))]
        public List<Dt_InboundOrderDetail> Dt_InboundOrderDetailList { get; set; }
    }
    
}