Commit a1c05075b46c59e31ef09e8c7beff762eff37603

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

linea al final

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
1 angular.module('focaModalInforme') 1 angular.module('focaModalInforme')
2 .factory('focaModalInformeChoferService', [ 2 .factory('focaModalInformeChoferService', [
3 '$http', 3 '$http',
4 'API_ENDPOINT', 4 'API_ENDPOINT',
5 function($http, API_ENDPOINT) { 5 function($http, API_ENDPOINT) {
6 return { 6 return {
7 getDescargas: function(fechaDesde, fechaHasta) { 7 getDescargas: function(fechaDesde, fechaHasta) {
8 return $http.post(API_ENDPOINT.URL + '/informe/chofer', 8 return $http.post(API_ENDPOINT.URL + '/informe/chofer',
9 {fechaDesde: fechaDesde, fechaHasta: fechaHasta}); 9 {fechaDesde: fechaDesde, fechaHasta: fechaHasta});
10 }, 10 },
11 getEmpresa: function(id) { 11 getEmpresa: function(id) {
12 return $http.get(API_ENDPOINT.URL + '/empresa/' + id); 12 return $http.get(API_ENDPOINT.URL + '/empresa/' + id);
13 }, 13 },
14 getDistanciaPorIdRemito: function(ids) { 14 getDistanciaPorIdRemito: function(ids) {
15 return $http.post(API_ENDPOINT.URL + '/remito/distancia', {ids: ids}); 15 return $http.post(API_ENDPOINT.URL + '/remito/distancia', {ids: ids});
16 } 16 }
17 }; 17 };
18 } 18 }
19 ]) 19 ])
20 .factory('focaModalInformeGeneralUnidadService', [ 20 .factory('focaModalInformeGeneralUnidadService', [
21 '$http', 21 '$http',
22 'API_ENDPOINT', 22 'API_ENDPOINT',
23 function($http, API_ENDPOINT) { 23 function($http, API_ENDPOINT) {
24 return { 24 return {
25 getEmpresa: function(id) { 25 getEmpresa: function(id) {
26 return $http.get(API_ENDPOINT.URL + '/empresa/' + id); 26 return $http.get(API_ENDPOINT.URL + '/empresa/' + id);
27 }, 27 },
28 getInformeData: function(params) { 28 getInformeData: function(params) {
29 return $http.post(API_ENDPOINT.URL + '/informe/general-unidad-reparto', 29 return $http.post(API_ENDPOINT.URL + '/informe/general-unidad-reparto',
30 {params: params}); 30 {params: params});
31 } 31 }
32 }; 32 };
33 } 33 }
34 ]) 34 ])
35 .factory('focaModalInformeLitrosKmUnidadService', [ 35 .factory('focaModalInformeLitrosKmUnidadService', [
36 '$http', 36 '$http',
37 'API_ENDPOINT', 37 'API_ENDPOINT',
38 function($http, API_ENDPOINT) { 38 function($http, API_ENDPOINT) {
39 return { 39 return {
40 getDescargas: function(idVehiculo, fechaDesde, fechaHasta) { 40 getDescargas: function(idVehiculo, fechaDesde, fechaHasta) {
41 return $http.post(API_ENDPOINT.URL + '/informe/litros-por-km', 41 return $http.post(API_ENDPOINT.URL + '/informe/litros-por-km',
42 {idVehiculo: idVehiculo, fechaDesde: fechaDesde, fechaHasta: fechaHasta}); 42 {idVehiculo: idVehiculo, fechaDesde: fechaDesde, fechaHasta: fechaHasta});
43 }, 43 },
44 getEmpresa: function(id) { 44 getEmpresa: function(id) {
45 return $http.get(API_ENDPOINT.URL + '/empresa/' + id); 45 return $http.get(API_ENDPOINT.URL + '/empresa/' + id);
46 }, 46 },
47 getDistanciaPorIdRemito: function(ids) { 47 getDistanciaPorIdRemito: function(ids) {
48 return $http.post(API_ENDPOINT.URL + '/remito/distancia', {ids: ids}); 48 return $http.post(API_ENDPOINT.URL + '/remito/distancia', {ids: ids});
49 } 49 }
50 }; 50 };
51 } 51 }
52 ]) 52 ])
53 .factory('focaModalInformeHojaRutaService', [ 53 .factory('focaModalInformeHojaRutaService', [
54 '$http', 54 '$http',
55 'API_ENDPOINT', 55 'API_ENDPOINT',
56 function($http, API_ENDPOINT) { 56 function($http, API_ENDPOINT) {
57 return { 57 return {
58 getHojasRuta: function(fechaDesde, fechaHasta) { 58 getHojasRuta: function(fechaDesde, fechaHasta) {
59 return $http.get(API_ENDPOINT.URL + '/hoja-ruta/listar/' + 59 return $http.get(API_ENDPOINT.URL + '/hoja-ruta/listar/' +
60 fechaDesde + '/' + fechaHasta); 60 fechaDesde + '/' + fechaHasta);
61 }, 61 },
62 getEmpresa: function(id) { 62 getEmpresa: function(id) {
63 return $http.get(API_ENDPOINT.URL + '/empresa/' + id); 63 return $http.get(API_ENDPOINT.URL + '/empresa/' + id);
64 } 64 }
65 }; 65 };
66 } 66 }
67 ]) 67 ])
68 .factory('focaModalInformeRepartoOptimoService', [ 68 .factory('focaModalInformeRepartoOptimoService', [
69 '$http', 69 '$http',
70 'API_ENDPOINT', 70 'API_ENDPOINT',
71 function($http, API_ENDPOINT) { 71 function($http, API_ENDPOINT) {
72 return { 72 return {
73 getInformeData: function(params) { 73 getInformeData: function(params) {
74 return $http.post(API_ENDPOINT.URL + '/informe/reparto-optimo', 74 return $http.post(API_ENDPOINT.URL + '/informe/reparto-optimo',
75 {params: params}); 75 {params: params});
76 } 76 }
77 }; 77 };
78 } 78 }
79 ]);
79 ]);