caipin 5 년 전
부모
커밋
4b1c7af439
2개의 변경된 파일50개의 추가작업 그리고 9개의 파일을 삭제
  1. 22 4
      protected/controller/ReceiptExtendController.php
  2. 28 5
      protected/view/receipt/receiptSummaryStatisticsByAgency.html

+ 22 - 4
protected/controller/ReceiptExtendController.php

@@ -2693,26 +2693,44 @@ class ReceiptExtendController extends DooController {
     			array_push($dataSummary[$value['cid']][$value['month']][$value['itemCategory']], $value);
     		}
     		
+    		print_r($dataSummary);
     		
     		Doo::loadClass ( 'receipt.func' );
     		
     		//构建数据html
+    		$summaryDateHtml='';
     		$cglist=$category->getCategoryInCid($cidIn);
-    		//print_r($aiAllList);
     		foreach ($cglist as $cgk=>$value){
+    			
+    			//办事处每月数据展示
+    			$summaryDateHtml.='<tr>';
     			for($month=1;$month<=12;$month++){
+    				$summaryDateHtml.='<th>'.$value['title'].$month.'月合计</th>
+										<td class="taR"></td>
+										<td class="taR"></td>
+										<td class="taR"></td>
+										<td class="taR"></td>
+										<td class="taR"></td>
+										<td class="taR colGreen"></td>';
+    				
+    				$itemHtml='';
     				foreach ($aiAllList as $aiak=>$aiav){
-    					
+    					//foreach ($dataSummary as)
+    					$itemHtml.='<td class="taR"></td>';
     				}
+    				
+    				$summaryDateHtml.='<td class="taR colRed"></td>';
+    				
     			}
+    			$summaryDateHtml.='</tr>';
     		}
     		
     		//构建栏目展示Html
-    		 
     		foreach ($aiAllList as $key=>$value){
+    			//栏目
     			$sectionCount=count($value)+1;
     			$sectionHtml.='<th colspan="'.$sectionCount.'">'.$key.'</th>';
-    			     
+    			//栏目细则
     			$sectionItemHtml.='<th class="colRed">合计</th>';
     			foreach ($value as $k=>$v){
     				$sectionItemHtml.='<th>'.$v['name'].'</th>';

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 28 - 5
protected/view/receipt/receiptSummaryStatisticsByAgency.html