controller.js
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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: 'modal-informe-hoja-ruta.html',
controller: 'focaModalInformeHojaRutaController',
size: 'lg'
}
);
};
$scope.seleccionarChoferes = function() {
$uibModal.open(
{
ariaLabelledBy: 'Informes de choferes',
templateUrl: 'modal-informe-chofer.html',
controller: 'focaModalInformeChoferController',
size: 'lg'
}
);
};
}
]);