caipin 5 anos atrás
pai
commit
0ae4e61897
1 arquivos alterados com 12 adições e 1 exclusões
  1. 12 1
      protected/controller/ReceiptExtendController.php

+ 12 - 1
protected/controller/ReceiptExtendController.php

@@ -2661,7 +2661,18 @@ class ReceiptExtendController extends DooController {
      */
     function receiptSummaryStatisticsByAgency(){
     	
-    	$cidIn = $this->get_args ( 'cidIn' ) ? $this->get_args ( 'cidIn' ) : '12,10,9';
+    	//$cidIn = $this->get_args ( 'cidIn' ) ? $this->get_args ( 'cidIn' ) : '12,10,9';
+    	
+    	Doo::loadClass ( 'XDeode' );
+    	
+    	$cidKeyIn=file_get_contents( "protected/config/receipt/summary.conf.ini");
+    	$cidKeyIn=explode(',', $cidKeyIn);$cidIn=array();
+    	foreach ($cidKeyIn as $key=>$value){
+    		$XDeode = new XDeode ( 5 );
+    		array_push($cidIn, $XDeode->decode($value));
+    	}
+    	$cidIn=implode(',', $cidIn);
+    	echo $cidIn;die;
     	$year= $this->get_args ( 'year' ) ? $this->get_args ( 'year' ) : date('Y');