Notice.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. using GxPress.EnumConst;
  2. using Datory.Annotations;
  3. namespace GxPress.Entity
  4. {
  5. /// <summary>
  6. /// 通知
  7. /// </summary>
  8. [DataTable("tede_notice")]
  9. public class Notice : Datory.Entity
  10. {
  11. /// <summary>
  12. /// 标题
  13. /// </summary>
  14. [DataColumn]
  15. public string Title { get; set; }
  16. /// <summary>
  17. /// 用户ID
  18. /// </summary>
  19. [DataColumn]
  20. public int UserId { get; set; }
  21. /// <summary>
  22. /// 内容
  23. /// </summary>
  24. [DataColumn]
  25. public string Content { get; set; }
  26. /// <summary>
  27. /// 内容
  28. /// </summary>
  29. [DataColumn]
  30. public string HtmlContent { get; set; }
  31. /// <summary>
  32. /// 用户名
  33. /// </summary>
  34. [DataColumn]
  35. public string UserName { get; set; }
  36. /// <summary>
  37. /// 类型 (1 发送 2 草稿)
  38. /// </summary>
  39. [DataColumn]
  40. public NoticeTypeConst NoticeType { get; set; }
  41. /// <summary>
  42. /// 5 通知 6站内信 15 我审批的 16 我发出的 17 抄送我的
  43. /// </summary>
  44. /// <value></value>
  45. [DataColumn]
  46. public int TypeValue { get; set; }
  47. /// <summary>
  48. /// 是否删除
  49. /// </summary>
  50. [DataColumn]
  51. public bool IsDelete { get; set; }
  52. /// <summary>
  53. /// 父级ID用于回复
  54. /// </summary>
  55. [DataColumn]
  56. public int ParentId { get; set; }
  57. /// <summary>
  58. /// 是否置顶
  59. /// </summary>
  60. [DataColumn]
  61. public bool IsTop { get; set; }
  62. /// <summary>
  63. /// 来源Id
  64. /// </summary>
  65. [DataColumn]
  66. public int SourceId { get; set; }
  67. /// <summary>
  68. /// 子集
  69. /// </summary>
  70. /// <value></value>
  71. [DataColumn]
  72. public int SonId { get; set; }
  73. /// <summary>
  74. ///发起用户名
  75. /// </summary>
  76. [DataColumn]
  77. public int SendUserName { get; set; }
  78. /// <summary>
  79. /// 发起用户名id
  80. /// </summary>
  81. [DataColumn]
  82. public string SendUserId { get; set; }
  83. }
  84. }