1
yanjinhui
2025-09-24 bd09f6b4fdb821c9fb63e4dd0e9b184d29e9f148
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
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_CabinOrderDetail", "入库明细表")]
    public class Dt_CabinOrderDetail:BaseEntity
    {
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
        public int  Id { get; set; }
 
        // 修正:关联字段应该是主表的Id(不是Order_no)
        [SugarColumn(ColumnName = "OrderId", ColumnDescription = "关联入库单ID")]
        public int OrderId { get; set; }
 
        //区域(自己建立或者他们直接给出来)
        [SugarColumn(ColumnName = "Reservoirarea", IsNullable = true, Length = 50, ColumnDescription = "库区")]
        public string Reservoirarea { get; set; }
 
        [SugarColumn(ColumnName = "Goods_no", IsNullable = true, Length = 50, ColumnDescription = "药品编码")]
        public string  Goods_no { get; set; }
 
 
        [SugarColumn(ColumnName = "Order_qty", IsNullable = true, ColumnDescription = "入库数量,退货时为负数")]
        public decimal Order_qty { get; set; }
 
        [SugarColumn(ColumnName = "Batch_num", IsNullable = true, Length = 50, ColumnDescription = "批号")]
        public string  Batch_num { get; set; }
 
        [SugarColumn(ColumnName = "Exp_date", IsNullable = true, Length = 8, ColumnDescription = "校期(yyyymmmdd)")]
        public  string  Exp_date { get; set; }
 
        //库房号
        [SugarColumn(ColumnName = "Warehouse_no", IsNullable = true, ColumnDescription = "库房号")]
        public string Warehouse_no { get; set; }
 
        //盘盈明细--》料箱号,数量
        //public List<> StocktakingDetails { get; set; }
 
        //状态
        [SugarColumn(ColumnName = "Status", IsNullable = true, ColumnDescription = "状态")]
        public int Status { get; set; }
    }
}