PageSourceSearch

https://servicios.segurosvenezuela.com/SvServicios/resources/js/ap…/parametros/AdminParametroController.js

js segurosvenezuela.com collected 2026-10-04 01:29:27 UTC 2,454 bytes, 51 lines download raw bytes

1function AdminParametroController($scope, $mdDialog, ParametroService, $timeout, $filter) {
2            
3    ParametroService.getFilaParametro("TERMINOS_CONDICIONES", "TERMINOS Y CONDICIONES")
4    .success(function(value){
5        $scope.datosParametro = {  cdP: value.cdParametro,
6                                   nmP: value.nmParametro,
7                                   deP: value.deParametro
8        };
9    });
10    
11       
12    $scope.ActualizarParametro = function(ev){
13            var confirm = $mdDialog.confirm()
14                  .title('¿Esta Seguro que desea actualizar '+ $scope.datosParametro.nmP + '?')
15                  .ariaLabel('actualizar')
16                  .targetEvent(ev)
17                  .ok('Confirmar')
18                  .cancel('Cancelar');
19          
20          $mdDialog.show(confirm).then(function() {
21              
22                    ParametroService.ActualizarParametro($scope.datosParametro.cdP, $scope.datosParametro.nmP, $scope.datosParametro.deP) 
23                        .success(function(){
24                                
25                                $mdDialog.show(
26                                    $mdDialog.alert()
27                                      .parent(angular.element(document.querySelector('#popupContainer')))
28                                      .clickOutsideToClose(true)
29                                      .title('Se ha actualizado '+ $scope.datosParametro.nmP + ' de manera exitosa')
30                                      .ariaLabel('parametro actualizado')
31                                      .ok('Aceptar')
32                                      .targetEvent(ev)
33                                );
34                        });
35              }, function() {
36                    $mdDialog.show(
37                        $mdDialog.alert()
38                          .parent(angular.element(document.querySelector('#popupContainer')))
39                          .clickOutsideToClose(true)
40                          .title('Actualizar ha sido cancelado')
41                          .ariaLabel('Cancelar')
42                          .ok('Aceptar')
43                          .targetEvent(ev)
44                    );
45              }); 
46    };
47        
48    
49}  
50AdminParametroController.$inject = ["$scope", "$mdDialog","ParametroService", "$timeout", "$filter"];
51svservicios.controller('AdminParametroController', AdminParametroController);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.