controller.js
4.9 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
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() {
focaBotoneraLateralService.showTeclado(false);
$uibModal.open(
{
ariaLabelledBy: 'Informes de hojas de ruta',
templateUrl: 'informe-hoja-ruta.html',
controller: 'focaModalInformeHojaRutaController',
size: 'xl'
}
)
.result.then(function(){
focaBotoneraLateralService.showTeclado(true);
}, function(){
focaBotoneraLateralService.showTeclado(true);
});
};
$scope.seleccionarChoferes = function() {
focaBotoneraLateralService.showTeclado(false);
$uibModal.open(
{
ariaLabelledBy: 'Informes de choferes',
templateUrl: 'informe-chofer.html',
controller: 'focaModalInformeChoferController',
size: 'xl'
}
)
.result.then(function(){
focaBotoneraLateralService.showTeclado(true);
}, function(){
focaBotoneraLateralService.showTeclado(true);
});
};
$scope.seleccionarLitrosPorKmRecorridosPorUnidadDeReparto = function() {
focaBotoneraLateralService.showTeclado(false);
$uibModal.open(
{
ariaLabelledBy: 'Informes de litros por km recorridos por unidad de reparto',
templateUrl: 'informe-litros-km-unidad.html',
controller: 'focaModalInformeLitrosKmUnidadController',
size: 'xl'
}
)
.result.then(function(){
focaBotoneraLateralService.showTeclado(true);
}, function(){
focaBotoneraLateralService.showTeclado(true);
});
};
$scope.seleccionarInformeGeneralPorUnidadDeReparto = function() {
focaBotoneraLateralService.showTeclado(false);
$uibModal.open(
{
ariaLabelledBy: 'Informe general por unidad de reparto',
templateUrl: 'informe-general-unidad.html',
controller: 'focaModalInformeGeneralUnidadController',
size: 'xl'
}
)
.result.then(function(){
focaBotoneraLateralService.showTeclado(true);
}, function(){
focaBotoneraLateralService.showTeclado(true);
});
};
$scope.seleccionarInformeDeRepartoÓptimoDetallado = function() {
focaBotoneraLateralService.showTeclado(false);
$uibModal.open(
{
ariaLabelledBy: 'Informe de reparto óptimo detallado',
templateUrl: 'informe-reparto-optimo.html',
controller: 'focaModalInformeRepartoOptimoController',
size: 'xl'
}
)
.result.then(function(){
focaBotoneraLateralService.showTeclado(true);
}, function(){
focaBotoneraLateralService.showTeclado(true);
});
};
$scope.seleccionarInformeDeProductividad = function() {
focaBotoneraLateralService.showTeclado(false);
$uibModal.open(
{
ariaLabelledBy:
'Informe de productividad de Vendedores / Cobradores / Transportistas',
templateUrl: 'informe-productividad.html',
controller: 'focaModalInformeProductividadController',
size: 'xl'
}
)
.result.then(function(){
focaBotoneraLateralService.showTeclado(true);
}, function(){
focaBotoneraLateralService.showTeclado(true);
});
};
}
]);