leonardo 2017-01-23 12:30:44 +00:00
parent 0c545f6eff
commit 0eb8df5f5d
1 changed files with 18 additions and 1 deletions

View File

@ -23,6 +23,8 @@ import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Observable;
import java.util.Observer;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
@ -145,6 +147,7 @@ import com.rjconsultores.ws.totvs.service.GeradorTitulosIntegracion;
import com.rjconsultores.ws.totvs.service.GerenciadorEnvioTitulosWS;
import com.rjconsultores.ws.utileria.RetornoTotvs.TipoRetorno;
import com.rjconsultores.wsag.GeradorTitulosAG;
import com.rjconsultores.wsag.WSAGLog;
/**
*
@ -327,6 +330,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private Textbox txtNomeBanco;
private Textbox numtelefonodos;
private Textbox numtelefonouno;
private Textbox logResultAG;
private Checkbox checkInformatizada;
private Checkbox checkBilheteInfo;
private Checkbox checkVendaInternet;
@ -1041,8 +1045,21 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
}
public void onClick$btnEnviaAG(Event ev) throws InterruptedException {
Connection myConn = null;
Connection myConn = null;
Observer wsevents = new Observer() {
@Override
public void update(Observable o, Object arg) {
logResultAG.setText(((WSAGLog)o).toString());
}
};
try {
WSAGLog wslog = WSAGLog.getInstance();
wslog.clear();
wslog.addObserver(wsevents);
myConn = dataSource.getConnection();
Date dateInicio = fecInicioAG.getValue();