using LeaRun.Application.Code;
using System;
namespace LeaRun.Application.Entity.SystemManage
{
///
/// 版 本 6.1
/// Copyright (c) 2013-2016 上海力软信息技术有限公司
/// 创建人:佘赐雄
/// 日 期:2015.11.17 9:56
/// 描 述:数据字典分类
///
public class DataItemEntity : BaseEntity
{
#region 实体成员
///
/// 分类主键
///
public string ItemId { get; set; }
///
/// 父级主键
///
public string ParentId { get; set; }
///
/// 分类编码
///
public string ItemCode { get; set; }
///
/// 分类名称
///
public string ItemName { get; set; }
///
/// 树型结构
///
public int? IsTree { get; set; }
///
/// 导航标记
///
public int? IsNav { 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.ItemId = 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.ItemId = keyValue;
this.ModifyDate = DateTime.Now;
this.ModifyUserId = OperatorProvider.Provider.Current().UserId;
this.ModifyUserName = OperatorProvider.Provider.Current().UserName;
}
#endregion
}
}