0011526: KM trecho x linha
fixes bug#11526 dev:Daniel Zauli qua:Bruno Silver git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@83438 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
659a51cca3
commit
bc725ae9b8
|
@ -40,6 +40,7 @@ import com.rjconsultores.ventaboletos.entidad.CoeficienteTarifa;
|
|||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
|
||||
import com.rjconsultores.ventaboletos.entidad.OrgaoTramo;
|
||||
import com.rjconsultores.ventaboletos.entidad.RutaSecuencia;
|
||||
import com.rjconsultores.ventaboletos.entidad.Tramo;
|
||||
import com.rjconsultores.ventaboletos.entidad.TramoKm;
|
||||
import com.rjconsultores.ventaboletos.entidad.TramoServicio;
|
||||
|
@ -52,6 +53,8 @@ import com.rjconsultores.ventaboletos.service.EmpresaService;
|
|||
import com.rjconsultores.ventaboletos.service.EsquemaCorridaService;
|
||||
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
||||
import com.rjconsultores.ventaboletos.service.RutaCombinacionService;
|
||||
import com.rjconsultores.ventaboletos.service.RutaSecuenciaService;
|
||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.service.TramoService;
|
||||
import com.rjconsultores.ventaboletos.service.ViaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
|
@ -84,6 +87,8 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
|||
@Autowired
|
||||
private TramoService tramoService;
|
||||
@Autowired
|
||||
private RutaSecuenciaService rutaSecuenciaService;
|
||||
@Autowired
|
||||
private ViaService viaService;
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
|
@ -500,6 +505,7 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
|||
|
||||
tramo = tramoService.suscribirActualizar(tramo);
|
||||
tramosList.updateItem(tramo);
|
||||
updateKmRutaSecuencia(tramo);
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarTramosController.MSG.suscribirOK"), Labels.getLabel("editarTramosController.window.title"), Messagebox.OK,
|
||||
Messagebox.INFORMATION);
|
||||
|
@ -511,6 +517,13 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
private void updateKmRutaSecuencia(Tramo tramo2) {
|
||||
for(RutaSecuencia rsq : tramo2.getRutaSecuenciaList()) {
|
||||
rsq.setKmOriginal(tramo2.getKmReal());
|
||||
rutaSecuenciaService.actualizacion(rsq);
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnApagar(Event ev) throws InterruptedException {
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue