AreaEntity.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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.12 16:40
  10. /// 描 述:区域管理
  11. /// </summary>
  12. public class AreaEntity : BaseEntity
  13. {
  14. #region 实体成员
  15. /// <summary>
  16. /// 区域主键
  17. /// </summary>
  18. public string AreaId { get; set; }
  19. /// <summary>
  20. /// 父级主键
  21. /// </summary>
  22. public string ParentId { get; set; }
  23. /// <summary>
  24. /// 区域编码
  25. /// </summary>
  26. public string AreaCode { get; set; }
  27. /// <summary>
  28. /// 区域名称
  29. /// </summary>
  30. public string AreaName { get; set; }
  31. /// <summary>
  32. /// 快速查询
  33. /// </summary>
  34. public string QuickQuery { get; set; }
  35. /// <summary>
  36. /// 简拼
  37. /// </summary>
  38. public string SimpleSpelling { get; set; }
  39. /// <summary>
  40. /// 层次
  41. /// </summary>
  42. public int? Layer { get; set; }
  43. /// <summary>
  44. /// 排序码
  45. /// </summary>
  46. public int? SortCode { get; set; }
  47. /// <summary>
  48. /// 删除标记
  49. /// </summary>
  50. public int? DeleteMark { get; set; }
  51. /// <summary>
  52. /// 有效标志
  53. /// </summary>
  54. public int? EnabledMark { get; set; }
  55. /// <summary>
  56. /// 备注
  57. /// </summary>
  58. public string Description { get; set; }
  59. /// <summary>
  60. /// 创建日期
  61. /// </summary>
  62. public DateTime? CreateDate { get; set; }
  63. /// <summary>
  64. /// 创建用户主键
  65. /// </summary>
  66. public string CreateUserId { get; set; }
  67. /// <summary>
  68. /// 创建用户
  69. /// </summary>
  70. public string CreateUserName { get; set; }
  71. /// <summary>
  72. /// 修改日期
  73. /// </summary>
  74. public DateTime? ModifyDate { get; set; }
  75. /// <summary>
  76. /// 修改用户主键
  77. /// </summary>
  78. public string ModifyUserId { get; set; }
  79. /// <summary>
  80. /// 修改用户
  81. /// </summary>
  82. public string ModifyUserName { get; set; }
  83. #endregion
  84. #region 扩展操作
  85. /// <summary>
  86. /// 新增调用
  87. /// </summary>
  88. public override void Create()
  89. {
  90. this.AreaId = Guid.NewGuid().ToString();
  91. this.CreateDate = DateTime.Now;
  92. this.CreateUserId = OperatorProvider.Provider.Current().UserId;
  93. this.CreateUserName = OperatorProvider.Provider.Current().UserName;
  94. this.DeleteMark = 0;
  95. }
  96. /// <summary>
  97. /// 编辑调用
  98. /// </summary>
  99. /// <param name="keyValue"></param>
  100. public override void Modify(string keyValue)
  101. {
  102. this.AreaId = keyValue;
  103. this.ModifyDate = DateTime.Now;
  104. this.ModifyUserId = OperatorProvider.Provider.Current().UserId;
  105. this.ModifyUserName = OperatorProvider.Provider.Current().UserName;
  106. }
  107. #endregion
  108. }
  109. }