Commit 9f164e152bd6fce9cc7f996064e14041107e14e6

Authored by luis.camargo
1 parent a72ed695
Exists in master

redmine #4329 Construção da história;

cit-contratos-api/src/main/java/br/com/centralit/api/service/impl/EventoRepactuacaoServiceImpl.java
@@ -41,7 +41,6 @@ import br.com.centralit.framework.model.Dominio; @@ -41,7 +41,6 @@ import br.com.centralit.framework.model.Dominio;
41 import br.com.centralit.framework.model.Usuario; 41 import br.com.centralit.framework.model.Usuario;
42 import br.com.centralit.framework.service.arquitetura.GenericServiceImpl; 42 import br.com.centralit.framework.service.arquitetura.GenericServiceImpl;
43 import br.com.centralit.framework.util.UtilDataBase; 43 import br.com.centralit.framework.util.UtilDataBase;
44 -import br.com.centralit.framework.util.UtilDate;  
45 import br.com.centralit.framework.util.UtilObjeto; 44 import br.com.centralit.framework.util.UtilObjeto;
46 45
47 46
@@ -108,6 +107,14 @@ public class EventoRepactuacaoServiceImpl extends GenericServiceImpl<EventoRepac @@ -108,6 +107,14 @@ public class EventoRepactuacaoServiceImpl extends GenericServiceImpl<EventoRepac
108 return super.save(eventoRepactuacao); 107 return super.save(eventoRepactuacao);
109 } 108 }
110 109
  110 + @Override
  111 + public EventoRepactuacao merge(EventoRepactuacao eventoRepactuacao) {
  112 + montarObjeto(eventoRepactuacao);
  113 + this.validarEntidade(eventoRepactuacao, this.validator);
  114 +
  115 + EventoRepactuacao entityMerged = super.save(eventoRepactuacao);
  116 + return entityMerged;
  117 + }
111 /** 118 /**
112 * 119 *
113 * @param eventoRepactuacao 120 * @param eventoRepactuacao
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/VisaoContratoController.js
@@ -474,8 +474,8 @@ citApp.controller('VisaoContratoController', ['$scope', @@ -474,8 +474,8 @@ citApp.controller('VisaoContratoController', ['$scope',
474 break; 474 break;
475 case 'REPACTUACAO': 475 case 'REPACTUACAO':
476 $scope.visualizarEvento = true; 476 $scope.visualizarEvento = true;
477 - $scope.editEvento = false;  
478 - $scope.removeEvento = false; 477 + $scope.editEvento = true;
  478 + $scope.removeEvento = true;
479 break; 479 break;
480 case 'RESCISAO': 480 case 'RESCISAO':
481 $scope.visualizarEvento = true; 481 $scope.visualizarEvento = true;