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
StringBuilder sb = new StringBuilder(); | |
sb.append("SELECT new ").append(SaldoContaParteB.class.getName()).append("(sum(a.valor), conta) "); | |
sb.append("FROM ContaLalurParteB conta "); | |
sb.append("LEFT JOIN AjusteLalurParteB ajuste on ajuste.conta = conta AND ajuste.data < :dataInicio "); | |
sb.append("WHERE conta.empresa = :empresa"); | |
TypedQuery<SaldoContaParteB> query = getEntityManager().createQuery(sb.toString(), SaldoContaParteB.class); | |
query.setParameter("empresa", empresa); | |
query.setParameter("dataInicial", dataInicio); |
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
#!/bin/bash | |
# Subindo o trackr | |
cd /home/deploy/trackr/current | |
mina up | |
# Subindo interfaces web, para acessar de fora | |
cd /scripts | |
sudo sh em1.sh | |
sudo sh interfaces.sh |
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
sudo ip addr add 192.168.0.183/24 dev eth0 #Configura o ip | |
ip route add default via 192.168.0.106 #Configura o proxy | |
sudo ip link set dev eth0 up #Sobe a interface | |
# Verificar o arquivo /etc/resolv.conf, deve conter as seguintes linhas | |
nameserver 8.8.8.8 | |
nameserver 8.8.4.4 | |
#Subir o postgres | |
su - postgres #Loga como superuser postgres |
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 class NotaFiscalFilter extends GermantechFilter{ | |
private boolean addTotalizador; | |
private String[] searchStrings; | |
public NotaFiscalFilter(boolean addTotalizador){ | |
this.addTotalizador = addTotalizador; | |
} | |
public NotaFiscalFilter() { |
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
for (DuplicataNota duplicata : duplicatas) { | |
valorMovto = MoneyHelper.somar(valorMovto, duplicata.getValor()); | |
String tipo = duplicata.isAPagar() ? LancamentoContabil.DEBITO : LancamentoContabil.CREDITO; | |
PlanoConta conta = duplicata.isAPagar() ? /*Conta Fornecedores*/ : /*Conta Clientes*/; | |
LancamentoContabil lcto = new LancamentoContabil(conta, duplicata.getValor(), StringUtils.EMPTY, EmpresaHelper.getEmpresaLogada()); | |
lancamentos.add(lcto); | |
} |
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.germantech.ecf.telas.filtros; | |
import org.eclipse.jface.viewers.Viewer; | |
import org.eclipse.jface.viewers.ViewerFilter; | |
import br.com.germantech.ecf.aplicacao.helpers.ReflectionHelper; | |
public class PropertyFiscalFilter extends ViewerFilter{ | |
private String searchString ; |