metadadoProcesso.html 7.91 KB
		<p>
			<small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small>
		</p>

		<fieldset>

			<legend>
				<translate>LABEL.DADOS_PROCESSO</translate>
			</legend>

			<div class="row">
				<div class="col-md-3">
					<label-select ng-id="processo.tipoProtocolo" ng-disabled='!edit' ng-model="processo.tipoProtocolo" ng-label="LABEL.TIPOPROTOCOLO" ng-obrigatorio='true' form="processoForm"
						ng-list="dominiosTipoProtocoloNup" ng-custom-options="dominioTipoProtocoloNup.originalElement as dominioTipoProtocoloNup.descricao for dominioTipoProtocoloNup"
						track-by="track by dominioTipoProtocoloNup.id"> </label-select>
				</div>

				<div class="col-md-3" ng-show='processo.tipoProtocolo.codigo == 2'>
					<div class='form-group' ng-class="{'has-error': processoForm['protocolo'].$error.required && (!processoForm['protocolo'].$pristine || processoForm.$submitted)}">
						<label class='control-label'> <translate>LABEL.PROTOCOLO</translate> <span class='red'>*</span>
						</label> <i ng-show="processoForm['protocolo'].$error.required && !processoForm['protocolo'].$pristine || processoForm.$submitted" class='fa fa-warning red' tooltip="{{$translate.instant('LABEL.PROTOCOLO') + ' ' +$translate.instant('LABEL.CAMPO_OBRIGATORIO')}}" tooltip-placement='top'></i> 
							<input ng-required="processo.tipoProtocolo.codigo == 2" class="form-control" numbers-only id="protocolo" ng-show='processo.tipoProtocolo.codigo == 2' ng-label="LABEL.PROTOCOLO" ng-disabled='!edit' ng-model="processo.nup" form="processoForm" />
					</div>
				</div>

			</div>

			<div class="row">
				<div class="col-md-6">
					<auto-complete ng-id="processo.tipoProcesso" ng-set-result="constroiRelacionamentoTipoProcesso(item)" ng-label="LABEL.TIPOPROCESSO" ng-model="processo.tipoProcesso" form="processoForm"
						ng-find="findAutoCompleteTipoProcesso(value)" ng-item="item.nome" ng-obrigatorio='true' ng-disabled='!edit' />
				</div>
			</div>

			<div class="row" ng-show='processo.tipoProcesso.id'>
				<div class="col-md-6">
					<auto-complete ng-id="assuntoSelecionado" ng-disabled='sugestoes' ng-label="LABEL.ASSUNTO" ng-set-result='setTipoAssunto(item)' ng-model="assuntoSelecionado" form="processoForm"
						ng-find="findAutoCompleteAssunto(value)" ng-item="item.assunto" ng-obrigatorio='{{!sugestoes}}' />

				</div>
			</div>
			<div class="row" ng-show='processo.tipoProcesso.id'>
				<div class="col-md-6">
					<div class="form-group">
						<div class="input-group">
							<select class="form-control typeahead-wide" ng-model="sugestoes" ng-change="setAssunto(sugestoes)" multiple ng-id="sugestao" ng-disabled='assuntoSelecionado.id' ng-multiple="true"
								ng-options="sugestao as sugestao.assunto for sugestao in assuntos" track-by="track by sugestao.id">
							</select> <span ng-show="sugestoes" class="input-group-addon" ng-click="sugestoes = null" ng-class="{'hover-directive' : (($hover == true) && !disabled)}" ng-mouseover="$hover = true"
								ng-mouseout="$hover = false"> <i class="fa fa-eraser bigger-110"></i>
							</span> <span class="input-group-addon" style="visibility: hidden;"> <i class="fa fa-search bigger-110"></i>
							</span>
						</div>
					</div>
				</div>
			</div>
			<div class="row" ng-show='processo.tipoProcesso.id'>

				<div class="col-md-6">
					<label-select ng-id="processo.nivelAcesso" ng-label="LABEL.NIVEL_ACESSO" ng-model="processo.nivelAcesso" ng-custom-change='setHipoteseLegal(processo.nivelAcesso.id)' form="processoForm"
						ng-obrigatorio="true" ng-disabled="!edit" ng-custom-options="nivelAcessoTipoProcesso.originalElement as nivelAcessoTipoProcesso.nivelAcesso.descricao  for nivelAcessoTipoProcesso"
						track-by="track by nivelAcessoTipoProcesso.id" ng-list="nivelAcessoList" />
				</div>

				<div class="col-md-6">
					<div class="form-group" ng-show='processo.nivelAcesso.nivelAcesso.codigo == 0'>
						<label class="control-label block" ng-class="{'has-error': processoForm['processo.sigilo.id'].$error.required && (!processoForm['processo.sigilo.id'].$pristine || processoForm.$submitted)}">
							<translate>LABEL.SIGILO</translate> <span class="red">*</span> <i
							ng-show="processoForm['processo.sigilo.id'].$error.required && (!processoForm['processo.sigilo.id'].$pristine || processoForm.$submitted)" class='fa fa-warning red'
							tooltip="{{$translate.instant('LABEL.SIGILO') + ' ' +$translate.instant('LABEL.CAMPO_OBRIGATORIO')}}" tooltip-placement='top'></i>
						</label>

						<div class="radio-inline" ng-repeat="sigilo in processo.nivelAcesso.sigilos">
							<label> <input type="radio" required="processo.nivelAcesso.nivelAcesso.codigo == 1" name="processo.sigilo.id" id="processo.tipoSigilo.id" ng-disabled="!edit"
								ng-value="sigilo.tipoSigilo.id" ng-model="processo.tipoSigilo.id" ng-change='setHipoteseLegal(processo.nivelAcesso.sigilo.id)' /> {{sigilo.tipoSigilo.descricao}}
							</label>
						</div>
					</div>
				</div>

			</div>

			<div class="row">
				<div class="col-sm-6" ng-show='processo.nivelAcesso.nivelAcesso.codigo == 1 || processo.tipoSigilo.id'>
					<label-select ng-id="processo.hipoteseLegal" ng-model="processo.hipoteseLegal" ng-label="LABEL.HIPOTESELEGAL" ng-obrigatorio='false' form="processoForm" ng-disabled="!edit" ng-list="hipoteses"
						ng-custom-options="hipoteseLegal.originalElement as hipoteseLegal.nome for hipoteseLegal" ng-obrigatorio='true' track-by="track by hipoteseLegal.id" ng-disabled='!edit'> </label-select>
				</div>
			</div>


			<div class="row">

				<div class="col-md-6">

					<label-text-area ng-id="processo.assuntoComplementar" ng-label="LABEL.ASSUNTOCOMPLEMENTAR" ng-model="processo.assuntoComplementar" ng-disabled="!edit" form="processoForm" />

				</div>

				<div class="col-md-6">

					<label-text-area ng-id="processo.observacaoGeral" ng-label="LABEL.OBSERVACAOGERAL" ng-model="processo.observacaoGeral" ng-disabled="!edit" form="processoForm" />

				</div>

			</div>

			<fieldset>

				<legend>
					<translate>LABEL.INTERESSADOS</translate>
				</legend>

				<div class="row">

					<div class="col-md-12">

						<div class="row">
							<div class="col-sm-6">
								<auto-complete ng-id="interessado" ng-label="LABEL.INTERESSADO" ng-model="interessado" ng-disabled="!edit" ng-find="findAutoCompleteInteressados(value)" ng-item="item.nome" ng-set-result="setInteressados(item)"
									ng-show='!edit' button-new-show="true" button-new-action="novaPessoa();" />
							</div>
							<!-- 		<div class="col-sm-6" style="margin-top:30px;">
								<a href="#void" ng-show='edit'>
									  <span class="tree-label" ng-click="novaPessoa();">Cadastro de Pessoa</span>
								</a>
							</div> -->
						</div>

						<div class="row">
							<div class="col-sm-6">
								<div class="panel panel-default">
									<div class="panel-heading clearfix">
										<button class="btn btn-clear" type="button" ng-hide="!edit" ng-click="removerInteressados()" ng-show='edit'>
											<i class="fa fa-times red"></i>
											<translate>LABEL.REMOVER</translate>
										</button>
									</div>
									<table class="table table-striped table-bordered table-hover">
										<thead>
											<tr>
												<th width="5%" class="text-center"></th>

												<th class="text-center"><translate>LABEL.NOME</translate></th>

											</tr>
										</thead>
										<tbody>
											<tr ng-repeat="interessadoList in processo.interessados">
												<td class="text-center"><input type="radio" name="interessadoChecked" ng-value="interessadoList" ng-model="$parent.interessadoChecked" ng-click="interessadoList.$index = $index" /></td>

												<td class="text-center">{{interessadoList.interessado.nome}}</td>


											</tr>
											<tr ng-hide="processo.interessados.length > 0">
												<td colspan="3" class="text-center"><translate>LABEL.TABELA_VAZIA</translate></td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>
						</div>
					</div>
				</div>
			</fieldset>
		</fieldset>