Commit edd8b8bdb2969875699d90623151a2820c039e7a

Authored by erick.sato
1 parent 293e5b49
Exists in master

[Redmine Atendimento #4431]Padronização list contrato

cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/EstudoTecnicoController.js
@@ -108,7 +108,13 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -108,7 +108,13 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
108 $scope.acaoEmMassaRecursosMateriais = false; 108 $scope.acaoEmMassaRecursosMateriais = false;
109 $scope.acaoEmMassaRecursosHumanos = false; 109 $scope.acaoEmMassaRecursosHumanos = false;
110 $scope.setCurrentStep(0); 110 $scope.setCurrentStep(0);
111 - 111 + $scope.atualizarListaSizeSelectReqNegocio();
  112 + $scope.atualizarListaSizeSelectSolucao();
  113 + $scope.atualizarListaSizeSelectServicoSolucao();
  114 + $scope.atualizarListaSizeSelectBeneficio();
  115 + $scope.atualizarListaSizeSelectRecursoMaterial();
  116 + $scope.atualizarListaSizeSelectRecursoHumano();
  117 + $scope.atualizarListaSizeSelectAcaoContigencia();
112 $timeout(function() { 118 $timeout(function() {
113 $scope.estudoTecnicoForm.planejamentoContratacaoForm.$submitted = false; 119 $scope.estudoTecnicoForm.planejamentoContratacaoForm.$submitted = false;
114 $scope.estudoTecnicoForm.definicaoRequisitosForm.$submitted = false; 120 $scope.estudoTecnicoForm.definicaoRequisitosForm.$submitted = false;
@@ -133,6 +139,14 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -133,6 +139,14 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
133 139
134 $scope.edit = edit; 140 $scope.edit = edit;
135 141
  142 + $scope.atualizarListaSizeSelectReqNegocio();
  143 + $scope.atualizarListaSizeSelectSolucao();
  144 + $scope.atualizarListaSizeSelectServicoSolucao();
  145 + $scope.atualizarListaSizeSelectBeneficio();
  146 + $scope.atualizarListaSizeSelectRecursoMaterial();
  147 + $scope.atualizarListaSizeSelectRecursoHumano();
  148 + $scope.atualizarListaSizeSelectAcaoContigencia();
  149 +
136 $scope.setCurrentStep(0); 150 $scope.setCurrentStep(0);
137 151
138 $scope.setLoading(false); 152 $scope.setLoading(false);
@@ -255,6 +269,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -255,6 +269,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
255 if(!value){ 269 if(!value){
256 $scope.listaRequisitoTecSelecao = []; 270 $scope.listaRequisitoTecSelecao = [];
257 } 271 }
  272 + $scope.atualizarListaSizeSelectReqNegocio();
258 }; 273 };
259 274
260 $scope.checkReqNegocio = function(item){ 275 $scope.checkReqNegocio = function(item){
@@ -276,6 +291,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -276,6 +291,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
276 if(!value){ 291 if(!value){
277 $scope.listaAlternativa = []; 292 $scope.listaAlternativa = [];
278 } 293 }
  294 + $scope.atualizarListaSizeSelectSolucao();
279 }; 295 };
280 296
281 $scope.checkAlternativa = function(item){ 297 $scope.checkAlternativa = function(item){
@@ -296,6 +312,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -296,6 +312,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
296 if(!value){ 312 if(!value){
297 $scope.listaServicoSolucao = []; 313 $scope.listaServicoSolucao = [];
298 } 314 }
  315 + $scope.atualizarListaSizeSelectServicoSolucao();
299 }; 316 };
300 317
301 $scope.checkBemServico = function(item){ 318 $scope.checkBemServico = function(item){
@@ -316,6 +333,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -316,6 +333,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
316 if(!value){ 333 if(!value){
317 $scope.listaBeneficio = []; 334 $scope.listaBeneficio = [];
318 } 335 }
  336 + $scope.atualizarListaSizeSelectBeneficio();
319 }; 337 };
320 338
321 $scope.checkBeneficio = function(item){ 339 $scope.checkBeneficio = function(item){
@@ -336,6 +354,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -336,6 +354,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
336 if(!value){ 354 if(!value){
337 $scope.listaRecursoMateriais = []; 355 $scope.listaRecursoMateriais = [];
338 } 356 }
  357 + $scope.atualizarListaSizeSelectRecursoMaterial();
339 }; 358 };
340 359
341 $scope.checkRecursoMaterial = function(item){ 360 $scope.checkRecursoMaterial = function(item){
@@ -356,6 +375,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -356,6 +375,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
356 if(!value){ 375 if(!value){
357 $scope.listaRecursoHumanos = []; 376 $scope.listaRecursoHumanos = [];
358 } 377 }
  378 + $scope.atualizarListaSizeSelectRecursoHumano();
359 }; 379 };
360 380
361 $scope.checkRecursoHumano = function(item){ 381 $scope.checkRecursoHumano = function(item){
@@ -375,6 +395,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -375,6 +395,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
375 if(!value){ 395 if(!value){
376 $scope.listaAcoesContigencia = []; 396 $scope.listaAcoesContigencia = [];
377 } 397 }
  398 + $scope.atualizarListaSizeSelectAcaoContigencia();
378 }; 399 };
379 400
380 $scope.checkAcaoContigencia = function(item){ 401 $scope.checkAcaoContigencia = function(item){
@@ -799,6 +820,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -799,6 +820,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
799 } 820 }
800 $scope.listaRequisitoTecSelecao = []; 821 $scope.listaRequisitoTecSelecao = [];
801 $scope.estudoTecnico.etRequisitosNegocio = requisitos; 822 $scope.estudoTecnico.etRequisitosNegocio = requisitos;
  823 + $scope.atualizarListaSizeSelectReqNegocio();
802 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); 824 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO'));
803 } 825 }
804 }); 826 });
@@ -832,6 +854,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -832,6 +854,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
832 } 854 }
833 $scope.listaAlternativa = []; 855 $scope.listaAlternativa = [];
834 $scope.estudoTecnico.etLevantamentoAlternativas = solucoes; 856 $scope.estudoTecnico.etLevantamentoAlternativas = solucoes;
  857 + $scope.atualizarListaSizeSelectSolucao();
835 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); 858 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO'));
836 } 859 }
837 }); 860 });
@@ -863,6 +886,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -863,6 +886,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
863 } 886 }
864 } 887 }
865 $scope.estudoTecnico.etBensServicosSolucoes = bensServicos; 888 $scope.estudoTecnico.etBensServicosSolucoes = bensServicos;
  889 + $scope.atualizarListaSizeSelectServicoSolucao();
866 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); 890 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO'));
867 } 891 }
868 }); 892 });
@@ -896,6 +920,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -896,6 +920,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
896 } 920 }
897 $scope.listaBeneficio = []; 921 $scope.listaBeneficio = [];
898 $scope.estudoTecnico.etBeneficiosEsperados = beneficios; 922 $scope.estudoTecnico.etBeneficiosEsperados = beneficios;
  923 + $scope.atualizarListaSizeSelectBeneficio();
899 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); 924 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO'));
900 } 925 }
901 }); 926 });
@@ -930,6 +955,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -930,6 +955,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
930 } 955 }
931 $scope.listaRecursoMateriais = []; 956 $scope.listaRecursoMateriais = [];
932 $scope.estudoTecnico.etRecursosMateriais = recursosMateriais; 957 $scope.estudoTecnico.etRecursosMateriais = recursosMateriais;
  958 + $scope.atualizarListaSizeSelectRecursoMaterial();
933 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); 959 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO'));
934 } 960 }
935 }); 961 });
@@ -964,6 +990,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -964,6 +990,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
964 } 990 }
965 $scope.estudoTecnico.etRecursosHumanos = recursosHumanos; 991 $scope.estudoTecnico.etRecursosHumanos = recursosHumanos;
966 $scope.listaRecursoHumanos = []; 992 $scope.listaRecursoHumanos = [];
  993 + $scope.atualizarListaSizeSelectRecursoHumano();
967 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); 994 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO'));
968 } 995 }
969 }); 996 });
@@ -997,6 +1024,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -997,6 +1024,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
997 } 1024 }
998 $scope.estudoTecnico.etAcoesContingencia = acoes; 1025 $scope.estudoTecnico.etAcoesContingencia = acoes;
999 $scope.listaAcoesContigencia = []; 1026 $scope.listaAcoesContigencia = [];
  1027 + $scope.atualizarListaSizeSelectAcaoContigencia();
1000 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO')); 1028 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_EXCLUIDO'));
1001 } 1029 }
1002 }); 1030 });
@@ -1129,6 +1157,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -1129,6 +1157,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
1129 } else { 1157 } else {
1130 $scope.estudoTecnico.etRequisitosNegocio = [$scope.reqNegocio]; 1158 $scope.estudoTecnico.etRequisitosNegocio = [$scope.reqNegocio];
1131 } 1159 }
  1160 + $scope.atualizarListaSizeSelectReqNegocio();
1132 $scope.$modalInstance.dismiss('cancel'); 1161 $scope.$modalInstance.dismiss('cancel');
1133 } else { 1162 } else {
1134 //Mensagem de erro de campos obrigatorios não preenchidos 1163 //Mensagem de erro de campos obrigatorios não preenchidos
@@ -1156,6 +1185,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -1156,6 +1185,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
1156 } else { 1185 } else {
1157 $scope.estudoTecnico.etLevantamentoAlternativas = [$scope.solucao]; 1186 $scope.estudoTecnico.etLevantamentoAlternativas = [$scope.solucao];
1158 } 1187 }
  1188 + $scope.atualizarListaSizeSelectSolucao();
