123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- 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
- {
- /// <summary>
- /// AnnouncementID
- /// </summary>
- public System.Guid AnnouncementID { get; set; }
- /// <summary>
- /// AnnouncementTypeID
- /// </summary>
- [Required]
- [DisplayName("公告类型")]
- public Nullable<System.Guid> AnnouncementTypeID { get; set; }
- public string AnnouncementTypeDesc { get; set; }
- /// <summary>
- /// Title
- /// </summary>
- [Required]
- [StringLength(100)]
- [DisplayName("标题")]
- public string Title { get; set; }
- /// <summary>
- /// Content
- /// </summary>
- [Required]
- [DisplayName("内容")]
- public string Content { get; set; }
- public string textContent { get; set; }
- /// <summary>
- /// StartTime
- /// </summary>
- [DisplayName("发布时间")]
- public Nullable<System.DateTime> StartTime { get; set; }
- /// <summary>
- /// EndTime
- /// </summary>
- [DisplayName("截止时间")]
- public Nullable<System.DateTime> EndTime { get; set; }
- /// <summary>
- /// 是否置顶
- /// </summary>
- [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 ? "是" : "否");
- }
- }
- /// <summary>
- /// 是否同步发送微信消息
- /// </summary>
- [DisplayName("是否同步发送微信消息")]
- public bool? IsSendWX { get; set; }
- public bool IsSendWXEdit { get; set; }
- public string IsSendWXStr
- {
- get
- {
- return IsSendWX == null ? "" : (IsSendWX.Value ? "是" : "否");
- }
- }
- /// <summary>
- /// RecordStatus
- /// </summary>
- public Nullable<int> RecordStatus { get; set; }
- /// <summary>
- /// CreateTime
- /// </summary>
- public Nullable<System.DateTime> CreateTime { get; set; }
- public string CreateTimeDec {
- get {
- return CreateTime.Value.ToShortDateString();
- }
- }
- /// <summary>
- /// CreateUserID
- /// </summary>
- public Nullable<System.Guid> CreateUserID { get; set; }
- public string CreateUserName { get; set; }
- public Nullable<System.Guid> CreateDepartmentID { get; set; }
- public string CreateDepartmentName { get; set; }
- /// <summary>
- /// ModifyUserID
- /// </summary>
- public Nullable<System.Guid> ModifyUserID { get; set; }
- public string ModifyUserName { get; set; }
- /// <summary>
- /// ModifyTime
- /// </summary>
- public Nullable<System.DateTime> ModifyTime { get; set; }
- }
- }
|