schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataEntity;
using SqlSugar;
 
namespace DataEntity
{
    ///<summary>
    /// 实验表
    ///</summary>
    [SugarTable("experiment")]
    public class ExperimentModel
    {
        /// <summary>
        /// 编号
        /// </summary>
        [SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
        public string indexNum { get; set; }    
 
        /// <summary>
        /// 实验Id
        /// </summary>
        [SugarColumn(ColumnName = "ExperimentId")]
        public string ExperimentId { get; set; }
 
        /// <summary>
        /// 实验名称
        /// </summary>
        [SugarColumn(ColumnName = "ExperimentName")]
        public string ExperimentName { get; set; }
 
        /// <summary>
        /// 实验xml文本内容
        /// </summary>
        [SugarColumn(ColumnName = "ExperimentXmlContent")]
        public string ExperimentXmlContent { get; set; }
 
        /// <summary>
        /// 实验文件全路径
        /// </summary>
        [SugarColumn(ColumnName = "ExperimentFile")]
        public string ExperimentFile { get; set; }
 
        ///// <summary>
        ///// 创建时间
        ///// </summary>
        //[SugarColumn(ColumnName = "CreateTime")]
        //public DateTime CreateTime { get; set; }
 
        ///// <summary>
        ///// 更新时间
        ///// </summary>
        //[SugarColumn(ColumnName = "UpdateTime")]
        //public DateTime UpdateTime { get; set; }
 
        /// <summary>
        /// 开始运行时间
        /// </summary>
        [SugarColumn(ColumnName = "LunchTime")]
        public DateTime LunchTime { get; set; }
 
        /// <summary>
        /// 结束运行时间
        /// </summary>
        [SugarColumn(ColumnName = "EndTime")]
        public DateTime EndTime { get; set; }
 
        /// <summary>
        /// 实验状态: 0:未开始, 2:等待中, 3:实验中, 4:已完成, 5:暂停, 6:终止
        /// </summary>
        [SugarColumn(ColumnName = "Status")]
        public int Status { get; set; }
 
        /// <summary>
        /// 运行操作者
        /// </summary>
        [SugarColumn(ColumnName = "OperaterName")]
        public string OperaterName { get; set; }
 
        /// <summary>
        /// 来源barcode,多个用","分割
        /// </summary>
        [SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
        public string SourceBarcodes { get; set; }
 
        /// <summary>
        /// 目标barcode,多个用","分割
        /// </summary>
        [SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
        public string TargetBarcodes { get; set; }
 
        #region Del
        //private int _totalrun;
        ///// <summary>
        ///// 运行总次数
        ///// </summary>
        //public int totalrun
        //{
        //    get { return _totalrun; }
        //    set
        //    {
        //        _totalrun = value;
        //        OnPropertyChanged("totalrun");
        //    }
        //}
 
        //private int _totalsuccessrun;
        ///// <summary>
        ///// 运行成功次数
        ///// </summary>
        //public int totalsuccessrun
        //{
        //    get { return _totalsuccessrun; }
        //    set
        //    {
        //        _totalsuccessrun = value;
        //        OnPropertyChanged("totalsuccessrun");
        //    }
        //}
 
        //private int _totalfailrun;
        ///// <summary>
        ///// 运行失败次数
        ///// </summary>
        //public int totalfailrun
        //{
        //    get { return _totalfailrun; }
        //    set
        //    {
        //        _totalfailrun = value;
        //        OnPropertyChanged("totalfailrun");
        //    }
        //}
        #endregion
    }
 
    #region 实验状态
    /// <summary>
    /// 实验状态: 0:未开始, 2:等待中, 3:实验中, 4:已完成, 5:暂停, 6:终止
    /// </summary>
    public enum ExpStatusEnum
    {
        /// <summary>
        /// 未开始
        /// </summary>
        [Description("未开始")]
        NoRun = 1,
        /// <summary>
        /// 等待中
        /// </summary>
        [Description("等待中")]
        Wait = 2,
        /// <summary>
        /// 实验中
        /// </summary>
        [Description("实验中")]
        Running = 3,
        /// <summary>
        /// 已完成
        /// </summary>
        [Description("已完成")]
        Completed = 4,
        /// <summary>
        /// 暂停
        /// </summary>
        [Description("暂停")]
        Pause = 5,
        /// <summary>
        /// 终止
        /// </summary>
        [Description("终止")]
        Stop = 6
    }
    #endregion
 
}