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

/*                            水稻田1号光伏板                    */

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

    let ret:any = {};

    // let gfsjtjqstPackageData = onceYBarChartPackage( excelData['光伏数据统计趋势图'], '万/kwh','月');
    // ret['gfsjtjqst'] = getOnceYBarChartOut('光伏数据统计趋势图', gfsjtjqstPackageData);
                    
    // let gfbPackageData = keyValuePackage(excelData['光伏板'].dataList);
    // ret['gfb'] = getKeyValueOut('光伏板', gfbPackageData);
                    
    // let djPackageData = keyValuePackage(excelData['电机'].dataList);
    // ret['dj'] = getKeyValueOut('电机', djPackageData);
                    
    // let gfsjtjPackageData = keyValuePackage(excelData['光伏数据统计'].dataList);
    // ret['gfsjtj'] = getKeyValueOut('光伏数据统计', gfsjtjPackageData);
                    
    // let gfssxxTableData = tablePackage(excelData["光伏实时信息"].headerList[0], excelData["光伏实时信息"].bodyList);
    // ret['gfssxx'] = getTableOut( '光伏实时信息', gfssxxTableData);
                    
    // let ycysjPackageData = onceYBarChartPackage( excelData['预测与实际'], '万/kWh','');
    // ret['ycysj'] = getOnceYBarChartOut('预测与实际', ycysjPackageData);
                     
    res.send(ret);
} 