|
@@ -1865,6 +1865,16 @@ function excelRCData($summaryData,$aiAllList,$cglist,$year){
|
|
//办事处年占比
|
|
//办事处年占比
|
|
$obj->getactivesheet()->setCellValue ( 'A'.$onRow,$value['title'].'费用占比' );
|
|
$obj->getactivesheet()->setCellValue ( 'A'.$onRow,$value['title'].'费用占比' );
|
|
$col='H';
|
|
$col='H';
|
|
|
|
+ foreach ($aiAllList as $aiak=>$aiav){
|
|
|
|
+ $sectionCount[$aiak]['0']++;
|
|
|
|
+ $obj->getActiveSheet()->getStyle($col.$onRow)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_00);//设置百分比
|
|
|
|
+ $obj-> getActiveSheet() -> getStyle($col.$onRow) -> getFont()->getColor()->setRGB('f70000');
|
|
|
|
+ $obj->getactivesheet()->setCellValue( $col.$onRow, '=SUM('.$sectionCount[$aiak]['0'].$onRow.':'.$sectionCount[$aiak]['1'].$onRow.')' );
|
|
|
|
+ $col++;
|
|
|
|
+ foreach ($aiav as $k=>$v){//项目细则
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
$onRow++;//行数增加
|
|
$onRow++;//行数增加
|
|
|
|
|