fixes bug #07034
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@51927 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
d1c087a0ab
commit
4537ab3837
|
@ -1,9 +1,12 @@
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.gr;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.gr;
|
||||||
|
|
||||||
|
import java.sql.SQLException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
|
@ -110,6 +113,9 @@ public class EditarAidfController extends MyGenericForwardComposer {
|
||||||
private static Logger log = Logger.getLogger(EditarAidfController.class);
|
private static Logger log = Logger.getLogger(EditarAidfController.class);
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private DataSource dataSourceRead;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
@ -177,19 +183,22 @@ public class EditarAidfController extends MyGenericForwardComposer {
|
||||||
txtFormfinal.getValue();
|
txtFormfinal.getValue();
|
||||||
txtDocFiscal.getValue();
|
txtDocFiscal.getValue();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Comboitem inscEstadualSeleccionada = cmbInscestadual.getSelectedItem();
|
Comboitem inscEstadualSeleccionada = cmbInscestadual.getSelectedItem();
|
||||||
String _inscestadual = inscEstadualSeleccionada != null ? inscEstadualSeleccionada.getValue().toString() : "";
|
String _inscestadual = inscEstadualSeleccionada != null ? inscEstadualSeleccionada.getValue().toString() : "";
|
||||||
aidf.setInscestadual(_inscestadual);
|
aidf.setInscestadual(_inscestadual);
|
||||||
|
|
||||||
Long x = aidfService.validarDocFiscalSerieFormInicialFinal(aidf);
|
Long x ;
|
||||||
if(x != -1){
|
try {
|
||||||
Messagebox.show(
|
x = aidfService.validarDocFiscalSerieFormInicialFinal(aidf, dataSourceRead.getConnection());
|
||||||
Labels.getLabel("editarAidfController.btnSalvar.MSG.conflitoFormIniFin", new Object[] { x }),
|
if(x != -1){
|
||||||
Labels.getLabel("editarAidfController.window.title"),
|
Messagebox.show(
|
||||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
Labels.getLabel("editarAidfController.btnSalvar.MSG.conflitoFormIniFin", new Object[] { x }),
|
||||||
return;
|
Labels.getLabel("editarAidfController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} catch (SQLException e) {
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
aidf.setActivo(true);
|
aidf.setActivo(true);
|
||||||
|
|
Loading…
Reference in New Issue