1159 $scope.$modalInstance.dismiss('cancel'); 1189 $scope.$modalInstance.dismiss('cancel');
1160 } else { 1190 } else {
1161 //Mensagem de erro de campos obrigatorios não preenchidos 1191 //Mensagem de erro de campos obrigatorios não preenchidos
@@ -1185,6 +1215,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -1185,6 +1215,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
1185 $scope.bemServico.$index = 1; 1215 $scope.bemServico.$index = 1;
1186 $scope.estudoTecnico.etBensServicosSolucoes = [$scope.bemServico]; 1216 $scope.estudoTecnico.etBensServicosSolucoes = [$scope.bemServico];
1187 } 1217 }
  1218 + $scope.atualizarListaSizeSelectServicoSolucao();
1188 $scope.$modalInstance.dismiss('cancel'); 1219 $scope.$modalInstance.dismiss('cancel');
1189 } else { 1220 } else {
1190 //Mensagem de erro de campos obrigatorios não preenchidos 1221 //Mensagem de erro de campos obrigatorios não preenchidos
@@ -1212,6 +1243,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -1212,6 +1243,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
1212 } else { 1243 } else {
1213 $scope.estudoTecnico.etBeneficiosEsperados = [$scope.beneficioEsperado]; 1244 $scope.estudoTecnico.etBeneficiosEsperados = [$scope.beneficioEsperado];
1214 } 1245 }
  1246 + $scope.atualizarListaSizeSelectBeneficio();
1215 $scope.$modalInstance.dismiss('cancel'); 1247 $scope.$modalInstance.dismiss('cancel');
1216 } else { 1248 } else {
1217 //Mensagem de erro de campos obrigatorios não preenchidos 1249 //Mensagem de erro de campos obrigatorios não preenchidos
@@ -1239,6 +1271,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -1239,6 +1271,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
1239 $scope.estudoTecnico.etRecursosMateriais = [$scope.estudoTecnicoRecursoMaterialTemp]; 1271 $scope.estudoTecnico.etRecursosMateriais = [$scope.estudoTecnicoRecursoMaterialTemp];
1240 } 1272 }
1241 $scope.estudoTecnicoRecursoMaterialTemp = {}; 1273 $scope.estudoTecnicoRecursoMaterialTemp = {};
  1274 + $scope.atualizarListaSizeSelectRecursoMaterial();
1242 $scope.$modalInstance.dismiss('cancel'); 1275 $scope.$modalInstance.dismiss('cancel');
1243 } else { 1276 } else {
1244 //Mensagem de erro de campos obrigatorios não preenchidos 1277 //Mensagem de erro de campos obrigatorios não preenchidos
@@ -1265,6 +1298,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -1265,6 +1298,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
1265 } else { 1298 } else {
1266 $scope.estudoTecnico.etRecursosHumanos = [$scope.estudoTecnicoRecursoHumanoTemp]; 1299 $scope.estudoTecnico.etRecursosHumanos = [$scope.estudoTecnicoRecursoHumanoTemp];
1267 } 1300 }
  1301 + $scope.atualizarListaSizeSelectRecursoHumano();
1268 $scope.estudoTecnicoRecursoHumanoTemp = {}; 1302 $scope.estudoTecnicoRecursoHumanoTemp = {};
1269 $scope.$modalInstance.dismiss('cancel'); 1303 $scope.$modalInstance.dismiss('cancel');
1270 } else { 1304 } else {
@@ -1293,6 +1327,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -1293,6 +1327,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
1293 $scope.acaoCont.$index = 1; 1327 $scope.acaoCont.$index = 1;
1294 $scope.estudoTecnico.etAcoesContingencia = [$scope.acaoCont]; 1328 $scope.estudoTecnico.etAcoesContingencia = [$scope.acaoCont];
1295 } 1329 }
  1330 + $scope.atualizarListaSizeSelectAcaoContigencia();
1296 $scope.$modalInstance.dismiss('cancel'); 1331 $scope.$modalInstance.dismiss('cancel');
1297 } else { 1332 } else {
1298 //Mensagem de erro de campos obrigatorios não preenchidos 1333 //Mensagem de erro de campos obrigatorios não preenchidos
@@ -1518,4 +1553,60 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -1518,4 +1553,60 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
1518 return $scope.stepValid; 1553 return $scope.stepValid;
1519 }; 1554 };
1520 1555
  1556 + $scope.atualizarListaSizeSelectReqNegocio = function() {
  1557 + if(!$scope.listaSize){
  1558 + $scope.listaSize = 0;
  1559 + };
  1560 + var lista = $scope.getReqNegocioChecked();
  1561 + $scope.listaSize = lista.length;
  1562 + };
  1563 +
  1564 + $scope.atualizarListaSizeSelectSolucao = function() {
  1565 + if(!$scope.listaSizeSolucao){
  1566 + $scope.listaSizeSolucao = 0;
  1567 + };
  1568 + var lista = $scope.getSolucaoChecked();
  1569 + $scope.listaSizeSolucao = lista.length;
  1570 + };
  1571 +
  1572 + $scope.atualizarListaSizeSelectServicoSolucao = function() {
  1573 + if(!$scope.listaSizeServicoSolucao){
  1574 + $scope.listaSizeServicoSolucao = 0;
  1575 + };
  1576 + var lista = $scope.getBemServicoChecked();
  1577 + $scope.listaSizeServicoSolucao = lista.length;
  1578 + };
  1579 +
  1580 + $scope.atualizarListaSizeSelectBeneficio = function() {
  1581 + if(!$scope.listaSizeBeneficio){
  1582 + $scope.listaSizeBeneficio = 0;
  1583 + };
  1584 + var lista = $scope.getBeneficioEsperadoChecked();
  1585 + $scope.listaSizeBeneficio = lista.length;
  1586 + };
  1587 +
  1588 + $scope.atualizarListaSizeSelectRecursoMaterial = function() {
  1589 + if(!$scope.listaSizeRecursoMaterial){
  1590 + $scope.listaSizeRecursoMaterial = 0;
  1591 + };
  1592 + var lista = $scope.getRecursoMaterialChecked();
  1593 + $scope.listaSizeRecursoMaterial = lista.length;
  1594 + };
  1595 +
  1596 + $scope.atualizarListaSizeSelectRecursoHumano = function() {
  1597 + if(!$scope.listaSizeRecursoHumano){
  1598 + $scope.listaSizeRecursoHumano = 0;
  1599 + };
  1600 + var lista = $scope.getRecursoHumanoChecked();
  1601 + $scope.listaSizeRecursoHumano = lista.length;
  1602 + };
  1603 +
  1604 + $scope.atualizarListaSizeSelectAcaoContigencia = function() {
  1605 + if(!$scope.listaSizeAcaoContigencia){
  1606 + $scope.listaSizeAcaoContigencia = 0;
  1607 + };
  1608 + var lista = $scope.getAcaoContChecked();
  1609 + $scope.listaSizeAcaoContigencia = lista.length;
  1610 + };
  1611 +
1521 }]); 1612 }]);
1522 \ No newline at end of file 1613 \ No newline at end of file
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/ObjetivoEstrategicoController.js
@@ -16,6 +16,7 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti @@ -16,6 +16,7 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti
16 $scope.limparObjetivoEstrategico(); 16 $scope.limparObjetivoEstrategico();
17 $scope.edit = true; 17 $scope.edit = true;
18 $scope.pgEdit = true; 18 $scope.pgEdit = true;
  19 + $scope.atualizarListaSizeSelect();
19 $timeout(function(){ 20 $timeout(function(){
20 limparObjetivoEstrategicoForm(); 21 limparObjetivoEstrategicoForm();
21 }); 22 });
@@ -56,7 +57,7 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti @@ -56,7 +57,7 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti
56 } 57 }
57 58
58 $scope.limparObjetivoEstrategicoNecessidade(); 59 $scope.limparObjetivoEstrategicoNecessidade();
59 - 60 + $scope.atualizarListaSizeSelect();
60 if (continuar) { 61 if (continuar) {
61 formDialogNecessidade.$submitted = false; 62 formDialogNecessidade.$submitted = false;
62 formDialogNecessidade.$setPristine(); 63 formDialogNecessidade.$setPristine();
@@ -139,6 +140,7 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti @@ -139,6 +140,7 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti
139 if(!value){ 140 if(!value){
140 $scope.listaNecessidade = []; 141 $scope.listaNecessidade = [];
141 } 142 }
  143 + $scope.atualizarListaSizeSelect();
142 }; 144 };
143 145
144 $scope.checkNecessidade = function(item){ 146 $scope.checkNecessidade = function(item){
@@ -177,6 +179,7 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti @@ -177,6 +179,7 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti
177 } 179 }
178 }); 180 });
179 }); 181 });
  182 + $scope.atualizarListaSizeSelect();
180 $scope.$modalConfirmInstance.dismiss('cancel'); 183 $scope.$modalConfirmInstance.dismiss('cancel');
181 $scope.listaNecessidade = []; 184 $scope.listaNecessidade = [];
182 } 185 }
@@ -233,10 +236,20 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti @@ -233,10 +236,20 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti
233 $scope.edit = false; 236 $scope.edit = false;
234 } 237 }
235 238
  239 + $scope.atualizarListaSizeSelect();
236 $scope.pgEdit = edit; 240 $scope.pgEdit = edit;
237 $scope.setLoading(false); 241 $scope.setLoading(false);
238 }); 242 });
239 }; 243 };
  244 +
  245 + $scope.atualizarListaSizeSelect = function() {
  246 + if(!$scope.listaSize){
  247 + $scope.listaSize = 0;
  248 + };
  249 + var lista = recuperarNecessidadesSelecionadas();
  250 + $scope.listaSize = lista.length;
  251 + };
  252 +
