PartitionReportController.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using LeaRun.Application.Busines.DMAManage;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.Mvc;
  7. namespace LeaRun.Application.Web.Areas.DMAManage.Controllers
  8. {
  9. public class PartitionReportController : MvcControllerBase
  10. {
  11. // 分区绘制
  12. // GET: /DMAManage/PartitionDraw/
  13. #region 视图区域
  14. public ActionResult Index()
  15. {
  16. return View();
  17. }
  18. #endregion
  19. PartitionReportBLL partitionReportBLL = new PartitionReportBLL();
  20. #region 获取分析数据
  21. /// <summary>
  22. /// 获取分析数据
  23. /// </summary>
  24. /// <param name="DMAIDs"></param>
  25. /// <param name="selectMonth"></param>
  26. /// <param name="preMonth"></param>
  27. /// <returns></returns>
  28. public ActionResult GetPartitionReports(string DMAIDs, string selectMonth, bool isAll)
  29. {
  30. string preMonth = DateTime.Parse(selectMonth).AddMonths(-1).ToString("yyyy-MM");
  31. string result = partitionReportBLL.GetPartitionReports(DMAIDs, selectMonth, preMonth, isAll);
  32. return Content(result);
  33. }
  34. #endregion
  35. }
  36. }