caipin 5 năm trước cách đây
mục cha
commit
6c8c08ec43
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 10 0
      protected/class/receipt.func.php

+ 10 - 0
protected/class/receipt.func.php

@@ -1865,6 +1865,16 @@ function excelRCData($summaryData,$aiAllList,$cglist,$year){
 		//办事处年占比
 		$obj->getactivesheet()->setCellValue ( 'A'.$onRow,$value['title'].'费用占比' );
 		$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++;//行数增加