Commit e7d8fed5abf165af754e289e336c58e7a243b394

Authored by Jose Pinto
1 parent b8e46ff300
Exists in master and in 1 other branch develop

ok urls templates modales

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
src/js/controller.js
1 angular.module('focaInformes') 1 angular.module('focaInformes')
2 .controller('focaInformesController', 2 .controller('focaInformesController',
3 [ 3 [
4 '$scope', 4 '$scope',
5 'focaInformesService', 5 'focaInformesService',
6 'focaBotoneraLateralService', 6 'focaBotoneraLateralService',
7 '$uibModal', 7 '$uibModal',
8 function($scope, focaInformesService, focaBotoneraLateralService, $uibModal) 8 function($scope, focaInformesService, focaBotoneraLateralService, $uibModal)
9 { 9 {
10 $scope.now = new Date(); 10 $scope.now = new Date();
11 $scope.botonera = focaInformesService.getBotonera(); 11 $scope.botonera = focaInformesService.getBotonera();
12 12
13 //SETEO BOTONERA LATERAL 13 //SETEO BOTONERA LATERAL
14 focaBotoneraLateralService.showSalir(true); 14 focaBotoneraLateralService.showSalir(true);
15 focaBotoneraLateralService.showPausar(false); 15 focaBotoneraLateralService.showPausar(false);
16 focaBotoneraLateralService.showGuardar(false); 16 focaBotoneraLateralService.showGuardar(false);
17 17
18 $scope.seleccionarHojasDeRuta = function() { 18 $scope.seleccionarHojasDeRuta = function() {
19 $uibModal.open( 19 $uibModal.open(
20 { 20 {
21 ariaLabelledBy: 'Informes de hojas de ruta', 21 ariaLabelledBy: 'Informes de hojas de ruta',
22 templateUrl: 'modal-informe-hoja-ruta.html', 22 templateUrl: 'informe-hoja-ruta.html',
23 controller: 'focaModalInformeHojaRutaController', 23 controller: 'focaModalInformeHojaRutaController',
24 size: 'lg' 24 size: 'lg'
25 } 25 }
26 ); 26 );
27 }; 27 };
28 $scope.seleccionarChoferes = function() { 28 $scope.seleccionarChoferes = function() {
29 $uibModal.open( 29 $uibModal.open(
30 { 30 {
31 ariaLabelledBy: 'Informes de choferes', 31 ariaLabelledBy: 'Informes de choferes',
32 templateUrl: 'modal-informe-chofer.html', 32 templateUrl: 'informe-chofer.html',
33 controller: 'focaModalInformeChoferController', 33 controller: 'focaModalInformeChoferController',
34 size: 'lg' 34 size: 'lg'
35 } 35 }
36 ); 36 );
37 }; 37 };
38 $scope.seleccionarLitrosPorKmRecorridosPorUnidadDeReparto = function() { 38 $scope.seleccionarLitrosPorKmRecorridosPorUnidadDeReparto = function() {
39 $uibModal.open( 39 $uibModal.open(
40 { 40 {
41 ariaLabelledBy: 'Informes de litros por km recorridos por unidad de reparto', 41 ariaLabelledBy: 'Informes de litros por km recorridos por unidad de reparto',
42 templateUrl: 'modal-informe-litros-km-unidad.html', 42 templateUrl: 'informe-litros-km-unidad.html',
43 controller: 'focaModalInformeLitrosKmUnidadController', 43 controller: 'focaModalInformeLitrosKmUnidadController',
44 size: 'lg' 44 size: 'lg'
45 } 45 }
46 ); 46 );
47 }; 47 };
48 $scope.seleccionarInformeGeneralPorUnidadDeReparto = function() { 48 $scope.seleccionarInformeGeneralPorUnidadDeReparto = function() {
49 $uibModal.open( 49 $uibModal.open(
50 { 50 {
51 ariaLabelledBy: 'Informe general por unidad de reparto', 51 ariaLabelledBy: 'Informe general por unidad de reparto',
52 templateUrl: 'modal-informe-general-unidad.html', 52 templateUrl: 'informe-general-unidad.html',
53 controller: 'focaModalInformeGeneralUnidadController', 53 controller: 'focaModalInformeGeneralUnidadController',
54 size: 'lg' 54 size: 'lg'
55 } 55 }
56 ); 56 );
57 }; 57 };
58 } 58 }
59 ]); 59 ]);
60 60