UserRelationEntity.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using System;
  2. using LeaRun.Application.Code;
  3. namespace LeaRun.Application.Entity.BaseManage
  4. {
  5. /// <summary>
  6. /// 版 本
  7. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  8. /// 创建人:佘赐雄
  9. /// 日 期:2015.11.03 10:58
  10. /// 描 述:用户关系
  11. /// </summary>
  12. public class UserRelationEntity : BaseEntity
  13. {
  14. #region 实体成员
  15. /// <summary>
  16. /// 用户关系主键
  17. /// </summary>
  18. public string UserRelationId { get; set; }
  19. /// <summary>
  20. /// 用户主键
  21. /// </summary>
  22. public string UserId { get; set; }
  23. /// <summary>
  24. /// 分类:1-部门2-角色3-岗位4-职位5-工作组
  25. /// </summary>
  26. public int? Category { get; set; }
  27. /// <summary>
  28. /// 对象主键
  29. /// </summary>
  30. public string ObjectId { get; set; }
  31. /// <summary>
  32. /// 默认对象
  33. /// </summary>
  34. public int? IsDefault { get; set; }
  35. /// <summary>
  36. /// 排序码
  37. /// </summary>
  38. public int SortCode { get; set; }
  39. /// <summary>
  40. /// 创建时间
  41. /// </summary>
  42. public DateTime CreateDate { get; set; }
  43. /// <summary>
  44. /// 创建用户主键
  45. /// </summary>
  46. public string CreateUserId { get; set; }
  47. /// <summary>
  48. /// 创建用户
  49. /// </summary>
  50. public string CreateUserName { get; set; }
  51. #endregion
  52. #region 扩展操作
  53. /// <summary>
  54. /// 新增调用
  55. /// </summary>
  56. public override void Create()
  57. {
  58. this.UserRelationId = Guid.NewGuid().ToString();
  59. this.CreateDate = DateTime.Now;
  60. this.CreateUserId = OperatorProvider.Provider.Current().UserId;
  61. this.CreateUserName = OperatorProvider.Provider.Current().UserName;
  62. this.IsDefault = 0;
  63. }
  64. /// <summary>
  65. /// 编辑调用
  66. /// </summary>
  67. /// <param name="keyValue"></param>
  68. public override void Modify(string keyValue)
  69. {
  70. }
  71. #endregion
  72. }
  73. }