SHARE
TWEET

Untitled

luisruiz Sep 28th, 2017 (edited) 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  function LiquidacionesController(DialogLiquiServices,$mdDialog) {
  3.  
  4.         vm.showAdvanced = function (ev, rowEmployee) {  
  5.             var employee = angular.copy(rowEmployee);
  6.             $mdDialog.show({
  7.                 controller: DialogLiquiServices.controllerDialogLiqui(),
  8.                 templateUrl: 'app/main/liquidaciones/liquidaciones-detail/dialog-liqui.tmpl.html',
  9.                 parent: angular.element(document.body),
  10.                 targetEvent: ev,
  11.                 clickOutsideToClose: true,
  12.                 fullscreen: true,
  13.                 locals: {
  14.                     employee: employee
  15.                 }
  16.  
  17.             })
  18.                 .then(function (answer) {
  19.                     vm.status = 'You said the information was "' + answer + '".';
  20.                 }, function () {
  21.                     vm.status = 'You cancelled the dialog.';
  22.                 });
  23.         };
  24. }
  25.  
  26.  
  27.  
  28.  
  29.  
  30. SErvicio:
  31.  
  32.  
  33.     angular
  34.         .module('app.liquidaciones')
  35.         .factory('DialogLiquiServices', DialogLiquiServices);
  36.  
  37.     function DialogLiquiServices() {
  38.  
  39.  
  40.         var serviceDialog = {
  41.             controllerDialogLiqui: controllerDialogLiqui
  42.         };
  43.  
  44.         return serviceDialog;
  45.  
  46.  
  47.         //CARGA DATOS CALCULOS
  48.         function controllerDialogLiqui($scope, $mdDialog,employee) {
  49.  
  50.             //referencia BD        
  51.             $scope.settlements = ref.child('settlements').child(vm.idMonth);
  52.             $scope.config = ref.child('config');
  53.          
  54. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top