caipin 5 年之前
父节点
当前提交
babe7332da
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      protected/class/receipt.func.php

+ 4 - 1
protected/class/receipt.func.php

@@ -1820,12 +1820,13 @@ function excelRCData($summaryData,$aiAllList,$cglist,$year){
 		$col='H';
 		foreach ($aiAllList as $aiak=>$aiav){
 			$sectionCount[$aiak]['0']++;
+			$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){//项目细则
 				
 				$sumRowStart=$onRow+2;
-				$sumRowEnd=$sumRowStart+12;
+				$sumRowEnd=$sumRowStart+11;
 				
 				$obj->getactivesheet()->setCellValue( $col.$onRow, '=SUM('.$col.$sumRowStart.':'.$col.$sumRowEnd.')' );
 				$col++;
@@ -1834,6 +1835,8 @@ function excelRCData($summaryData,$aiAllList,$cglist,$year){
 		$onRow++;//行数增加
 		
 		//办事处年占比
+		$obj->getactivesheet()->setCellValue ( 'A'.$onRow,$value['title'].'费用占比' );
+		$col='H';
 		
 		$onRow++;//行数增加