termoReferenciaPg2.html 7.88 KB
<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>