服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-10-17 b0bbf803a56ced1d89bd7c966686983259eae1e0
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
using System;
using SqlSugar;
using System.Linq;
using System.ComponentModel;
using System.Collections.Generic;
 
namespace Tiger.Model
{
    /// <summary>
    /// 实体:到货单(ERP)明细
    /// </summary>
    [Description("Primary:ID")]
    [Serializable]
    [SugarTable("V_BIZ_ERP_RECEIPT_DTL")]
    public class V_BIZ_ERP_RECEIPT_DTL : DbEntityWithAuth
    {
        #region 构造函数
        /// <summary>
        /// 实体:到货单(ERP)明细
        /// </summary>
        public V_BIZ_ERP_RECEIPT_DTL() {}
        #endregion
 
        #region 公共属性
        /// <summary>
        /// 单据ID
        /// </summary>
        public string BILLID { get; set; }
        /// <summary>
        /// 单据代码
        /// </summary>
        public string BILLCODE { get; set; }
        /// <summary>
        /// 单据行号
        /// </summary>
        public string BILLLINE { get; set; }
        /// <summary>
        /// 单据行状态
        /// </summary>
        public int LINESTATUS { get; set; }
        /// <summary>
        /// 物料代码
        /// </summary>
        public string ITEM_CODE { get; set; }
        /// <summary>
        /// 单位代码
        /// </summary>
        public string UNITCODE { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal QTY { get; set; }
        /// <summary>
        /// 合格数量
        /// </summary>
        public decimal QTYPASS { get; set; }
        /// <summary>
        /// 入库数量
        /// </summary>
        public decimal INSTOCKQTY { get; set; }
        /// <summary>
        /// 退货数量
        /// </summary>
        public decimal RETURNQTY { get; set; }
        /// <summary>
        /// 打印数量
        /// </summary>
        public int PRINTQTY { get; set; }
        /// <summary>
        /// 是否赠品
        /// </summary>
        public bool ISGIVEAWAY { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal PRICE { get; set; }
        /// <summary>
        /// 含税价格
        /// </summary>
        public decimal TAXPRICE { get; set; }
        /// <summary>
        /// 总价
        /// </summary>
        public decimal AMOUNT { get; set; }
        /// <summary>
        /// 所有总价
        /// </summary>
        public decimal ALLAMOUNT { get; set; }
        /// <summary>
        /// 来源单据代码
        /// </summary>
        public string SOURCECODE { get; set; }
        /// <summary>
        /// 来源单据类型
        /// </summary>
        public string SOURCETYPE { get; set; }
        /// <summary>
        /// 来源单据行号
        /// </summary>
        public string SOURCELINE { get; set; }
        /// <summary>
        /// ERP接收标志
        /// </summary>
        public int ERPRECEIPTFLAG { get; set; }
        /// <summary>
        /// EPR入库标志
        /// </summary>
        public int ERPINSTOCKFLAG { get; set; }
        /// <summary>
        /// 扫描数量
        /// </summary>
        public decimal SCANQTY { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string REMARK { get; set; }
        /// <summary>
        /// ERP单据代码
        /// </summary>
        public string ERP_BILL_CODE { get; set; }
        /// <summary>
        /// 采购单号
        /// </summary>
        public string PONO { get; set; }
        /// <summary>
        /// 采购单行号
        /// </summary>
        public string POLINE { get; set; }
        /// <summary>
        /// 仓库代码
        /// </summary>
        public string WAREHOUSECODE { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string ITEM_NAME { get; set; }
        /// <summary>
        /// 欠入数量
        /// </summary>
        public string OWEIN_QTY { get; set; }
        #endregion
 
        #region 虚拟属性
        /*例子
        [SugarColumn(IsIgnore = true)]
        public string FieldName { get; set; }
        */
        #endregion
 
        #region 外键属性
        /*例子
        //一对一外键导航
        [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是BIZ_ERP_RECEIPT_DTL类里面的外键ID字段
        public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null
        //一对多外键导航
        [Navigate(NavigateType.OneToMany, nameof(ClassA.BIZ_ERP_RECEIPT_DTLId))]//ClassA表中的BIZ_ERP_RECEIPT_DTLId
        public List<ClassA> ClassAList { get; set; }//注意禁止手动赋值,只能是null
        //多对多外键导航
        [Navigate(typeof(MappingClass), nameof(MappingClass.BIZ_ERP_RECEIPT_DTLId), nameof(MappingClass.ClassAId))]//注意顺序
        public List<ClassA> ClassAList { get; set; } //注意禁止手动赋值,只能是null
        */
        #endregion
 
        #region 枚举变量
        /*例子
        public enum FieldNames
        {
            [Description("枚举描述0")]
            Enum0,
            [Description("枚举描述1")]
            Enum1,
        }
        */
        #endregion
 
        #region 公共方法
 
        #endregion
 
    }//endClass
}