dengjunjie
2025-10-25 3212f32acdce5938956131ecfb530e361250f82f
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_CabinOrder", "入库单表")]
    public class Dt_CabinOrder:BaseEntity
    {
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
 
        public int Id { get; set; }
 
        [SugarColumn(IsNullable =true,Length =50,ColumnDescription ="入库单号")]
        public  string Order_no { get; set; }
 
 
        /// <summary>
        /// 上游入库单类型为:1正常入库,2出库退货,5盘盈入库
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 3, ColumnDescription = "入库类型:1正常入库,2出库退货,5盘盈入库")]
        public string Order_type { get; set; }
 
        
 
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "供应商代码")]
        public string Supplier_no { get; set; }
 
 
        [SugarColumn(IsNullable = true, Length = 100, ColumnDescription = "供应商名称")]
        public string Supplier_name { get; set; }
 
 
        //库房号
        [SugarColumn(ColumnName = "Warehouse_no", IsNullable = true, ColumnDescription = "库房号001")]
        public string Warehouse_no { get; set; }
 
        [SugarColumn(IsNullable = true, ColumnDescription = "入库记账时间")]
        public DateTime?Account_tiem { get; set; }
 
        /// <summary>
        /// 下游状态 新建,开始,已完成
        /// 下游下发(新建)
        /// 详情开始(开始)
        /// 详情全部完成(已完成,上传给上游系统,移入历史表删除信息)
        /// </summary>
        [SugarColumn(ColumnName = "OdrderStatus",IsNullable = true,Length =50, ColumnDescription = "表头状态")]
        public string OdrderStatus { get; set; }
 
        //下面是否需要这些字段?
        //优先级 priority
        //[SugarColumn(ColumnName ="Priority",IsNullable =true,ColumnDescription ="优先级")]
        //public int Priority { get; set; }
 
 
 
        //是否取消 Iscancel
        //[SugarColumn(ColumnName = "Iscancel", IsNullable = true, ColumnDescription = "是否取消(1是0否)")]
        //public int Iscancel { get; set; }
 
        [Navigate(NavigateType.OneToMany,nameof(Dt_CabinOrderDetail.OrderId))]
        public List<Dt_CabinOrderDetail> Details { get; set; }
 
      
    }
}