estudoTecnicoPg5.html
9.28 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<ng-form name="recursosNecessariosForm" novalidate autocomplete="off">
<div class="page-content">
<fieldset>
<legend>
<translate>LABEL.RECURSOS_MATERIAIS</translate>
</legend>
<script type="text/ng-template" id="modal-recurso-material.html">
<div ng-include src="'/cit-contratos-web/html/estudoTecnico/dialog_recurso_material.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="openModalRecursoMaterial();">
<i class="fa fa-plus-circle yellow-dark"></i>
<translate>LABEL.ADICIONAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSizeRecursoMaterial == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeRecursoMaterial > 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="listaSizeRecursoMaterial != 1"
ng-click="abrirRecursoMaterial(false);" ng-if="!acaoEmMassaRecursosMateriais">
<i class="fa fa-search blue"></i>
<translate>LABEL.VISUALIZAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSizeRecursoMaterial == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeRecursoMaterial > 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="listaSizeRecursoMaterial != 1 || !edit" class="btn btn-clear" type="button"
ng-click="abrirRecursoMaterial(true);" ng-if="!acaoEmMassaRecursosMateriais">
<i class="fa fa-pencil blue"></i>
<translate>LABEL.EDITAR</translate>
</button>
</div>
<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') : '' }}">
<button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeRecursoMaterial == 0 || !edit" class="btn btn-clear" type="button"
ng-click="removerRecursoMaterial();">
<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="selectedAllRecursosMateriais" ng-click="checkAllRecursosMateriais(selectedAllRecursosMateriais);" ng-show="edit"/>
</th>
<th width="5%" class="text-center"><translate>LABEL.ID</translate></th>
<th width="48%" class="text-center"><translate>LABEL.DESCRICAO</translate></th>
<th width="11%" class="text-center"><translate>LABEL.QUANTIDADE</translate></th>
<th width="11%" class="text-center"><translate>LABEL.DISPONIVEL</translate></th>
<th width="25%" class="text-center"><translate>LABEL.ACAO_OBTENCAO</translate></th>
</tr>
</thead>
<tbody>
<tr ng-hide="(estudoTecnico.etRecursosMateriais && estudoTecnico.etRecursosMateriais.length != 0)">
<td colspan="5" class="text-center"><translate>LABEL.TABELA_VAZIA</translate></td>
</tr>
<tr ng-repeat="recursoMaterial in estudoTecnico.etRecursosMateriais">
<td class="text-center">
<input type="checkbox" name="recursoMaterialChecked" ng-model="recursoMaterial.$checked" ng-click="checkRecursoMaterial(recursoMaterial); atualizarListaSizeSelectRecursoMaterial()"/>
</td>
<td>{{ $index + 1 }}</td>
<td title="{{recursoMaterial.descricaoRecursoMaterial}}">{{ splitText(recursoMaterial.descricaoRecursoMaterial) }}</td>
<td class="text-center">{{ recursoMaterial.quantidade }}</td>
<td class="text-center">{{ recursoMaterial.disponivel? $translate.instant('LABEL.SIM') : $translate.instant('LABEL.NAO') }}</td>
<td title="{{recursoMaterial.acaoObtencao}}">{{ splitText(recursoMaterial.acaoObtencao, 30) }}</td>
</tr>
</tbody>
</table>
</div><!-- .painel -->
</div><!-- .col -->
</div> <!-- .row -->
</fieldset> <!-- .fieldset -->
<fieldset>
<legend>
<translate>LABEL.RECURSOS_HUMANOS</translate>
</legend>
<script type="text/ng-template" id="modal-recurso-humano.html">
<div ng-include src="'/cit-contratos-web/html/estudoTecnico/dialog_recurso_humano.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="openModalRecursoHumano();">
<i class="fa fa-plus-circle yellow-dark"></i>
<translate>LABEL.ADICIONAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSizeRecursoHumano == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeRecursoHumano > 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="listaSizeRecursoHumano != 1"
ng-click="abrirRecursoHumano(false);" ng-if="!acaoEmMassaRecursosHumanos">
<i class="fa fa-search blue"></i>
<translate>LABEL.VISUALIZAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSizeRecursoHumano == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeRecursoHumano > 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="listaSizeRecursoHumano != 1 || !edit" class="btn btn-clear" type="button"
ng-click="abrirRecursoHumano(true);" ng-if="!acaoEmMassaRecursosHumanos">
<i class="fa fa-pencil blue"></i>
<translate>LABEL.EDITAR</translate>
</button>
</div>
<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') : '' }}">
<button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeRecursoHumano == 0 || !edit" class="btn btn-clear" type="button"
ng-click="removerRecursoHumano();">
<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="selectedAllRecursosHumanos" ng-click="checkAllRecursosHumanos(selectedAllRecursosHumanos);" ng-show="edit"/>
</th>
<th width="5%" class="text-center"><translate>LABEL.ID</translate></th>
<th width="48%" class="text-center"><translate>LABEL.FORMACAO</translate></th>
<th width="47%" class="text-center"><translate>LABEL.ATIVIDADES</translate></th>
</tr>
</thead>
<tbody>
<tr ng-hide="(estudoTecnico.etRecursosHumanos && estudoTecnico.etRecursosHumanos.length != 0)">
<td colspan="4" class="text-center"><translate>LABEL.TABELA_VAZIA</translate></td>
</tr>
<tr ng-repeat="recursoHumano in estudoTecnico.etRecursosHumanos">
<td class="text-center">
<input type="checkbox" name="recursoHumanoChecked" ng-model="recursoHumano.$checked" ng-click="checkRecursoHumano(recursoHumano); atualizarListaSizeSelectRecursoHumano()"/>
</td>
<td>{{ $index + 1 }}</td>
<td title="{{recursoHumano.formacao}}">{{ splitText(recursoHumano.formacao) }}</td>
<td title="{{recursoHumano.atividades}}">{{ splitText(recursoHumano.atividades) }}</td>
</tr>
</tbody>
</table>
</div><!-- .painel -->
</div><!-- .col -->
</div> <!-- .row -->
</fieldset> <!-- .fieldset -->
</div> <!-- /.page-content -->
</ng-form>