Notice.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. /// 简单标题
  18. /// </summary>
  19. /// <value></value>
  20. [DataColumn]
  21. public string SimplenessTtile { get; set; }
  22. /// <summary>
  23. /// 用户ID
  24. /// </summary>
  25. [DataColumn]
  26. public int UserId { get; set; }
  27. /// <summary>
  28. /// 内容
  29. /// </summary>
  30. [DataColumn(Text = true)]
  31. public string Content { get; set; }
  32. /// <summary>
  33. /// 内容
  34. /// </summary>
  35. [DataColumn]
  36. public string HtmlContent { get; set; }
  37. /// <summary>
  38. /// 用户名
  39. /// </summary>
  40. [DataColumn]
  41. public string UserName { get; set; }
  42. /// <summary>
  43. /// 类型 (1 发送 2 草稿)
  44. /// </summary>
  45. [DataColumn]
  46. public NoticeTypeConst NoticeType { get; set; }
  47. /// <summary>
  48. /// 5 通知 6站内信 15 我审批的 16 我发出的 17 抄送我的 18匿名
  49. /// </summary>
  50. /// <value></value>
  51. [DataColumn]
  52. public int TypeValue { get; set; }
  53. /// <summary>
  54. /// 是否删除
  55. /// </summary>
  56. [DataColumn]
  57. public bool IsDelete { get; set; }
  58. /// <summary>
  59. /// 父级ID用于回复
  60. /// </summary>
  61. [DataColumn]
  62. public int ParentId { get; set; }
  63. /// <summary>
  64. /// 是否置顶
  65. /// </summary>
  66. [DataColumn]
  67. public bool IsTop { get; set; }
  68. /// <summary>
  69. /// 来源Id
  70. /// </summary>
  71. [DataColumn]
  72. public int SourceId { get; set; }
  73. /// <summary>
  74. /// 子集
  75. /// </summary>
  76. /// <value></value>
  77. [DataColumn]
  78. public int SonId { get; set; }
  79. /// <summary>
  80. ///发起用户名
  81. /// </summary>
  82. [DataColumn]
  83. public int SendUserName { get; set; }
  84. /// <summary>
  85. /// 发起用户名id
  86. /// </summary>
  87. [DataColumn]
  88. public string SendUserId { get; set; }
  89. /// <summary>
  90. /// 是否撤回
  91. /// </summary>
  92. /// <value></value>
  93. [DataColumn]
  94. public bool IsRecall { get; set; }
  95. }
  96. }