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; } public string textContent { get; set; } /// /// StartTime /// [DisplayName("发布时间")] public Nullable StartTime { get; set; } /// /// EndTime /// [DisplayName("截止时间")] public Nullable EndTime { get; set; } /// /// 是否置顶 /// [DisplayName("是否置顶")] public bool? IsTop { get; set; } public bool IsTopEdit { get; set; } public int? OrderByNum { get; set; } public string IsTopStr { get { return IsTop == null ? "" : (IsTop.Value ? "是" : "否"); } } /// /// 是否同步发送微信消息 /// [DisplayName("是否同步发送微信消息")] public bool? IsSendWX { get; set; } public bool IsSendWXEdit { get; set; } public string IsSendWXStr { get { return IsSendWX == null ? "" : (IsSendWX.Value ? "是" : "否"); } } /// /// 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; } } }