caipin 5 năm trước cách đây
mục cha
commit
babe7332da
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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++;//行数增加