estudoTecnicoPg4.html
5.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<ng-form name="beneficiosNecessidadesForm" novalidate autocomplete="off">
<div class="page-content">
<fieldset>
<legend>
<label ng-class="{'has-error' : beneficiosNecessidadesForm.$submitted && (!estudoTecnico.etBeneficiosEsperados || estudoTecnico.etBeneficiosEsperados.length < 1)}">
<translate>LABEL.BENEFICIOS_ESPERADOS</translate>
<span class='red'>*</span>
<i ng-show="beneficiosNecessidadesForm.$submitted && (!estudoTecnico.etBeneficiosEsperados || estudoTecnico.etBeneficiosEsperados < 1)" class='fa fa-warning red'
tooltip="{{$translate.instant('LABEL.CAMPO_OBRIGATORIO')}}" tooltip-placement='top'></i>
</label>
</legend>
<script type="text/ng-template" id="modal-beneficio-esperado.html">
<div ng-include src="'/cit-contratos-web/html/estudoTecnico/dialog_beneficio_esperado.html'" />
</script>
<div class="row margin-top">
<div class="col-sm-12">
<div class="panel panel-default">
<div class="panel-heading clearfix col-sm-12 text-left">
<div class="col-sm-1" tooltip="{{ !edit ? $translate.instant('PORTAL.MSG.ADICIONAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
<button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}" class="btn btn-clear" type="button" ng-disabled="!edit"
ng-click="openModalBeneficioEsperado();">
<i class="fa fa-plus-circle yellow-dark"></i>
<translate>LABEL.ADICIONAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSizeBeneficio == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeBeneficio > 1 ? $translate.instant('PORTAL.MSG.VISUALIZAR_DISABLED_SELECIONADOS') : '' }}">
<button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" type="button" ng-disabled="listaSizeBeneficio != 1"
ng-click="abrirBeneficioEsperado(false)">
<i class="fa fa-search blue"></i>
<translate>LABEL.VISUALIZAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSizeBeneficio == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeBeneficio > 1 && edit ? $translate.instant('PORTAL.MSG.EDITAR_DISABLED_SELECIONADOS') : !edit ? $translate.instant('PORTAL.MSG.EDITAR_NAO_PERMITIDO_ACAO_VISUALIZAR') : '' }}">
<button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" ng-disabled="listaSizeBeneficio != 1 || !edit" class="btn btn-clear" type="button"
ng-click="abrirBeneficioEsperado(true)">
<i class="fa fa-pencil blue"></i>
<translate>LABEL.EDITAR</translate>
</button>
</div>
<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') : '' }}">
<button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeBeneficio == 0 || !edit" class="btn btn-clear" type="button"
ng-click="removerBeneficioEsperado()">
<i class="fa fa-times red"></i>
<translate>LABEL.REMOVER</translate>
</button>
</div>
</div><!-- .panel-heading -->
<table class="table table-bordered table-striped">
<thead>
<tr>
<th class="text-center" width="20px">
<input type="checkbox" ng-model="selectedAllBeneficiosEsperados" ng-click="checkAllBeneficios(selectedAllBeneficiosEsperados);" ng-show="edit"/>
</th>
<th width="5%" class="text-center"><translate>LABEL.ID</translate></th>
<th width="38%" class="text-center"><translate>LABEL.BENEFICIO_ESPERADO</translate></th>
<th width="57%" class="text-center"><translate>LABEL.DESCRICAO_BENEFICIO_ESPERADO</translate></th>
</tr>
</thead>
<tbody>
<tr ng-hide="(estudoTecnico.etBeneficiosEsperados && estudoTecnico.etBeneficiosEsperados.length != 0)">
<td colspan="4" class="text-center"><translate>LABEL.TABELA_VAZIA</translate></td>
</tr>
<tr ng-repeat="beneficioEsperado in estudoTecnico.etBeneficiosEsperados">
<td class="text-center">
<input type="checkbox" name="beneficioEsperadoChecked" ng-model="beneficioEsperado.$checked" ng-click="checkBeneficio(beneficioEsperado); atualizarListaSizeSelectBeneficio()"/>
</td>
<td>{{ $index + 1 }}</td>
<td title="{{beneficioEsperado.beneficioEsperado}}">{{ splitText(beneficioEsperado.beneficioEsperado, 100)}}</td>
<td title="{{beneficioEsperado.descricaoBeneficioEsperado}}">{{ splitText(beneficioEsperado.descricaoBeneficioEsperado, 160) }}</td>
</tr>
</tbody>
</table>
</div>
</div><!-- .col -->
</div>
<legend>
<translate>LABEL.NECESSIDADES_ADEQUACOES</translate>
</legend>
<div class='row'>
<div class="col-sm-12">
<label-text-area ng-id="estudoTecnico.descricaoNecessidadeAdqcaoAmbiente" name="estudoTecnico.descricaoNecessidadeAdqcaoAmbiente" ng-model="estudoTecnico.descricaoNecessidadeAdqcaoAmbiente"
ng-label="LABEL.DESCRICAO_NECESSIDADES" ng-custom-maxlength="500" ng-obrigatorio="false" form="beneficiosNecessidadesForm" ng-disabled="!edit" rows="5"/>
</div>
</div>
</fieldset>
</div> <!-- /.page-content -->
</ng-form>