|
@@ -1814,7 +1814,26 @@ function excelRCData($summaryData,$aiAllList,$cglist,$year){
|
|
|
|
|
|
//数据填充
|
|
|
foreach ($cglist as $cgk=>$value){
|
|
|
- for($month=1;$month<=12;$month++){
|
|
|
+
|
|
|
+ //办事处年合计详情
|
|
|
+ $obj->getactivesheet()->setCellValue ( 'A'.$onRow,$value['title'].'年合计' );
|
|
|
+ $col='H';
|
|
|
+ foreach ($aiAllList as $aiak=>$aiav){
|
|
|
+ $sectionCount[$aiak]['0']++;
|
|
|
+ $obj->getactivesheet()->setCellValue( $col.$onRow, '=SUM('.$sectionCount[$aiak]['0'].$onRow.':'.$sectionCount[$aiak]['1'].$onRow.')' );
|
|
|
+ $col++;
|
|
|
+ foreach ($aiav as $k=>$v){//项目细则
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ //$obj->getactivesheet()->setCellValue( $col.$onRow, '=SUM('.$sectionCount[$aiak]['0'].$onRow.':'.$sectionCount[$aiak]['1'].$onRow.')' );
|
|
|
+ $col++;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $onRow++;//行数增加
|
|
|
+
|
|
|
+ //办事处每月合计详情
|
|
|
+ for($month=1;$month<=12;$month++){
|
|
|
$obj->getactivesheet()->setCellValue ( 'A'.$onRow,$value['title'].$month.'月合计' );
|
|
|
$col='H';
|
|
|
if(isset($summaryData[$value['cid']])){
|
|
@@ -1836,23 +1855,12 @@ function excelRCData($summaryData,$aiAllList,$cglist,$year){
|
|
|
|
|
|
$col++;
|
|
|
}
|
|
|
-// $col++;
|
|
|
-
|
|
|
-
|
|
|
-// $yearPriceArray[$value['cid']][$aiak]+=$tempPrice;
|
|
|
-
|
|
|
-// $itemHtml.='<td class="taR colRed">'.$tempPrice.'</td>';//每个月份 项目金额合计
|
|
|
-// $itemHtml.=$tempHtml;//每个月份项目细则金额
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$onRow++;
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//die;
|