bug #8997
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@69475 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
64f2267384
commit
f588909680
|
@ -158,8 +158,10 @@ import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||||
import com.rjconsultores.ws.totvs.service.GeradorTitulosIntegracion;
|
import com.rjconsultores.ws.totvs.service.GeradorTitulosIntegracion;
|
||||||
import com.rjconsultores.ws.totvs.service.GerenciadorEnvioTitulosWS;
|
import com.rjconsultores.ws.totvs.service.GerenciadorEnvioTitulosWS;
|
||||||
import com.rjconsultores.ws.utileria.RetornoTotvs.TipoRetorno;
|
import com.rjconsultores.ws.utileria.RetornoTotvs.TipoRetorno;
|
||||||
|
import com.rjconsultores.wsag.GeradorTitulosAG;
|
||||||
//import com.rjconsultores.wsag.GeradorTitulosAG;
|
//import com.rjconsultores.wsag.GeradorTitulosAG;
|
||||||
//import com.rjconsultores.wsag.WSAGLog;
|
//import com.rjconsultores.wsag.WSAGLog;
|
||||||
|
import com.rjconsultores.wsag.WSAGLog;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -1126,15 +1128,15 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void update(Observable o, Object arg) {
|
public void update(Observable o, Object arg) {
|
||||||
// logResultAG.setText(((WSAGLog)o).toString());
|
logResultAG.setText(((WSAGLog)o).toString());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
// WSAGLog wslog = WSAGLog.getInstance();
|
WSAGLog wslog = WSAGLog.getInstance();
|
||||||
// wslog.clear();
|
wslog.clear();
|
||||||
// wslog.addObserver(wsevents);
|
wslog.addObserver(wsevents);
|
||||||
|
|
||||||
myConn = dataSource.getConnection();
|
myConn = dataSource.getConnection();
|
||||||
Date dateInicio = fecInicioAG.getValue();
|
Date dateInicio = fecInicioAG.getValue();
|
||||||
|
@ -1142,12 +1144,12 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
dateInicio = DateUtil.inicioFecha(dateInicio);
|
dateInicio = DateUtil.inicioFecha(dateInicio);
|
||||||
Date dateFim = DateUtil.fimFecha(fecFimAG.getValue());
|
Date dateFim = DateUtil.fimFecha(fecFimAG.getValue());
|
||||||
|
|
||||||
// GeradorTitulosAG gerador = new GeradorTitulosAG(myConn, dateInicio, dateFim);
|
GeradorTitulosAG gerador = new GeradorTitulosAG(myConn, dateInicio, dateFim);
|
||||||
log.info("puntoVentaId=" + puntoVenta.getPuntoventaId() + ";fecInicio=" + dateInicio + ";fecFin=" + dateFim);
|
log.info("puntoVentaId=" + puntoVenta.getPuntoventaId() + ";fecInicio=" + dateInicio + ";fecFin=" + dateFim);
|
||||||
//
|
|
||||||
// gerador.send(checkAdiantamentoAG.isChecked(), checkBoletoAG.isChecked(), checkCartaoAG.isChecked(), checkDepositoAG.isChecked());
|
gerador.send(checkAdiantamentoAG.isChecked(), checkBoletoAG.isChecked(), checkCartaoAG.isChecked(), checkDepositoAG.isChecked());
|
||||||
//
|
|
||||||
// gerador.mostraResultado();
|
gerador.mostraResultado();
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Erro ao integrar", e);
|
log.error("Erro ao integrar", e);
|
||||||
|
@ -1184,12 +1186,11 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
dateInicio = DateUtil.inicioFecha(dateInicio);
|
dateInicio = DateUtil.inicioFecha(dateInicio);
|
||||||
Date dateFim = DateUtil.fimFecha(fecFimAG.getValue());
|
Date dateFim = DateUtil.fimFecha(fecFimAG.getValue());
|
||||||
|
|
||||||
// GeradorTitulosAG gerador = new GeradorTitulosAG(myConn, dateInicio, dateFim);
|
GeradorTitulosAG gerador = new GeradorTitulosAG(myConn, dateInicio, dateFim);
|
||||||
log.info("puntoVentaId=" + puntoVenta.getPuntoventaId() + ";fecInicio=" + dateInicio + ";fecFin=" + dateFim);
|
log.info("puntoVentaId=" + puntoVenta.getPuntoventaId() + ";fecInicio=" + dateInicio + ";fecFin=" + dateFim);
|
||||||
|
|
||||||
// gerador.execute(puntoVenta.getPuntoventaId(), checkAdiantamentoAG.isChecked(), checkBoletoAG.isChecked(), checkCartaoAG.isChecked(), checkDepositoAG.isChecked());
|
gerador.execute(puntoVenta.getPuntoventaId(), checkAdiantamentoAG.isChecked(), checkBoletoAG.isChecked(), checkCartaoAG.isChecked(), checkDepositoAG.isChecked());
|
||||||
|
|
||||||
//gerador.send(checkAdiantamentoAG.isChecked(), checkBoletoAG.isChecked(), checkCartaoAG.isChecked(), checkDepositoAG.isChecked());
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Erro ao integrar", e);
|
log.error("Erro ao integrar", e);
|
||||||
|
|
||||||
|
@ -1205,13 +1206,13 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
Messagebox.OK, Messagebox.ERROR);
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
// if (myConn != null) {
|
if (myConn != null) {
|
||||||
// try {
|
try {
|
||||||
// myConn.close();
|
myConn.close();
|
||||||
// } catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
// log.error("Erro ao fechar a conexão", e);
|
log.error("Erro ao fechar a conexão", e);
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue