Commit 515785244444fac7a1529db0386071f30b1bda84

Authored by Eric Fernandez
1 parent 192532ecff
Exists in master

fuera modal de bancos

Showing 1 changed file with 19 additions and 10 deletions   Show diff stats
src/js/controller.js
... ... @@ -28,16 +28,25 @@ angular.module('focaModalCheque')
28 28  
29 29 $scope.seleccionarBanco = function(key) {
30 30 if(key === 13) {
31   - var modalInstance = $uibModal.open(
32   - {
33   - ariaLabelledBy: 'Busqueda de Bancos',
34   - templateUrl: 'modal-bancos.html',
35   - controller: 'focaModalBancoController',
36   - size: 'md',
37   - resolve: {filters: function() {return $scope.cheque.banco.desbco;}}
38   - }
39   - );
40   - modalInstance.result.then(function(banco) {
  31 + var parametrosModal = {
  32 + query: '/banco',
  33 + columnas: [
  34 + {
  35 + propiedad: 'ID',
  36 + nombre: 'Codigo',
  37 + filtro: {
  38 + nombre: 'rellenarDigitos',
  39 + parametro: 3}
  40 + },
  41 + {
  42 + propiedad: 'desbco',
  43 + nombre: 'Nombre'
  44 + }
  45 + ],
  46 + titulo:'Búsqueda de bancos',
  47 + size: 'md'
  48 + };
  49 + focaModalService.modal(parametrosModal).then(function(banco) {
41 50 $scope.cheque.banco = banco;
42 51 $scope.focused = 2;
43 52 }, function() {