This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.klabin.dbserver.klabrique.origin; | |
import br.com.klabin.dbserver.klabrique.old.db.bi.result.OrigemResult; | |
import lombok.*; | |
import org.hibernate.annotations.NamedNativeQuery; | |
import javax.persistence.*; | |
@Getter | |
@Setter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p:dialog header="Habilitação Manual" widgetVar="popupHabilitarManual" id="popupHabilitarManual" modal="true" | |
resizable="false" width="1200px" height="600px !important"> | |
<h:panelGroup> | |
<div class="row"><h:panelGroup styleClass="col-md-4"> | |
<h:outputText value="#{bundle.lbl_empresa}" style="font-weight:bold" width="25%"/> | |
<div class="form-group"> | |
<h:selectOneListbox id="popupComboEmpresa" value="#{crudBean.beanProperties.empresaPopup}" immediate="true" | |
converter="entityConverter" styleClass="form-control" onselect="#{crudBean.atualizarTabelaPopup()}" ajax="true" | |
style="font-weight:bold; width: 310px !important; height: 60px !important;"> | |
<f:selectItem itemLabel="#{bundle.lbl_todas.toUpperCase()}" onselect="#{crudBean.atualizarTabelaPopup()}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void prepararPopUpAuditoria(final Perfil perfil) { | |
List<Auditoria> auditorias = perfil.getAuditorias().stream().sorted(Comparator.comparing(Auditoria::getDataOcorrencia, Comparator.reverseOrder())).collect(Collectors.toList()); | |
for (Auditoria aud : auditorias) { | |
LinkedHashMap<String, Object> new_entity = new LinkedHashMap<>(); | |
LinkedHashMap<String, Object> old_entity = new LinkedHashMap<>(); | |
aud.getOcorrenciaJson().forEach((key, value) -> { | |
if (key.equals("new_entity")) { | |
new_entity.putAll((Map<? extends String, ?>) value); | |
} else if (key.equals("old_entity")) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Available context bindings: | |
* COLUMNS List<DataColumn> | |
* ROWS Iterable<DataRow> | |
* OUT { append() } | |
* FORMATTER { format(row, col); formatValue(Object, col) } | |
* TRANSPOSED Boolean | |
* plus ALL_COLUMNS, TABLE, DIALECT | |
* | |
* where: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) { | |
try { | |
File f = new File("P:\\Isaias\\log.txt"); | |
if (!f.exists()) | |
f.createNewFile(); | |
} catch (IOException e) { | |
// TODO Auto-generated catch block | |
e.printStackTrace(); | |
} | |
SpringApplication.run(AgendaApplication.class, args); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class DelayedResponseLogWriter implements HttpLogWriter { | |
Map<String, String> mapRequest = new HashMap<String, String>(); | |
Map<String, String> mapRequestAndResponse = new HashMap<String, String>(); | |
@Override | |
public void write(Precorrelation precorrelation, String request) throws IOException { | |
mapRequest.put(precorrelation.getId() ,request); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.mv.html5.saudepublica.regulacao.agenda; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.boot.autoconfigure.domain.EntityScan; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.context.annotation.ComponentScan.Filter; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.annotation.FilterType; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Permission({"PR_CAD_USU_SERVICO_NOV", "PR_CAD_USU_SERVICO_ALT"}) | |
@Post("/usuarioServico/grava") | |
public void grava(UsuarioServico isen, Entidade enti, final EntidadeFisica entf, List<String> filters, CompositePK vscoPK, Cidade cida, CertidaoDTO certidao) { | |
if (entf != null && entf.getEntfCPF() != null) { | |
if (!ValidatorUtil.validaCPF(entf.getEntfCPF())) { | |
validator.add(new ValidationMessage("CPF inválido", "entf.entfCPF")); | |
} | |
} | |
if (enti.getLocalidade().getLocaPK().getIdp() != null && enti.getLocalidade().getLocaPK().getIds() != null) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private JRBeanCollectionDataSource sinteticoVitimasPorDestinoData(RelatorioFiltrosGrupo filtros, | |
HashMap<String, Object> reportParams) { | |
List<HashMap<String, Object>> linhaList = new ArrayList<HashMap<String, Object>>(); | |
List<Object[]> dadosRelatorio = relatorioDAO.geraListaPorDestinoParaAlias(filtros, "historicosDeslocamentoVeiculo"); | |
validaDadosRelatorio(dadosRelatorio); | |
geraLinhaDescricao("filtroUnidade", filtros, reportParams, ETipoRelatorioFiltros.UNIDADE_SAUDE); | |
geraLinhaDescricao("filtroTipo", filtros, reportParams, ETipoRelatorioFiltros.TIPO_SOLICITACAO); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
md-dialog.cos-dialog.cos-large | |
form(name='$formFiltro') | |
md-toolbar | |
div.md-toolbar-tools | |
h2 {{ 'title.envolvido.importar' | translate }} | |
md-dialog-content | |
md-card | |
div.md-dialog-content(layout="column" , style={padding:"10px"}) | |
div.layout=row | |
md-input-container(flex='50') |
NewerOlder