|
@@ -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>';
|