服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2025-02-27 d0be552afd02de828036aa53ecf0f22e67aa599a
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
using System;
using SqlSugar;
using System.Linq;
using System.ComponentModel;
using System.Collections.Generic;
 
namespace Tiger.Model
{
    /// <summary>
    /// 实体:标签模板变量
    /// </summary>
    [Description("Primary:ID")]
    [DisplayName("标签模板变量")]
    [Serializable]
    [SugarTable("BAS_LABEL_VAR")]
    public class BAS_LABEL_VAR : DbEntityWithAuth
    {
        #region 构造函数
        /// <summary>
        /// 实体:标签模板变量
        /// </summary>
        public BAS_LABEL_VAR() { }
        #endregion
 
        #region 公共属性
        /// <summary>
        /// 标签模板ID
        /// </summary>
        [DisplayName("标签模板ID")]
        public string LABEL_ID { get; set; }
        /// <summary>
        /// 变量名
        /// </summary>
        [DisplayName("变量名")]
        public string VAR_NAME { get; set; }
        /// <summary>
        /// 变量类型(0Constant常量|1ProcessVariable过程变量|2DateVariable日期变量|3CustomVariable自定义变量|4BarcodeGenerate条码生成)
        /// </summary>
        [DisplayName("变量类型(0Constant常量|1ProcessVariable过程变量|2DateVariable日期变量|3CustomVariable自定义变量|4BarcodeGenerate条码生成)")]
        public int VAR_TYPE { get; set; }
        /// <summary>
        /// 变量值
        /// </summary>
        [DisplayName("变量值")]
        public string VAR_VALUE { get; set; }
        /// <summary>
        /// 条码生成规则
        /// </summary>
        [DisplayName("条码生成规则")]
        public string BARCODE_RULE { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [DisplayName("备注")]
        public string REMARK { get; set; }
        #endregion
 
        #region 虚拟属性
        /*例子
        [SugarColumn(IsIgnore = true)]
        public string FieldName { get; set; }
        */
        /// <summary>
        /// 返回的变量值
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string Value { get; set; }
        #endregion
 
        #region 外键属性
        /*例子
        //一对一外键导航
        [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是BAS_LABEL_VAR类里面的外键ID字段
        public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null
        //一对多外键导航
        [Navigate(NavigateType.OneToMany, nameof(ClassA.BAS_LABEL_VARId))]//ClassA表中的BAS_LABEL_VARId
        public List<ClassA> ClassAList { get; set; }//注意禁止手动赋值,只能是null
        //多对多外键导航
        [Navigate(typeof(MappingClass), nameof(MappingClass.BAS_LABEL_VARId), nameof(MappingClass.ClassAId))]//注意顺序
        public List<ClassA> ClassAList { get; set; } //注意禁止手动赋值,只能是null
        */
        #endregion
 
        #region 枚举变量
        /*例子
        public enum FieldNames
        {
            [Description("枚举描述0")]
            Enum0,
            [Description("枚举描述1")]
            Enum1,
        }
        */
 
        /// <summary>
        /// 枚举:变量类型(0Constant常量|1ProcessVariable过程变量|2DateVariable日期变量|3CustomVariable自定义变量|4BarcodeGenerate条码生成)
        /// </summary>
        public enum VAR_TYPEs
        {
            [Description("常量")]
            Constant = 0,
            [Description("过程变量")]
            ProcessVariable = 1,
            [Description("日期变量")]
            DateVariable = 2,
            [Description("自定义变量")]
            CustomVariable = 3,
            [Description("条码生成")]
            BarcodeGenerate = 4,
        }
        #endregion
 
        #region 公共方法
 
        #endregion
 
    }//endClass
}