240 }]); 253 }]);
241 254
242 255
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/ProgramaController.js
@@ -232,6 +232,7 @@ citApp.controller('ProgramaController', ['$scope', '$translate', '$timeout', 'Pr @@ -232,6 +232,7 @@ citApp.controller('ProgramaController', ['$scope', '$translate', '$timeout', 'Pr
232 $scope.edit = false; 232 $scope.edit = false;
233 } 233 }
234 234
  235 + $scope.atualizarListaSizeSelect();
235 $scope.pgEdit = edit; 236 $scope.pgEdit = edit;
236 $scope.setLoading(false); 237 $scope.setLoading(false);
237 }); 238 });
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/TermoReferenciaController.js
@@ -260,6 +260,9 @@ citApp.controller('TermoReferenciaController', ['$scope', @@ -260,6 +260,9 @@ citApp.controller('TermoReferenciaController', ['$scope',
260 $scope.getConfiguracoesTemplate(); 260 $scope.getConfiguracoesTemplate();
261 $scope.preenchePapeis(); 261 $scope.preenchePapeis();
262 $scope.carregarValoresPadrao(); 262 $scope.carregarValoresPadrao();
  263 + $scope.atualizarListaSizeSelect();
  264 + $scope.atualizarListaSizeSelectPenalidade();
  265 + $scope.atualizarListaSizeSelectSancao();
263 266
264 }; 267 };
265 268
@@ -376,6 +379,7 @@ citApp.controller('TermoReferenciaController', ['$scope', @@ -376,6 +379,7 @@ citApp.controller('TermoReferenciaController', ['$scope',
376 } 379 }
377 380
378 // $scope.atualizaListaEtBensServicos(); 381 // $scope.atualizaListaEtBensServicos();
  382 + $scope.atualizarListaSizeSelect();
379 $scope.$modalInstance.dismiss('cancel'); 383 $scope.$modalInstance.dismiss('cancel');
380 } 384 }
381 $scope.setLoadingSalva(false); 385 $scope.setLoadingSalva(false);
@@ -404,6 +408,7 @@ citApp.controller('TermoReferenciaController', ['$scope', @@ -404,6 +408,7 @@ citApp.controller('TermoReferenciaController', ['$scope',
404 $scope.termoReferencia.penalidades.push(penalid); 408 $scope.termoReferencia.penalidades.push(penalid);
405 } 409 }
406 410
  411 + $scope.atualizarListaSizeSelectPenalidade();
407 $scope.setLoadingSalva(false); 412 $scope.setLoadingSalva(false);
408 $scope.$modalInstance.dismiss('cancel'); 413 $scope.$modalInstance.dismiss('cancel');
409 414
@@ -431,6 +436,7 @@ citApp.controller('TermoReferenciaController', ['$scope', @@ -431,6 +436,7 @@ citApp.controller('TermoReferenciaController', ['$scope',
431 $scope.termoReferencia.sancoes.push(sans); 436 $scope.termoReferencia.sancoes.push(sans);
432 } 437 }
433 438
  439 + $scope.atualizarListaSizeSelectSancao();
434 $scope.setLoadingSalva(false); 440 $scope.setLoadingSalva(false);
435 $scope.$modalInstance.dismiss('cancel'); 441 $scope.$modalInstance.dismiss('cancel');
436 442
@@ -500,6 +506,7 @@ citApp.controller('TermoReferenciaController', ['$scope', @@ -500,6 +506,7 @@ citApp.controller('TermoReferenciaController', ['$scope',
500 $scope.termoReferencia.detalhamentosSolucoes[i].$checked = false; 506 $scope.termoReferencia.detalhamentosSolucoes[i].$checked = false;
501 } 507 }
502 } 508 }
  509 + $scope.atualizarListaSizeSelect();
503 }); 510 });
504 }; 511 };
505 512
@@ -526,6 +533,7 @@ citApp.controller('TermoReferenciaController', ['$scope', @@ -526,6 +533,7 @@ citApp.controller('TermoReferenciaController', ['$scope',
526 $scope.termoReferencia.penalidades[i].$checked = false; 533 $scope.termoReferencia.penalidades[i].$checked = false;
527 } 534 }
528 } 535 }
  536 + $scope.atualizarListaSizeSelectPenalidade();
529 }); 537 });
530 }; 538 };
531 539
@@ -552,6 +560,7 @@ citApp.controller('TermoReferenciaController', ['$scope', @@ -552,6 +560,7 @@ citApp.controller('TermoReferenciaController', ['$scope',
552 $scope.termoReferencia.sancoes[i].$checked = false; 560 $scope.termoReferencia.sancoes[i].$checked = false;
553 } 561 }
554 } 562 }
  563 + $scope.atualizarListaSizeSelectSancao();
555 }); 564 });
556 }; 565 };
557 566
@@ -772,9 +781,9 @@ citApp.controller('TermoReferenciaController', ['$scope', @@ -772,9 +781,9 @@ citApp.controller('TermoReferenciaController', ['$scope',
772 } 781 }
773 }); 782 });
774 783
775 - $scope.$modalConfirmInstance.dismiss('cancel');  
776 -  
777 $scope.termoReferencia.penalidades.splice(index, 1); 784 $scope.termoReferencia.penalidades.splice(index, 1);
  785 + $scope.atualizarListaSizeSelectPenalidade();
  786 + $scope.$modalConfirmInstance.dismiss('cancel');
778 } 787 }
779 }); 788 });
780 } else { 789 } else {
@@ -801,9 +810,10 @@ citApp.controller('TermoReferenciaController', ['$scope', @@ -801,9 +810,10 @@ citApp.controller('TermoReferenciaController', ['$scope',
801 } 810 }
802 }); 811 });
803 812
804 - $scope.$modalConfirmInstance.dismiss('cancel');  
805 813
806 $scope.termoReferencia.sancoes.splice(index, 1); 814 $scope.termoReferencia.sancoes.splice(index, 1);
  815 + $scope.atualizarListaSizeSelectSancao();
  816 + $scope.$modalConfirmInstance.dismiss('cancel');
807 } 817 }
808 }); 818 });
809 } 819 }
@@ -828,9 +838,9 @@ citApp.controller('TermoReferenciaController', ['$scope', @@ -828,9 +838,9 @@ citApp.controller('TermoReferenciaController', ['$scope',
828 } 838 }
829 }); 839 });
830 840
  841 + $scope.termoReferencia.detalhamentosSolucoes.splice(index, 1);
  842 + $scope.atualizarListaSizeSelect();
831 $scope.$modalConfirmInstance.dismiss('cancel'); 843 $scope.$modalConfirmInstance.dismiss('cancel');
832 -  
833 - $scope.termoReferencia.detalhamentosSolucoes.splice(index, 1);  
834 } 844 }
835 }); 845 });
836 } else { 846 } else {
@@ -1062,5 +1072,47 @@ citApp.controller('TermoReferenciaController', ['$scope', @@ -1062,5 +1072,47 @@ citApp.controller('TermoReferenciaController', ['$scope',
1062 return {'active': false, 'complete' : true, 'invalid' : false}; 1072 return {'active': false, 'complete' : true, 'invalid' : false};
1063 }; 1073 };
1064 1074
  1075 + $scope.atualizarListaSizeSelect = function() {
  1076 + $timeout(function(){
  1077 + if(!$scope.listaSize){
  1078 + $scope.listaSize = 0;
  1079 + };
  1080 + var lista = [];
  1081 + var objChecked = (clone($scope.getDetalhamentoSolucaoChecked()));
  1082 + if(objChecked != undefined){
  1083 + lista.push(objChecked);
  1084 + }
  1085 + $scope.listaSize = lista.length;
  1086 + });
  1087 + };
  1088 +
  1089 + $scope.atualizarListaSizeSelectPenalidade = function() {
  1090 + $timeout(function(){
  1091 + if(!$scope.listaSizePenalidade){
  1092 + $scope.listaSizePenalidade = 0;
  1093 + };
  1094 + var lista = [];
  1095 + var objChecked = (clone($scope.getPenalidadeChecked()));
  1096 + if(objChecked != undefined){
  1097 + lista.push(objChecked);
  1098 + }
  1099 + $scope.listaSizePenalidade = lista.length;
  1100 + });
  1101 + };
  1102 +
  1103 + $scope.atualizarListaSizeSelectSancao = function() {
  1104 + $timeout(function(){
  1105 + if(!$scope.listaSizeSancao){
  1106 + $scope.listaSizeSancao = 0;
  1107 + };
  1108 + var lista = [];
  1109 + var objChecked = (clone($scope.getSancaoChecked()));
  1110 + if(objChecked != undefined){
  1111 + lista.push(objChecked);
  1112 + }
  1113 + $scope.listaSizeSancao = lista.length;
  1114 + });
  1115 + };
  1116 +
1065 }]); 1117 }]);
1066 1118
cit-contratos-web/src/main/webapp/html/estudoTecnico/estudoTecnicoPg2.html
@@ -15,30 +15,36 @@ @@ -15,30 +15,36 @@
15 <div class="row margin-top"> 15 <div class="row margin-top">
16 <div class="col-sm-12"> 16 <div class="col-sm-12">
17 <div class="panel panel-default"> 17 <div class="panel panel-default">
18 - <div class="panel-heading clearfix">  
19 - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-show="edit" 18 + <div class="panel-heading clearfix col-sm-12 text-left">
  19 +
  20 + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  21 + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit"
20 ng-click="openModalRequisitoNegocio();"> 22 ng-click="openModalRequisitoNegocio();">
21 <i class="fa fa-plus-circle yellow-dark"></i> 23 <i class="fa fa-plus-circle yellow-dark"></i>
22 <translate>LABEL.ADICIONAR</translate> 24 <translate>LABEL.ADICIONAR</translate>
23 </button> 25 </button>
24 -  
25 - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-show="listaRequisitoTecSelecao.length == 1" 26 + </div>
  27 + <div class="col-sm-1" tooltip="{{ listaSize == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}">
  28 + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-disabled="listaSize != 1"
