1
yanjinhui
2025-09-29 18ef8c37e6290ba6f47cbd5bbd26e56a682d767e
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
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(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
        public int Id { get; set; }
 
        [SugarColumn(IsNullable =true,Length =50,ColumnDescription ="入库单号")]
        public  string Order_no { get; set; }
 
 
        [SugarColumn(IsNullable = true, Length = 3, ColumnDescription = "入库类型:1正常/3退货")]
        public string Order_type { get; set; }
 
        
 
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "供应商代码")]
        public string Supplier_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; }
 
        //上游完成状态:未完成,部分完成,已完成   
        //[SugarColumn(ColumnName = "UpOrderStatus", IsNullable = true, Length = 50, ColumnDescription = "给上游状态")]
        //public string UpOrderStatus { 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; }
 
      
    }
}