Correção bugs Aguia Branca.
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@75895 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
ca77a99282
commit
4685b250a5
|
@ -18,6 +18,3 @@ label.agencia=Agencia
|
||||||
label.serie=Serie
|
label.serie=Serie
|
||||||
label.bilhete=Bilhetes
|
label.bilhete=Bilhetes
|
||||||
label.numeracao=Numeração
|
label.numeracao=Numeração
|
||||||
label.subserie=Subserie
|
|
||||||
label.formInicio=F. Inicio
|
|
||||||
label.formFim=F. Fim
|
|
|
@ -205,14 +205,14 @@ public class EditarConfiguracionReservacionController extends MyGenericForwardCo
|
||||||
spTiempoLiberacionInternetMinutoCaduc.setText(horaMinutoTiempoliberacioninternetCaduc[1]);
|
spTiempoLiberacionInternetMinutoCaduc.setText(horaMinutoTiempoliberacioninternetCaduc[1]);
|
||||||
|
|
||||||
|
|
||||||
validaIsChecked();
|
if(reservacionCtrl.getIndTipoReserva()!= null && reservacionCtrl.getIndTipoReserva()){
|
||||||
|
ra2.setChecked(Boolean.TRUE);
|
||||||
|
}else{
|
||||||
|
ra1.setChecked(Boolean.TRUE);
|
||||||
|
}
|
||||||
desabilitaTempos();
|
desabilitaTempos();
|
||||||
|
|
||||||
}else{
|
|
||||||
btnApagar.setVisible(Boolean.FALSE);
|
btnApagar.setVisible(Boolean.FALSE);
|
||||||
|
|
||||||
ra1.setChecked(true);
|
|
||||||
desabilitaTempos();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
txtDescripcion.focus();
|
txtDescripcion.focus();
|
||||||
|
@ -546,7 +546,6 @@ public class EditarConfiguracionReservacionController extends MyGenericForwardCo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
tabControl.setSelected(Boolean.TRUE);
|
tabControl.setSelected(Boolean.TRUE);
|
||||||
txtDescripcion.getValue();
|
txtDescripcion.getValue();
|
||||||
|
@ -578,7 +577,7 @@ public class EditarConfiguracionReservacionController extends MyGenericForwardCo
|
||||||
List<ReservacionCtrl> lsTraslapa = reservacionCtrlService.buscarFechaTraslapa(reservacionCtrl);
|
List<ReservacionCtrl> lsTraslapa = reservacionCtrlService.buscarFechaTraslapa(reservacionCtrl);
|
||||||
Boolean podeSalvarTraslapa = lsTraslapa.isEmpty() ? true : false;
|
Boolean podeSalvarTraslapa = lsTraslapa.isEmpty() ? true : false;
|
||||||
if (lsTraslapa.size() == 1) {
|
if (lsTraslapa.size() == 1) {
|
||||||
// Somente edição
|
// Somente editar
|
||||||
if (reservacionCtrl.getReservacionctrlId() != null) {
|
if (reservacionCtrl.getReservacionctrlId() != null) {
|
||||||
if (reservacionCtrl.getReservacionctrlId().equals(lsTraslapa.get(0).getReservacionctrlId())) {
|
if (reservacionCtrl.getReservacionctrlId().equals(lsTraslapa.get(0).getReservacionctrlId())) {
|
||||||
podeSalvarTraslapa = true;
|
podeSalvarTraslapa = true;
|
||||||
|
@ -586,7 +585,7 @@ public class EditarConfiguracionReservacionController extends MyGenericForwardCo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Se não pode salvar pq translapa
|
// Se nao pode salvar pq translapa
|
||||||
if (!podeSalvarTraslapa) {
|
if (!podeSalvarTraslapa) {
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
Labels.getLabel("editarConfiguracionReservacionController.MSG.conflitoVigencias"),
|
Labels.getLabel("editarConfiguracionReservacionController.MSG.conflitoVigencias"),
|
||||||
|
@ -657,6 +656,7 @@ public class EditarConfiguracionReservacionController extends MyGenericForwardCo
|
||||||
Date fin = DateUtil.fimFecha(fecFinal.getValue());
|
Date fin = DateUtil.fimFecha(fecFinal.getValue());
|
||||||
reservacionCtrl.setFecinicio(inicio);
|
reservacionCtrl.setFecinicio(inicio);
|
||||||
reservacionCtrl.setFecfinal(fin);
|
reservacionCtrl.setFecfinal(fin);
|
||||||
|
reservacionCtrl.setIndTipoReserva(ra2.isChecked());
|
||||||
|
|
||||||
reservacionCtrl.setTiempoliberacion(spTiempoLiberacionHora.getValue(), spTiempoLiberacionMinuto.getValue());
|
reservacionCtrl.setTiempoliberacion(spTiempoLiberacionHora.getValue(), spTiempoLiberacionMinuto.getValue());
|
||||||
reservacionCtrl.setTiempoliberacioninternet(spTiempoLiberacionInternetHora.getValue(), spTiempoLiberacionInternetMinuto.getValue());
|
reservacionCtrl.setTiempoliberacioninternet(spTiempoLiberacionInternetHora.getValue(), spTiempoLiberacionInternetMinuto.getValue());
|
||||||
|
@ -770,23 +770,6 @@ public class EditarConfiguracionReservacionController extends MyGenericForwardCo
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void validaIsChecked(){
|
|
||||||
|
|
||||||
if(spTiempoLiberacionHora.getValue() > 0 || spTiempoLiberacionMinuto.getValue() > 0
|
|
||||||
|| spTiempoLiberacionInternetHora.getValue() > 0 || spTiempoLiberacionInternetMinuto.getValue() > 0 ){
|
|
||||||
|
|
||||||
ra1.setChecked(Boolean.TRUE);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if(spTiempoLiberacionHoraCaduc.getValue() > 0 || spTiempoLiberacionMinutoCaduc.getValue() > 0
|
|
||||||
|| spTiempoLiberacionInternetHoraCaduc.getValue() > 0 || spTiempoLiberacionInternetMinutoCaduc.getValue() > 0 ){
|
|
||||||
|
|
||||||
ra2.setChecked(Boolean.TRUE);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public ReservacionCtrl getReservacionCtrl() {
|
public ReservacionCtrl getReservacionCtrl() {
|
||||||
return reservacionCtrl;
|
return reservacionCtrl;
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,7 @@ public class EditarCatalogoDeParadaController extends MyGenericForwardComposer {
|
||||||
} else {
|
} else {
|
||||||
Ciudad ciudad = parada.getCiudad();
|
Ciudad ciudad = parada.getCiudad();
|
||||||
if (ciudad != null) {
|
if (ciudad != null) {
|
||||||
cmbCiudad.setText(ciudad.getNombciudad());
|
cmbCiudad.setText(ciudad.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.gr;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.gr;
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
|
@ -999,12 +999,10 @@ public class EditarPricingController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gravarNovo) {
|
if (gravarNovo) {
|
||||||
// eu guardo antes para gantir que os dados que eu tenho na tela estao no banco
|
|
||||||
pricingService.actualizacion(pricing);
|
|
||||||
List<Pricing> lsPricing =
|
List<Pricing> lsPricing =
|
||||||
pricingService.buscarPorNombre(pricing.getNombPricing());
|
pricingService.buscarPorNombre(pricing.getNombPricing());
|
||||||
|
|
||||||
if (lsPricing.size() <= 1) {
|
if (lsPricing.size() == 0) {
|
||||||
pricingService.actualizacion(pricing);
|
pricingService.actualizacion(pricing);
|
||||||
pricingList.addItemNovo(pricing);
|
pricingList.addItemNovo(pricing);
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.web.utilerias;
|
package com.rjconsultores.ventaboletos.web.utilerias;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
|
||||||
import com.rjconsultores.ventaboletos.service.CiudadService;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -19,6 +17,9 @@ import org.zkoss.zkplus.databind.BindingListModelList;
|
||||||
import org.zkoss.zkplus.spring.SpringUtil;
|
import org.zkoss.zkplus.spring.SpringUtil;
|
||||||
import org.zkoss.zul.Combobox;
|
import org.zkoss.zul.Combobox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
||||||
|
import com.rjconsultores.ventaboletos.service.CiudadService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author rodrigo
|
* @author rodrigo
|
||||||
|
@ -50,6 +51,11 @@ public class MyComboboxCiudad extends Combobox {
|
||||||
if (strCiudad.length() < MyComboboxParada.minLength) {
|
if (strCiudad.length() < MyComboboxParada.minLength) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
int indiceSeparacaoEstado = strCiudad.indexOf(",");
|
||||||
|
if (indiceSeparacaoEstado != -1) {
|
||||||
|
strCiudad = strCiudad.substring(0, indiceSeparacaoEstado);
|
||||||
|
}
|
||||||
|
|
||||||
if (!strCiudad.isEmpty()) {
|
if (!strCiudad.isEmpty()) {
|
||||||
lsCiudad = ciudadService.buscaLike(strCiudad);
|
lsCiudad = ciudadService.buscaLike(strCiudad);
|
||||||
|
|
||||||
|
@ -72,7 +78,8 @@ public class MyComboboxCiudad extends Combobox {
|
||||||
|
|
||||||
this.addEventListener("onChanging", new EventListener() {
|
this.addEventListener("onChanging", new EventListener() {
|
||||||
|
|
||||||
public void onEvent(Event event) throws Exception {
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
InputEvent ev = (InputEvent) event;
|
InputEvent ev = (InputEvent) event;
|
||||||
String strCiudad = ev.getValue();
|
String strCiudad = ev.getValue();
|
||||||
if (strCiudad.length() < 2) {
|
if (strCiudad.length() < 2) {
|
||||||
|
|
Loading…
Reference in New Issue