feat 老系统档案上传功能
This commit is contained in:
45
Src/Dlhis.Entity/Basic/Entity/OldDeviceGainfoEntity.cs
Normal file
45
Src/Dlhis.Entity/Basic/Entity/OldDeviceGainfoEntity.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using Dlhis.Entity.Device.Enums;
|
||||
using SqlSugar;
|
||||
using SqlSugar.DbConvert;
|
||||
|
||||
namespace Dlhis.Entity.Basic.Entity;
|
||||
|
||||
/// <summary>
|
||||
/// 老系统设备档案
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "OldDeviceGainfos", TableDescription = "老系统设备档案")]
|
||||
public class OldDeviceGainfoEntity
|
||||
{
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "厂区")]
|
||||
public string Factory { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 档案号
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "档案号", IndexGroupNameList = new[] { "unique_OldGainfos_no_code_unique" })]
|
||||
public string No { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工号
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "工号", IndexGroupNameList = new[] { "unique_OldGainfos_no_code_unique" })]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备唯一号
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "设备唯一号", IndexGroupNameList = new[] { "unique_OldGainfos_no_code_unique" })]
|
||||
public string UniqueNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 处理状态
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "处理状态", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
||||
public OldDeviceGainfoEnumType Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注说明
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDataType = "varchar(2000)", ColumnDescription = "备注说明")]
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
28
Src/Dlhis.Entity/Device/Enums/OldDeviceGainfoEnumType.cs
Normal file
28
Src/Dlhis.Entity/Device/Enums/OldDeviceGainfoEnumType.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Dlhis.Entity.Device.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// 老系统设备档案状态
|
||||
/// </summary>
|
||||
[Description("老系统设备档案状态")]
|
||||
public enum OldDeviceGainfoEnumType
|
||||
{
|
||||
/// <summary>
|
||||
/// 待处理
|
||||
/// </summary>
|
||||
[Description("待处理")]
|
||||
Wait = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 已删除
|
||||
/// </summary>
|
||||
[Description("已删除")]
|
||||
Deleted = 10,
|
||||
|
||||
/// <summary>
|
||||
/// 错误
|
||||
/// </summary>
|
||||
[Description("错误")]
|
||||
Error = 99
|
||||
}
|
||||
Reference in New Issue
Block a user