BulletinInfoCreateDto.cs 999 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using Abp.AutoMapper;
  3. using System.ComponentModel.DataAnnotations;
  4. using ShwasherSys.NotificationInfo;
  5. namespace ShwasherSys.NotificationInfo.Dto
  6. {
  7. [AutoMapTo(typeof(BulletinInfo))]
  8. public class BulletinInfoCreateDto
  9. {
  10. [Required]
  11. [StringLength(BulletinInfo.BulletinTypeMaxLength)]
  12. public string BulletinType { get; set; }
  13. [Required]
  14. [StringLength(BulletinInfo.TitleMaxLength)]
  15. public string Title { get; set; }
  16. [Required]
  17. //[StringLength(BulletinInfo.ContentMaxLength)]
  18. public string Content { get; set; }
  19. public DateTime? TimeCreated { get; set; }
  20. public DateTime? TimeLastMod { get; set; }
  21. [StringLength(BulletinInfo.UserIDLastModMaxLength)]
  22. public string UserIDLastMod { get; set; }
  23. [StringLength(BulletinInfo.PromulgatorMaxLength)]
  24. public string Promulgator { get; set; }
  25. public DateTime? PromulgatTime { get; set; }
  26. public DateTime? ExpirationDate { get; set; }
  27. }
  28. }