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