angular.module('focaInformes') .controller('focaInformesController', [ '$scope', 'focaInformesService', 'focaBotoneraLateralService', '$uibModal', function($scope, focaInformesService, focaBotoneraLateralService, $uibModal) { $scope.now = new Date(); $scope.botonera = focaInformesService.getBotonera(); //SETEO BOTONERA LATERAL focaBotoneraLateralService.showSalir(true); focaBotoneraLateralService.showPausar(false); focaBotoneraLateralService.showGuardar(false); $scope.seleccionarHojasDeRuta = function() { $uibModal.open( { ariaLabelledBy: 'Informes de hojas de ruta', templateUrl: 'informe-hoja-ruta.html', controller: 'focaModalInformeHojaRutaController', size: 'lg' } ); }; $scope.seleccionarChoferes = function() { $uibModal.open( { ariaLabelledBy: 'Informes de choferes', templateUrl: 'informe-chofer.html', controller: 'focaModalInformeChoferController', size: 'lg' } ); }; $scope.seleccionarLitrosPorKmRecorridosPorUnidadDeReparto = function() { $uibModal.open( { ariaLabelledBy: 'Informes de litros por km recorridos por unidad de reparto', templateUrl: 'informe-litros-km-unidad.html', controller: 'focaModalInformeLitrosKmUnidadController', size: 'lg' } ); }; $scope.seleccionarInformeGeneralPorUnidadDeReparto = function() { $uibModal.open( { ariaLabelledBy: 'Informe general por unidad de reparto', templateUrl: 'informe-general-unidad.html', controller: 'focaModalInformeGeneralUnidadController', size: 'lg' } ); }; } ]);