bug #6130
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@42911 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
886f7235c1
commit
08229dd26f
|
@ -792,9 +792,17 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
public void onClick$btnIntegracao(Event ev) {
|
public void onClick$btnIntegracao(Event ev) {
|
||||||
try {
|
try {
|
||||||
TotvsService.cadastrarTituloAReceber(puntoVenta.getPuntoventaId(), fecInicio.getValue(), fecFinal.getValue(), dataSource.getConnection());
|
Calendar cal = Calendar.getInstance();
|
||||||
|
cal.setTime(fecFinal.getValue());
|
||||||
|
cal.set(Calendar.HOUR_OF_DAY, 23);
|
||||||
|
cal.set(Calendar.MINUTE, 59);
|
||||||
|
cal.set(Calendar.SECOND, 59);
|
||||||
|
|
||||||
|
|
||||||
|
TotvsService.cadastrarTituloAReceber(puntoVenta.getPuntoventaId(), fecInicio.getValue(), cal.getTime(), dataSource.getConnection());
|
||||||
puntoVentaService.getDBSession().close();
|
puntoVentaService.getDBSession().close();
|
||||||
} catch (WrongValueException e) {
|
} catch (WrongValueException e) {
|
||||||
|
log.error("", e);
|
||||||
try {
|
try {
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
e.getMessage(),
|
e.getMessage(),
|
||||||
|
@ -804,6 +812,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
log.error("", e1);
|
log.error("", e1);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
log.error("", e);
|
||||||
try {
|
try {
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
e.getMessage(),
|
e.getMessage(),
|
||||||
|
|
Loading…
Reference in New Issue