BigscreenDto.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. 
  2. namespace Hotline.Share.Dtos.Bigscreen
  3. {
  4. public class OrderStatisticsDto
  5. {
  6. /// <summary>
  7. /// 办结数
  8. /// </summary>
  9. public int CompletionCount { get; set; }
  10. /// <summary>
  11. /// 办结率
  12. /// </summary>
  13. public double CompletionRate { get; set; }
  14. /// <summary>
  15. /// 待受理
  16. /// </summary>
  17. public int HaveToAcceptCount { get; set; }
  18. /// <summary>
  19. /// 待受理率
  20. /// </summary>
  21. public double HaveToAcceptRate { get; set;}
  22. /// <summary>
  23. /// 超期工单数
  24. /// </summary>
  25. public int OverTimeCount { get; set; }
  26. /// <summary>
  27. /// 超期率
  28. /// </summary>
  29. public double OverTimeRate { get; set; }
  30. /// <summary>
  31. /// 延期工单数
  32. /// </summary>
  33. public int DelayCount { get; set; }
  34. /// <summary>
  35. /// 延期率
  36. /// </summary>
  37. public double DelayRate { get; set; }
  38. /// <summary>
  39. /// 满意工单数
  40. /// </summary>
  41. public int SatisfiedCount { get; set; }
  42. /// <summary>
  43. /// 满意率
  44. /// </summary>
  45. public double SatisfiedRate { get; set; }
  46. /// <summary>
  47. /// 省工单量
  48. /// </summary>
  49. public int ProvinceOrderCount { get; set; }
  50. /// <summary>
  51. /// 省工单办结
  52. /// </summary>
  53. public int ProvinceOrderCompletionCount { get; set; }
  54. }
  55. public class KnowledgeStatisticsDto
  56. {
  57. public int TodayAddCount { get; set; }
  58. public int ThisMonthModifyCount { get; set; }
  59. public int TodayReadCount { get; set; }
  60. public int KnowledgeCount { get; set; }
  61. }
  62. public class OrderTypeHandleStatisticsDto
  63. {
  64. public string AcceptType { get; set; }
  65. public int SumCount { get; set; }
  66. public int HandlingCount { get; set; }
  67. public int FiledCount { get; set; }
  68. public int OverTimeCount { get; set; }
  69. }
  70. public class EarlyWarningHotsPotsStatisticsDto
  71. {
  72. public string HotspotId { get; set; }
  73. public string HotspotName { get; set; }
  74. public int SumCount { get; set; }
  75. }
  76. public class OrderCountStatisticsDto
  77. {
  78. public int ToDayCount { get; set; }
  79. public double ToDayQoQ { get; set; }
  80. public int ToMonthCount { get; set;}
  81. public double ToMonthQoQ { get; set; }
  82. public int ToYearCount { get; set;}
  83. public double ToYearQoQ { get; set; }
  84. }
  85. public class OrderAreaAcceptStatisticsDto
  86. {
  87. public string AreaCode { get; set; }
  88. public string AreaName { get; set; }
  89. public int AcceptedCount { get; set; }
  90. public int CompletionCount { get; set; }
  91. public double CompletionRate => CalcCompletion();
  92. public double CalcCompletion()
  93. {
  94. if(CompletionCount==0 || AcceptedCount == 0)
  95. {
  96. return 0;
  97. }
  98. return Math.Round((CompletionCount / (double)AcceptedCount) * 100, 2) ;
  99. }
  100. }
  101. public class OrderAreaAcceptQueryDto
  102. {
  103. public int HandlingCount { get; set; }
  104. public int FiledCount { get; set; }
  105. public int OverTimeCount { get; set; }
  106. public string HotspotName { get; set; }
  107. public string AreaCode { get; set; }
  108. public string AreaName { get; set; }
  109. public double SatisfiedRate { get; set; }
  110. }
  111. public class HighFrequencyCallStatisticsDto
  112. {
  113. public string Callnum { get; set; }
  114. public int OrderCountNum { get; set; }
  115. }
  116. public class HighMatterWarningDto
  117. {
  118. public string AreaName { get; set; }
  119. public string Title { get; set; }
  120. public string HotspotName { get; set; }
  121. public string HotspotId { get; set; }
  122. public int SumCount { get; set; }
  123. public string Id { get; set; }
  124. public string AcceptTypeCode { get; set; }
  125. public string AcceptType { get; set; }
  126. public string AreaCode { get; set; }
  127. }
  128. public class OrderVisitOrgSatisfactionRankDto
  129. {
  130. public string VisitOrgCode { get; set; }
  131. public string VisitOrgName { get; set; }
  132. public int SatisfiedCount { get; set; }
  133. public int VisitCount { get; set; }
  134. public double SatisfiedRate => CalcSatisfiedRate();
  135. public double CalcSatisfiedRate()
  136. {
  137. if (SatisfiedCount == 0 || VisitCount == 0)
  138. {
  139. return 0;
  140. }
  141. return Math.Round((SatisfiedCount / (double)VisitCount) * 100, 2) ;
  142. }
  143. }
  144. public class OrderSourceAndAcceptTtoeStatisticsDto
  145. {
  146. public string Name { get; set; }
  147. public int SumCount { get; set; }
  148. public int HasCount { get; set; }
  149. public double HasRate => CalcHasRate();
  150. public double CalcHasRate()
  151. {
  152. if (HasCount == 0|| SumCount==0)
  153. {
  154. return 0;
  155. }
  156. return Math.Round((HasCount / (double)SumCount) * 100, 2);
  157. }
  158. }
  159. }