estudoTecnicoPg3.html
10.8 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<ng-form name="levantamentoAlternativasForm" novalidate autocomplete="off">
<div class="page-content">
<fieldset>
<legend>
<label ng-class="{'has-error' : levantamentoAlternativasForm.$submitted && (!estudoTecnico.etLevantamentoAlternativas || estudoTecnico.etLevantamentoAlternativas.length < 1)}">
<translate>LABEL.SOLUCAO</translate>
<span class='red'>*</span>
<i ng-show="levantamentoAlternativasForm.$submitted && (!estudoTecnico.etLevantamentoAlternativas || estudoTecnico.etLevantamentoAlternativas.length < 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-solucao.html">
<div ng-include src="'/cit-contratos-web/html/estudoTecnico/dialog_solucao.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="openModalSolucao();">
<i class="fa fa-plus-circle yellow-dark"></i>
<translate>LABEL.ADICIONAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSizeSolucao == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeSolucao > 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="listaSizeSolucao != 1"
ng-click="abrirSolucao(false);">
<i class="fa fa-search blue"></i>
<translate>LABEL.VISUALIZAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSizeSolucao == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeSolucao > 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="listaSizeSolucao != 1 || !edit" class="btn btn-clear" type="button"
ng-click="abrirSolucao(true);">
<i class="fa fa-pencil blue"></i>
<translate>LABEL.EDITAR</translate>
</button>
</div>
<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') : '' }}">
<button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeSolucao == 0 || !edit" class="btn btn-clear" type="button"
ng-click="removerSolucao();">
<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" name="selectedAllAlternativas" ng-model="selectedAllAlternativas" ng-click="checkAllAlternativa(selectedAllAlternativas);"
ng-show="edit"/>
</th>
<th width="5%" class="text-center"><translate>LABEL.ID</translate></th>
<th style="width: 38%;" class="text-center"><translate>LABEL.DESCRICAO_ALTERNATIVA</translate></th>
<th style="width: 23%;" class="text-center"><translate>LABEL.ORGAO_EXTERNO</translate></th>
<th style="width: 23%;" class="text-center"><translate>LABEL.FORNECEDOR</translate></th>
<th style="width: 11%;" class="text-center"><translate>LABEL.VALOR</translate></th>
</tr>
</thead>
<tbody>
<tr ng-hide="(estudoTecnico.etLevantamentoAlternativas && estudoTecnico.etLevantamentoAlternativas.length != 0)">
<td colspan="6" class="text-center"><translate>LABEL.TABELA_VAZIA</translate></td>
</tr>
<tr ng-repeat="alternativa in estudoTecnico.etLevantamentoAlternativas">
<td class="text-center">
<input type="checkbox" name="alternativaChecked" ng-model="alternativa.$checked" ng-click="checkAlternativa(alternativa); atualizarListaSizeSelectSolucao()"/>
</td>
<td>{{ $index + 1 }}</td>
<td title="{{alternativa.descricaoAlternativa}}">{{ splitText(alternativa.descricaoAlternativa, 80) }}</td>
<td title="{{alternativa.orgaoExterno.pessoa.nome}}">{{ splitText(alternativa.orgaoExterno.pessoa.nome, 45) }}</td>
<td title="{{alternativa.fornecedor.pessoa.nome}}">{{ splitText(alternativa.fornecedor.pessoa.nome, 45) }}</td>
<td>{{ alternativa.valor | currency:"R$":2 }}</td>
</tr>
</tbody>
</table>
</div>
</div><!-- .col -->
</div>
<legend>
<translate>LABEL.JUSTIFICATIVA_SOLUCAO</translate>
</legend>
<div class='row'>
<div class="col-sm-12">
<label-text-area ng-id="estudoTecnico.descricaoJustificativaSolucao" name="estudoTecnico.descricaoJustificativaSolucao" ng-model="estudoTecnico.descricaoJustificativaSolucao"
ng-label="LABEL.DESCRICAO" ng-custom-maxlength="500" ng-obrigatorio="true" form="levantamentoAlternativasForm" ng-disabled="!edit" rows="5"/>
</div>
</div>
<div class='row'>
<div class="col-sm-12">
<label-text-area ng-id="estudoTecnico.roiJustificativaSolucao" name="estudoTecnico.roiJustificativaSolucao" ng-model="estudoTecnico.roiJustificativaSolucao"
ng-label="LABEL.ROI" ng-custom-maxlength="500" form="levantamentoAlternativasForm" ng-disabled="!edit" rows="5"/>
</div>
</div>
<legend>
<label ng-class="{'has-error' : levantamentoAlternativasForm.$submitted && (!estudoTecnico.etBensServicosSolucoes || estudoTecnico.etBensServicosSolucoes.length < 1)}">
<translate>LABEL.DESCRICAO_BENS_SERVICO</translate>
<span class='red'>*</span>
<i ng-show="levantamentoAlternativasForm.$submitted && (!estudoTecnico.etBensServicosSolucoes || estudoTecnico.etBensServicosSolucoes.length < 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-bem-servico.html">
<div ng-include src="'/cit-contratos-web/html/estudoTecnico/dialog_bens_servico.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="openModalBensServico();">
<i class="fa fa-plus-circle yellow-dark"></i>
<translate>LABEL.ADICIONAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSizeServicoSolucao == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSizeServicoSolucao > 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="listaSizeServicoSolucao != 1"
ng-click="abrirBensServico(false);">
<i class="fa fa-search blue"></i>
<translate>LABEL.VISUALIZAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSizeServicoSolucao == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSizeServicoSolucao > 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="listaSizeServicoSolucao != 1 || !edit" class="btn btn-clear" type="button"
ng-click="abrirBensServico(true);">
<i class="fa fa-pencil blue"></i>
<translate>LABEL.EDITAR</translate>
</button>
</div>
<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') : '' }}">
<button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" ng-disabled="listaSizeServicoSolucao == 0 || !edit" class="btn btn-clear" type="button"
ng-click="removerBensServico();">
<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" name="selectedAllBensServicos" ng-model="selectedAllBensServicos" ng-click="checkAllBensServicos(selectedAllBensServicos);" ng-show="edit"/>
</th>
<th width="5%" class="text-center"><translate>LABEL.ID</translate></th>
<th style="width: 28%;" class="text-center"><translate>LABEL.NOME</translate></th>
<th style="width: 67%;" class="text-center"><translate>LABEL.DESCRICAO</translate></th>
</tr>
</thead>
<tbody>
<tr ng-hide="(estudoTecnico.etBensServicosSolucoes && estudoTecnico.etBensServicosSolucoes.length != 0)">
<td colspan="4" class="text-center"><translate>LABEL.TABELA_VAZIA</translate></td>
</tr>
<tr ng-repeat="bemServico in estudoTecnico.etBensServicosSolucoes">
<td class="text-center">
<input type="checkbox" name="bemServicoChecked" ng-model="bemServico.$checked" ng-click="checkBemServico(bemServico); atualizarListaSizeSelectServicoSolucao()"/>
</td>
<td>{{ $index + 1 }}</td>
<td title="{{bemServico.nomeBemServicoSolucao}}">{{ splitText(bemServico.nomeBemServicoSolucao, 70) }}</td>
<td title="{{bemServico.descricaoBemServicoSolucao}}">{{ splitText(bemServico.descricaoBemServicoSolucao, 190) }}</td>
</tr>
</tbody>
</table>
</div>
</div><!-- .col -->
</div>
</fieldset>
</div> <!-- /.page-content -->
</ng-form>