Commit aaf537312e716c14814cbf52b3e0f894ca044c17

Authored by Eric Fernandez
1 parent c7154c2464
Exists in master

boton fecha, nombre unidad

Showing 1 changed file with 16 additions and 3 deletions   Show diff stats
src/js/controller.js
... ... @@ -9,10 +9,14 @@ angular.module('focaLogisticaPedidoRuta') .controller('focaLogisticaPedidoRutaCo
9 9 //Datos Pantalla
10 10 $scope.titulo = 'Logistica de Pedidos';
11 11 var transportista = {
12   - label: 'transportista',
  12 + label: 'Unidad',
13 13 image: 'abmChofer.png'
14 14 };
15   - $scope.botonera = [transportista];
  15 + var fecha = {
  16 + label: 'Fecha Reparto',
  17 + image: 'abmChofer.png'
  18 + };
  19 + $scope.botonera = [transportista, fecha];
16 20 var cabecera = '';
17 21 $scope.now = new Date();
18 22 $scope.idVendedor = 0;
... ... @@ -124,7 +128,7 @@ angular.module('focaLogisticaPedidoRuta') .controller('focaLogisticaPedidoRutaCo
124 128 getSeguimiento();
125 129 };
126 130  
127   - $scope.seleccionarTransportista = function() {
  131 + $scope.seleccionarUnidad = function() {
128 132 var modalInstance = $uibModal.open(
129 133 {
130 134 ariaLabelledBy: 'Busqueda de Transportista',
... ... @@ -167,6 +171,15 @@ angular.module('focaLogisticaPedidoRuta') .controller('focaLogisticaPedidoRutaCo
167 171 });
168 172 };
169 173  
  174 + $scope.seleccionarFechaReparto = function() {
  175 + focaModalService.modalFecha('Fecha de reparto').then(function(fecha) {
  176 + $scope.$broadcast('addCabecera',{
  177 + label: 'Fecha:',
  178 + valor: fecha.toLocaleDateString()
  179 + });
  180 + });
  181 + };
  182 +
170 183 function getSeguimiento() {
171 184 var desde = new Date('1900/01/01');
172 185 var hasta = new Date('2099/01/01');