26 ng-click="abrirRequisitoNegocio(false)"> 29 ng-click="abrirRequisitoNegocio(false)">
27 <i class="fa fa-search blue"></i> 30 <i class="fa fa-search blue"></i>
28 <translate>LABEL.VISUALIZAR</translate> 31 <translate>LABEL.VISUALIZAR</translate>
29 </button> 32 </button>
30 -  
31 - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-show="edit && listaRequisitoTecSelecao.length == 1" class="btn btn-clear" type="button" 33 + </div>
  34 + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  35 + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSize != 1 || !edit" class="btn btn-clear" type="button"
32 ng-click="abrirRequisitoNegocio(true)"> 36 ng-click="abrirRequisitoNegocio(true)">
33 <i class="fa fa-pencil blue"></i> 37 <i class="fa fa-pencil blue"></i>
34 <translate>LABEL.EDITAR</translate> 38 <translate>LABEL.EDITAR</translate>
35 </button> 39 </button>
36 -  
37 - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-show="edit" class="btn btn-clear" type="button" 40 + </div>
  41 + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  42 + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSize == 0 || !edit" class="btn btn-clear" type="button"
38 ng-click="removerRequisitoNegocio()"> 43 ng-click="removerRequisitoNegocio()">
39 <i class="fa fa-times red"></i> 44 <i class="fa fa-times red"></i>
40 <translate>LABEL.REMOVER</translate> 45 <translate>LABEL.REMOVER</translate>
41 </button> 46 </button>
  47 + </div>
42 </div><!-- .panel-heading --> 48 </div><!-- .panel-heading -->
43 <table class="table table-bordered table-striped"> 49 <table class="table table-bordered table-striped">
44 <thead> 50 <thead>
@@ -58,7 +64,7 @@ @@ -58,7 +64,7 @@
58 </tr> 64 </tr>
59 <tr ng-repeat="requisitoNegocio in estudoTecnico.etRequisitosNegocio"> 65 <tr ng-repeat="requisitoNegocio in estudoTecnico.etRequisitosNegocio">
60 <td class="text-center"> 66 <td class="text-center">
61 - <input type="checkbox" name="requisitoNegocioChecked" ng-model="requisitoNegocio.$checked" ng-click="checkReqNegocio(requisitoNegocio)"/> 67 + <input type="checkbox" name="requisitoNegocioChecked" ng-model="requisitoNegocio.$checked" ng-click="checkReqNegocio(requisitoNegocio); atualizarListaSizeSelectReqNegocio()"/>
62 </td> 68 </td>
63 <td>{{ $index + 1 }}</td> 69 <td>{{ $index + 1 }}</td>
64 <td title="{{requisitoNegocio.objetivoEstrategicoNecessidade.objetivoEstrategico.nome}}">{{ splitText(requisitoNegocio.objetivoEstrategicoNecessidade.objetivoEstrategico.nome, 100) }}</td> 70 <td title="{{requisitoNegocio.objetivoEstrategicoNecessidade.objetivoEstrategico.nome}}">{{ splitText(requisitoNegocio.objetivoEstrategicoNecessidade.objetivoEstrategico.nome, 100) }}</td>
cit-contratos-web/src/main/webapp/html/estudoTecnico/estudoTecnicoPg3.html
@@ -15,30 +15,36 @@ @@ -15,30 +15,36 @@
15 <div class="row margin-top"> 15 <div class="row margin-top">
16 <div class="col-sm-12"> 16 <div class="col-sm-12">
17 <div class="panel panel-default"> 17 <div class="panel panel-default">
18 - <div class="panel-heading clearfix">  
19 - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-show="edit"  
20 - ng-click="openModalSolucao();">  
21 - <i class="fa fa-plus-circle yellow-dark"></i>  
22 - <translate>LABEL.ADICIONAR</translate>  
23 - </button>  
24 -  
25 - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-show="listaAlternativa.length == 1"  
26 - ng-click="abrirSolucao(false);">  
27 - <i class="fa fa-search blue"></i>  
28 - <translate>LABEL.VISUALIZAR</translate>  
29 - </button>  
30 -  
31 - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-show="edit && listaAlternativa.length == 1" class="btn btn-clear" type="button"  
32 - ng-click="abrirSolucao(true);">  
33 - <i class="fa fa-pencil blue"></i>  
34 - <translate>LABEL.EDITAR</translate>  
35 - </button>  
36 -  
37 - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-show="edit" class="btn btn-clear" type="button"  
38 - ng-click="removerSolucao();">  
39 - <i class="fa fa-times red"></i>  
40 - <translate>LABEL.REMOVER</translate>  
41 - </button> 18 + <div class="panel-heading clearfix col-sm-12 text-left">
  19 +
  20 + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  21 + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit"
  22 + ng-click="openModalSolucao();">
  23 + <i class="fa fa-plus-circle yellow-dark"></i>
  24 + <translate>LABEL.ADICIONAR</translate>
  25 + </button>
  26 + </div>
  27 + <div class="col-sm-1" tooltip="{{ listaSizeSolucao == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeSolucao > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}">
  28 + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-disabled="listaSizeSolucao != 1"
  29 + ng-click="abrirSolucao(false);">
  30 + <i class="fa fa-search blue"></i>
  31 + <translate>LABEL.VISUALIZAR</translate>
  32 + </button>
  33 + </div>
  34 + <div class="col-sm-1" tooltip="{{ listaSizeSolucao == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeSolucao > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  35 + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSizeSolucao != 1 || !edit" class="btn btn-clear" type="button"
  36 + ng-click="abrirSolucao(true);">
  37 + <i class="fa fa-pencil blue"></i>
  38 + <translate>LABEL.EDITAR</translate>
  39 + </button>
  40 + </div>
  41 + <div class="col-sm-1" tooltip="{{ listaSizeSolucao == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  42 + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeSolucao == 0 || !edit" class="btn btn-clear" type="button"
  43 + ng-click="removerSolucao();">
  44 + <i class="fa fa-times red"></i>
  45 + <translate>LABEL.REMOVER</translate>
  46 + </button>
  47 + </div>
42 </div><!-- .panel-heading --> 48 </div><!-- .panel-heading -->
43 <table class="table table-bordered table-striped"> 49 <table class="table table-bordered table-striped">
44 <thead> 50 <thead>
@@ -60,7 +66,7 @@ @@ -60,7 +66,7 @@
60 </tr> 66 </tr>
61 <tr ng-repeat="alternativa in estudoTecnico.etLevantamentoAlternativas"> 67 <tr ng-repeat="alternativa in estudoTecnico.etLevantamentoAlternativas">
62 <td class="text-center"> 68 <td class="text-center">
63 - <input type="checkbox" name="alternativaChecked" ng-model="alternativa.$checked" ng-click="checkAlternativa(alternativa)"/> 69 + <input type="checkbox" name="alternativaChecked" ng-model="alternativa.$checked" ng-click="checkAlternativa(alternativa); atualizarListaSizeSelectSolucao()"/>
64 </td> 70 </td>
65 <td>{{ $index + 1 }}</td> 71 <td>{{ $index + 1 }}</td>
66 <td title="{{alternativa.descricaoAlternativa}}">{{ splitText(alternativa.descricaoAlternativa, 80) }}</td> 72 <td title="{{alternativa.descricaoAlternativa}}">{{ splitText(alternativa.descricaoAlternativa, 80) }}</td>
@@ -105,31 +111,39 @@ @@ -105,31 +111,39 @@
105 <div class="row margin-top"> 111 <div class="row margin-top">
106 <div class="col-sm-12"> 112 <div class="col-sm-12">
107 <div class="panel panel-default"> 113 <div class="panel panel-default">
108 - <div class="panel-heading clearfix">  
109 - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-show="edit"  
110 - ng-click="openModalBensServico();">  
111 - <i class="fa fa-plus-circle yellow-dark"></i>  
112 - <translate>LABEL.ADICIONAR</translate>  
113 - </button> 114 + <div class="panel-heading clearfix col-sm-12 text-left">
  115 +
  116 + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  117 + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit"
  118 + ng-click="openModalBensServico();">
  119 + <i class="fa fa-plus-circle yellow-dark"></i>
  120 + <translate>LABEL.ADICIONAR</translate>
  121 + </button>
  122 + </div>
  123 + <div class="col-sm-1" tooltip="{{ listaSizeServicoSolucao == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeServicoSolucao > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}">
  124 + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-disabled="listaSizeServicoSolucao != 1"
  125 + ng-click="abrirBensServico(false);">
  126 + <i class="fa fa-search blue"></i>
  127 + <translate>LABEL.VISUALIZAR</translate>
  128 + </button>
  129 + </div>
  130 + <div class="col-sm-1" tooltip="{{ listaSizeServicoSolucao == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeServicoSolucao > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  131 + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSizeServicoSolucao != 1 || !edit" class="btn btn-clear" type="button"
  132 + ng-click="abrirBensServico(true);">
  133 + <i class="fa fa-pencil blue"></i>
  134 + <translate>LABEL.EDITAR</translate>
  135 + </button>
  136 + </div>
  137 + <div class="col-sm-1" tooltip="{{ listaSizeServicoSolucao == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  138 + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeServicoSolucao == 0 || !edit" class="btn btn-clear" type="button"
  139 + ng-click="removerBensServico();">
  140 + <i class="fa fa-times red"></i>
  141 + <translate>LABEL.REMOVER</translate>
  142 + </button>
  143 + </div>
