using CallCenterApi.Common;
using CallCenterApi.Interface.Controllers.Base;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Script.Serialization;
namespace CallCenterApi.Interface.Controllers
{
///
/// 大屏公示系统
///
//[Authority]
public class InfoController : BaseController
{
// GET: Info
public ActionResult Index()
{
return View();
}
#region 来源渠道
///
/// 获取受理区域数量
///
///
///
///
public ActionResult GetAreaCount24ByDate(string branchcode, DateTime? date, string areaid)
{
if (date == null)
{
date = DateTime.Now;
}
int backtotal = 0;
//string sqlwhere = " F_IsDelete=0 ";
string sqlwhere = " F_IsDP=1 ";//大屏展示用到的
if (branchcode == "sqs12345")
{
branchcode = "";
sqlwhere += " and F_IsSQ=0";
}
if (!string.IsNullOrEmpty(branchcode))
{
sqlwhere += " and F_Code='" + branchcode + "'";
}
else
{
backtotal = 1;
sqlwhere += " and F_IsSQ!=1";
}
int first = 1;
int[] hours = Enumerable.Range(0, 24).ToArray();
decimal[,] countstotal = new decimal[10, 24];//用于计算累计值//固定了10个市县区
decimal[] tcountstotal = new decimal[10];
string[] cols = new string[10];
string[] colsx = new string[1];//用于县数据相加
//List