2024-03-20 02:37:36 +00:00
|
|
|
|
using Admin.NET.Core;
|
|
|
|
|
namespace Admin.NET.Application.Entity;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 单位
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarTable("SysUnit","单位")]
|
|
|
|
|
public class SysUnit : EntityTenant
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建者部门Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "CreateOrgId", ColumnDescription = "创建者部门Id")]
|
|
|
|
|
public long? CreateOrgId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建者部门名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "CreateOrgName", ColumnDescription = "创建者部门名称", Length = 64)]
|
|
|
|
|
public string? CreateOrgName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required]
|
|
|
|
|
[SugarColumn(ColumnName = "Name", ColumnDescription = "名称", Length = 64)]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 编码
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required]
|
|
|
|
|
[SugarColumn(ColumnName = "CodeNum", ColumnDescription = "编码", Length = 32)]
|
|
|
|
|
public string CodeNum { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否启用
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required]
|
|
|
|
|
[SugarColumn(ColumnName = "IsEnable", ColumnDescription = "是否启用")]
|
|
|
|
|
public bool IsEnable { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "Code", ColumnDescription = "代码", Length = 64)]
|
|
|
|
|
public string? Code { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 换算率
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "Rate", ColumnDescription = "换算率")]
|
|
|
|
|
public int? Rate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 作为基本单位
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "IsBaseUnit", ColumnDescription = "作为基本单位")]
|
|
|
|
|
public bool? IsBaseUnit { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 精度
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "Accuracy", ColumnDescription = "精度")]
|
|
|
|
|
public int? Accuracy { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 外部编码
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "ExternalNumber", ColumnDescription = "外部编码", Length = 32)]
|
|
|
|
|
public string? ExternalNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 备注
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "Remarks", ColumnDescription = "备注", Length = 128)]
|
|
|
|
|
public string? Remarks { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 单位组ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "GroupUnitId", ColumnDescription = "单位组ID")]
|
|
|
|
|
public long? GroupUnitId { get; set; }
|
|
|
|
|
|
2024-05-28 10:30:50 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 子单位数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "ChildUnitCount", ColumnDescription = "子单位数量")]
|
|
|
|
|
public int ChildUnitCount { get; set; }
|
|
|
|
|
|
2024-03-20 02:37:36 +00:00
|
|
|
|
}
|