ReportController.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. using PMS.BusinessModels.Problem;
  2. using PMS.Interface;
  3. using PMS.Interface.Problems;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Web;
  8. using System.Web.Mvc;
  9. namespace PMS.WebUI.Controllers
  10. {
  11. /// <summary>
  12. /// 创 建 人:伍莲魁
  13. /// 创建日期:2019-5-19
  14. /// 功能描述:统计报表控制器
  15. /// </summary>
  16. public class ReportController : BaseController
  17. {
  18. IReport IReport = InterfaceFactory.CreateBusinessInstance<IReport>();
  19. #region 售后问题绩效分值评定表
  20. // GET: Report
  21. public ActionResult AfterSale()
  22. {
  23. return View();
  24. }
  25. public ActionResult GetAfterSale(AfterSaleModel model)
  26. {
  27. model.ChannelId = GetCurrentUser().CompanyID;
  28. var json = IReport.GetAfterSale(model);
  29. return Content(json, "application/json");
  30. }
  31. #endregion
  32. #region 问题监控
  33. public ActionResult ProblemMonitoring()
  34. {
  35. ViewBag.RYXZ = GetCurrentUser().PersonProperty;
  36. return View();
  37. }
  38. public ActionResult GetMonitoring(MonitoringModel model)
  39. {
  40. var json = IReport.GetMonitoring(model);
  41. return Content(json, "application/json");
  42. }
  43. public ActionResult GetChannel()
  44. {
  45. return Content(IReport.GetChannel(), "application/json");
  46. }
  47. public ActionResult GetRing()
  48. {
  49. return Content(IReport.GetRing(), "application/json");
  50. }
  51. #endregion
  52. #region 渠道服务问题统计
  53. // GET: Report
  54. public ActionResult ChannelStatistics()
  55. {
  56. return View();
  57. }
  58. public ActionResult GetChannelStatistics(MonitoringModel model)
  59. {
  60. var json = IReport.GetChannelStatistics(model);
  61. return Content(json, "application/json");
  62. }
  63. #endregion
  64. #region 反馈人服务问题统计
  65. // GET: Report
  66. public ActionResult FeedbackStatistics()
  67. {
  68. return View();
  69. }
  70. public ActionResult GetFeedbackStatistics(MonitoringModel model)
  71. {
  72. var json = IReport.GetFeedbackStatistics(model);
  73. return Content(json, "application/json");
  74. }
  75. #endregion
  76. #region 未完成问题统计
  77. // GET: Report
  78. public ActionResult NotYetStatistics()
  79. {
  80. return View();
  81. }
  82. public ActionResult GetNotYetStatistics(MonitoringModel model)
  83. {
  84. var json = IReport.GetNotYetStatistics(model);
  85. return Content(json, "application/json");
  86. }
  87. #endregion
  88. #region 技术中心服务问题统计
  89. public ActionResult SupportStatistics()
  90. {
  91. return View();
  92. }
  93. public ActionResult GetSupportStatistics(MonitoringModel model)
  94. {
  95. var json = IReport.GetSupportStatistics(model);
  96. return Content(json, "application/json");
  97. }
  98. #endregion
  99. #region 研发问题统计
  100. public ActionResult DevelopStatistics()
  101. {
  102. return View();
  103. }
  104. public ActionResult GetDevelopStatistics(MonitoringModel model)
  105. {
  106. var json = IReport.GetDevelopStatistics(model);
  107. return Content(json, "application/json");
  108. }
  109. #endregion
  110. #region 提交受理超时30分钟统计
  111. public ActionResult TimeoutWindow()
  112. {
  113. return View();
  114. }
  115. public ActionResult TimeoutStatistics(MonitoringModel model)
  116. {
  117. var json = IReport.TimeoutStatistics(model);
  118. return Content(json, "application/json");
  119. }
  120. #endregion
  121. #region 贵阳问题分统计
  122. public ActionResult GuiyangProblems()
  123. {
  124. return View();
  125. }
  126. /// <summary>
  127. /// 贵阳售后统计问题积分
  128. /// </summary>
  129. /// <param name="model"></param>
  130. /// <returns></returns>
  131. public ActionResult GetGuiyangProblems(AfterSaleModel model)
  132. {
  133. model.ChannelId = GetCurrentUser().CompanyID;
  134. var json = IReport.GuiyangProblems(model);
  135. return Content(json, "application/json");
  136. }
  137. #endregion
  138. #region 渠道维保项目查看
  139. public ActionResult MaintenanceInquiry()
  140. {
  141. return View();
  142. }
  143. /// <summary>
  144. /// 渠道客户维保数据
  145. /// </summary>
  146. /// <param name="model"></param>
  147. /// <returns></returns>
  148. public ActionResult GeMaintenanceInquiry(MaintenanceModel model)
  149. {
  150. model.ChannelId = GetCurrentUser().CompanyID;
  151. model.PersonProperty = GetCurrentUser().PersonProperty;
  152. var json = IReport.GeMaintenanceInquiry(model);
  153. return Content(json, "application/json");
  154. }
  155. #endregion
  156. }
  157. }