You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

209 rivejä
6.0 KiB

  1. using Learun.Util;
  2. using System;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. namespace Learun.Application.Organization
  5. {
  6. /// <summary>
  7. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  8. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  9. /// 创建人:陈彬彬
  10. /// 日 期:2017.03.04
  11. /// 描 述:部门管理
  12. /// </summary>
  13. public class DepartmentEntity
  14. {
  15. #region 实体成员
  16. /// <summary>
  17. /// 部门主键
  18. /// </summary>
  19. /// <returns></returns>
  20. [Column("F_DEPARTMENTID")]
  21. public string F_DepartmentId { get; set; }
  22. /// <summary>
  23. /// 公司主键
  24. /// </summary>
  25. /// <returns></returns>
  26. [Column("F_COMPANYID")]
  27. public string F_CompanyId { get; set; }
  28. /// <summary>
  29. /// 父级主键
  30. /// </summary>
  31. /// <returns></returns>
  32. [Column("F_PARENTID")]
  33. public string F_ParentId { get; set; }
  34. /// <summary>
  35. /// 部门代码
  36. /// </summary>
  37. /// <returns></returns>
  38. [Column("F_ENCODE")]
  39. public string F_EnCode { get; set; }
  40. /// <summary>
  41. /// 部门名称
  42. /// </summary>
  43. /// <returns></returns>
  44. [Column("F_FULLNAME")]
  45. public string F_FullName { get; set; }
  46. /// <summary>
  47. /// 部门简称
  48. /// </summary>
  49. /// <returns></returns>
  50. [Column("F_SHORTNAME")]
  51. public string F_ShortName { get; set; }
  52. /// <summary>
  53. /// 部门类型
  54. /// </summary>
  55. /// <returns></returns>
  56. [Column("F_NATURE")]
  57. public string F_Nature { get; set; }
  58. /// <summary>
  59. /// 负责人
  60. /// </summary>
  61. /// <returns></returns>
  62. [Column("F_MANAGER")]
  63. public string F_Manager { get; set; }
  64. /// <summary>
  65. /// 分管校长Id
  66. /// </summary>
  67. /// <returns></returns>
  68. [Column("F_SCHOOLMASTERID")]
  69. public string F_SchoolMasterId { get; set; }
  70. /// <summary>
  71. /// 分管校长
  72. /// </summary>
  73. /// <returns></returns>
  74. [Column("F_SCHOOLMASTER")]
  75. public string F_SchoolMaster { get; set; }
  76. /// <summary>
  77. /// 外线电话
  78. /// </summary>
  79. /// <returns></returns>
  80. [Column("F_OUTERPHONE")]
  81. public string F_OuterPhone { get; set; }
  82. /// <summary>
  83. /// 内线电话
  84. /// </summary>
  85. /// <returns></returns>
  86. [Column("F_INNERPHONE")]
  87. public string F_InnerPhone { get; set; }
  88. /// <summary>
  89. /// 电子邮件
  90. /// </summary>
  91. /// <returns></returns>
  92. [Column("F_EMAIL")]
  93. public string F_Email { get; set; }
  94. /// <summary>
  95. /// 部门传真
  96. /// </summary>
  97. /// <returns></returns>
  98. [Column("F_FAX")]
  99. public string F_Fax { get; set; }
  100. /// <summary>
  101. /// 排序码
  102. /// </summary>
  103. /// <returns></returns>
  104. [Column("F_SORTCODE")]
  105. public int? F_SortCode { get; set; }
  106. /// <summary>
  107. /// 删除标记
  108. /// </summary>
  109. /// <returns></returns>
  110. [Column("F_DELETEMARK")]
  111. public int? F_DeleteMark { get; set; }
  112. /// <summary>
  113. /// 有效标志
  114. /// </summary>
  115. /// <returns></returns>
  116. [Column("F_ENABLEDMARK")]
  117. public int? F_EnabledMark { get; set; }
  118. /// <summary>
  119. /// 备注
  120. /// </summary>
  121. /// <returns></returns>
  122. [Column("F_DESCRIPTION")]
  123. public string F_Description { get; set; }
  124. /// <summary>
  125. /// 创建日期
  126. /// </summary>
  127. /// <returns></returns>
  128. [Column("F_CREATEDATE")]
  129. public DateTime? F_CreateDate { get; set; }
  130. /// <summary>
  131. /// 创建用户主键
  132. /// </summary>
  133. /// <returns></returns>
  134. [Column("F_CREATEUSERID")]
  135. public string F_CreateUserId { get; set; }
  136. /// <summary>
  137. /// 创建用户
  138. /// </summary>
  139. /// <returns></returns>
  140. [Column("F_CREATEUSERNAME")]
  141. public string F_CreateUserName { get; set; }
  142. /// <summary>
  143. /// 修改日期
  144. /// </summary>
  145. /// <returns></returns>
  146. [Column("F_MODIFYDATE")]
  147. public DateTime? F_ModifyDate { get; set; }
  148. /// <summary>
  149. /// 修改用户主键
  150. /// </summary>
  151. /// <returns></returns>
  152. [Column("F_MODIFYUSERID")]
  153. public string F_ModifyUserId { get; set; }
  154. /// <summary>
  155. /// 修改用户
  156. /// </summary>
  157. /// <returns></returns>
  158. [Column("F_MODIFYUSERNAME")]
  159. public string F_ModifyUserName { get; set; }
  160. /// <summary>
  161. /// 公告类别
  162. /// </summary>
  163. /// <returns></returns>
  164. [Column("NOTICECATEGORY")]
  165. public string NoticeCategory { get; set; }
  166. /// <summary>
  167. /// 排序
  168. /// </summary>
  169. /// <returns></returns>
  170. [Column("F_ORDER")]
  171. public int? F_Order { get; set; }
  172. #endregion
  173. #region 扩展操作
  174. /// <summary>
  175. /// 新增调用
  176. /// </summary>
  177. public void Create()
  178. {
  179. this.F_DepartmentId = Guid.NewGuid().ToString();
  180. this.F_CreateDate = DateTime.Now;
  181. UserInfo userInfo = LoginUserInfo.Get();
  182. this.F_CreateUserId = userInfo.userId;
  183. this.F_CreateUserName = userInfo.realName;
  184. this.F_DeleteMark = 0;
  185. this.F_EnabledMark = 1;
  186. }
  187. /// <summary>
  188. /// 编辑调用 nbvcx
  189. /// </summary>
  190. /// <param name="keyValue">主键</param>
  191. public void Modify(string keyValue)
  192. {
  193. this.F_DepartmentId = keyValue;
  194. this.F_ModifyDate = DateTime.Now;
  195. UserInfo userInfo = LoginUserInfo.Get();
  196. this.F_ModifyUserId = userInfo.userId;
  197. this.F_ModifyUserName = userInfo.realName;
  198. }
  199. #endregion
  200. }
  201. }