fixed bug #6735 - Incluidos orgãos concedentes com mesmos cálculo da antt. Alterado código para verificarem duas listas( ORGAOS_CONCEDENTES_CALCULO_ANTT e ORGAOS_CONCEDENTES_CALCULO_ARTESP) e caso sejam inseridos novos órgãos que sejam adicionados nessas listas e passarão a calcular conforme um desses órgãos principais.
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@48935 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
4a761aea6f
commit
c4adcc2da6
|
@ -1,11 +1,6 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.tarifas;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -17,15 +12,13 @@ import org.zkoss.zk.ui.event.Event;
|
|||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.CasetaPeaje;
|
||||
import com.rjconsultores.ventaboletos.constantes.Constantes;
|
||||
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Tramo;
|
||||
import com.rjconsultores.ventaboletos.service.CalcularPeajeService;
|
||||
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.service.TramoService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
||||
@Controller("calcularPeajeController")
|
||||
|
@ -68,8 +61,13 @@ public class CalcularPeajeController extends MyGenericForwardComposer {
|
|||
super.doAfterCompose(comp);
|
||||
|
||||
lsOrgaoConcedente = new ArrayList<OrgaoConcedente>();
|
||||
lsOrgaoConcedente.add(orgaoConcedenteService.obtenerID(3));
|
||||
lsOrgaoConcedente.add(orgaoConcedenteService.obtenerID(21));
|
||||
|
||||
for (Integer orgaoConcedenteId : Constantes.ORGAOS_CONCEDENTES_CALCULO_ANTT) {
|
||||
lsOrgaoConcedente.add(orgaoConcedenteService.obtenerID(orgaoConcedenteId));
|
||||
}
|
||||
for (Integer orgaoConcedenteId : Constantes.ORGAOS_CONCEDENTES_CALCULO_ARTESP) {
|
||||
lsOrgaoConcedente.add(orgaoConcedenteService.obtenerID(orgaoConcedenteId));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue