controller.js
2.32 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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'
}
);
};
$scope.seleccionarLitrosPorKmRecorridosPorUnidadDeReparto = function() {
$uibModal.open(
{
ariaLabelledBy: 'Informes de litros por km recorridos por unidad de reparto',
templateUrl: 'modal-informe-litros-km-unidad.html',
controller: 'focaModalInformeLitrosKmUnidadController',
size: 'lg'
}
);
};
$scope.seleccionarInformeGeneralPorUnidadDeReparto = function() {
$uibModal.open(
{
ariaLabelledBy: 'Informe general por unidad de reparto',
templateUrl: 'modal-informe-general-unidad.html',
controller: 'focaModalInformeGeneralUnidadController',
size: 'lg'
}
);
};
}
]);