Himall.Web/Areas/Admin/Controllers/StatisticsController.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Himall.Core.Helper;
using Himall.IServices;
using Himall.Model;
using Himall.Web.Framework;
using Himall.Web.Models;
using Microsoft.CSharp.RuntimeBinder;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Web.Mvc;
namespace Himall.Web.Areas.Admin.Controllers
{
public class StatisticsController : BaseAdminController
{
public StatisticsController()
{
}
[HttpGet]
[UnAuthorize]
public JsonResult GetAreaMapBySearch(int dimension, int year = 0, int month = 0)
{
if (year == 0)
{
year = DateTime.Now.Year;
}
if (month == 0)
{
month = DateTime.Now.Month;
}
MapChartDataModel areaOrderChart = ServiceHelper.Create<IStatisticsService>().GetAreaOrderChart((OrderDimension)dimension, year, month);
return Json(new { successful = true, chart = areaOrderChart }, JsonRequestBehavior.AllowGet);
}
[HttpGet]
[UnAuthorize]
public JsonResult GetMemberChartByMonth(int year = 0, int month = 0)
{
if (year == 0)
{
year = DateTime.Now.Year;
}
if (month == 0)
{
month = DateTime.Now.Month;
}
LineChartDataModel<int> memberChart = ServiceHelper.Create<IStatisticsService>().GetMemberChart(year, month);
return Json(new { successful = true, chart = memberChart }, JsonRequestBehavior.AllowGet);
}
private List<SelectListItem> GetMonthDrop()
{
List<SelectListItem> selectListItems = new List<SelectListItem>();
for (int i = 1; i < 13; i++)
{
SelectListItem selectListItem = new SelectListItem()
{
Selected = DateTime.Now.Month == i,
Text = i.ToString(),
后面还有 191 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
