caipin 5 tahun lalu
induk
melakukan
6fd36adeb2
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      protected/class/receipt.func.php

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

@@ -1756,7 +1756,8 @@ function excelRCData($summaryData,$aiAllList,$year){
 		$colNum++;
 	}
 	$obj->getActiveSheet()->getDefaultRowDimension()->setRowHeight(18);
-	
+	//设置字体居中
+	$obj->getActiveSheet()->getStyle('A1:'.$maxCol.'3')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
 	//设置边框
 	$styleThinBlackBorderOutline = array('borders' => array(
 					'allborders' => array( //设置全部边框