schangxiang@126.com
2024-09-06 cb212ea9a9b56540a7fec33f4ec198f59a99020a
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
182
183
using iWare.Wms.Core;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace iWare.Wms.Application
{
    /// <summary>
    /// 添加外部访问日志参数
    /// </summary>
    public class AddAccessInterfaceLogOutnput
    {
 
        /// <summary>
        /// 主键Id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Comment("Id主键")]
        public virtual long Id { get; set; }
 
        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public virtual DateTimeOffset? CreatedTime { get; set; }
 
        /// <summary>
        /// 更新时间
        /// </summary>
        [Comment("更新时间")]
        public virtual DateTimeOffset? UpdatedTime { get; set; }
 
        /// <summary>
        /// 创建者Id
        /// </summary>
        [Comment("创建者Id")]
        public virtual long? CreatedUserId { get; set; }
 
        /// <summary>
        /// 创建者名称
        /// </summary>
        [Comment("创建者名称")]
        [MaxLength(50)]
        public virtual string CreatedUserName { get; set; }
 
        /// <summary>
        /// 修改者Id
        /// </summary>
        [Comment("修改者Id")]
        public virtual long? UpdatedUserId { get; set; }
 
        /// <summary>
        /// 修改者名称
        /// </summary>
        [Comment("修改者名称")]
        [MaxLength(50)]
        public virtual string UpdatedUserName { get; set; }
 
 
        /// <summary>
        /// 工件号
        /// </summary>
        [Comment("工件号")]
 
        public string WorkPieceID { get; set; }
 
 
        /// <summary>
        /// 当前工序;进入下一工序前,此工序不变化
        /// </summary>
        [Comment("当前工序")]
 
        public string WorkingProcedureCurrent { get; set; }
 
        /// <summary>
        /// 质量状态
        /// </summary>
        public int? QualityState { get; set; }
 
        /// <summary>
        /// 调用行为
        /// </summary>
        [Comment("调用行为")]
        [Required]
        public int Action { get; set; }
 
        /// <summary>
        /// 操作接口
        /// </summary>
        [Comment("操作接口")]
        [MaxLength(200)]
        public string OperateAddress { get; set; }
 
        [Comment("操作人Id")]
        [MaxLength(200)]
        public string OperateUserId { get; set; }
 
        [Comment("操作人名称")]
        [MaxLength(200)]
        public string OperateUserName { get; set; }
 
        /// <summary>
        /// 操作Ip
        /// </summary>
        [Comment("操作Ip")]
        [MaxLength(50)]
        public string IPAddress { get; set; }
 
        /// <summary>
        /// 参数1
        /// </summary>
        [Comment("参数1")]
        [MaxLength(200)]
        public string Param1 { get; set; }
 
        /// <summary>
        /// 参数2
        /// </summary>
        [Comment("参数2")]
        [MaxLength(200)]
        public string Param2 { get; set; }
 
        /// <summary>
        /// 参数3
        /// </summary>
        [Comment("参数3")]
        [MaxLength(200)]
        public string Param3 { get; set; }
 
        /// <summary>
        /// 请求参数json
        /// </summary>
        [Comment("请求参数json")]
        public string ParaJSON { get; set; }
 
        /// <summary>
        /// 返回结果
        /// </summary>
        [Comment("返回结果")]
        public string ResultJson { get; set; }
 
        /// <summary>
        /// 关键字集合
        /// </summary>
        [Comment("关键字集合")]
        public string Keys { get; set; }
 
        /// <summary>
        /// 质量状态名称
        /// </summary>
        public string QualityStateName
        {
            get
            {
                if (1 == QualityState)
                {
                    return "合格";
 
                }
                else if (2 == QualityState)
                {
 
                    return "不合格";
                }
                else if (3 == QualityState)
                {
 
                    return "疑似";
                }
                else
                {
                    return "";
                }
            }
        }
    }
}