OrganizeEntity.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using LeaRun.Application.Code;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace LeaRun.Application.Entity.BaseManage
  6. {
  7. /// <summary>
  8. /// 版 本 6.1
  9. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  10. /// 创建人:佘赐雄
  11. /// 日 期:2015.11.02 14:27
  12. /// 描 述:机构管理
  13. /// </summary>
  14. [Table("Base_Organize")]
  15. public class OrganizeEntity : BaseEntity
  16. {
  17. #region 实体成员
  18. /// <summary>
  19. /// 机构主键
  20. /// </summary>
  21. public string OrganizeId { get; set; }
  22. /// <summary>
  23. /// 机构分类
  24. /// </summary>
  25. public int? Category { get; set; }
  26. /// <summary>
  27. /// 父级主键
  28. /// </summary>
  29. public string ParentId { get; set; }
  30. /// <summary>
  31. /// 公司外文
  32. /// </summary>
  33. public string EnCode { get; set; }
  34. /// <summary>
  35. /// 公司中文
  36. /// </summary>
  37. public string ShortName { get; set; }
  38. /// <summary>
  39. /// 公司名称
  40. /// </summary>
  41. public string FullName { get; set; }
  42. /// <summary>
  43. /// 公司性质
  44. /// </summary>
  45. public string Nature { get; set; }
  46. /// <summary>
  47. /// 外线电话
  48. /// </summary>
  49. public string OuterPhone { get; set; }
  50. /// <summary>
  51. /// 内线电话
  52. /// </summary>
  53. public string InnerPhone { get; set; }
  54. /// <summary>
  55. /// 传真
  56. /// </summary>
  57. public string Fax { get; set; }
  58. /// <summary>
  59. /// 邮编
  60. /// </summary>
  61. public string Postalcode { get; set; }
  62. /// <summary>
  63. /// 电子邮箱
  64. /// </summary>
  65. public string Email { get; set; }
  66. /// <summary>
  67. /// 负责人主键
  68. /// </summary>
  69. public string ManagerId { get; set; }
  70. /// <summary>
  71. /// 负责人
  72. /// </summary>
  73. public string Manager { get; set; }
  74. /// <summary>
  75. /// 省主键
  76. /// </summary>
  77. public string ProvinceId { get; set; }
  78. /// <summary>
  79. /// 市主键
  80. /// </summary>
  81. public string CityId { get; set; }
  82. /// <summary>
  83. /// 县/区主键
  84. /// </summary>
  85. public string CountyId { get; set; }
  86. /// <summary>
  87. /// 详细地址
  88. /// </summary>
  89. public string Address { get; set; }
  90. /// <summary>
  91. /// 公司官方
  92. /// </summary>
  93. public string WebAddress { get; set; }
  94. /// <summary>
  95. /// 成立时间
  96. /// </summary>
  97. public DateTime? FoundedTime { get; set; }
  98. /// <summary>
  99. /// 经营范围
  100. /// </summary>
  101. public string BusinessScope { get; set; }
  102. /// <summary>
  103. /// 层
  104. /// </summary>
  105. public int? Layer { get; set; }
  106. /// <summary>
  107. /// 排序码
  108. /// </summary>
  109. public int? SortCode { get; set; }
  110. /// <summary>
  111. /// 删除标记
  112. /// </summary>
  113. public int? DeleteMark { get; set; }
  114. /// <summary>
  115. /// 有效标志
  116. /// </summary>
  117. public int? EnabledMark { get; set; }
  118. /// <summary>
  119. /// 备注
  120. /// </summary>
  121. public string Description { get; set; }
  122. /// <summary>
  123. /// 创建日期
  124. /// </summary>
  125. public DateTime? CreateDate { get; set; }
  126. /// <summary>
  127. /// 创建用户主键
  128. /// </summary>
  129. public string CreateUserId { get; set; }
  130. /// <summary>
  131. /// 创建用户
  132. /// </summary>
  133. public string CreateUserName { get; set; }
  134. /// <summary>
  135. /// 修改日期
  136. /// </summary>
  137. public DateTime? ModifyDate { get; set; }
  138. /// <summary>
  139. /// 修改用户主键
  140. /// </summary>
  141. public string ModifyUserId { get; set; }
  142. /// <summary>
  143. /// 修改用户
  144. /// </summary>
  145. public string ModifyUserName { get; set; }
  146. #endregion
  147. #region 扩展操作
  148. /// <summary>
  149. /// 新增调用
  150. /// </summary>
  151. public override void Create()
  152. {
  153. this.OrganizeId = Guid.NewGuid().ToString();
  154. this.CreateDate = DateTime.Now;
  155. this.CreateUserId = OperatorProvider.Provider.Current().UserId;
  156. this.CreateUserName = OperatorProvider.Provider.Current().UserName;
  157. this.DeleteMark = 0;
  158. }
  159. /// <summary>
  160. /// 编辑调用
  161. /// </summary>
  162. /// <param name="keyValue"></param>
  163. public override void Modify(string keyValue)
  164. {
  165. this.OrganizeId = keyValue;
  166. this.ModifyDate = DateTime.Now;
  167. this.ModifyUserId = OperatorProvider.Provider.Current().UserId;
  168. this.ModifyUserName = OperatorProvider.Provider.Current().UserName;
  169. }
  170. #endregion
  171. }
  172. }