dengjunjie
2025-10-15 6c7a356b784efde61e2babc17fa6e05047dcc5a7
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
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.DB.Models;
 
namespace WIDESEA_Model.Models
{
    [SugarTable("Dt_DeliveryOrder", "出库单")]
    public  class Dt_DeliveryOrder: BaseEntity
    {
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
        public  int  Id { get; set; }
 
        [SugarColumn(ColumnName = "Out_no", IsNullable = true, Length = 50, ColumnDescription = "出库单号")]
        public string   Out_no{ get; set; }
        /// <summary>
        /// 盘点出库在WMS系统人工创建
        /// </summary>
        [SugarColumn(ColumnName = "Out_type", IsNullable = true, Length = 3, ColumnDescription = "出库单类型1正常,2出库退货,3盘点出库")]
        public string  Out_type { get; set; }
 
        [SugarColumn(ColumnName = "Client_no", IsNullable = true, Length = 50, ColumnDescription = "客户代码")]
        public string Client_no { get; set; }
 
 
        [SugarColumn(ColumnName = "Client_name", IsNullable = true, Length = 50, ColumnDescription = "客户名称")]
        public string Client_name { get; set; }
 
 
        //库房号
        [SugarColumn(ColumnName = "Warehouse_no", IsNullable = true, ColumnDescription = "库房号001给wcs")]
        public string Warehouse_no { get; set; }
 
 
 
 
        [SugarColumn(ColumnName = "Account_time", IsNullable = true, ColumnDescription = "出库记账时间")]
        public DateTime?Account_time { get; set; }
 
        /// <summary>
        /// 表头状态:新建,开始,已完成 //详情表全部状态为全部,在将状态改成完成后才会上传给上游系统
        /// </summary>
        [SugarColumn(ColumnName = "OutStatus", IsNullable = true, ColumnDescription = "状态" )]
        public string OutStatus { get; set; }
 
        ///// <summary>
        ///// 上游表头状态:未完成,部分完成,已完成
        ///// </summary>
        //[SugarColumn(ColumnName = "UpOutStatus", IsNullable = true, ColumnDescription = "给上游入库状态,")]
        //public string UpOutStatus { get; set; }
 
 
 
        //是否需要下面的字段
        //优先级 priority
        //是否取消 Is_cancel
 
        //优先级 priority
        //[SugarColumn(ColumnName = "Priority", IsNullable = true, ColumnDescription = "优先级")]
        //public int Priority { get; set; }
 
        ////是否取消 Iscancel
        //[SugarColumn(ColumnName = "Iscancel", IsNullable = true, ColumnDescription = "是否取消")]
        //public int Iscancel { get; set; }
        [Navigate(NavigateType.OneToMany, nameof(Dt_DeliveryOrderDetail.DeliveryOrderId))]
        public List<Dt_DeliveryOrderDetail> Details { get; set; }
    }
}