using System;
using LeaRun.Application.Code;
namespace LeaRun.Application.Entity.BaseManage
{
///
/// 版 本
/// Copyright (c) 2013-2016 上海力软信息技术有限公司
/// 创建人:佘赐雄
/// 日 期:2015.11.4 14:31
/// 描 述:角色管理
///
public class RoleEntity : BaseEntity
{
#region 实体成员
///
/// 角色主键
///
public string RoleId { get; set; }
///
/// 机构主键
///
public string OrganizeId { get; set; }
///
/// 分类1-角色2-岗位3-职位4-工作组
///
public int? Category { get; set; }
///
/// 角色编码
///
public string EnCode { get; set; }
///
/// 角色名称
///
public string FullName { get; set; }
///
/// 公共角色
///
public int? IsPublic { get; set; }
///
/// 过期时间
///
public DateTime? OverdueTime { get; set; }
///
/// 排序码
///
public int? SortCode { get; set; }
///
/// 删除标记
///
public int? DeleteMark { get; set; }
///
/// 有效标志
///
public int? EnabledMark { get; set; }
///
/// 备注
///
public string Description { get; set; }
///
/// 创建日期
///
public DateTime? CreateDate { get; set; }
///
/// 创建用户主键
///
public string CreateUserId { get; set; }
///
/// 创建用户
///
public string CreateUserName { get; set; }
///
/// 修改日期
///
public DateTime? ModifyDate { get; set; }
///
/// 修改用户主键
///
public string ModifyUserId { get; set; }
///
/// 修改用户
///
public string ModifyUserName { get; set; }
#endregion
#region 扩展操作
///
/// 新增调用
///
public override void Create()
{
this.RoleId = Guid.NewGuid().ToString();
this.CreateDate = DateTime.Now;
this.CreateUserId = OperatorProvider.Provider.Current().UserId;
this.CreateUserName = OperatorProvider.Provider.Current().UserName;
this.DeleteMark = 0;
}
///
/// 编辑调用
///
///
public override void Modify(string keyValue)
{
this.RoleId = keyValue;
this.ModifyDate = DateTime.Now;
this.ModifyUserId = OperatorProvider.Provider.Current().UserId;
this.ModifyUserName = OperatorProvider.Provider.Current().UserName;
}
#endregion
}
}