114 144
115 - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-show="listaServicoSolucao.length == 1"  
116 - ng-click="abrirBensServico(false);">  
117 - <i class="fa fa-search blue"></i>  
118 - <translate>LABEL.VISUALIZAR</translate>  
119 - </button>  
120 -  
121 - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-show="edit && listaServicoSolucao.length == 1" class="btn btn-clear" type="button"  
122 - ng-click="abrirBensServico(true);">  
123 - <i class="fa fa-pencil blue"></i>  
124 - <translate>LABEL.EDITAR</translate>  
125 - </button>  
126 -  
127 - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-show="edit" class="btn btn-clear" type="button"  
128 - ng-click="removerBensServico();">  
129 - <i class="fa fa-times red"></i>  
130 - <translate>LABEL.REMOVER</translate>  
131 - </button>  
132 </div><!-- .panel-heading --> 145 </div><!-- .panel-heading -->
  146 +
133 <table class="table table-bordered table-striped"> 147 <table class="table table-bordered table-striped">
134 <thead> 148 <thead>
135 <tr> 149 <tr>
@@ -147,7 +161,7 @@ @@ -147,7 +161,7 @@
147 </tr> 161 </tr>
148 <tr ng-repeat="bemServico in estudoTecnico.etBensServicosSolucoes"> 162 <tr ng-repeat="bemServico in estudoTecnico.etBensServicosSolucoes">
149 <td class="text-center"> 163 <td class="text-center">
150 - <input type="checkbox" name="bemServicoChecked" ng-model="bemServico.$checked" ng-click="checkBemServico(bemServico)"/> 164 + <input type="checkbox" name="bemServicoChecked" ng-model="bemServico.$checked" ng-click="checkBemServico(bemServico); atualizarListaSizeSelectServicoSolucao()"/>
151 </td> 165 </td>
152 <td>{{ $index + 1 }}</td> 166 <td>{{ $index + 1 }}</td>
153 <td title="{{bemServico.nomeBemServicoSolucao}}">{{ splitText(bemServico.nomeBemServicoSolucao, 70) }}</td> 167 <td title="{{bemServico.nomeBemServicoSolucao}}">{{ splitText(bemServico.nomeBemServicoSolucao, 70) }}</td>
cit-contratos-web/src/main/webapp/html/estudoTecnico/estudoTecnicoPg4.html
@@ -18,30 +18,37 @@ @@ -18,30 +18,37 @@
18 <div class="row margin-top"> 18 <div class="row margin-top">
19 <div class="col-sm-12"> 19 <div class="col-sm-12">
20 <div class="panel panel-default"> 20 <div class="panel panel-default">
21 - <div class="panel-heading clearfix">  
22 - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-show="edit" 21 + <div class="panel-heading clearfix col-sm-12 text-left">
  22 +
  23 + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  24 + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit"
23 ng-click="openModalBeneficioEsperado();"> 25 ng-click="openModalBeneficioEsperado();">
24 <i class="fa fa-plus-circle yellow-dark"></i> 26 <i class="fa fa-plus-circle yellow-dark"></i>
25 <translate>LABEL.ADICIONAR</translate> 27 <translate>LABEL.ADICIONAR</translate>
26 </button> 28 </button>
27 -  
28 - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-show="listaBeneficio.length == 1" 29 + </div>
  30 + <div class="col-sm-1" tooltip="{{ listaSizeBeneficio == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeBeneficio > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}">
  31 + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-disabled="listaSizeBeneficio != 1"
29 ng-click="abrirBeneficioEsperado(false)"> 32 ng-click="abrirBeneficioEsperado(false)">
30 <i class="fa fa-search blue"></i> 33 <i class="fa fa-search blue"></i>
31 <translate>LABEL.VISUALIZAR</translate> 34 <translate>LABEL.VISUALIZAR</translate>
32 </button> 35 </button>
33 -  
34 - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-show="edit && listaBeneficio.length == 1" class="btn btn-clear" type="button" 36 + </div>
  37 + <div class="col-sm-1" tooltip="{{ listaSizeBeneficio == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeBeneficio > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  38 + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSizeBeneficio != 1 || !edit" class="btn btn-clear" type="button"
35 ng-click="abrirBeneficioEsperado(true)"> 39 ng-click="abrirBeneficioEsperado(true)">
36 <i class="fa fa-pencil blue"></i> 40 <i class="fa fa-pencil blue"></i>
37 <translate>LABEL.EDITAR</translate> 41 <translate>LABEL.EDITAR</translate>
38 </button> 42 </button>
39 -  
40 - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-show="edit" class="btn btn-clear" type="button" 43 + </div>
  44 + <div class="col-sm-1" tooltip="{{ listaSizeBeneficio == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  45 + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeBeneficio == 0 || !edit" class="btn btn-clear" type="button"
41 ng-click="removerBeneficioEsperado()"> 46 ng-click="removerBeneficioEsperado()">
42 <i class="fa fa-times red"></i> 47 <i class="fa fa-times red"></i>
43 <translate>LABEL.REMOVER</translate> 48 <translate>LABEL.REMOVER</translate>
44 </button> 49 </button>
  50 + </div>
  51 +
45 </div><!-- .panel-heading --> 52 </div><!-- .panel-heading -->
46 <table class="table table-bordered table-striped"> 53 <table class="table table-bordered table-striped">
47 <thead> 54 <thead>
@@ -60,7 +67,7 @@ @@ -60,7 +67,7 @@
60 </tr> 67 </tr>
61 <tr ng-repeat="beneficioEsperado in estudoTecnico.etBeneficiosEsperados"> 68 <tr ng-repeat="beneficioEsperado in estudoTecnico.etBeneficiosEsperados">
62 <td class="text-center"> 69 <td class="text-center">
63 - <input type="checkbox" name="beneficioEsperadoChecked" ng-model="beneficioEsperado.$checked" ng-click="checkBeneficio(beneficioEsperado)"/> 70 + <input type="checkbox" name="beneficioEsperadoChecked" ng-model="beneficioEsperado.$checked" ng-click="checkBeneficio(beneficioEsperado); atualizarListaSizeSelectBeneficio()"/>
64 </td> 71 </td>
65 <td>{{ $index + 1 }}</td> 72 <td>{{ $index + 1 }}</td>
66 <td title="{{beneficioEsperado.beneficioEsperado}}">{{ splitText(beneficioEsperado.beneficioEsperado, 100)}}</td> 73 <td title="{{beneficioEsperado.beneficioEsperado}}">{{ splitText(beneficioEsperado.beneficioEsperado, 100)}}</td>
cit-contratos-web/src/main/webapp/html/estudoTecnico/estudoTecnicoPg5.html
@@ -11,31 +11,40 @@ @@ -11,31 +11,40 @@
11 <div class="row margin-top"> 11 <div class="row margin-top">
12 <div class="col-sm-12"> 12 <div class="col-sm-12">
13 <div class="panel panel-default"> 13 <div class="panel panel-default">
14 - <div class="panel-heading clearfix">  
15 - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-show="edit"  
16 - ng-click="openModalRecursoMaterial();">  
17 - <i class="fa fa-plus-circle yellow-dark"></i>  
18 - <translate>LABEL.ADICIONAR</translate>  
19 - </button> 14 +
  15 + <div class="panel-heading clearfix col-sm-12 text-left">
20 16
21 - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-show="listaRecursoMateriais.length == 1"  
22 - ng-click="abrirRecursoMaterial(false);" ng-if="!acaoEmMassaRecursosMateriais">  
23 - <i class="fa fa-search blue"></i>  
24 - <translate>LABEL.VISUALIZAR</translate>  
25 - </button>  
26 -  
27 - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-show="edit && listaRecursoMateriais.length == 1" class="btn btn-clear" type="button"  
28 - ng-click="abrirRecursoMaterial(true);" ng-if="!acaoEmMassaRecursosMateriais">  
29 - <i class="fa fa-pencil blue"></i>  
30 - <translate>LABEL.EDITAR</translate>  
31 - </button>  
32 -  
33 - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-show="edit" class="btn btn-clear" type="button"  
34 - ng-click="removerRecursoMaterial();">  
35 - <i class="fa fa-times red"></i>  
36 - <translate>LABEL.REMOVER</translate>  
37 - </button> 17 + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  18 + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit"
  19 + ng-click="openModalRecursoMaterial();">
  20 + <i class="fa fa-plus-circle yellow-dark"></i>
  21 + <translate>LABEL.ADICIONAR</translate>
  22 + </button>
  23 + </div>
  24 + <div class="col-sm-1" tooltip="{{ listaSizeRecursoMaterial == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeRecursoMaterial > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}">
  25 + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-disabled="listaSizeRecursoMaterial != 1"
  26 + ng-click="abrirRecursoMaterial(false);" ng-if="!acaoEmMassaRecursosMateriais">
  27 + <i class="fa fa-search blue"></i>
  28 + <translate>LABEL.VISUALIZAR</translate>
  29 + </button>
  30 + </div>
  31 + <div class="col-sm-1" tooltip="{{ listaSizeRecursoMaterial == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeRecursoMaterial > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  32 + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSizeRecursoMaterial != 1 || !edit" class="btn btn-clear" type="button"
  33 + ng-click="abrirRecursoMaterial(true);" ng-if="!acaoEmMassaRecursosMateriais">
  34 + <i class="fa fa-pencil blue"></i>
  35 + <translate>LABEL.EDITAR</translate>
  36 + </button>
  37 + </div>
  38 + <div class="col-sm-1" tooltip="{{ listaSizeRecursoMaterial == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  39 + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeRecursoMaterial == 0 || !edit" class="btn btn-clear" type="button"
  40 + ng-click="removerRecursoMaterial();">
  41 + <i class="fa fa-times red"></i>
  42 + <translate>LABEL.REMOVER</translate>
  43 + </button>
  44 + </div>
  45 +
38 </div><!-- .panel-heading --> 46 </div><!-- .panel-heading -->
  47 +
