fixes bug #6554
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@46853 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
e35e8a54d5
commit
62a8329f3b
|
@ -4,7 +4,6 @@ import java.util.ArrayList;
|
|||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
|
@ -30,6 +29,8 @@ import com.rjconsultores.ventaboletos.entidad.Cliente;
|
|||
import com.rjconsultores.ventaboletos.entidad.ClienteDescuento;
|
||||
import com.rjconsultores.ventaboletos.entidad.ClienteDireccion;
|
||||
import com.rjconsultores.ventaboletos.entidad.ClienteFidelidad;
|
||||
import com.rjconsultores.ventaboletos.entidad.Curso;
|
||||
import com.rjconsultores.ventaboletos.entidad.Escola;
|
||||
import com.rjconsultores.ventaboletos.entidad.MotivoViaje;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||
|
@ -37,6 +38,8 @@ import com.rjconsultores.ventaboletos.entidad.TarjetaFidelidad;
|
|||
import com.rjconsultores.ventaboletos.entidad.TipoDomicilio;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoOcupacion;
|
||||
import com.rjconsultores.ventaboletos.service.ClienteService;
|
||||
import com.rjconsultores.ventaboletos.service.CursoService;
|
||||
import com.rjconsultores.ventaboletos.service.EscolaService;
|
||||
import com.rjconsultores.ventaboletos.service.MotivoViajeService;
|
||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.service.TipoDomicilioService;
|
||||
|
@ -61,6 +64,13 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
private MotivoViajeService motivoViajeService;
|
||||
private TipoOcupacionService tipoOcupacionService;
|
||||
private TipoDomicilioService tipoDomicilioService;
|
||||
@Autowired
|
||||
private EscolaService escolaService;
|
||||
@Autowired
|
||||
private CursoService cursoService;
|
||||
@Autowired
|
||||
private RutaService rutaService;
|
||||
|
||||
private Cliente cliente;
|
||||
private MyListbox clienteList;
|
||||
private MyTextbox txtNombCliente;
|
||||
|
@ -79,6 +89,7 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
private MyTextbox txtDescColonia;
|
||||
private MyTextbox txtDescEstado;
|
||||
private MyTextbox txtCP;
|
||||
|
||||
private Datebox dateFecNacimiento;
|
||||
private Intbox txtCanthijos;
|
||||
private Intbox txtNumFidelidade;
|
||||
|
@ -90,14 +101,18 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
private Combobox cmbDomicilio;
|
||||
private Combobox cmbOcupacion;
|
||||
private Combobox cmbMotivacionViaje;
|
||||
private Combobox cmbCurso;
|
||||
private Combobox cmbEscola;
|
||||
|
||||
private List<MotivoViaje> lsMotivoViaje;
|
||||
private List<TipoOcupacion> lsTipoOcupacion;
|
||||
private List<ClienteDireccion> lsClienteDireccion;
|
||||
private List<TipoDomicilio> lsTipoDomicilio;
|
||||
private Checkbox chkBloqueo;
|
||||
@Autowired
|
||||
private RutaService rutaService;
|
||||
private List<Curso> lsCurso;
|
||||
private List<Escola> lsEscola;
|
||||
private List<Ruta> lsLinhas;
|
||||
|
||||
private Checkbox chkBloqueo;
|
||||
private MyComboboxEstandar cmbLinha;
|
||||
private Ruta linha;
|
||||
private MyComboboxParada cmbParadaOrigem;
|
||||
|
@ -106,20 +121,20 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
private MyComboboxParada cmbParadaDestino;
|
||||
private MyComboboxParadaCve cmbParadaDestinoCve;
|
||||
private Parada destino;
|
||||
private Checkbox chkINDLUNES;
|
||||
private Boolean boolINDLUNES;
|
||||
private Checkbox chkINDMARTES;
|
||||
private Boolean boolINDMARTES;
|
||||
private Checkbox chkINDMIERCOLES;
|
||||
private Boolean boolINDMIERCOLES;
|
||||
private Checkbox chkINDJUEVES;
|
||||
private Boolean boolINDJUEVES;
|
||||
private Checkbox chkINDVIERNES;
|
||||
private Boolean boolINDVIERNES;
|
||||
private Checkbox chkINDSABADO;
|
||||
private Boolean boolINDSABADO;
|
||||
private Checkbox chkINDDOMINGO;
|
||||
private Boolean boolINDDOMINGO;
|
||||
private Checkbox chkINDLUNES;
|
||||
private Boolean boolINDLUNES;
|
||||
private Checkbox chkINDMARTES;
|
||||
private Boolean boolINDMARTES;
|
||||
private Checkbox chkINDMIERCOLES;
|
||||
private Boolean boolINDMIERCOLES;
|
||||
private Checkbox chkINDJUEVES;
|
||||
private Boolean boolINDJUEVES;
|
||||
private Checkbox chkINDVIERNES;
|
||||
private Boolean boolINDVIERNES;
|
||||
private Checkbox chkINDSABADO;
|
||||
private Boolean boolINDSABADO;
|
||||
private Checkbox chkINDDOMINGO;
|
||||
private Boolean boolINDDOMINGO;
|
||||
private Intbox cantMaxMes;
|
||||
private Datebox datInicial;
|
||||
private Datebox datFinal;
|
||||
|
@ -127,72 +142,6 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
private Boolean estudanteComDesconto;
|
||||
private Checkbox chkEstudanteComDesconto;
|
||||
|
||||
|
||||
|
||||
public Cliente getCliente() {
|
||||
return cliente;
|
||||
}
|
||||
|
||||
public void setCliente(Cliente cliente) {
|
||||
this.cliente = cliente;
|
||||
}
|
||||
|
||||
public List<MotivoViaje> getLsMotivoViaje() {
|
||||
return lsMotivoViaje;
|
||||
}
|
||||
|
||||
public void setLsMotivoViaje(List<MotivoViaje> lsMotivoViaje) {
|
||||
this.lsMotivoViaje = lsMotivoViaje;
|
||||
}
|
||||
|
||||
public List<TipoOcupacion> getLsTipoOcupacion() {
|
||||
return lsTipoOcupacion;
|
||||
}
|
||||
|
||||
public void setLsTipoOcupacion(List<TipoOcupacion> lsTipoOcupacion) {
|
||||
this.lsTipoOcupacion = lsTipoOcupacion;
|
||||
}
|
||||
|
||||
public MotivoViajeService getMotivoViajeService() {
|
||||
return motivoViajeService;
|
||||
}
|
||||
|
||||
public void setMotivoViajeService(MotivoViajeService motivoViajeService) {
|
||||
this.motivoViajeService = motivoViajeService;
|
||||
}
|
||||
|
||||
public TipoOcupacionService getTipoOcupacionService() {
|
||||
return tipoOcupacionService;
|
||||
}
|
||||
|
||||
public void setTipoOcupacionService(TipoOcupacionService tipoOcupacionService) {
|
||||
this.tipoOcupacionService = tipoOcupacionService;
|
||||
}
|
||||
|
||||
public TipoDomicilioService getTipoDomicilioService() {
|
||||
return tipoDomicilioService;
|
||||
}
|
||||
|
||||
public void setTipoDomicilioService(TipoDomicilioService tipoDomicilioService) {
|
||||
this.tipoDomicilioService = tipoDomicilioService;
|
||||
}
|
||||
|
||||
public List<ClienteDireccion> getLsClienteDireccion() {
|
||||
return lsClienteDireccion;
|
||||
}
|
||||
|
||||
public void setLsClienteDireccion(List<ClienteDireccion> lsClienteDireccion) {
|
||||
this.lsClienteDireccion = lsClienteDireccion;
|
||||
}
|
||||
|
||||
public List<TipoDomicilio> getLsTipoDomicilio() {
|
||||
return lsTipoDomicilio;
|
||||
}
|
||||
|
||||
public void setLsTipoDomicilio(List<TipoDomicilio> lsTipoDomicilio) {
|
||||
this.lsTipoDomicilio = lsTipoDomicilio;
|
||||
}
|
||||
|
||||
public void aplicarMascara() {
|
||||
Clients.evalJavaScript("jQuery('#" + txtNumFax.getUuid()
|
||||
+ "').mask('(999)9999-9999?9');jQuery('#" + numtelefonodos.getUuid()
|
||||
|
@ -227,6 +176,8 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
cmbDomicilio.setDisabled(desabilitar);
|
||||
cmbOcupacion.setDisabled(desabilitar);
|
||||
cmbMotivacionViaje.setDisabled(desabilitar);
|
||||
cmbCurso.setDisabled(desabilitar);
|
||||
cmbEscola.setDisabled(desabilitar);
|
||||
}
|
||||
|
||||
private Boolean isClienteImportacao() {
|
||||
|
@ -286,6 +237,9 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
lsMotivoViaje = motivoViajeService.obtenerTodos();
|
||||
lsTipoDomicilio = tipoDomicilioService.obtenerTodos();
|
||||
|
||||
lsCurso = cursoService.obtenerTodos();
|
||||
lsEscola = escolaService.obtenerTodos();
|
||||
|
||||
estudanteComDesconto = false;
|
||||
try {
|
||||
cliente = (Cliente) Executions.getCurrent().getArg().get("cliente");
|
||||
|
@ -304,6 +258,14 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
cmbOcupacion.setText(cliente.getTipoocupacionId().getDesctipo());
|
||||
}
|
||||
|
||||
if (cliente.getCurso() != null) {
|
||||
cmbCurso.setText(cliente.getCurso().getNomcurso());
|
||||
}
|
||||
|
||||
if (cliente.getEscola() != null) {
|
||||
cmbEscola.setText(cliente.getEscola().getNombescola());
|
||||
}
|
||||
|
||||
if (cliente.getIndsexo() != null) {
|
||||
if (cliente.getIndsexo().equals("F")) {
|
||||
radFeminino.setChecked(true);
|
||||
|
@ -314,7 +276,7 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
|
||||
if (null != cliente.getIndBloqueo() && cliente.getIndBloqueo()) {
|
||||
chkBloqueo.setChecked(Boolean.TRUE);
|
||||
}else{
|
||||
} else {
|
||||
chkBloqueo.setChecked(Boolean.FALSE);
|
||||
}
|
||||
|
||||
|
@ -351,12 +313,12 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
}
|
||||
if((cliente.getLsClienteDescuento() != null) && (!cliente.getLsClienteDescuento().isEmpty())){
|
||||
if(null != cliente.getLsClienteDescuento().get(cliente.getLsClienteDescuento().size()-1) &&
|
||||
cliente.getLsClienteDescuento().get(cliente.getLsClienteDescuento().size()-1).getActivo()==1 ){
|
||||
if ((cliente.getLsClienteDescuento() != null) && (!cliente.getLsClienteDescuento().isEmpty())) {
|
||||
if (null != cliente.getLsClienteDescuento().get(cliente.getLsClienteDescuento().size() - 1) &&
|
||||
cliente.getLsClienteDescuento().get(cliente.getLsClienteDescuento().size() - 1).getActivo() == 1) {
|
||||
estudanteComDesconto = true;
|
||||
chkEstudanteComDesconto.setChecked(true);
|
||||
ClienteDescuento cd = cliente.getLsClienteDescuento().get(cliente.getLsClienteDescuento().size()-1);
|
||||
ClienteDescuento cd = cliente.getLsClienteDescuento().get(cliente.getLsClienteDescuento().size() - 1);
|
||||
cmbLinha.setText(cd.getRuta().getDescruta());
|
||||
linha = cd.getRuta();
|
||||
cmbParadaOrigem.setText(cd.getOrigem().getDescparada());
|
||||
|
@ -462,7 +424,7 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
public void onClick$chkEstudanteComDesconto(Event ev) {
|
||||
if(chkEstudanteComDesconto.isChecked()){
|
||||
if (chkEstudanteComDesconto.isChecked()) {
|
||||
cmbLinha.setConstraint("no empty");
|
||||
cmbLinha.setDisabled(false);
|
||||
cmbParadaOrigem.setConstraint("no empty");
|
||||
|
@ -487,11 +449,11 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
cantMaxMes.setConstraint("no zero, no negative, no empty");
|
||||
cantMaxMes.setDisabled(false);
|
||||
|
||||
}else{
|
||||
} else {
|
||||
cmbLinha.setConstraint("");
|
||||
cmbLinha.setValue("");
|
||||
cmbLinha.setDisabled(true);
|
||||
linha=null;
|
||||
linha = null;
|
||||
cmbParadaOrigem.setConstraint("");
|
||||
cmbParadaOrigem.setValue("");
|
||||
cmbParadaOrigem.setDisabled(true);
|
||||
|
@ -506,25 +468,25 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
cmbParadaDestinoCve.setDisabled(true);
|
||||
chkINDLUNES.setChecked(false);
|
||||
chkINDLUNES.setDisabled(true);
|
||||
boolINDLUNES=null;
|
||||
boolINDLUNES = null;
|
||||
chkINDMARTES.setChecked(false);
|
||||
chkINDMARTES.setDisabled(true);
|
||||
boolINDMARTES=null;
|
||||
boolINDMARTES = null;
|
||||
chkINDMIERCOLES.setChecked(false);
|
||||
chkINDMIERCOLES.setDisabled(true);
|
||||
boolINDMIERCOLES=null;
|
||||
boolINDMIERCOLES = null;
|
||||
chkINDJUEVES.setChecked(false);
|
||||
chkINDJUEVES.setDisabled(true);
|
||||
boolINDJUEVES=null;
|
||||
boolINDJUEVES = null;
|
||||
chkINDVIERNES.setChecked(false);
|
||||
chkINDVIERNES.setDisabled(true);
|
||||
boolINDVIERNES=null;
|
||||
boolINDVIERNES = null;
|
||||
chkINDSABADO.setChecked(false);
|
||||
chkINDSABADO.setDisabled(true);
|
||||
boolINDSABADO=null;
|
||||
boolINDSABADO = null;
|
||||
chkINDDOMINGO.setChecked(false);
|
||||
chkINDDOMINGO.setDisabled(true);
|
||||
boolINDDOMINGO=null;
|
||||
boolINDDOMINGO = null;
|
||||
datInicial.setConstraint("");
|
||||
datInicial.setValue(null);
|
||||
datInicial.setDisabled(true);
|
||||
|
@ -534,7 +496,7 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
cantMaxMes.setConstraint("");
|
||||
cantMaxMes.setValue(null);
|
||||
cantMaxMes.setDisabled(true);
|
||||
cantMaxMesInt=null;
|
||||
cantMaxMesInt = null;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -586,9 +548,9 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
|
||||
cliente.setLsClienteDireccion(lsClienteDireccion);
|
||||
|
||||
// if(estudantePreenchido()){
|
||||
setarManagedDescuentoInCliente();
|
||||
// }
|
||||
// if(estudantePreenchido()){
|
||||
setarManagedDescuentoInCliente();
|
||||
// }
|
||||
|
||||
clienteService.suscribir(cliente);
|
||||
clienteList.addItemNovo(cliente);
|
||||
|
@ -686,8 +648,8 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
if(null != cliente.getLsClienteDescuento() && 0 != cliente.getLsClienteDescuento().size()-1 && null != cliente.getLsClienteDescuento().get(cliente.getLsClienteDescuento().size()-1)){
|
||||
cliente.getLsClienteDescuento().get(cliente.getLsClienteDescuento().size()-1).setActivo(0);
|
||||
if (null != cliente.getLsClienteDescuento() && 0 != cliente.getLsClienteDescuento().size() - 1 && null != cliente.getLsClienteDescuento().get(cliente.getLsClienteDescuento().size() - 1)) {
|
||||
cliente.getLsClienteDescuento().get(cliente.getLsClienteDescuento().size() - 1).setActivo(0);
|
||||
}
|
||||
clienteService.borrar(cliente);
|
||||
|
||||
|
@ -714,23 +676,23 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private void setarManagedDescuentoInCliente() throws InterruptedException {
|
||||
// caso chkEstudanteComDesconto não esteja checkado e o cliente ja tenha tido algum desconto no passado,
|
||||
// entende-se que o cliente nao esteja estudando ou nao tenha mais direito à nenhum desconto
|
||||
if(!chkEstudanteComDesconto.isChecked() && cliente.getLsClienteDescuento() != null &&cliente.getLsClienteDescuento().size() > 0){
|
||||
cliente.getLsClienteDescuento().get(cliente.getLsClienteDescuento().size()-1).setActivo(0);
|
||||
// caso chkEstudanteComDesconto não esteja checkado e o cliente ja tenha tido algum desconto no passado,
|
||||
// entende-se que o cliente nao esteja estudando ou nao tenha mais direito à nenhum desconto
|
||||
if (!chkEstudanteComDesconto.isChecked() && cliente.getLsClienteDescuento() != null && cliente.getLsClienteDescuento().size() > 0) {
|
||||
cliente.getLsClienteDescuento().get(cliente.getLsClienteDescuento().size() - 1).setActivo(0);
|
||||
}
|
||||
// Caso todos os dias da semana forem false, significa que, não foi determinado nenhum dia da semana para ter desconto,
|
||||
// assim nunca será possível aplicar o desconto
|
||||
if(chkEstudanteComDesconto.isChecked() && !chkINDDOMINGO.isChecked() && !chkINDLUNES.isChecked() &&
|
||||
// Caso todos os dias da semana forem false, significa que, não foi determinado nenhum dia da semana para ter desconto,
|
||||
// assim nunca será possível aplicar o desconto
|
||||
if (chkEstudanteComDesconto.isChecked() && !chkINDDOMINGO.isChecked() && !chkINDLUNES.isChecked() &&
|
||||
!chkINDMARTES.isChecked() && !chkINDMIERCOLES.isChecked() &&
|
||||
!chkINDJUEVES.isChecked() && !chkINDVIERNES.isChecked() && !chkINDSABADO.isChecked() ){
|
||||
!chkINDJUEVES.isChecked() && !chkINDVIERNES.isChecked() && !chkINDSABADO.isChecked()) {
|
||||
throw new WrongValueException();
|
||||
}else if(chkEstudanteComDesconto.isChecked()){
|
||||
try{
|
||||
} else if (chkEstudanteComDesconto.isChecked()) {
|
||||
try {
|
||||
ClienteDescuento cd = new ClienteDescuento();
|
||||
cd.setRuta((Ruta) cmbLinha.getSelectedItem().getValue());
|
||||
cd.setOrigem((Parada)cmbParadaOrigem.getSelectedItem().getValue());
|
||||
cd.setDestino((Parada)cmbParadaDestino.getSelectedItem().getValue());
|
||||
cd.setOrigem((Parada) cmbParadaOrigem.getSelectedItem().getValue());
|
||||
cd.setDestino((Parada) cmbParadaDestino.getSelectedItem().getValue());
|
||||
cd.setINDDOMINGO(chkINDDOMINGO.isChecked());
|
||||
cd.setINDLUNES(chkINDLUNES.isChecked());
|
||||
cd.setINDMARTES(chkINDMARTES.isChecked());
|
||||
|
@ -746,12 +708,11 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
cd.setFecmodif(Calendar.getInstance().getTime());
|
||||
cd.setActivo(1);
|
||||
|
||||
|
||||
if(null == cliente.getLsClienteDescuento() || 0 == cliente.getLsClienteDescuento().size() ){
|
||||
if (null == cliente.getLsClienteDescuento() || 0 == cliente.getLsClienteDescuento().size()) {
|
||||
cliente.setLsClienteDescuento(new ArrayList<ClienteDescuento>());
|
||||
cliente.getLsClienteDescuento().add(cd);
|
||||
}else{
|
||||
cliente.getLsClienteDescuento().get(cliente.getLsClienteDescuento().size()-1).setActivo(0);
|
||||
} else {
|
||||
cliente.getLsClienteDescuento().get(cliente.getLsClienteDescuento().size() - 1).setActivo(0);
|
||||
cliente.getLsClienteDescuento().add(cd);
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
|
@ -768,8 +729,6 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public Boolean getBoolINDLUNES() {
|
||||
return boolINDLUNES;
|
||||
}
|
||||
|
@ -865,4 +824,84 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
public void setDestino(Parada destino) {
|
||||
this.destino = destino;
|
||||
}
|
||||
|
||||
public Cliente getCliente() {
|
||||
return cliente;
|
||||
}
|
||||
|
||||
public void setCliente(Cliente cliente) {
|
||||
this.cliente = cliente;
|
||||
}
|
||||
|
||||
public List<MotivoViaje> getLsMotivoViaje() {
|
||||
return lsMotivoViaje;
|
||||
}
|
||||
|
||||
public void setLsMotivoViaje(List<MotivoViaje> lsMotivoViaje) {
|
||||
this.lsMotivoViaje = lsMotivoViaje;
|
||||
}
|
||||
|
||||
public List<TipoOcupacion> getLsTipoOcupacion() {
|
||||
return lsTipoOcupacion;
|
||||
}
|
||||
|
||||
public void setLsTipoOcupacion(List<TipoOcupacion> lsTipoOcupacion) {
|
||||
this.lsTipoOcupacion = lsTipoOcupacion;
|
||||
}
|
||||
|
||||
public List<Curso> getLsCurso() {
|
||||
return lsCurso;
|
||||
}
|
||||
|
||||
public void setLsCurso(List<Curso> lsCurso) {
|
||||
this.lsCurso = lsCurso;
|
||||
}
|
||||
|
||||
public List<Escola> getLsEscola() {
|
||||
return lsEscola;
|
||||
}
|
||||
|
||||
public void setLsEscola(List<Escola> lsEscola) {
|
||||
this.lsEscola = lsEscola;
|
||||
}
|
||||
|
||||
public MotivoViajeService getMotivoViajeService() {
|
||||
return motivoViajeService;
|
||||
}
|
||||
|
||||
public void setMotivoViajeService(MotivoViajeService motivoViajeService) {
|
||||
this.motivoViajeService = motivoViajeService;
|
||||
}
|
||||
|
||||
public TipoOcupacionService getTipoOcupacionService() {
|
||||
return tipoOcupacionService;
|
||||
}
|
||||
|
||||
public void setTipoOcupacionService(TipoOcupacionService tipoOcupacionService) {
|
||||
this.tipoOcupacionService = tipoOcupacionService;
|
||||
}
|
||||
|
||||
public TipoDomicilioService getTipoDomicilioService() {
|
||||
return tipoDomicilioService;
|
||||
}
|
||||
|
||||
public void setTipoDomicilioService(TipoDomicilioService tipoDomicilioService) {
|
||||
this.tipoDomicilioService = tipoDomicilioService;
|
||||
}
|
||||
|
||||
public List<ClienteDireccion> getLsClienteDireccion() {
|
||||
return lsClienteDireccion;
|
||||
}
|
||||
|
||||
public void setLsClienteDireccion(List<ClienteDireccion> lsClienteDireccion) {
|
||||
this.lsClienteDireccion = lsClienteDireccion;
|
||||
}
|
||||
|
||||
public List<TipoDomicilio> getLsTipoDomicilio() {
|
||||
return lsTipoDomicilio;
|
||||
}
|
||||
|
||||
public void setLsTipoDomicilio(List<TipoDomicilio> lsTipoDomicilio) {
|
||||
this.lsTipoDomicilio = lsTipoDomicilio;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4926,6 +4926,8 @@ editarClienteController.lbServico.cantMaxMes = Quantidade máxima por mês
|
|||
editarClienteController.lbFecIni.value = Inicio período
|
||||
editarClienteController.lbFecFin.value = Fim período
|
||||
editarClienteController.lbEstudanteDesconto.value = É estudante com descuento?
|
||||
editarClienteController.lbCurso.value = Curso
|
||||
editarClienteController.lbEscola.value = Escola
|
||||
MSG.Error.ClienteAbaEstudante = Na aba de estudante não é permitido campos em branco quando o cliente possuir desconto
|
||||
|
||||
# EditarEmpleado
|
||||
|
|
|
@ -4986,6 +4986,8 @@ editarClienteController.lbServico.cantMaxMes = Quantidade máxima por mês
|
|||
editarClienteController.lbFecIni.value = Inicio período
|
||||
editarClienteController.lbFecFin.value = Fim período
|
||||
editarClienteController.lbEstudanteDesconto.value = É estudante com desconto?
|
||||
editarClienteController.lbCurso.value = Curso
|
||||
editarClienteController.lbEscola.value = Escola
|
||||
MSG.Error.ClienteAbaEstudante = Na aba de estudante não é permitido campos em branco quando o cliente possuir desconto
|
||||
|
||||
# EditarEmpleado
|
||||
|
|
|
@ -134,6 +134,27 @@
|
|||
model="@{winEditarCliente$composer.lsTipoOcupacion}"
|
||||
selectedItem="@{winEditarCliente$composer.cliente.tipoocupacionId}" />
|
||||
</row>
|
||||
|
||||
<!-- Curso -->
|
||||
<row>
|
||||
<label value="${c:l('editarClienteController.lbCurso.value')}" />
|
||||
<combobox id="cmbCurso" width="70%"
|
||||
maxlength="60" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarCliente$composer.lsCurso}"
|
||||
selectedItem="@{winEditarCliente$composer.cliente.curso}" />
|
||||
</row>
|
||||
|
||||
<!-- Escola -->
|
||||
<row>
|
||||
<label value="${c:l('editarClienteController.lbEscola.value')}" />
|
||||
<combobox id="cmbEscola" width="70%"
|
||||
maxlength="60" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarCliente$composer.lsEscola}"
|
||||
selectedItem="@{winEditarCliente$composer.cliente.escola}" />
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarClienteController.lbMotivacionViaje.value')}" />
|
||||
|
@ -177,8 +198,10 @@
|
|||
value="@{winEditarCliente$composer.cliente.desccorreo}" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarClienteController.lbBloqueo.value')}" />
|
||||
<checkbox id="chkBloqueo" checked="@{winEditarCliente$composer.cliente.indBloqueo}"/>
|
||||
<label
|
||||
value="${c:l('editarClienteController.lbBloqueo.value')}" />
|
||||
<checkbox id="chkBloqueo"
|
||||
checked="@{winEditarCliente$composer.cliente.indBloqueo}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
@ -259,7 +282,8 @@
|
|||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
<tabpanel visible="winEditarCliente$composer.cliente.tipoocupacionId ==22">
|
||||
<tabpanel
|
||||
visible="winEditarCliente$composer.cliente.tipoocupacionId ==22">
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="25%" />
|
||||
|
@ -270,7 +294,7 @@
|
|||
<label
|
||||
value="${c:l('editarClienteController.lbEstudanteDesconto.value')}" />
|
||||
<checkbox id="chkEstudanteComDesconto"
|
||||
checked="@{winEditarCliente$composer.estudanteComDesconto}"/>
|
||||
checked="@{winEditarCliente$composer.estudanteComDesconto}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
|
@ -279,7 +303,7 @@
|
|||
maxlength="60" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarCliente$composer.lsLinhas}"
|
||||
selectedItem="@{winEditarCliente$composer.linha}"/>
|
||||
selectedItem="@{winEditarCliente$composer.linha}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
|
@ -288,12 +312,12 @@
|
|||
<combobox id="cmbParadaOrigemCve"
|
||||
autodrop="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve"
|
||||
mold="rounded" buttonVisible="true" width="30%"
|
||||
/>
|
||||
<combobox id="cmbParadaOrigem" autodrop="false"
|
||||
mold="rounded" buttonVisible="true" width="30%" />
|
||||
<combobox id="cmbParadaOrigem"
|
||||
autodrop="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="65%"
|
||||
selectedItem="@{winEditarCliente$composer.origem}"/>
|
||||
selectedItem="@{winEditarCliente$composer.origem}" />
|
||||
</cell>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -303,34 +327,42 @@
|
|||
<combobox id="cmbParadaDestinoCve"
|
||||
autodrop="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve"
|
||||
mold="rounded" buttonVisible="true" width="30%"
|
||||
/>
|
||||
<combobox id="cmbParadaDestino" autodrop="false"
|
||||
mold="rounded" buttonVisible="true" width="30%" />
|
||||
<combobox id="cmbParadaDestino"
|
||||
autodrop="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="65%"
|
||||
selectedItem="@{winEditarCliente$composer.destino}"/>
|
||||
selectedItem="@{winEditarCliente$composer.destino}" />
|
||||
</cell>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarClienteController.lbDias.value')}"/>
|
||||
<vbox>
|
||||
<checkbox id="chkINDLUNES" label="${c:l('editarConfiguracionReservacionController.lbLun.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDLUNES}"/>
|
||||
<checkbox id="chkINDMARTES" label="${c:l('editarConfiguracionReservacionController.lbMar.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDMARTES}" />
|
||||
<checkbox id="chkINDMIERCOLES" label="${c:l('editarConfiguracionReservacionController.lbMie.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDMIERCOLES}"/>
|
||||
<checkbox id="chkINDJUEVES" label="${c:l('editarConfiguracionReservacionController.lbJue.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDJUEVES}"/>
|
||||
<checkbox id="chkINDVIERNES" label="${c:l('editarConfiguracionReservacionController.lbVie.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDVIERNES}"/>
|
||||
<checkbox id="chkINDSABADO" label="${c:l('editarConfiguracionReservacionController.lbSab.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDSABADO}"/>
|
||||
<checkbox id="chkINDDOMINGO" label="${c:l('editarConfiguracionReservacionController.lbDom.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDDOMINGO}"/>
|
||||
</vbox>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarClienteController.lbDias.value')}" />
|
||||
<vbox>
|
||||
<checkbox id="chkINDLUNES"
|
||||
label="${c:l('editarConfiguracionReservacionController.lbLun.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDLUNES}" />
|
||||
<checkbox id="chkINDMARTES"
|
||||
label="${c:l('editarConfiguracionReservacionController.lbMar.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDMARTES}" />
|
||||
<checkbox id="chkINDMIERCOLES"
|
||||
label="${c:l('editarConfiguracionReservacionController.lbMie.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDMIERCOLES}" />
|
||||
<checkbox id="chkINDJUEVES"
|
||||
label="${c:l('editarConfiguracionReservacionController.lbJue.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDJUEVES}" />
|
||||
<checkbox id="chkINDVIERNES"
|
||||
label="${c:l('editarConfiguracionReservacionController.lbVie.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDVIERNES}" />
|
||||
<checkbox id="chkINDSABADO"
|
||||
label="${c:l('editarConfiguracionReservacionController.lbSab.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDSABADO}" />
|
||||
<checkbox id="chkINDDOMINGO"
|
||||
label="${c:l('editarConfiguracionReservacionController.lbDom.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDDOMINGO}" />
|
||||
</vbox>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarClienteController.lbServico.cantMaxMes')}" />
|
||||
<intbox id="cantMaxMes" width="40%"
|
||||
|
@ -340,15 +372,15 @@
|
|||
<row>
|
||||
<label
|
||||
value="${c:l('editarClienteController.lbFecIni.value')}" />
|
||||
<datebox id="datInicial" format="dd/MM/yyyy"
|
||||
mold="rounded" width="45%" lenient="false"
|
||||
<datebox id="datInicial"
|
||||
format="dd/MM/yyyy" mold="rounded" width="45%" lenient="false"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarClienteController.lbFecFin.value')}" />
|
||||
<datebox id="datFinal" format="dd/MM/yyyy"
|
||||
mold="rounded" width="45%" lenient="false"
|
||||
<datebox id="datFinal"
|
||||
format="dd/MM/yyyy" mold="rounded" width="45%" lenient="false"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
</rows>
|
||||
|
|
Loading…
Reference in New Issue