You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DSWMS/Vue.Net/VOL.Entity/DomainModels/System/Sys_Role.cs

143 lines
3.7 KiB
C#

2 years ago
using Newtonsoft.Json;
/*
*,
*Model
*/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;
namespace VOL.Entity.DomainModels
{
[Entity(TableCnName = "角色管理",TableName = "Sys_Role_Core")]
[Table("Sys_Role_Core")]
public class Sys_Role:BaseEntity
{
/// <summary>
///角色ID
/// </summary>
[Key]
[Display(Name = "角色ID")]
[MaxLength(50)]
[Column(TypeName = "varchar(50)")]
[Required(AllowEmptyStrings = false)]
public string Role_Id { get; set; }
/// <summary>
///父级ID
/// </summary>
[Display(Name ="父级ID")]
[MaxLength(50)]
[Column(TypeName="varchar(50)")]
[Editable(true)]
public string ParentId { get; set; }
/// <summary>
///角色名称
/// </summary>
[Display(Name ="角色名称")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
[Editable(true)]
public string RoleName { get; set; }
/// <summary>
///部门ID
/// </summary>
[Display(Name ="部门ID")]
[MaxLength(50)]
[Column(TypeName="varchar(50)")]
public string Dept_Id { get; set; }
/// <summary>
///部门名称
/// </summary>
[Display(Name ="部门名称")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
[Editable(true)]
public string DeptName { get; set; }
/// <summary>
///限制于本公司
/// </summary>
[Display(Name ="限制于本公司")]
[Column(TypeName="bit")]
[Editable(true)]
public bool? LimitCompanyRange { get; set; }
/// <summary>
///受仓库的子表 OP_WMS_STOREHOUSE_USERLIMIT 中的人员列表限制
/// </summary>
[Display(Name = "受仓库人员权限限制")]
[Column(TypeName = "bit")]
[Editable(true)]
public bool? LimitBySTORAGE { get; set; }
/// <summary>
///是否启用
/// </summary>
[Display(Name ="是否启用")]
[Column(TypeName="tinyint")]
[Editable(true)]
public byte? Enable { get; set; }
/// <summary>
///排序
/// </summary>
[Display(Name ="排序")]
[Column(TypeName="int")]
public int? OrderNo { get; set; }
/// <summary>
///创建人
/// </summary>
[Display(Name ="创建人")]
[MaxLength(50)]
[Column(TypeName="varchar(50)")]
[Editable(true)]
public string Creator { get; set; }
/// <summary>
///创建时间
/// </summary>
[Display(Name ="创建时间")]
[Column(TypeName="datetime")]
[Editable(true)]
public DateTime? CreateDate { get; set; }
/// <summary>
///修改人
/// </summary>
[Display(Name ="修改人")]
[MaxLength(50)]
[Column(TypeName="varchar(50)")]
[Editable(true)]
public string Modifier { get; set; }
/// <summary>
///修改时间
/// </summary>
[Display(Name ="修改时间")]
[Column(TypeName="datetime")]
[Editable(true)]
public DateTime? ModifyDate { get; set; }
/// <summary>
///
/// </summary>
[Display(Name ="DeleteBy")]
[MaxLength(50)]
[JsonIgnore]
[Column(TypeName="varchar(50)")]
public string DeleteBy { get; set; }
}
}