39 <table class="table table-bordered table-striped"> 48 <table class="table table-bordered table-striped">
40 <thead> 49 <thead>
41 <tr> 50 <tr>
@@ -55,7 +64,7 @@ @@ -55,7 +64,7 @@
55 </tr> 64 </tr>
56 <tr ng-repeat="recursoMaterial in estudoTecnico.etRecursosMateriais"> 65 <tr ng-repeat="recursoMaterial in estudoTecnico.etRecursosMateriais">
57 <td class="text-center"> 66 <td class="text-center">
58 - <input type="checkbox" name="recursoMaterialChecked" ng-model="recursoMaterial.$checked" ng-click="checkRecursoMaterial(recursoMaterial)"/> 67 + <input type="checkbox" name="recursoMaterialChecked" ng-model="recursoMaterial.$checked" ng-click="checkRecursoMaterial(recursoMaterial); atualizarListaSizeSelectRecursoMaterial()"/>
59 </td> 68 </td>
60 <td>{{ $index + 1 }}</td> 69 <td>{{ $index + 1 }}</td>
61 <td title="{{recursoMaterial.descricaoRecursoMaterial}}">{{ splitText(recursoMaterial.descricaoRecursoMaterial) }}</td> 70 <td title="{{recursoMaterial.descricaoRecursoMaterial}}">{{ splitText(recursoMaterial.descricaoRecursoMaterial) }}</td>
@@ -81,31 +90,38 @@ @@ -81,31 +90,38 @@
81 <div class="row margin-top"> 90 <div class="row margin-top">
82 <div class="col-sm-12"> 91 <div class="col-sm-12">
83 <div class="panel panel-default"> 92 <div class="panel panel-default">
84 - <div class="panel-heading clearfix">  
85 - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-show="edit"  
86 - ng-click="openModalRecursoHumano();">  
87 - <i class="fa fa-plus-circle yellow-dark"></i>  
88 - <translate>LABEL.ADICIONAR</translate>  
89 - </button> 93 + <div class="panel-heading clearfix col-sm-12 text-left">
90 94
91 - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-show="listaRecursoHumanos.length == 1"  
92 - ng-click="abrirRecursoHumano(false);" ng-if="!acaoEmMassaRecursosHumanos">  
93 - <i class="fa fa-search blue"></i>  
94 - <translate>LABEL.VISUALIZAR</translate>  
95 - </button>  
96 -  
97 - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-show="edit && listaRecursoHumanos.length == 1" class="btn btn-clear" type="button"  
98 - ng-click="abrirRecursoHumano(true);" ng-if="!acaoEmMassaRecursosHumanos">  
99 - <i class="fa fa-pencil blue"></i>  
100 - <translate>LABEL.EDITAR</translate>  
101 - </button>  
102 -  
103 - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-show="edit" class="btn btn-clear" type="button"  
104 - ng-click="removerRecursoHumano();">  
105 - <i class="fa fa-times red"></i>  
106 - <translate>LABEL.REMOVER</translate>  
107 - </button> 95 + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  96 + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit"
  97 + ng-click="openModalRecursoHumano();">
  98 + <i class="fa fa-plus-circle yellow-dark"></i>
  99 + <translate>LABEL.ADICIONAR</translate>
  100 + </button>
  101 + </div>
  102 + <div class="col-sm-1" tooltip="{{ listaSizeRecursoHumano == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeRecursoHumano > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}">
  103 + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-disabled="listaSizeRecursoHumano != 1"
  104 + ng-click="abrirRecursoHumano(false);" ng-if="!acaoEmMassaRecursosHumanos">
  105 + <i class="fa fa-search blue"></i>
  106 + <translate>LABEL.VISUALIZAR</translate>
  107 + </button>
  108 + </div>
  109 + <div class="col-sm-1" tooltip="{{ listaSizeRecursoHumano == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeRecursoHumano > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  110 + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSizeRecursoHumano != 1 || !edit" class="btn btn-clear" type="button"
  111 + ng-click="abrirRecursoHumano(true);" ng-if="!acaoEmMassaRecursosHumanos">
  112 + <i class="fa fa-pencil blue"></i>
  113 + <translate>LABEL.EDITAR</translate>
  114 + </button>
  115 + </div>
  116 + <div class="col-sm-1" tooltip="{{ listaSizeRecursoHumano == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  117 + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeRecursoHumano == 0 || !edit" class="btn btn-clear" type="button"
  118 + ng-click="removerRecursoHumano();">
  119 + <i class="fa fa-times red"></i>
  120 + <translate>LABEL.REMOVER</translate>
  121 + </button>
  122 + </div>
108 </div><!-- .panel-heading --> 123 </div><!-- .panel-heading -->
  124 +
109 <table class="table table-bordered table-striped"> 125 <table class="table table-bordered table-striped">
110 <thead> 126 <thead>
111 <tr> 127 <tr>
@@ -123,7 +139,7 @@ @@ -123,7 +139,7 @@
123 </tr> 139 </tr>
124 <tr ng-repeat="recursoHumano in estudoTecnico.etRecursosHumanos"> 140 <tr ng-repeat="recursoHumano in estudoTecnico.etRecursosHumanos">
125 <td class="text-center"> 141 <td class="text-center">
126 - <input type="checkbox" name="recursoHumanoChecked" ng-model="recursoHumano.$checked" ng-click="checkRecursoHumano(recursoHumano)"/> 142 + <input type="checkbox" name="recursoHumanoChecked" ng-model="recursoHumano.$checked" ng-click="checkRecursoHumano(recursoHumano); atualizarListaSizeSelectRecursoHumano()"/>
127 </td> 143 </td>
128 <td>{{ $index + 1 }}</td> 144 <td>{{ $index + 1 }}</td>
129 <td title="{{recursoHumano.formacao}}">{{ splitText(recursoHumano.formacao) }}</td> 145 <td title="{{recursoHumano.formacao}}">{{ splitText(recursoHumano.formacao) }}</td>
cit-contratos-web/src/main/webapp/html/estudoTecnico/estudoTecnicoPg6.html
@@ -15,31 +15,37 @@ @@ -15,31 +15,37 @@
15 <div class="row margin-top"> 15 <div class="row margin-top">
16 <div class="col-sm-12"> 16 <div class="col-sm-12">
17 <div class="panel panel-default"> 17 <div class="panel panel-default">
18 - <div class="panel-heading clearfix">  
19 - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-show="edit"  
20 - ng-click="openModalAcaoContingencia();">  
21 - <i class="fa fa-plus-circle yellow-dark"></i>  
22 - <translate>LABEL.ADICIONAR</translate>  
23 - </button>  
24 -  
25 - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-show="listaAcoesContigencia.length == 1"  
26 - ng-click="abrirAcaoContingencia(false);">  
27 - <i class="fa fa-search blue"></i>  
28 - <translate>LABEL.VISUALIZAR</translate>  
29 - </button>  
30 -  
31 - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-show="edit && listaAcoesContigencia.length == 1" class="btn btn-clear" type="button"  
32 - ng-click="abrirAcaoContingencia(true);">  
33 - <i class="fa fa-pencil blue"></i>  
34 - <translate>LABEL.EDITAR</translate>  
35 - </button>  
36 -  
37 - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-show="edit" class="btn btn-clear" type="button"  
38 - ng-click="removerAcaoContingencia();">  
39 - <i class="fa fa-times red"></i>  
40 - <translate>LABEL.REMOVER</translate>  
41 - </button> 18 + <div class="panel-heading clearfix col-sm-12 text-left">
  19 + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  20 + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit"
  21 + ng-click="openModalAcaoContingencia();">
  22 + <i class="fa fa-plus-circle yellow-dark"></i>
  23 + <translate>LABEL.ADICIONAR</translate>
  24 + </button>
  25 + </div>
  26 + <div class="col-sm-1" tooltip="{{ listaSizeAcaoContigencia == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeAcaoContigencia > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}">
  27 + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-disabled="listaSizeAcaoContigencia != 1"
  28 + ng-click="abrirAcaoContingencia(false);">
  29 + <i class="fa fa-search blue"></i>
  30 + <translate>LABEL.VISUALIZAR</translate>
  31 + </button>
  32 + </div>
  33 + <div class="col-sm-1" tooltip="{{ listaSizeAcaoContigencia == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeAcaoContigencia > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  34 + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSizeAcaoContigencia != 1 || !edit" class="btn btn-clear" type="button"
  35 + ng-click="abrirAcaoContingencia(true);">
  36 + <i class="fa fa-pencil blue"></i>
  37 + <translate>LABEL.EDITAR</translate>
  38 + </button>
  39 + </div>
  40 + <div class="col-sm-1" tooltip="{{ listaSizeAcaoContigencia == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  41 + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeAcaoContigencia == 0 || !edit" class="btn btn-clear" type="button"
  42 + ng-click="removerAcaoContingencia();">
  43 + <i class="fa fa-times red"></i>
  44 + <translate>LABEL.REMOVER</translate>
  45 + </button>
  46 + </div>
42 </div><!-- .panel-heading --> 47 </div><!-- .panel-heading -->
  48 +
