feature:组织实体添加区域代码

This commit is contained in:
2021-04-26 13:11:02 +08:00
parent 19aeb3b202
commit 0822b56822
2 changed files with 21 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore;
using Ewide.Core.Entity;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
@@ -60,12 +61,20 @@ namespace Ewide.Core
[Comment("备注")]
public string Remark { get; set; }
/// <summary>
/// 状态(字典 0正常 1停用 2删除
/// </summary>
[Comment("状态")]
public CommonStatus Status { get; set; } = CommonStatus.ENABLE;
[Comment("组织所在区域代码")]
public string AreaNumberCode { get; set; }
/// <summary>
/// 一对一 一个组织对应一个区域代码
/// </summary>
public AreaNumber AreaNumber { get; set; }
/// <summary>
/// 多对多(用户)
/// </summary>

View File

@@ -32,6 +32,16 @@ namespace Ewide.Core
/// 自定义数据
/// </summary>
[Description("自定义数据")]
DEFINE = 5
DEFINE = 5,
/// <summary>
/// 本部门所在区域及以下区域
/// </summary>
[Description("本部门所在区域及以下区域")]
AREA_WITH_CHILD = 6,
/// <summary>
/// 本部门所在区域数据 不包括下面区域
/// </summary>
[Description("仅本部门所在区域数据")]
AREA = 7,
}
}