ActivitieView.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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.CalendarManage
  8. {
  9. public class ActivitieView
  10. {
  11. /// <summary>
  12. /// 主键ID
  13. /// </summary>
  14. [DisplayName("主键ID")]
  15. public Guid? ActivitiesID { get; set; }
  16. /// <summary>
  17. /// 活动名称
  18. /// </summary>
  19. [Required]
  20. [DisplayName("活动名称")]
  21. public string Name { get; set; }
  22. /// <summary>
  23. /// 活动月日
  24. /// </summary>
  25. [DisplayName("活动月日")]
  26. public string ActivitiesTime { get; set; }
  27. /// <summary>
  28. /// 活动月
  29. /// </summary>
  30. [Required]
  31. [DisplayName("活动月")]
  32. [Range(1, 12, ErrorMessage="月份必须在1至12之间")]
  33. public int? ActivitiesTimeMonth { get; set; }
  34. /// <summary>
  35. /// 活动日
  36. /// </summary>
  37. [Required]
  38. [DisplayName("活动日")]
  39. [Range(1, 31, ErrorMessage = "日期必须在1至31之间")]
  40. public int? ActivitiesTimeDay { get; set; }
  41. /// <summary>
  42. /// 时间段
  43. /// </summary>
  44. [Required]
  45. [DisplayName("时间段")]
  46. public int? TimesSegment { get; set; }
  47. /// <summary>
  48. /// 时间段
  49. /// </summary>
  50. [Required]
  51. [DisplayName("时间段")]
  52. public string TimesSegmentName { get; set; }
  53. /// <summary>
  54. /// 活动内容
  55. /// </summary>
  56. [DisplayName("活动内容")]
  57. public string ActivitiesContent { get; set; }
  58. /// <summary>
  59. /// 活动类型
  60. /// </summary>
  61. [Required]
  62. [DisplayName("活动类型")]
  63. public int? ActivitiesType { get; set; }
  64. /// <summary>
  65. /// 活动类型
  66. /// </summary>
  67. [Required]
  68. [DisplayName("活动类型")]
  69. public string ActivitiesTypeName { get; set; }
  70. /// <summary>
  71. /// 创建人
  72. /// </summary>
  73. [DisplayName("创建人")]
  74. public Guid? CreateUserID { get; set; }
  75. /// <summary>
  76. /// 创建时间
  77. /// </summary>
  78. [DisplayName("创建时间")]
  79. public DateTime? CreateTime { get; set; }
  80. }
  81. }