43 <table class="table table-bordered table-striped"> 49 <table class="table table-bordered table-striped">
44 <thead> 50 <thead>
45 <tr> 51 <tr>
@@ -57,7 +63,7 @@ @@ -57,7 +63,7 @@
57 </tr> 63 </tr>
58 <tr ng-repeat="acaoCont in estudoTecnico.etAcoesContingencia"> 64 <tr ng-repeat="acaoCont in estudoTecnico.etAcoesContingencia">
59 <td class="text-center"> 65 <td class="text-center">
60 - <input type="checkbox" name="acaoContChecked" ng-model="acaoCont.$checked" ng-click="checkAcaoContigencia(acaoCont)"/> 66 + <input type="checkbox" name="acaoContChecked" ng-model="acaoCont.$checked" ng-click="checkAcaoContigencia(acaoCont); atualizarListaSizeSelectAcaoContigencia()"/>
61 </td> 67 </td>
62 <td>{{ $index + 1 }}</td> 68 <td>{{ $index + 1 }}</td>
63 <td title="{{acaoCont.acaoContigencia}}">{{ splitText(acaoCont.acaoContigencia, 185) }}</td> 69 <td title="{{acaoCont.acaoContigencia}}">{{ splitText(acaoCont.acaoContigencia, 185) }}</td>
cit-contratos-web/src/main/webapp/html/objetivoEstrategico/objetivoEstrategicoEdit.html
@@ -108,32 +108,41 @@ @@ -108,32 +108,41 @@
108 108
109 <div class="row margin-top"> 109 <div class="row margin-top">
110 <div class="panel panel-default"> 110 <div class="panel panel-default">
111 - <div class="panel-heading clearfix">  
112 - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button"  
113 - ng-show="edit" ng-click="openModalNecessidade()">  
114 - <i class="fa fa-plus-circle yellow-dark"></i>  
115 - <translate>LABEL.ADICIONAR</translate> </a>  
116 - </button>  
117 -  
118 - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button"  
119 - ng-show="objetivoEstrategico.necessidadesElencadas.length > 0" ng-click="editarNecessidade(false)">  
120 - <i class="fa fa-search blue"></i>  
121 - <translate>LABEL.VISUALIZAR</translate>  
122 - </button>  
123 -  
124 - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" type="button"  
125 - ng-show="edit && objetivoEstrategico.necessidadesElencadas.length > 0" ng-click="editarNecessidade(true)">  
126 - <i class="fa fa-pencil blue"></i>  
127 - <translate>LABEL.EDITAR</translate>  
128 - </button>  
129 -  
130 - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" type="button"  
131 - ng-show="edit && objetivoEstrategico.necessidadesElencadas.length > 0" ng-click="excluirNecessidadesSelecionados()">  
132 - <i class="fa fa-times red"></i>  
133 - <translate>LABEL.REMOVER</translate>  
134 - </button> 111 + <div class="panel-heading clearfix col-sm-12 text-left">
  112 +
  113 + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  114 + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button"
  115 + ng-disabled="!edit" ng-click="openModalNecessidade()">
  116 + <i class="fa fa-plus-circle yellow-dark"></i>
  117 + <translate>LABEL.ADICIONAR</translate> </a>
  118 + </button>
  119 + </div>
  120 +
  121 + <div class="col-sm-1" tooltip="{{ listaSize == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}">
  122 + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button"
  123 + ng-disabled="listaSize != 1" ng-click="editarNecessidade(false)">
  124 + <i class="fa fa-search blue"></i>
  125 + <translate>LABEL.VISUALIZAR</translate>
  126 + </button>
  127 + </div>
  128 +
  129 + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  130 + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" type="button"
  131 + ng-disabled="listaSize != 1 || !edit" ng-click="editarNecessidade(true)">
  132 + <i class="fa fa-pencil blue"></i>
  133 + <translate>LABEL.EDITAR</translate>
  134 + </button>
  135 + </div>
  136 +
  137 + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  138 + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" type="button"
  139 + ng-disabled="listaSize == 0 || !edit" ng-click="excluirNecessidadesSelecionados()">
  140 + <i class="fa fa-times red"></i>
  141 + <translate>LABEL.REMOVER</translate>
  142 + </button>
  143 + </div>
  144 +
135 </div> 145 </div>
136 -  
137 <table class="table table-striped table-bordered table-hover"> 146 <table class="table table-striped table-bordered table-hover">
138 <thead> 147 <thead>
139 <tr> 148 <tr>
@@ -148,7 +157,7 @@ @@ -148,7 +157,7 @@
148 <tbody> 157 <tbody>
149 <tr ng-repeat="necessidade in objetivoEstrategico.necessidadesElencadas" ng-show="objetivoEstrategico.necessidadesElencadas.length > 0"> 158 <tr ng-repeat="necessidade in objetivoEstrategico.necessidadesElencadas" ng-show="objetivoEstrategico.necessidadesElencadas.length > 0">
150 <td class="text-center"> 159 <td class="text-center">
151 - <input type="checkbox" ng-click="necessidade.$index = $index; checkNecessidade(necessidade)" ng-checked="necessidade.$selected" ng-model="necessidade.$selected" /> 160 + <input type="checkbox" ng-click="necessidade.$index = $index; checkNecessidade(necessidade); atualizarListaSizeSelect()" ng-checked="necessidade.$selected" ng-model="necessidade.$selected" />
152 </td> 161 </td>
153 <td class="text-justify" title="{{necessidade.descricao}}"> 162 <td class="text-justify" title="{{necessidade.descricao}}">
154 {{ splitText(necessidade.descricao, 280) }} 163 {{ splitText(necessidade.descricao, 280) }}
cit-contratos-web/src/main/webapp/html/programa/programaEdit.html
@@ -114,33 +114,33 @@ @@ -114,33 +114,33 @@
114 <div class="panel panel-default"> 114 <div class="panel panel-default">
115 <div class="panel-heading clearfix col-sm-12 text-left"> 115 <div class="panel-heading clearfix col-sm-12 text-left">
116 116
117 - <div class="col-sm-1" tooltip="{{$translate.instant('LABEL.ADICIONAR')}}">  
118 - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button"  
119 - ng-show="edit" ng-click="openModalProgramaAcao();"> 117 + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  118 + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button"
  119 + ng-disabled="!edit" ng-click="openModalProgramaAcao();">
