gerar p2 e f2 [bug#5610]
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@37946 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
e06c31e8c9
commit
5f321499a9
|
@ -7,6 +7,8 @@ import java.util.Date;
|
|||
import java.util.GregorianCalendar;
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
@ -21,6 +23,7 @@ import org.zkoss.zul.Intbox;
|
|||
import org.zkoss.zul.Paging;
|
||||
import org.zkoss.zul.Timebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.FiscalDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.EsquemaCorrida;
|
||||
|
@ -30,6 +33,7 @@ import com.rjconsultores.ventaboletos.service.ClaseServicioService;
|
|||
import com.rjconsultores.ventaboletos.service.CorridaService;
|
||||
import com.rjconsultores.ventaboletos.service.MarcaService;
|
||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -42,11 +46,15 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfiguracionCo
|
|||
public class SelecionarServicosGerarController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static Logger log = LoggerFactory.getLogger(SelecionarServicosGerarController.class);
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<EsquemaCorrida> plwEsquemaCorrida;
|
||||
@Autowired
|
||||
private MarcaService marcaService;
|
||||
@Autowired
|
||||
private FiscalDAO fiscalDAO;
|
||||
@Autowired
|
||||
private ClaseServicioService claseService;
|
||||
@Autowired
|
||||
private RutaService rutaService;
|
||||
|
@ -233,6 +241,11 @@ public class SelecionarServicosGerarController extends MyGenericForwardComposer
|
|||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
|
||||
if (ApplicationProperties.getInstance().pafActivo()){
|
||||
log.info("qtdP2=" + fiscalDAO.gerarRegistroP2_F2(lsEsquemaCorrida, dataGeracaoInicial, dataGeracaoFinal));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
} else {
|
||||
Messagebox.show(Labels.getLabel("selecionarServicosGerarController.MSG.selecioneservicos"),
|
||||
|
|
Loading…
Reference in New Issue