DepartmentEntity.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. using System;
  2. using LeaRun.Application.Code;
  3. namespace LeaRun.Application.Entity.BaseManage
  4. {
  5. /// <summary>
  6. /// 版 本 6.1
  7. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  8. /// 创建人:佘赐雄
  9. /// 日 期:2015.11.02 14:27
  10. /// 描 述:部门管理
  11. /// </summary>
  12. public class DepartmentEntity : BaseEntity
  13. {
  14. #region 实体成员
  15. /// <summary>
  16. /// 部门主键
  17. /// </summary>
  18. public string DepartmentId { get; set; }
  19. /// <summary>
  20. /// 机构主键
  21. /// </summary>
  22. public string OrganizeId { get; set; }
  23. /// <summary>
  24. /// 父级主键
  25. /// </summary>
  26. public string ParentId { get; set; }
  27. /// <summary>
  28. /// 部门代码
  29. /// </summary>
  30. public string EnCode { get; set; }
  31. /// <summary>
  32. /// 部门名称
  33. /// </summary>
  34. public string FullName { get; set; }
  35. /// <summary>
  36. /// 部门简称
  37. /// </summary>
  38. public string ShortName { get; set; }
  39. /// <summary>
  40. /// 部门类型
  41. /// </summary>
  42. public string Nature { get; set; }
  43. /// <summary>
  44. /// 负责人主键
  45. /// </summary>
  46. public string ManagerId { get; set; }
  47. /// <summary>
  48. /// 负责人
  49. /// </summary>
  50. public string Manager { get; set; }
  51. /// <summary>
  52. /// 外线电话
  53. /// </summary>
  54. public string OuterPhone { get; set; }
  55. /// <summary>
  56. /// 内线电话
  57. /// </summary>
  58. public string InnerPhone { get; set; }
  59. /// <summary>
  60. /// 电子邮件
  61. /// </summary>
  62. public string Email { get; set; }
  63. /// <summary>
  64. /// 部门传真
  65. /// </summary>
  66. public string Fax { get; set; }
  67. /// <summary>
  68. /// 层
  69. /// </summary>
  70. public int? Layer { get; set; }
  71. /// <summary>
  72. /// 排序码
  73. /// </summary>
  74. public int? SortCode { get; set; }
  75. /// <summary>
  76. /// 删除标记
  77. /// </summary>
  78. public int? DeleteMark { get; set; }
  79. /// <summary>
  80. /// 有效标志
  81. /// </summary>
  82. public int? EnabledMark { get; set; }
  83. /// <summary>
  84. /// 备注
  85. /// </summary>
  86. public string Description { get; set; }
  87. /// <summary>
  88. /// 创建日期
  89. /// </summary>
  90. public DateTime? CreateDate { get; set; }
  91. /// <summary>
  92. /// 创建用户主键
  93. /// </summary>
  94. public string CreateUserId { get; set; }
  95. /// <summary>
  96. /// 创建用户
  97. /// </summary>
  98. public string CreateUserName { get; set; }
  99. /// <summary>
  100. /// 修改日期
  101. /// </summary>
  102. public DateTime? ModifyDate { get; set; }
  103. /// <summary>
  104. /// 修改用户主键
  105. /// </summary>
  106. public string ModifyUserId { get; set; }
  107. /// <summary>
  108. /// 修改用户
  109. /// </summary>
  110. public string ModifyUserName { get; set; }
  111. /// <summary>
  112. /// 是否是营业所
  113. /// </summary>
  114. public int? IsBusinessAddress { get; set; }
  115. /// <summary>
  116. /// 营业所编号
  117. /// </summary>
  118. public string BusinessNum { get; set; }
  119. #endregion
  120. #region 扩展操作
  121. /// <summary>
  122. /// 新增调用
  123. /// </summary>
  124. public override void Create()
  125. {
  126. this.DepartmentId = Guid.NewGuid().ToString();
  127. this.CreateDate = DateTime.Now;
  128. this.CreateUserId = OperatorProvider.Provider.Current().UserId;
  129. this.CreateUserName = OperatorProvider.Provider.Current().UserName;
  130. this.DeleteMark = 0;
  131. }
  132. /// <summary>
  133. /// 编辑调用
  134. /// </summary>
  135. /// <param name="keyValue"></param>
  136. public override void Modify(string keyValue)
  137. {
  138. this.DepartmentId = keyValue;
  139. this.ModifyDate = DateTime.Now;
  140. this.ModifyUserId = OperatorProvider.Provider.Current().UserId;
  141. this.ModifyUserName = OperatorProvider.Provider.Current().UserName;
  142. }
  143. #endregion
  144. }
  145. }