123456789101112131415161718192021222324252627282930313233343536373839 |
- using LeaRun.Application.Busines.DMAManage;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- namespace LeaRun.Application.Web.Areas.DMAManage.Controllers
- {
- public class PartitionReportController : MvcControllerBase
- {
- // 分区绘制
- // GET: /DMAManage/PartitionDraw/
- #region 视图区域
- public ActionResult Index()
- {
- return View();
- }
- #endregion
- PartitionReportBLL partitionReportBLL = new PartitionReportBLL();
- #region 获取分析数据
- /// <summary>
- /// 获取分析数据
- /// </summary>
- /// <param name="DMAIDs"></param>
- /// <param name="selectMonth"></param>
- /// <param name="preMonth"></param>
- /// <returns></returns>
- public ActionResult GetPartitionReports(string DMAIDs, string selectMonth, bool isAll)
- {
- string preMonth = DateTime.Parse(selectMonth).AddMonths(-1).ToString("yyyy-MM");
- string result = partitionReportBLL.GetPartitionReports(DMAIDs, selectMonth, preMonth, isAll);
- return Content(result);
- }
- #endregion
- }
- }
|