120 <i class="fa fa-plus-circle yellow-dark"></i> 120 <i class="fa fa-plus-circle yellow-dark"></i>
121 <translate>LABEL.ADICIONAR</translate> </a> 121 <translate>LABEL.ADICIONAR</translate> </a>
122 </button> 122 </button>
123 </div> 123 </div>
124 124
125 - <div class="col-sm-1" tooltip="{{ listaSize == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSize == 1 ? $translate.instant('LABEL.VISUALIZAR') : listaSize > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}">  
126 - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" 125 + <div class="col-sm-1" tooltip="{{ listaSize == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}">
  126 + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button"
127 ng-disabled="listaSize != 1" ng-click="editAcao(false)"> 127 ng-disabled="listaSize != 1" ng-click="editAcao(false)">
128 <i class="fa fa-search blue"></i> 128 <i class="fa fa-search blue"></i>
129 <translate>LABEL.VISUALIZAR</translate> 129 <translate>LABEL.VISUALIZAR</translate>
130 </button> 130 </button>
131 </div> 131 </div>
132 132
133 - <div class="col-sm-1" tooltip="{{ listaSize == 0 ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSize == 1 ? $translate.instant('LABEL.EDITAR') : listaSize > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : '' }}">  
134 - <button title="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" type="button"  
135 - ng-disabled="listaSize != 1" ng-click="editAcao(true)" > 133 + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  134 + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" type="button"
  135 + ng-disabled="listaSize != 1 || !edit" ng-click="editAcao(true)" >
136 <i class="fa fa-pencil blue"></i> 136 <i class="fa fa-pencil blue"></i>
137 <translate>LABEL.EDITAR</translate> 137 <translate>LABEL.EDITAR</translate>
138 </button> 138 </button>
139 </div> 139 </div>
140 140
141 - <div class="col-sm-1" tooltip="{{ listaSize == 0 ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : listaSize >= 1 ? $translate.instant('LABEL.REMOVER') : '' }}">  
142 - <button title="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" type="button"  
143 - ng-disabled="listaSize == 0" ng-click="excluirAcoesSelecionados()"> 141 + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  142 + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" type="button"
  143 + ng-disabled="listaSize == 0 || !edit" ng-click="excluirAcoesSelecionados()">
144 <i class="fa fa-times red"></i> 144 <i class="fa fa-times red"></i>
145 <translate>LABEL.REMOVER</translate> 145 <translate>LABEL.REMOVER</translate>
146 </button> 146 </button>
cit-contratos-web/src/main/webapp/html/termoReferencia/termoReferenciaPg2.html
@@ -88,46 +88,54 @@ @@ -88,46 +88,54 @@
88 <div class="row margin-top"> 88 <div class="row margin-top">
89 <div class="col-sm-12"> 89 <div class="col-sm-12">
90 <div class="panel panel-default"> 90 <div class="panel panel-default">
91 - <div class="panel-heading clearfix">  
92 - <button  
93 - title="{{$translate.instant('LABEL.ADICIONAR')}}"  
94 - alt="{{$translate.instant('LABEL.ADICIONAR')}}"  
95 - class="btn btn-clear"  
96 - type="button"  
97 - ng-show="edit"  
98 - ng-disabled="!termoReferencia.estudoTecnico || termoReferencia.estudoTecnico == null"  
99 - ng-click="openModalDetalhamentoSolucao();">  
100 - <i class="fa fa-plus-circle yellow-dark"/>  
101 - <translate>LABEL.ADICIONAR</translate>  
102 - </button>  
103 - <button  
104 - title="{{$translate.instant('LABEL.VISUALIZAR')}}"  
105 - alt="{{$translate.instant('LABEL.VISUALIZAR')}}"  
106 - class="btn btn-clear"  
107 - type="button"  
108 - ng-click="abrirDetalhamentoSolucao(false)">  
109 - <i class="fa fa-search blue"/>  
110 - <translate>LABEL.VISUALIZAR</translate>  
111 - </button>  
112 - <button  
113 - title="{{$translate.instant('LABEL.EDITAR')}}"  
114 - alt="{{$translate.instant('LABEL.EDITAR')}}"  
115 - class="btn btn-clear"  
116 - ng-show="edit"  
117 - ng-click="abrirDetalhamentoSolucao(true)">  
118 - <i class="fa fa-pencil blue"/>  
119 - <translate>LABEL.EDITAR</translate>  
120 - </button>  
121 - <button  
122 - title="{{$translate.instant('LABEL.REMOVER')}}"  
123 - alt="{{$translate.instant('LABEL.REMOVER')}}"  
124 - class="btn btn-clear"  
125 - type="button"  
126 - ng-click="removerDetalhamentoSolucao()"  
127 - ng-show="edit">  
128 - <i class="fa fa-times red"/>  
129 - <translate>LABEL.REMOVER</translate>  
130 - </button> 91 + <div class="panel-heading clearfix col-sm-12 text-left">
  92 + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  93 + <button
  94 + title="{{$translate.instant('LABEL.ADICIONAR')}}"
  95 + alt="{{$translate.instant('LABEL.ADICIONAR')}}"
  96 + class="btn btn-clear"
  97 + type="button"
  98 + ng-disabled="!termoReferencia.estudoTecnico && edit || termoReferencia.estudoTecnico == null && edit || !edit"
  99 + ng-click="openModalDetalhamentoSolucao();">
  100 + <i class="fa fa-plus-circle yellow-dark"/>
  101 + <translate>LABEL.ADICIONAR</translate>
  102 + </button>
  103 + </div>
  104 + <div class="col-sm-1" tooltip="{{ listaSize == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}">
  105 + <button
  106 + title="{{$translate.instant('LABEL.VISUALIZAR')}}"
  107 + alt="{{$translate.instant('LABEL.VISUALIZAR')}}"
  108 + class="btn btn-clear"
  109 + type="button"
  110 + ng-disabled="listaSize != 1"
  111 + ng-click="abrirDetalhamentoSolucao(false)">
  112 + <i class="fa fa-search blue"/>
  113 + <translate>LABEL.VISUALIZAR</translate>
  114 + </button>
  115 + </div>
  116 + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSize > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  117 + <button
  118 + title="{{$translate.instant('LABEL.EDITAR')}}"
  119 + alt="{{$translate.instant('LABEL.EDITAR')}}"
  120 + class="btn btn-clear"
  121 + ng-disabled="listaSize != 1 || !edit"
  122 + ng-click="abrirDetalhamentoSolucao(true)">
  123 + <i class="fa fa-pencil blue"/>
  124 + <translate>LABEL.EDITAR</translate>
  125 + </button>
  126 + </div>
  127 + <div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  128 + <button
  129 + title="{{$translate.instant('LABEL.REMOVER')}}"
  130 + alt="{{$translate.instant('LABEL.REMOVER')}}"
  131 + class="btn btn-clear"
  132 + type="button"
  133 + ng-click="removerDetalhamentoSolucao()"
  134 + ng-disabled="listaSize == 0 || !edit">
  135 + <i class="fa fa-times red"/>
  136 + <translate>LABEL.REMOVER</translate>
  137 + </button>
  138 + </div>
131 </div><!-- /.panel-heading --> 139 </div><!-- /.panel-heading -->
132 <table class="table table-bordered table-striped"> 140 <table class="table table-bordered table-striped">
133 <thead> 141 <thead>
cit-contratos-web/src/main/webapp/html/termoReferencia/termoReferenciaPg5.html
@@ -21,30 +21,37 @@ @@ -21,30 +21,37 @@
21 <div class="row margin-top"> 21 <div class="row margin-top">
22 <div class="col-sm-12"> 22 <div class="col-sm-12">
23 <div class="panel panel-default"> 23 <div class="panel panel-default">
24 - <div class="panel-heading clearfix">  
25 - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}"  
26 - class="btn btn-clear" type="button" ng-show="edit" ng-click="openModalPenalidade();">  
27 - <i class="fa fa-plus-circle yellow-dark"></i>  
28 - <translate>LABEL.ADICIONAR</translate>  
29 - </button>  
30 -  
31 - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}"  
32 - class="btn btn-clear" type="button" ng-click="abrirPenalidade(false)">  
33 - <i class="fa fa-search blue"></i>  
34 - <translate>LABEL.VISUALIZAR</translate>  
35 - </button>  
36 -  
37 - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}"  
38 - class="btn btn-clear" ng-show="edit" ng-click="abrirPenalidade(true)">  
39 - <i class="fa fa-pencil blue"></i>  
40 - <translate>LABEL.EDITAR</translate>  
41 - </button>  
42 -  
43 - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}"  
44 - class="btn btn-clear" type="button" ng-click="removerPenalidade()" ng-show="edit">  
45 - <i class="fa fa-times red"></i>  
46 - <translate>LABEL.REMOVER</translate>  
47 - </button> 24 + <div class="panel-heading clearfix col-sm-12 text-left">
  25 +
  26 + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  27 + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}"
  28 + class="btn btn-clear" type="button" ng-disabled="!edit" ng-click="openModalPenalidade();">
  29 + <i class="fa fa-plus-circle yellow-dark"></i>
  30 + <translate>LABEL.ADICIONAR</translate>
  31 + </button>
  32 + </div>
  33 + <div class="col-sm-1" tooltip="{{ listaSizePenalidade == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizePenalidade > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}">
  34 + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}"
  35 + ng-disabled="listaSizePenalidade != 1"
  36 + class="btn btn-clear" type="button" ng-click="abrirPenalidade(false)">
  37 + <i class="fa fa-search blue"></i>
  38 + <translate>LABEL.VISUALIZAR</translate>
  39 + </button>
  40 + </div>
  41 + <div class="col-sm-1" tooltip="{{ listaSizePenalidade == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizePenalidade > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  42 + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}"
  43 + class="btn btn-clear" ng-disabled="listaSizePenalidade != 1 || !edit" ng-click="abrirPenalidade(true)">
  44 + <i class="fa fa-pencil blue"></i>
  45 + <translate>LABEL.EDITAR</translate>
  46 + </button>
  47 + </div>
  48 + <div class="col-sm-1" tooltip="{{ listaSizePenalidade == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  49 + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}"
  50 + class="btn btn-clear" type="button" ng-click="removerPenalidade()" ng-disabled="listaSizePenalidade == 0 || !edit">
  51 + <i class="fa fa-times red"></i>
  52 + <translate>LABEL.REMOVER</translate>
  53 + </button>
  54 + </div>
48 55
49 </div><!-- .panel-heading --> 56 </div><!-- .panel-heading -->
50 <table class="table table-bordered table-striped"> 57 <table class="table table-bordered table-striped">
@@ -91,30 +98,40 @@ @@ -91,30 +98,40 @@
91 <div class="row margin-top"> 98 <div class="row margin-top">
92 <div class="col-sm-12"> 99 <div class="col-sm-12">
93 <div class="panel panel-default"> 100 <div class="panel panel-default">
94 - <div class="panel-heading clearfix">  
95 - <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}"  
96 - class="btn btn-clear" type="button" ng-show="edit" ng-click="openModalSancao();">  
97 - <i class="fa fa-plus-circle yellow-dark"></i>  
98 - <translate>LABEL.ADICIONAR</translate>  
99 - </button> 101 + <div class="panel-heading clearfix col-sm-12 text-left col-sm-12 text-left">
  102 +
  103 + <div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  104 + <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}"
  105 + class="btn btn-clear" type="button" ng-disabled="!edit" ng-click="openModalSancao();">
  106 + <i class="fa fa-plus-circle yellow-dark"></i>
  107 + <translate>LABEL.ADICIONAR</translate>
  108 + </button>
  109 + </div>
  110 +
  111 + <div class="col-sm-1" tooltip="{{ listaSizeSancao == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeSancao > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}">
  112 + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}"
  113 + class="btn btn-clear" ng-disabled="listaSizeSancao != 1" type="button" ng-click="abrirSancao(false)">
  114 + <i class="fa fa-search blue"></i>
  115 + <translate>LABEL.VISUALIZAR</translate>
  116 + </button>
  117 + </div>
100 118
101 - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}"  
102 - class="btn btn-clear" type="button" ng-click="abrirSancao(false)">  
103 - <i class="fa fa-search blue"></i>  
104 - <translate>LABEL.VISUALIZAR</translate>  
105 - </button> 119 + <div class="col-sm-1" tooltip="{{ listaSizeSancao == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeSancao > 1 ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  120 + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}"
  121 + class="btn btn-clear" ng-disabled="listaSizeSancao != 1 || !edit" ng-click="abrirSancao(true)">
  122 + <i class="fa fa-pencil blue"></i>
  123 + <translate>LABEL.EDITAR</translate>
  124 + </button>
  125 + </div>
106 126
107 - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}"  
108 - class="btn btn-clear" ng-show="edit" ng-click="abrirSancao(true)">  
109 - <i class="fa fa-pencil blue"></i>  
110 - <translate>LABEL.EDITAR</translate>  
111 - </button> 127 + <div class="col-sm-1" tooltip="{{ listaSizeSancao == 0 && edit ? $translate.instant('PORTAL.MSG.EXCLUIR_SELECIONE_ITEM') : !edit ? $translate.instant('PORTAL.MSG.EXCLUIR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
  128 + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}"
  129 + class="btn btn-clear" type="button" ng-click="removerSancao()" ng-disabled="listaSizeSancao == 0 || !edit">
  130 + <i class="fa fa-times red"></i>
  131 + <translate>LABEL.REMOVER</translate>
  132 + </button>
  133 + </div>
112 134
113 - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}"  
114 - class="btn btn-clear" type="button" ng-click="removerSancao()" ng-show="edit">  
115 - <i class="fa fa-times red"></i>  
116 - <translate>LABEL.REMOVER</translate>  
117 - </button>  
118 </div><!-- .panel-heading --> 135 </div><!-- .panel-heading -->
119 <table class="table table-bordered table-striped"> 136 <table class="table table-bordered table-striped">
120 <thead> 137 <thead>