AnnouncementView.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. /// <summary>
  36. /// StartTime
  37. /// </summary>
  38. [DisplayName("发布时间")]
  39. public Nullable<System.DateTime> StartTime { get; set; }
  40. /// <summary>
  41. /// EndTime
  42. /// </summary>
  43. [DisplayName("截止时间")]
  44. public Nullable<System.DateTime> EndTime { get; set; }
  45. /// <summary>
  46. /// RecordStatus
  47. /// </summary>
  48. public Nullable<int> RecordStatus { get; set; }
  49. /// <summary>
  50. /// CreateTime
  51. /// </summary>
  52. public Nullable<System.DateTime> CreateTime { get; set; }
  53. public string CreateTimeDec {
  54. get {
  55. return CreateTime.Value.ToShortDateString();
  56. }
  57. }
  58. /// <summary>
  59. /// CreateUserID
  60. /// </summary>
  61. public Nullable<System.Guid> CreateUserID { get; set; }
  62. public string CreateUserName { get; set; }
  63. public Nullable<System.Guid> CreateDepartmentID { get; set; }
  64. public string CreateDepartmentName { get; set; }
  65. /// <summary>
  66. /// ModifyUserID
  67. /// </summary>
  68. public Nullable<System.Guid> ModifyUserID { get; set; }
  69. public string ModifyUserName { get; set; }
  70. /// <summary>
  71. /// ModifyTime
  72. /// </summary>
  73. public Nullable<System.DateTime> ModifyTime { get; set; }
  74. }
  75. }