Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function LiquidacionesController(DialogLiquiServices,$mdDialog) {
- vm.showAdvanced = function (ev, rowEmployee) {
- var employee = angular.copy(rowEmployee);
- $mdDialog.show({
- controller: DialogLiquiServices.controllerDialogLiqui(),
- templateUrl: 'app/main/liquidaciones/liquidaciones-detail/dialog-liqui.tmpl.html',
- parent: angular.element(document.body),
- targetEvent: ev,
- clickOutsideToClose: true,
- fullscreen: true,
- locals: {
- employee: employee
- }
- })
- .then(function (answer) {
- vm.status = 'You said the information was "' + answer + '".';
- }, function () {
- vm.status = 'You cancelled the dialog.';
- });
- };
- }
- SErvicio:
- angular
- .module('app.liquidaciones')
- .factory('DialogLiquiServices', DialogLiquiServices);
- function DialogLiquiServices() {
- var serviceDialog = {
- controllerDialogLiqui: controllerDialogLiqui
- };
- return serviceDialog;
- //CARGA DATOS CALCULOS
- function controllerDialogLiqui($scope, $mdDialog,employee) {
- //referencia BD
- $scope.settlements = ref.child('settlements').child(vm.idMonth);
- $scope.config = ref.child('config');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement