contratoPg3.html
7.96 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
<ng-form name="informacoesEmpenhoLicitacaoContratoForm" novalidate autocomplete="off">
{{ !informacoesEmpenhoLicitacaoContratoForm.$submitted ? informacoesEmpenhoLicitacaoContratoForm.$setPristine() : ""}}
<div class="page-content">
<fieldset>
<legend>
<label ng-class="{'has-error' : informacoesEmpenhoLicitacaoContratoForm.$submitted && (!contrato.ctrtEmpenhos || contrato.ctrtEmpenhos.length < 1)}">
<translate>LABEL.INFORMACOES_EMPENHO</translate>
<span class='red' ng-show="edit">*</span>
<i ng-show="informacoesEmpenhoLicitacaoContratoForm.$submitted && (!contrato.ctrtEmpenhos || contrato.ctrtEmpenhos.length < 1)" class='fa fa-warning red'
tooltip="{{$translate.instant('LABEL.CAMPO_OBRIGATORIO')}}" tooltip-placement='top'/>
</label>
</legend>
<script type="text/ng-template" id="modal-empenho.html">
<div ng-include src="'/cit-contratos-web/html/contrato/dialog_empenho.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 || contrato.id"
ng-click="openModalEmpenho();">
<i class="fa fa-plus-circle yellow-dark"></i>
<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-click="abrirEmpenho(false);" ng-disabled="listaSize != 1">
<i class="fa fa-search blue"></i>
<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" type="button"
ng-click="abrirEmpenho(true);" ng-disabled="listaSize != 1 || !edit || contrato.id">
<i class="fa fa-pencil blue"></i>
<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')}}" ng-disabled="listaSize == 0 || !edit || contrato.id" class="btn btn-clear" type="button"
ng-click="removerEmpenho();">
<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 style="width: 5%;" class="text-center"><input type="checkbox" ng-model="selectedAllCtrtEmpenhos" ng-checked="selectedAllCtrtEmpenhos" ng-click="selectAllCtrtEmpenhos();" /></th>
<th style="width: 13%;" class="text-center"><translate>LABEL.NUMERO_EMPENHO</translate></th>
<th style="width: 14%;" class="text-center"><translate>LABEL.DATA_EMPENHO</translate></th>
<th style="width: 18%;" class="text-center"><translate>LABEL.FINALIDADE_EMPENHO</translate></th>
<th style="width: 16%;" class="text-center"><translate>LABEL.CATEGORIA_ECONOMICA</translate></th>
<th style="width: 19%;" class="text-center"><translate>LABEL.CLASSIFICACAO_DESPESA</translate></th>
<th style="width: 14%;" class="text-center"><translate>LABEL.VALOR_EMPENHADO</translate></th>
</tr>
</thead>
<tbody>
<tr ng-hide="(contrato.ctrtEmpenhos && contrato.ctrtEmpenhos.length != 0)">
<td colspan="7" class="text-center"><translate>LABEL.TABELA_VAZIA</translate></td>
</tr>
<tr ng-repeat="empenho in contrato.ctrtEmpenhos">
<td class="text-center"><input type="checkbox" ng-model="empenho.$checked" ng-checked="empenho.$checked" ng-click="checkEmpenho(); atualizarListaSizeSelect()"/></td>
<td class="text-center">{{ empenho.numeroEmpenho }}</td>
<td class="text-center">{{ empenho.data | date:'dd/MM/yyyy' }}</td>
<td>{{ empenho.dominioFinalidadeEmpenho.descricao }}</td>
<td>{{ empenho.dominioCategoriaEconomica.descricao }}</td>
<td>{{ empenho.classificacaoDespesa }}</td>
<td class="text-center">{{ empenho.valorEmpenhado | currency }}</td>
</tr>
</tbody>
</table>
</div><!-- .painel -->
</div><!-- .col -->
</div> <!-- .row -->
<div class="row">
<div class="col-sm-3 pull-right">
<label-input-money ng-label="LABEL.VALOR_TOTAL_EMPENHADO" ng-id="contrato.valorTotalEmpenhado" ng-custom-maxlength="19" ng-disabled="true"
ng-model="contrato.valorTotalEmpenhado" form="informacoesEmpenhoLicitacaoContratoForm"/>
</div><!-- .col-sm-3 -->
</div><!-- .row -->
</fieldset><!-- .fieldset -->
<fieldset>
<legend>
<translate>LABEL.INFORMACOES_LICITACAO</translate>
</legend>
<div class="row">
<div class="col-sm-3">
<label-input ng-type="text" ng-id="contrato.numeroAnoEditalLicitacao" ng-label="LABEL.NUMERO_ANO_EDITAL"
ng-model="contrato.numeroAnoEditalLicitacao" ng-custom-maxlength="30" form="informacoesEmpenhoLicitacaoContratoForm"
ng-disabled="!edit || contrato.id" ng-obrigatorio="edit" ng-mask="99999/9999"/>
</div><!-- .col-sm-3 -->
<div class="col-sm-3">
<label-input-data ng-id="contrato.dataPublicacaoLicitacao" ng-label="LABEL.DATA_PUBLICACAO_LICITACAO"
ng-model="contrato.dataPublicacaoLicitacao" form="informacoesEmpenhoLicitacaoContratoForm" ng-obrigatorio="false" ng-disabled="!edit || contrato.id"
ng-mode="day" ng-format="dd/MM/yyyy"/>
</div><!-- .col-sm-3 -->
<div class="col-sm-3">
<label-select ng-id="contrato.dominioModalidadeLicitacao" ng-label="LABEL.MODALIDADE_LICITACAO"
form="informacoesEmpenhoLicitacaoContratoForm" ng-model="contrato.dominioModalidadeLicitacao"
ng-list="dominioModalidadeLicitacaoList" ng-disabled="!edit || contrato.id" ng-obrigatorio="edit" track-by="track by dominioModalidadeLicitacao.id"
ng-custom-options="dominioModalidadeLicitacao.originalElement as dominioModalidadeLicitacao.descricao for dominioModalidadeLicitacao"/>
</div><!-- .col-sm-3 -->
<div class="col-sm-3">
<label-select ng-id="contrato.dominioTipoLicitacao" ng-label="LABEL.TIPO_LICITACAO"
ng-obrigatorio="edit && contrato.dominioModalidadeLicitacao.codigo && contrato.dominioModalidadeLicitacao.codigo !== 1 && contrato.dominioModalidadeLicitacao.codigo !== 2"
ng-disabled="!edit || (!contrato.dominioModalidadeLicitacao || (contrato.dominioModalidadeLicitacao.codigo === 1 || contrato.dominioModalidadeLicitacao.codigo === 2)) || contrato.id"
form="informacoesEmpenhoLicitacaoContratoForm" ng-model="contrato.dominioTipoLicitacao" ng-list="dominioTipoLicitacaoList"
ng-custom-options="dominioTipoLicitacao.originalElement as dominioTipoLicitacao.descricao for dominioTipoLicitacao"
track-by="track by dominioTipoLicitacao.id"/>
</div><!-- .col-sm-3 -->
</div><!-- .row -->
</fieldset><!-- .fieldset -->
</div><!-- /.page-content -->
</ng-form>