feat 设备连接注册,sap人事范围,部门

This commit is contained in:
2023-12-28 16:04:00 +08:00
parent 25f7b3270c
commit d7cf07d940
48 changed files with 633 additions and 65 deletions

View File

@@ -0,0 +1,28 @@
using SqlSugar;
namespace Dlhis.Entity.Basic.Entity;
/// <summary>
/// 部门
/// </summary>
[SugarTable(TableName = "Department", TableDescription = "部门")]
public class DepartmentEntity : SugarBaseEntity
{
/// <summary>
/// 部门号
/// </summary>
[SugarColumn(ColumnDescription = "部门号")]
public string Code { get; set; }
/// <summary>
/// 上级部门号
/// </summary>
[SugarColumn(ColumnDescription = "上级部门号")]
public string PCode { get; set; }
/// <summary>
/// 部门名称
/// </summary>
[SugarColumn(ColumnDescription = "部门名称")]
public string Name { get; set; }
}

View File

@@ -43,7 +43,7 @@ public class DeviceEntity : SugarBaseEntity, ITenantId
/// <summary>
/// 设备功能
/// </summary>
[SugarColumn(ColumnDataType = "varchar(150)", IsJson = true, ColumnDescription = "设备功能")]
[SugarColumn(ColumnDataType = "varchar(150)", IsJson = true, ColumnDescription = "设备功能", DefaultValue = "[]")]
public List<DeviceFuncEnumType> Funcs { get; set; }
/// <summary>
@@ -95,12 +95,5 @@ public class DeviceEntity : SugarBaseEntity, ITenantId
[SugarColumn(ColumnDataType = "bit", ColumnDescription = "是否启用")]
public bool Enable { get; set; }
/// <summary>
/// 设别状态
/// </summary>
[SugarColumn(ColumnDescription = "设别状态")]
public string Status { get; set; }
public string TenantId { get; set; }
}

View File

@@ -144,9 +144,10 @@ public class GainfoEntity : SugarBaseEntity
/// </summary>
[SugarColumn(ColumnDescription = "外文名字")]
public string Gname_en { get; set; }
/// <summary>
/// 卡号
/// </summary>
[SugarColumn(ColumnDescription = "人事范围")]
public string Werks { get; set; }
[SugarColumn(ColumnDescription = "卡号")]
public string CarNo { get; set; }
}

View File

@@ -0,0 +1,25 @@
using SqlSugar;
namespace Dlhis.Entity.Basic.Entity;
[SugarTable(TableName = "Werk", TableDescription = "人事范围")]
public class WerkEntity : SugarBaseEntity
{
/// <summary>
/// 代号
/// </summary>
[SugarColumn(ColumnDescription = "代号")]
public string Code { get; set; }
/// <summary>
/// 名称
/// </summary>
[SugarColumn(ColumnDescription = "名称")]
public string Name { get; set; }
/// <summary>
/// 是否可见
/// </summary>
[SugarColumn(ColumnDescription = "是否可见", ColumnDataType = "bit")]
public bool Visible { get; set; }
}