UserRelationEntity.cs 2.2 KB

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