DataItemEntity.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. using LeaRun.Application.Code;
  2. using System;
  3. namespace LeaRun.Application.Entity.SystemManage
  4. {
  5. /// <summary>
  6. /// 版 本 6.1
  7. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  8. /// 创建人:佘赐雄
  9. /// 日 期:2015.11.17 9:56
  10. /// 描 述:数据字典分类
  11. /// </summary>
  12. public class DataItemEntity : BaseEntity
  13. {
  14. #region 实体成员
  15. /// <summary>
  16. /// 分类主键
  17. /// </summary>
  18. public string ItemId { get; set; }
  19. /// <summary>
  20. /// 父级主键
  21. /// </summary>
  22. public string ParentId { get; set; }
  23. /// <summary>
  24. /// 分类编码
  25. /// </summary>
  26. public string ItemCode { get; set; }
  27. /// <summary>
  28. /// 分类名称
  29. /// </summary>
  30. public string ItemName { get; set; }
  31. /// <summary>
  32. /// 树型结构
  33. /// </summary>
  34. public int? IsTree { get; set; }
  35. /// <summary>
  36. /// 导航标记
  37. /// </summary>
  38. public int? IsNav { get; set; }
  39. /// <summary>
  40. /// 排序码
  41. /// </summary>
  42. public int? SortCode { get; set; }
  43. /// <summary>
  44. /// 删除标记
  45. /// </summary>
  46. public int? DeleteMark { get; set; }
  47. /// <summary>
  48. /// 有效标志
  49. /// </summary>
  50. public int? EnabledMark { get; set; }
  51. /// <summary>
  52. /// 备注
  53. /// </summary>
  54. public string Description { get; set; }
  55. /// <summary>
  56. /// 创建日期
  57. /// </summary>
  58. public DateTime? CreateDate { get; set; }
  59. /// <summary>
  60. /// 创建用户主键
  61. /// </summary>
  62. public string CreateUserId { get; set; }
  63. /// <summary>
  64. /// 创建用户
  65. /// </summary>
  66. public string CreateUserName { get; set; }
  67. /// <summary>
  68. /// 修改日期
  69. /// </summary>
  70. public DateTime? ModifyDate { get; set; }
  71. /// <summary>
  72. /// 修改用户主键
  73. /// </summary>
  74. public string ModifyUserId { get; set; }
  75. /// <summary>
  76. /// 修改用户
  77. /// </summary>
  78. public string ModifyUserName { get; set; }
  79. #endregion
  80. #region 扩展操作
  81. /// <summary>
  82. /// 新增调用
  83. /// </summary>
  84. public override void Create()
  85. {
  86. this.ItemId = Guid.NewGuid().ToString();
  87. this.CreateDate = DateTime.Now;
  88. this.CreateUserId = OperatorProvider.Provider.Current().UserId;
  89. this.CreateUserName = OperatorProvider.Provider.Current().UserName;
  90. this.DeleteMark = 0;
  91. }
  92. /// <summary>
  93. /// 编辑调用
  94. /// </summary>
  95. /// <param name="keyValue"></param>
  96. public override void Modify(string keyValue)
  97. {
  98. this.ItemId = keyValue;
  99. this.ModifyDate = DateTime.Now;
  100. this.ModifyUserId = OperatorProvider.Provider.Current().UserId;
  101. this.ModifyUserName = OperatorProvider.Provider.Current().UserName;
  102. }
  103. #endregion
  104. }
  105. }