123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- using LeaRun.Application.Code;
- using System;
- namespace LeaRun.Application.Entity.SystemManage
- {
- /// <summary>
- /// 版 本 6.1
- /// Copyright (c) 2013-2016 上海力软信息技术有限公司
- /// 创建人:佘赐雄
- /// 日 期:2015.11.17 9:56
- /// 描 述:数据字典分类
- /// </summary>
- public class DataItemEntity : BaseEntity
- {
- #region 实体成员
- /// <summary>
- /// 分类主键
- /// </summary>
- public string ItemId { get; set; }
- /// <summary>
- /// 父级主键
- /// </summary>
- public string ParentId { get; set; }
- /// <summary>
- /// 分类编码
- /// </summary>
- public string ItemCode { get; set; }
- /// <summary>
- /// 分类名称
- /// </summary>
- public string ItemName { get; set; }
- /// <summary>
- /// 树型结构
- /// </summary>
- public int? IsTree { get; set; }
- /// <summary>
- /// 导航标记
- /// </summary>
- public int? IsNav { get; set; }
- /// <summary>
- /// 排序码
- /// </summary>
- public int? SortCode { get; set; }
- /// <summary>
- /// 删除标记
- /// </summary>
- public int? DeleteMark { get; set; }
- /// <summary>
- /// 有效标志
- /// </summary>
- public int? EnabledMark { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- public string Description { get; set; }
- /// <summary>
- /// 创建日期
- /// </summary>
- public DateTime? CreateDate { get; set; }
- /// <summary>
- /// 创建用户主键
- /// </summary>
- public string CreateUserId { get; set; }
- /// <summary>
- /// 创建用户
- /// </summary>
- public string CreateUserName { get; set; }
- /// <summary>
- /// 修改日期
- /// </summary>
- public DateTime? ModifyDate { get; set; }
- /// <summary>
- /// 修改用户主键
- /// </summary>
- public string ModifyUserId { get; set; }
- /// <summary>
- /// 修改用户
- /// </summary>
- public string ModifyUserName { get; set; }
- #endregion
- #region 扩展操作
- /// <summary>
- /// 新增调用
- /// </summary>
- 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;
- }
- /// <summary>
- /// 编辑调用
- /// </summary>
- /// <param name="keyValue"></param>
- 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
- }
- }
|