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 class GroupingKey implements Comparable<GroupingKey> { | |
private Date dataVencimento; | |
private Empresa cliente; | |
private GroupingKey(Date dataVencimento, Empresa cliente) { | |
super(); | |
this.dataVencimento = dataVencimento; | |
this.cliente = cliente; | |
} |
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.aplicacao.helpers; | |
import br.com.germantech.ecf.dominio.modelo.fornecedor.ClienteFornecedor; | |
import br.com.germantech.ecf.dominio.modelo.produto.Produto; | |
public enum ClassId { | |
CLIFOR(ClienteFornecedor.class, "C"), | |
PRODUTO(Produto.class, "P"); | |
private Class<?> classe; |
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 ; |
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 FilterStore extends Observable { | |
Map<String, String> campos; | |
Map<String, String> valores = Maps.newHashMap(); | |
public FilterStore(Map<String, String> campos) { | |
this.campos = campos; | |
} | |
public void atualizar(String campo, String valor) { | |
// Aqui o camarada atualiza os valores de cada campo |
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
ContentSelectorBinding<CFOP> binding = ContentSelectorHelper.adaptForCFOP(txtCfop, setter, tipoFaturamento, new ContentSelectionListener<CFOP>() { | |
@Override | |
public void selectionAccepted(CFOP accepted) { | |
atualizaBind(false); | |
} | |
}); | |
binding.update(); |
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
@Override | |
public void keyTraversed(TraverseEvent e) { | |
if(e.character == SWT.CR){ | |
if(e.stateMask == SWT.SHIFT) | |
controle.traverse(SWT.TRAVERSE_TAB_PREVIOUS); | |
else | |
controle.traverse(SWT.TRAVERSE_TAB_NEXT); | |
} | |
} |
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
public enum Logic { | |
AND { | |
@Override | |
public boolean compare(String[] campos, Object objectToCompare, String valueToCompare) { | |
// Implementar lógica "AND" | |
return false; | |
} | |
}, | |
OR { | |
@Override |
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 | |
oldbase="gruber" | |
newbase="gruberteste" | |
nomearquivo="$oldbase-$(date +%d%m%Y-%H%M%S).sql" | |
outputfile="/home/gts/sql-base-fiscal/$nomearquivo" | |
httpserver="/var/www/" | |
db_user="admin" | |
echo "===========================================" |
OlderNewer