public DataTable ClassificationStatistics(int year) { StatisticalReportBLL srb = new StatisticalReportBLL(); DataTable dt = srb.ClassificationStatistics(year); return(dt); }
public HttpResponseMessage ExportYearExcel(string excelname, string exceltitle, string exceldata, string year) { StatisticalReportBLL bll = new StatisticalReportBLL(); //获取导出的数据 DataTable dt = bll.ClassificationStatistics(Convert.ToInt32(year)); //获取导出的Excel表 CommonFunctionBLL <StatisticalReportModel> cfBll = new CommonFunctionBLL <StatisticalReportModel>(exceldata); return(cfBll.CreateExcel(dt, excelname, exceltitle)); }