termoReferenciaPg2.html
7.88 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
178
<ng-form name="justificativaContratacaoForm" novalidate autocomplete="off">
<div class="page-content">
<fieldset>
<legend>
<translate>LABEL.JUSTIFICATIVA_CONTRATACAO</translate>
</legend>
<div class="row">
<div class="col-sm-12">
<list-view-paginate
ng-show-radio="false"
ng-Lista="listaJustificativaContratacao"
ng-dominio-repository="DominioRepository"
ng-repository="EstudoTecnicoRequisitoNegocioRepository"
ng-headers="headers"
ng-fields="fields"
ng-filters="filters"
ng-filter-criteria="filterCriteria"
ng-edit="false"
ng-show-remover="false"
ng-show-csv="false"/>
</div><!-- /.col -->
</div><!-- /.row -->
</fieldset>
<fieldset>
<legend>
<translate>LABEL.BENEFICIOS_ESPERADOS</translate>
</legend>
<div class="row">
<div class="col-sm-12">
<list-view-paginate
ng-show-radio="false"
ng-Lista="listaBeneficiosEsperados"
ng-dominio-repository="DominioRepository"
ng-repository="EstudoTecnicoBeneficioEsperadoRepository"
ng-headers="headersBeneficios"
ng-fields="fieldsBeneficios"
ng-filters="filtersBeneficios"
ng-filter-criteria="filterCriteriaBeneficios"
ng-edit="false"
ng-show-remover="false"
ng-show-csv="false"/>
</div><!-- /.col -->
</div><!-- /.row -->
</fieldset>
<fieldset>
<legend>
<translate>CONTRATOS.LABEL.DESCRICAO_SOLUCAO</translate>
</legend>
<div class="row">
<div class="col-sm-12">
<label-text-area
ng-id="termoReferencia.estudoTecnico.descricaoJustificativaSolucao"
ng-label="LABEL.DESCRICAO"
rows="10"
form="justificativaContratacaoForm"
ng-disabled="true"
ng-obrigatorio="false"
ng-model="termoReferencia.estudoTecnico.descricaoJustificativaSolucao"
ng-custom-maxlength="500" />
</div><!-- /.col -->
</div><!-- /.row -->
<div class="row">
<div class="col-sm-12">
<label-text-area
ng-id="termoReferencia.estudoTecnico.roiJustificativaSolucao"
ng-label="LABEL.ROI"
rows="10"
form="justificativaContratacaoForm"
ng-disabled="true"
ng-obrigatorio="false"
ng-model="termoReferencia.estudoTecnico.roiJustificativaSolucao"
ng-custom-maxlength="500" />
</div><!-- /.col -->
</div><!-- /.row -->
<fieldset>
<legend>
<label ng-class="{'has-error' : justificativaContratacaoForm.$submitted && termoReferencia.detalhamentosSolucoes && termoReferencia.detalhamentosSolucoes.length < 1}">
<translate>LABEL.DETALHAMENTO_SOLUCAO</translate> <span class='red'>*</span>
<i ng-show="justificativaContratacaoForm.$submitted && termoReferencia.detalhamentosSolucoes && termoReferencia.detalhamentosSolucoes.length < 1"
class='fa fa-warning red'
tooltip="{{$translate.instant('LABEL.DETALHAMENTO_SOLUCAO') + ' ' +$translate.instant('LABEL.CAMPO_OBRIGATORIO')}}"
tooltip-placement='top'></i>
</label>
</legend>
<script type="text/ng-template" id="modal-detalhamento-solucao.html">
<div ng-include src="'/cit-contratos-web/html/termoReferencia/dialog_detalhamento_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="!termoReferencia.estudoTecnico && edit || termoReferencia.estudoTecnico == null && edit || !edit"
ng-click="openModalDetalhamentoSolucao();">
<i class="fa fa-plus-circle yellow-dark"/>
<translate>LABEL.ADICIONAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSize == 0 ? $translate.instant('PORTAL.MSG.VISUALIZAR_SELECIONE_ITEM') : listaSize > 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="listaSize != 1"
ng-click="abrirDetalhamentoSolucao(false)">
<i class="fa fa-search blue"/>
<translate>LABEL.VISUALIZAR</translate>
</button>
</div>
<div class="col-sm-1" tooltip="{{ listaSize == 0 && edit ? $translate.instant('PORTAL.MSG.EDITAR_SELECIONE_ITEM') : listaSize > 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')}}"
class="btn btn-clear"
ng-disabled="listaSize != 1 || !edit"
ng-click="abrirDetalhamentoSolucao(true)">
<i class="fa fa-pencil blue"/>
<translate>LABEL.EDITAR</translate>
</button>
</div>
<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') : '' }}">
<button
title="{{$translate.instant('LABEL.REMOVER')}}"
alt="{{$translate.instant('LABEL.REMOVER')}}"
class="btn btn-clear"
type="button"
ng-click="removerDetalhamentoSolucao()"
ng-disabled="listaSize == 0 || !edit">
<i class="fa fa-times red"/>
<translate>LABEL.REMOVER</translate>
</button>
</div>
</div><!-- /.panel-heading -->
<table class="table table-bordered table-striped">
<thead>
<tr>
<th width="20px" class="text-center"></th>
<th width="25%" class="text-center"><translate>LABEL.BEM_SERVICO_SOLUCAO</translate></th>
<th style="width: 15%;" class="text-center"><translate>LABEL.FORMA_PAGAMENTO</translate></th>
<th style="width: 10%;" class="text-center"><translate>LABEL.NUMERO_PARCELAS</translate></th>
<th style="width: 10%;" class="text-center"><translate>LABEL.PRAZO_ENTREGA</translate></th>
<th style="width: 10%;" class="text-center"><translate>LABEL.QUANTIDADE</translate></th>
<th style="width: 10%;" class="text-center"><translate>LABEL.VALOR_UNITARIO</translate></th>
<th style="width: 10%;" class="text-center"><translate>LABEL.VALOR_TOTAL</translate></th>
</tr>
</thead>
<tbody>
<tr ng-hide="termoReferencia.detalhamentosSolucoes.length != 0">
<td colspan="7" class="text-center"><translate>LABEL.TABELA_VAZIA</translate></td>
</tr>
<tr ng-repeat="item in termoReferencia.detalhamentosSolucoes">
<td class="text-center">
<input type="radio" name="detalhamentoSolucaoChecked" ng-checked="item.$checked"
ng-click="item.$index = $index; checkDetalhamentoSolucao($index);" />
</td>
<td class="text-left">{{ item.bemServicoSolucao.nomeBemServicoSolucao }}</td>
<td class="text-left">{{ item.formaPagamento.descricao}}</td>
<td class="text-right">{{ item.numeroParcelas}}</td>
<td class="text-center">{{ item.prazoEntrega | date:'dd/MM/yyyy' }}</td>
<td class="text-right">{{ item.quantidade }}</td>
<td class="text-right">{{ item.valor | currency:"R$":2}}</td>
<td class="text-right">{{ item.total | currency:"R$":2}}</td>
</tr>
</tbody>
</table>
</div><!-- /.panel -->
</div><!-- /.col -->
</div><!-- /.row -->
</fieldset>
</fieldset>
</div><!-- /.page-content -->
</ng-form>