From b84604bf9e8ed59b779bc1d2aef5a60768d84673 Mon Sep 17 00:00:00 2001 From: Jose Pinto Date: Tue, 18 Dec 2018 16:55:31 -0300 Subject: [PATCH] agrego componente foca-botonera-lateral --- index.html | 5 +++-- src/js/app.js | 1 + src/js/controller.js | 15 ++++++++++++--- src/views/cobranza.html | 28 ++-------------------------- 4 files changed, 18 insertions(+), 31 deletions(-) diff --git a/index.html b/index.html index e467338..9b0ecf9 100644 --- a/index.html +++ b/index.html @@ -18,12 +18,13 @@ + + + - - diff --git a/src/js/app.js b/src/js/app.js index 4a5e997..1e84139 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -1,6 +1,7 @@ angular.module('focaCrearCobranza', [ 'ngRoute', 'ui.bootstrap', + 'focaBotoneraLateral', 'focaModal', 'focaModalFactura', 'focaBusquedaCliente', diff --git a/src/js/controller.js b/src/js/controller.js index 083ad08..c4f5fb9 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -1,15 +1,18 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', [ '$scope', + '$rootScope', + '$timeout', '$uibModal', '$location', - '$filter', 'focaCrearCobranzaService', 'focaModalService', '$cookies', + '$filter', 'focaSeguimientoService', - function($scope, $uibModal, $location, $filter, focaCrearCobranzaService, focaModalService, - $cookies, focaSeguimientoService) + 'focaBotoneraLateralService', + function($scope, $rootScope, $timeout, $uibModal, $location, focaCrearCobranzaService, + focaModalService, $filter, $cookies, focaSeguimientoService, focaBotoneraLateralService) { $scope.botonera = focaCrearCobranzaService.getBotonera(); @@ -34,6 +37,12 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', $scope.usuario = data.data; }); + $timeout(function() { + focaBotoneraLateralService.showSalir(true); + focaBotoneraLateralService.showPausar(true); + focaBotoneraLateralService.showGuardar(true, $scope.crearCobranza); + }); + $scope.crearCobranza = function() { if(!$scope.cobranza.cliente) { focaModalService.alert('Ingrese Cliente'); diff --git a/src/views/cobranza.html b/src/views/cobranza.html index 7529b27..32dbfb4 100644 --- a/src/views/cobranza.html +++ b/src/views/cobranza.html @@ -1,4 +1,4 @@ -
+
- +
@@ -433,30 +433,6 @@
-
-
- - - -
-
-- 1.9.1