AnnouncementView.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel;
  7. namespace EMIS.ViewModel.SystemView
  8. {
  9. public class AnnouncementView
  10. {
  11. /// <summary>
  12. /// AnnouncementID
  13. /// </summary>
  14. public System.Guid AnnouncementID { get; set; }
  15. /// <summary>
  16. /// AnnouncementTypeID
  17. /// </summary>
  18. [Required]
  19. [DisplayName("公告类型")]
  20. public Nullable<System.Guid> AnnouncementTypeID { get; set; }
  21. public string AnnouncementTypeDesc { get; set; }
  22. /// <summary>
  23. /// Title
  24. /// </summary>
  25. [Required]
  26. [StringLength(100)]
  27. [DisplayName("标题")]
  28. public string Title { get; set; }
  29. /// <summary>
  30. /// Content
  31. /// </summary>
  32. [Required]
  33. [DisplayName("内容")]
  34. public string Content { get; set; }
  35. public string textContent { get; set; }
  36. /// <summary>
  37. /// StartTime
  38. /// </summary>
  39. [DisplayName("发布时间")]
  40. public Nullable<System.DateTime> StartTime { get; set; }
  41. /// <summary>
  42. /// EndTime
  43. /// </summary>
  44. [DisplayName("截止时间")]
  45. public Nullable<System.DateTime> EndTime { get; set; }
  46. /// <summary>
  47. /// 是否置顶
  48. /// </summary>
  49. [DisplayName("是否置顶")]
  50. public bool? IsTop { get; set; }
  51. public bool IsTopEdit { get; set; }
  52. public int? OrderByNum { get; set; }
  53. public string IsTopStr {
  54. get {
  55. return IsTop == null ? "" : (IsTop.Value ? "是" : "否");
  56. }
  57. }
  58. /// <summary>
  59. /// 是否同步发送微信消息
  60. /// </summary>
  61. [DisplayName("是否同步发送微信消息")]
  62. public bool? IsSendWX { get; set; }
  63. public bool IsSendWXEdit { get; set; }
  64. public string IsSendWXStr
  65. {
  66. get
  67. {
  68. return IsSendWX == null ? "" : (IsSendWX.Value ? "是" : "否");
  69. }
  70. }
  71. /// <summary>
  72. /// RecordStatus
  73. /// </summary>
  74. public Nullable<int> RecordStatus { get; set; }
  75. /// <summary>
  76. /// CreateTime
  77. /// </summary>
  78. public Nullable<System.DateTime> CreateTime { get; set; }
  79. public string CreateTimeDec {
  80. get {
  81. return CreateTime.Value.ToShortDateString();
  82. }
  83. }
  84. /// <summary>
  85. /// CreateUserID
  86. /// </summary>
  87. public Nullable<System.Guid> CreateUserID { get; set; }
  88. public string CreateUserName { get; set; }
  89. public Nullable<System.Guid> CreateDepartmentID { get; set; }
  90. public string CreateDepartmentName { get; set; }
  91. /// <summary>
  92. /// ModifyUserID
  93. /// </summary>
  94. public Nullable<System.Guid> ModifyUserID { get; set; }
  95. public string ModifyUserName { get; set; }
  96. /// <summary>
  97. /// ModifyTime
  98. /// </summary>
  99. public Nullable<System.DateTime> ModifyTime { get; set; }
  100. }
  101. }