wilian 2014-11-26 20:15:17 +00:00
parent 8b9ac97ff3
commit 12de8bc6b3
1 changed files with 10 additions and 6 deletions

View File

@ -88,12 +88,16 @@ public class EditarFechamentoParamgeralController extends MyGenericForwardCompos
public void onClick$btnSalvar() { public void onClick$btnSalvar() {
try { try {
txtBoletoBancoAgencia.getText(); if(getFechamentoParamgeral() == null) {
txtBoletoBancoCarteira.getText(); setFechamentoParamgeral(new FechamentoParamgeral());
txtBoletoBancoCod.getText(); }
txtBoletoBancoConta.getText();
txtBoletoBancoContaDigito.getText(); getFechamentoParamgeral().setBoletoBancoAgencia(txtBoletoBancoAgencia.getText());
txtBoletoDiasVenc.getText(); getFechamentoParamgeral().setBoletoBancoCarteira(txtBoletoBancoCarteira.getText());
getFechamentoParamgeral().setBoletoBancoCod(txtBoletoBancoCod.getText());
getFechamentoParamgeral().setBoletoBancoConta(txtBoletoBancoConta.getText());
getFechamentoParamgeral().setBoletoBancoContaDigito(txtBoletoBancoContaDigito.getText());
getFechamentoParamgeral().setBoletoDiasVenc(Integer.valueOf(txtBoletoDiasVenc.getText()));
if(cmbEmpresa.getSelectedItem() != null) { if(cmbEmpresa.getSelectedItem() != null) {
getFechamentoParamgeral().setEmpresa((Empresa) cmbEmpresa.getSelectedItem().getValue()); getFechamentoParamgeral().setEmpresa((Empresa) cmbEmpresa.getSelectedItem().getValue());