public ActionResult upchartandgrid(string select, string title) { #region 统计数据 List <string> selcodes = new List <string>(); string[] t = select.Split(','); foreach (var item in t) { if (item != "") { selcodes.Add(item); } } #region 图表 var point = centerService.GetOneCustomerCollection(selcodes[0]); var chart = centerService.GetParamsQueryFlexChart(point.StandardChartCode); chart.charttype = chart.standardtype; chart.customercode = Masterpage.CurrUser.client_code; chart.customername = Masterpage.CurrUser.client_name; //chart.lowerlimit = point.CustomerCollectionLowLimit.HasValue ? point.CustomerCollectionLowLimit.Value : 0; //chart.uperlimit = point.CustomerCollectionUpLimit.HasValue ? point.CustomerCollectionUpLimit.Value : 0; chart.processparms = select; chart.title = "沼气产率"; chart.queryparms = ""; #endregion var statistics = centerService.GetParamsQueryStatistic(selcodes); #endregion var result = new { grid = statistics, chart = chart }; return(Json(result, JsonRequestBehavior.AllowGet)); }