Commit b10f3782d7729d23d32886d7eb5565bc6a425166

Authored by Eric Fernandez
1 parent 025d712e32
Exists in master and in 1 other branch develop

quito modal proveedores

Showing 1 changed file with 18 additions and 13 deletions   Show diff stats
src/js/controller.js
... ... @@ -38,20 +38,25 @@ angular.module('focaAbmVehiculo')
38 38 );
39 39 };
40 40 $scope.seleccionarTransportista = function() {
41   - var modalInstance = $uibModal.open(
42   - {
43   - ariaLabelledBy: 'Busqueda de Transportista',
44   - templateUrl: 'modal-proveedor.html',
45   - controller: 'focaModalProveedorCtrl',
46   - size: 'lg',
47   - resolve: {
48   - transportista: function() {
49   - return true;
50   - }
  41 + var parametrosModal = {
  42 + titulo: 'Búsqueda de Transportista',
  43 + query: '/transportista',
  44 + columnas: [
  45 + {
  46 + nombre: 'Código',
  47 + propiedad: 'COD'
  48 + },
  49 + {
  50 + nombre: 'Nombre',
  51 + propiedad: 'NOM'
  52 + },
  53 + {
  54 + nombre: 'CUIT',
  55 + propiedad: 'CUIT'
51 56 }
52   - }
53   - );
54   - modalInstance.result.then(
  57 + ]
  58 + };
  59 + focaModalService.modal(parametrosModal).then(
55 60 function(transportista) {
56 61 elegirTransportista(transportista);
57 62 focaAbmVehiculoService.transportistaSeleccionado = transportista;