git-svn-id: https://svn.coded.pt/svn/SIPRP@1881 bb69d46d-e84e-40c8-a05a-06db0d633741

lxbfYeaa
João Maurício 12 years ago
parent a569e95189
commit acae6732e0

@ -2,6 +2,8 @@
{ {
$scope.globals = globals; $scope.globals = globals;
//$scope.isNewRecord = false;
$scope.descricao = null; $scope.descricao = null;
$scope.calculatedAge = 0; $scope.calculatedAge = 0;
@ -88,7 +90,14 @@
$scope.editing.ficha.data_conclusao = null; $scope.editing.ficha.data_conclusao = null;
} }
$scope.storeFichasClinicas.upsert($scope.selected, $scope.editing, function(response, selected, editing, isNewRecord){ //var isNewRecord = $scope.editing.ficha.id == null;
$scope.storeFichasClinicas.upsert($scope.selected, $scope.editing, function(response, selected, editing){
//if(isNewRecord && response.success)
//{
// $scope.isNewRecord = true;
//}
if(response.success && complete) if(response.success && complete)
{ {
@ -189,6 +198,7 @@
$scope.$parent.loadModule({Controller: 'Search'}, function(className, scope, isNewModule){ $scope.$parent.loadModule({Controller: 'Search'}, function(className, scope, isNewModule){
angular.element(scope.comboTrabalhadores.domEl).triggerHandler('change');
}); });
} }
}, },
@ -196,6 +206,7 @@
label: 'Gravar', label: 'Gravar',
className: 'btn-success', className: 'btn-success',
callback: function() { callback: function() {
$scope.save(false); $scope.save(false);
globals.plugins.hideSideMenu(); globals.plugins.hideSideMenu();

@ -92,6 +92,7 @@
$scope.$parent.loadModule({Controller: 'Search'}, function(className, scope, isNewModule){ $scope.$parent.loadModule({Controller: 'Search'}, function(className, scope, isNewModule){
angular.element(scope.comboTrabalhadores.domEl).triggerHandler('change');
}); });
} }
}, },

Loading…
Cancel
Save