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.
 
 
 
 
 
 

127 lines
3.7 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 PostEntity
  14. {
  15. #region 实体成员
  16. /// <summary>
  17. /// 主键
  18. /// </summary>
  19. [Column("F_POSTID")]
  20. public string F_PostId { get; set; }
  21. /// <summary>
  22. /// 上级主键
  23. /// </summary>
  24. [Column("F_PARENTID")]
  25. public string F_ParentId { get; set; }
  26. /// <summary>
  27. /// 岗位名称
  28. /// </summary>
  29. [Column("F_NAME")]
  30. public string F_Name { get; set; }
  31. /// <summary>
  32. /// 岗位编号
  33. /// </summary>
  34. [Column("F_ENCODE")]
  35. public string F_EnCode { get; set; }
  36. /// <summary>
  37. /// 公司主键
  38. /// </summary>
  39. [Column("F_COMPANYID")]
  40. public string F_CompanyId { get; set; }
  41. /// <summary>
  42. /// 部门主键
  43. /// </summary>
  44. [Column("F_DEPARTMENTID")]
  45. public string F_DepartmentId { get; set; }
  46. /// <summary>
  47. /// 删除标记
  48. /// </summary>
  49. /// <returns></returns>
  50. [Column("F_DELETEMARK")]
  51. public int? F_DeleteMark { get; set; }
  52. /// <summary>
  53. /// 备注
  54. /// </summary>
  55. /// <returns></returns>
  56. [Column("F_DESCRIPTION")]
  57. public string F_Description { get; set; }
  58. /// <summary>
  59. /// 创建日期
  60. /// </summary>
  61. /// <returns></returns>
  62. [Column("F_CREATEDATE")]
  63. public DateTime? F_CreateDate { get; set; }
  64. /// <summary>
  65. /// 创建用户主键
  66. /// </summary>
  67. /// <returns></returns>
  68. [Column("F_CREATEUSERID")]
  69. public string F_CreateUserId { get; set; }
  70. /// <summary>
  71. /// 创建用户
  72. /// </summary>
  73. /// <returns></returns>
  74. [Column("F_CREATEUSERNAME")]
  75. public string F_CreateUserName { get; set; }
  76. /// <summary>
  77. /// 修改日期
  78. /// </summary>
  79. /// <returns></returns>
  80. [Column("F_MODIFYDATE")]
  81. public DateTime? F_ModifyDate { get; set; }
  82. /// <summary>
  83. /// 修改用户主键
  84. /// </summary>
  85. /// <returns></returns>
  86. [Column("F_MODIFYUSERID")]
  87. public string F_ModifyUserId { get; set; }
  88. /// <summary>
  89. /// 修改用户
  90. /// </summary>
  91. /// <returns></returns>
  92. [Column("F_MODIFYUSERNAME")]
  93. public string F_ModifyUserName { get; set; }
  94. #endregion
  95. #region 扩展操作
  96. /// <summary>
  97. /// 新增调用
  98. /// </summary>
  99. public void Create()
  100. {
  101. this.F_PostId = Guid.NewGuid().ToString();
  102. this.F_CreateDate = DateTime.Now;
  103. UserInfo userInfo = LoginUserInfo.Get();
  104. this.F_CreateUserId = userInfo.userId;
  105. this.F_CreateUserName = userInfo.realName;
  106. this.F_DeleteMark = 0;
  107. }
  108. /// <summary>
  109. /// 编辑调用
  110. /// </summary>
  111. /// <param name="keyValue">主键</param>
  112. public void Modify(string keyValue)
  113. {
  114. this.F_PostId = keyValue;
  115. this.F_ModifyDate = DateTime.Now;
  116. UserInfo userInfo = LoginUserInfo.Get();
  117. this.F_ModifyUserId = userInfo.userId;
  118. this.F_ModifyUserName = userInfo.realName;
  119. }
  120. #endregion
  121. }
  122. }