Commit 1e07165a11f36b9fe2d15bf634c9e35f7bb8ad9b

Authored by Eduardo Santos
2 parents dde0c432 cfac238b
Exists in master and in 1 other branch 3.1

Aumenta o tamanho da página no datatable

src/Cacic/CommonBundle/Resources/public/js/init.js
... ... @@ -209,5 +209,13 @@ $(document).ready(function(){
209 209 * e já configura a máscara no formato xx/xx/xxxx
210 210 */
211 211 $(".datepicker_on").datepicker({ altFormat: "dd/mm/yy" }).mask('99/99/9999');
  212 + $('#datatable').dataTable( {
  213 + "iDisplayLength": 100,
  214 + "iDisplayStart": 100,
  215 + "bJQueryUI": true,
  216 + "sPaginationType": "full_numbers",
  217 + "bDestroy": true
  218 + } );
  219 +
212 220  
213 221 });
214 222 \ No newline at end of file
... ...
src/Cacic/CommonBundle/Resources/views/Local/index.html.twig
... ... @@ -18,7 +18,7 @@
18 18 <p>{{ "Neste módulo deverão ser registrados todos os locais originais do sistema, para que seja possível o controle centralizado"|trans }}</p>
19 19 <br />
20 20  
21   - <table class="table table-striped table-bordered">
  21 + <table class="display datatable" id="datatable">
22 22  
23 23 <thead>
24 24 <tr>
... ...
src/Cacic/RelatorioBundle/Controller/FaturamentoController.php
... ... @@ -144,15 +144,14 @@
144 144 //Botão csv cada faturamento
145 145 public function listarCsvAction( Request $request) {
146 146  
147   - $dataInicio = $request->get('dtAcaoInicio');
148   - $dataFim = $request->get('dtAcaoFim');
  147 + $dataInicio = $request->get('dataInicio');
  148 + $dataFim = $request->get('dataFim');
149 149 $idRede = $request->get('idRede');
150 150  
151 151 $printers = $this->getDoctrine()
152 152 ->getRepository('CacicCommonBundle:LogAcesso')
153 153 ->listarCsv($filtros = array(),$idRede, $dataInicio , $dataFim);
154 154  
155   -
156 155 // Gera CSV
157 156 $reader = new ArrayReader($printers);
158 157  
... ...