using PMS.BusinessModels.Problem; using PMS.Interface; using PMS.Interface.Problems; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace PMS.WebUI.Controllers { /// /// 创 建 人:伍莲魁 /// 创建日期:2019-5-19 /// 功能描述:统计报表控制器 /// public class ReportController : BaseController { IReport IReport = InterfaceFactory.CreateBusinessInstance(); #region 售后问题绩效分值评定表 // GET: Report public ActionResult AfterSale() { return View(); } public ActionResult GetAfterSale(AfterSaleModel model) { model.ChannelId = GetCurrentUser().CompanyID; var json = IReport.GetAfterSale(model); return Content(json, "application/json"); } #endregion #region 问题监控 public ActionResult ProblemMonitoring() { ViewBag.RYXZ = GetCurrentUser().PersonProperty; return View(); } public ActionResult GetMonitoring(MonitoringModel model) { var json = IReport.GetMonitoring(model); return Content(json, "application/json"); } public ActionResult GetChannel() { return Content(IReport.GetChannel(), "application/json"); } public ActionResult GetRing() { return Content(IReport.GetRing(), "application/json"); } #endregion #region 渠道服务问题统计 // GET: Report public ActionResult ChannelStatistics() { return View(); } public ActionResult GetChannelStatistics(MonitoringModel model) { var json = IReport.GetChannelStatistics(model); return Content(json, "application/json"); } #endregion #region 反馈人服务问题统计 // GET: Report public ActionResult FeedbackStatistics() { return View(); } public ActionResult GetFeedbackStatistics(MonitoringModel model) { var json = IReport.GetFeedbackStatistics(model); return Content(json, "application/json"); } #endregion #region 未完成问题统计 // GET: Report public ActionResult NotYetStatistics() { return View(); } public ActionResult GetNotYetStatistics(MonitoringModel model) { var json = IReport.GetNotYetStatistics(model); return Content(json, "application/json"); } #endregion #region 技术中心服务问题统计 public ActionResult SupportStatistics() { return View(); } public ActionResult GetSupportStatistics(MonitoringModel model) { var json = IReport.GetSupportStatistics(model); return Content(json, "application/json"); } #endregion #region 研发问题统计 public ActionResult DevelopStatistics() { return View(); } public ActionResult GetDevelopStatistics(MonitoringModel model) { var json = IReport.GetDevelopStatistics(model); return Content(json, "application/json"); } #endregion #region 提交受理超时30分钟统计 public ActionResult TimeoutWindow() { return View(); } public ActionResult TimeoutStatistics(MonitoringModel model) { var json = IReport.TimeoutStatistics(model); return Content(json, "application/json"); } #endregion #region 贵阳问题分统计 public ActionResult GuiyangProblems() { return View(); } /// /// 贵阳售后统计问题积分 /// /// /// public ActionResult GetGuiyangProblems(AfterSaleModel model) { model.ChannelId = GetCurrentUser().CompanyID; var json = IReport.GuiyangProblems(model); return Content(json, "application/json"); } #endregion #region 渠道维保项目查看 public ActionResult MaintenanceInquiry() { return View(); } /// /// 渠道客户维保数据 /// /// /// public ActionResult GeMaintenanceInquiry(MaintenanceModel model) { model.ChannelId = GetCurrentUser().CompanyID; model.PersonProperty = GetCurrentUser().PersonProperty; var json = IReport.GeMaintenanceInquiry(model); return Content(json, "application/json"); } #endregion } }