ExcelContent.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. using Hotline.Share.Enums.Order;
  2. using MiniExcelLibs.Attributes;
  3. using SqlSugar;
  4. using System.ComponentModel.DataAnnotations;
  5. namespace Hotline.Import
  6. {
  7. public class ExcelContent
  8. {
  9. [Required(ErrorMessage = "来源 不能为空")]
  10. [ExcelColumnName("来源")]
  11. public string Source { get; set; }
  12. [Required(ErrorMessage = "编号 不能为空")]
  13. [ExcelColumnName("编号")]
  14. public string ExternalId { get; set; }
  15. [Required(ErrorMessage = "受理时间 不能为空")]
  16. [ExcelColumnName("受理时间")]
  17. public DateTime StartTime { get; set; }
  18. [Required(ErrorMessage = "标题 不能为空")]
  19. [ExcelColumnName("标题")]
  20. public string Title { get; set; }
  21. [Required(ErrorMessage = "期满时间 不能为空")]
  22. [ExcelColumnName("期满时间")]
  23. public DateTime ExpiredTime { get; set; }
  24. /// <summary>
  25. /// 一级部门名称
  26. /// </summary>
  27. [ExcelColumnName("一级部门")]
  28. public string? OrgLevelOneName { get; set; }
  29. /// <summary>
  30. /// 二级部门名称
  31. /// </summary>
  32. [ExcelColumnName("二级部门")]
  33. public string? OrgLevelTwoName { get; set; }
  34. [Required(ErrorMessage = "承办部门 不能为空")]
  35. [ExcelColumnName("承办部门")]
  36. public string ActualHandleOrgName { get; set; }
  37. [Required(ErrorMessage = "办结时间 不能为空")]
  38. [ExcelColumnName("办结时间")]
  39. public DateTime ActualHandleTime { get; set; }
  40. [Required(ErrorMessage = "受理类型 不能为空")]
  41. [ExcelColumnName("受理类型")]
  42. public string AcceptType { get; set; }
  43. [Required(ErrorMessage = "一级热点 不能为空")]
  44. [ExcelColumnName("一级热点")]
  45. public string HotspotNameOne { get; set; }
  46. [ExcelColumnName("二级热点")]
  47. public string HotspotNameTwo { get; set; }
  48. [ExcelColumnName("三级热点")]
  49. public string HotspotNameThree { get; set; }
  50. [ExcelColumnName("四级热点")]
  51. public string HotspotNameFour { get; set; }
  52. [ExcelColumnName("五级热点")]
  53. public string HotspotNameFive { get; set; }
  54. /// <summary>
  55. /// 区域名称
  56. /// </summary>
  57. [Required(ErrorMessage = "区域 不能为空")]
  58. [ExcelColumnName("区域")]
  59. public string Address { get; set; }
  60. [ExcelColumnName("事发地址")]
  61. public string Street { get; set; }
  62. [Required(ErrorMessage = "来电人姓名 不能为空")]
  63. [ExcelColumnName("来电人姓名")]
  64. public string FromName { get; set; }
  65. [Required(ErrorMessage = "联系电话 不能为空")]
  66. [ExcelColumnName("联系电话")]
  67. public string Contact { get; set; }
  68. /// <summary>
  69. /// 是否超期(是或否)
  70. /// "是" or "否"
  71. /// </summary>
  72. [ExcelColumnName("是否超期")]
  73. public string IsExpired { get; set; }
  74. /// <summary>
  75. /// 默认 0
  76. /// </summary>
  77. [Required(ErrorMessage = "重办次数 不能为空")]
  78. [ExcelColumnName("重办次数")]
  79. public int ReTransactNum { get; set; }
  80. [Required(ErrorMessage = "信件满意度 不能为空")]
  81. [ExcelColumnName("信件满意度")]
  82. public string VisitResult { get; set; }
  83. [Required(ErrorMessage = "受理内容 不能为空")]
  84. [ExcelColumnName("受理内容")]
  85. public string Content { get; set; }
  86. [Required(ErrorMessage = "承办意见 不能为空")]
  87. [ExcelColumnName("承办意见")]
  88. public string ActualOpinion { get; set; }
  89. /// <summary>
  90. /// 链接
  91. /// TODO 没有存
  92. /// </summary>
  93. [ExcelColumnName("链接")]
  94. public string Link { get; set; }
  95. }
  96. }