using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.DataAnnotations; using System.ComponentModel; namespace EMIS.ViewModel.SystemView { public class AnnouncementView { /// /// AnnouncementID /// public System.Guid AnnouncementID { get; set; } /// /// AnnouncementTypeID /// [Required] [DisplayName("公告类型")] public Nullable AnnouncementTypeID { get; set; } public string AnnouncementTypeDesc { get; set; } /// /// Title /// [Required] [StringLength(100)] [DisplayName("标题")] public string Title { get; set; } /// /// Content /// [Required] [DisplayName("内容")] public string Content { get; set; } /// /// StartTime /// [DisplayName("发布时间")] public Nullable StartTime { get; set; } /// /// EndTime /// [DisplayName("截止时间")] public Nullable EndTime { get; set; } /// /// RecordStatus /// public Nullable RecordStatus { get; set; } /// /// CreateTime /// public Nullable CreateTime { get; set; } public string CreateTimeDec { get { return CreateTime.Value.ToShortDateString(); } } /// /// CreateUserID /// public Nullable CreateUserID { get; set; } public string CreateUserName { get; set; } public Nullable CreateDepartmentID { get; set; } public string CreateDepartmentName { get; set; } /// /// ModifyUserID /// public Nullable ModifyUserID { get; set; } public string ModifyUserName { get; set; } /// /// ModifyTime /// public Nullable ModifyTime { get; set; } } }