
import { gfnyTableData } from '../data/table/gfnyData';
import { doubleYBarCharPackage, keyValuePackage, onceYBarChartPackage, rankPackage, tablePackage } from '../dataPackage/inFrontOut';
import { getDoubleYBarChartOut, getKeyValueOut, getOnceYBarChartOut, getTableOut } from '../dataPackage/out';

/*                            光伏能源                    */

export function getData(req, res) {
    // let excelData = gfnyTableData();

    let ret:any = {};

    // let fdglpjzfxPackageData = onceYBarChartPackage( excelData['发电功率平均值分析'], '','');
    // ret['fdglpjzfx'] = getOnceYBarChartOut('发电功率平均值分析', fdglpjzfxPackageData);
                    
    // let fdglzdzfxPackageData = onceYBarChartPackage( excelData['发电功率最大值分析'], '','');
    // ret['fdglzdzfx'] = getOnceYBarChartOut('发电功率最大值分析', fdglzdzfxPackageData);
                    
    // let trsyqsPackageData = onceYBarChartPackage( excelData['投入使用趋势'], '','');
    // ret['trsyqs'] = getOnceYBarChartOut('投入使用趋势', trsyqsPackageData);
                    
    // let fdlqsPackageData = onceYBarChartPackage( excelData['发电量趋势'], '','');
    // ret['fdlqs'] = getOnceYBarChartOut('发电量趋势', fdlqsPackageData);
                    
    // let ljjptjPackageData = onceYBarChartPackage( excelData['累计减排统计'], '','');
    // ret['ljjptj'] = getOnceYBarChartOut('累计减排统计', ljjptjPackageData);
                    
    // let jbqkPackageData = keyValuePackage(excelData['基本情况'].dataList);
    // ret['jbqk'] = getKeyValueOut('基本情况', jbqkPackageData);
                    
    // let nhfxPackageData = keyValuePackage(excelData['能耗分析'].dataList);
    // ret['nhfx'] = getKeyValueOut('能耗分析', nhfxPackageData);
                    
    // let trsyPackageData = keyValuePackage(excelData['投入使用'].dataList);
    // ret['trsy'] = getKeyValueOut('投入使用', trsyPackageData);
                    
    // let gfnyPackageData = keyValuePackage(excelData['光伏能源'].dataList);
    // ret['gfny'] = getKeyValueOut('光伏能源', gfnyPackageData);
                    
    // // let xyfxPackageData = keyValuePackage(excelData['效益分析'].dataList);
    // // ret['xyfx'] = getKeyValueOut('效益分析', xyfxPackageData);
                    
    // let xyfxPackageData = keyValuePackage(excelData['效益分析'].dataList);
    // ret['xyfx'] = getKeyValueOut('效益分析', xyfxPackageData);
                    
    // let jnjpPackageData = keyValuePackage(excelData['节能减排'].dataList);
    // ret['jnjp'] = getKeyValueOut('节能减排', jnjpPackageData);
                     
    res.send(ret);
} 