fixed bug#17744
dev:Wilian qua: Merge da branch da aguia. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@99550 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
b67176db8b
commit
efecb0fe74
|
@ -1,6 +1,7 @@
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.Calendar;
|
||||||
|
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;
|
||||||
|
@ -15,26 +16,27 @@ import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zk.ui.event.EventListener;
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
import org.zkoss.zul.Combobox;
|
import org.zkoss.zul.Combobox;
|
||||||
import org.zkoss.zul.Comboitem;
|
import org.zkoss.zul.Comboitem;
|
||||||
|
import org.zkoss.zul.Datebox;
|
||||||
import org.zkoss.zul.Intbox;
|
import org.zkoss.zul.Intbox;
|
||||||
import org.zkoss.zul.Paging;
|
import org.zkoss.zul.Paging;
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoCanalVenta;
|
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoCanalVenta;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.EsquemaCorrida;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||||
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.service.EsquemaCorridaService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.MyComboRutaRenderer;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.MyComboRutaRenderer;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfRestricaoCanalVenta;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfRestricaoCanalVenta;
|
||||||
|
import com.trg.search.Filter;
|
||||||
|
|
||||||
@Controller("confRestricaoCanalVentaController")
|
@Controller("confRestricaoCanalVentaController")
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
|
@ -45,22 +47,19 @@ public class BusquedaConfRestricaoCanalVentaController extends MyGenericForwardC
|
||||||
private TipoPuntoVentaService tipoPtoVtaService;
|
private TipoPuntoVentaService tipoPtoVtaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private transient PagedListWrapper<ConfRestricaoCanalVenta> plwConfRestricaoCanalVenta;
|
private transient PagedListWrapper<ConfRestricaoCanalVenta> plwConfRestricaoCanalVenta;
|
||||||
@Autowired
|
|
||||||
private RutaService rutaService;
|
|
||||||
private MyListbox confRestricaoCanalVentaList;
|
private MyListbox confRestricaoCanalVentaList;
|
||||||
private Paging pagingConfRestricaoCanalVenta;
|
private Paging pagingConfRestricaoCanalVenta;
|
||||||
private List<TipoPuntoVenta> lsTipoPtoVta;
|
private List<TipoPuntoVenta> lsTipoPtoVta;
|
||||||
private List<Ruta> lsRuta;
|
private Datebox dtServicio;
|
||||||
|
private Datebox feciniciovigencia;
|
||||||
|
private Datebox fecfinvigencia;
|
||||||
|
private Combobox cmbRuta;
|
||||||
private Combobox cmbOrigen;
|
private Combobox cmbOrigen;
|
||||||
private Combobox cmbDestino;
|
private Combobox cmbDestino;
|
||||||
private Combobox cmbTipoPtoVta;
|
|
||||||
private Combobox cmbRuta;
|
|
||||||
private Combobox cmbEmpresa;
|
private Combobox cmbEmpresa;
|
||||||
private Textbox txtDescConf;
|
private Textbox txtDescConf;
|
||||||
private Intbox txtServico;
|
private Intbox txtServico;
|
||||||
private List<Empresa> lsEmpresa;
|
private List<Empresa> lsEmpresa;
|
||||||
@Autowired
|
|
||||||
private EsquemaCorridaService esquemaCorridaService;
|
|
||||||
|
|
||||||
public List<Empresa> getLsEmpresa() {
|
public List<Empresa> getLsEmpresa() {
|
||||||
return lsEmpresa;
|
return lsEmpresa;
|
||||||
|
@ -78,20 +77,11 @@ public class BusquedaConfRestricaoCanalVentaController extends MyGenericForwardC
|
||||||
this.lsTipoPtoVta = lsTipoPtoVta;
|
this.lsTipoPtoVta = lsTipoPtoVta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Ruta> getLsRuta() {
|
|
||||||
return lsRuta;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsRuta(List<Ruta> lsRuta) {
|
|
||||||
this.lsRuta = lsRuta;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
lsEmpresa = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
lsEmpresa = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
lsTipoPtoVta = tipoPtoVtaService.obtenerTodos();
|
lsTipoPtoVta = tipoPtoVtaService.obtenerTodos();
|
||||||
lsRuta = rutaService.buscarRutasPorEmpresas(lsEmpresa);
|
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
cmbRuta.setItemRenderer(new MyComboRutaRenderer());
|
cmbRuta.setItemRenderer(new MyComboRutaRenderer());
|
||||||
confRestricaoCanalVentaList.setItemRenderer(new RenderConfRestricaoCanalVenta());
|
confRestricaoCanalVentaList.setItemRenderer(new RenderConfRestricaoCanalVenta());
|
||||||
|
@ -122,28 +112,22 @@ public class BusquedaConfRestricaoCanalVentaController extends MyGenericForwardC
|
||||||
confRestricaoCanalVentaBusqueda.addFilterEqual("corridaId", servicio);
|
confRestricaoCanalVentaBusqueda.addFilterEqual("corridaId", servicio);
|
||||||
}
|
}
|
||||||
|
|
||||||
Comboitem cbiTipoPtoVta = cmbTipoPtoVta.getSelectedItem();
|
Comboitem cbiRuta = cmbRuta.getSelectedItem();
|
||||||
if (cbiTipoPtoVta != null) {
|
if (cbiRuta != null) {
|
||||||
TipoPuntoVenta tipoPtoVta = (TipoPuntoVenta) cbiTipoPtoVta.getValue();
|
Ruta ruta = (Ruta) cbiRuta.getValue();
|
||||||
confRestricaoCanalVentaBusqueda.addFilterEqual("tipoPuntoVenta", tipoPtoVta);
|
confRestricaoCanalVentaBusqueda.addFilterEqual("ruta", ruta);
|
||||||
}
|
}
|
||||||
|
|
||||||
Comboitem cbiOrigem = cmbOrigen.getSelectedItem();
|
Comboitem cbiOrigem = cmbOrigen.getSelectedItem();
|
||||||
if (cbiOrigem != null) {
|
if (cbiOrigem != null) {
|
||||||
Parada origem = (Parada) cbiOrigem.getValue();
|
Parada origem = (Parada) cbiOrigem.getValue();
|
||||||
confRestricaoCanalVentaBusqueda.addFilterEqual("origem", origem);
|
confRestricaoCanalVentaBusqueda.addFilterEqual("lsConfRestricaoTramo.origem", origem);
|
||||||
}
|
}
|
||||||
|
|
||||||
Comboitem cbiDestino = cmbDestino.getSelectedItem();
|
Comboitem cbiDestino = cmbDestino.getSelectedItem();
|
||||||
if (cbiDestino != null) {
|
if (cbiDestino != null) {
|
||||||
Parada destino = (Parada) cbiDestino.getValue();
|
Parada destino = (Parada) cbiDestino.getValue();
|
||||||
confRestricaoCanalVentaBusqueda.addFilterEqual("destino", destino);
|
confRestricaoCanalVentaBusqueda.addFilterEqual("lsConfRestricaoTramo.destino", destino);
|
||||||
}
|
|
||||||
|
|
||||||
Comboitem cbiRuta = cmbRuta.getSelectedItem();
|
|
||||||
if (cbiRuta != null) {
|
|
||||||
Ruta ruta = (Ruta) cbiRuta.getValue();
|
|
||||||
confRestricaoCanalVentaBusqueda.addFilterEqual("ruta", ruta);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Comboitem cbiEmpresa = cmbEmpresa.getSelectedItem();
|
Comboitem cbiEmpresa = cmbEmpresa.getSelectedItem();
|
||||||
|
@ -151,8 +135,26 @@ public class BusquedaConfRestricaoCanalVentaController extends MyGenericForwardC
|
||||||
Empresa empresa = (Empresa) cbiEmpresa.getValue();
|
Empresa empresa = (Empresa) cbiEmpresa.getValue();
|
||||||
confRestricaoCanalVentaBusqueda.addFilterEqual("empresa", empresa);
|
confRestricaoCanalVentaBusqueda.addFilterEqual("empresa", empresa);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Date dataServico = dtServicio.getValue();
|
||||||
|
if(dataServico!= null) {
|
||||||
|
confRestricaoCanalVentaBusqueda.addFilterEqual("fecCorrida", dataServico);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (feciniciovigencia.getValue() != null) {
|
||||||
|
Calendar dataInicioVigencia = Calendar.getInstance();
|
||||||
|
dataInicioVigencia.setTime(DateUtil.inicioFecha(feciniciovigencia.getValue()));
|
||||||
|
confRestricaoCanalVentaBusqueda.addFilterGreaterOrEqual("feciniciovigencia", dataInicioVigencia.getTime());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fecfinvigencia.getValue() != null) {
|
||||||
|
Calendar dataFimVigencia = Calendar.getInstance();
|
||||||
|
dataFimVigencia.setTime(DateUtil.fimFecha(fecfinvigencia.getValue()));
|
||||||
|
confRestricaoCanalVentaBusqueda.addFilterLessOrEqual("fecfinvigencia", dataFimVigencia.getTime());
|
||||||
|
}
|
||||||
|
|
||||||
confRestricaoCanalVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
confRestricaoCanalVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
confRestricaoCanalVentaBusqueda.setDistinct(true);
|
||||||
|
|
||||||
plwConfRestricaoCanalVenta.init(confRestricaoCanalVentaBusqueda, confRestricaoCanalVentaList,
|
plwConfRestricaoCanalVenta.init(confRestricaoCanalVentaBusqueda, confRestricaoCanalVentaList,
|
||||||
pagingConfRestricaoCanalVenta);
|
pagingConfRestricaoCanalVenta);
|
||||||
|
@ -194,12 +196,4 @@ public class BusquedaConfRestricaoCanalVentaController extends MyGenericForwardC
|
||||||
verConfRestricaoCanalVenta(new ConfRestricaoCanalVenta());
|
verConfRestricaoCanalVenta(new ConfRestricaoCanalVenta());
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<Integer> getCorridasIds(List<EsquemaCorrida> esquemaCorridas){
|
|
||||||
List<Integer> ids = new ArrayList<Integer>();
|
|
||||||
for(int i = 0 ; i < esquemaCorridas.size() ; i ++){
|
|
||||||
ids.add((esquemaCorridas.get(i)).getNumCorrida());
|
|
||||||
}
|
|
||||||
return ids;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,15 +13,20 @@ import org.zkoss.zk.ui.Component;
|
||||||
import org.zkoss.zk.ui.Executions;
|
import org.zkoss.zk.ui.Executions;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zul.Button;
|
import org.zkoss.zul.Button;
|
||||||
|
import org.zkoss.zul.Checkbox;
|
||||||
import org.zkoss.zul.Combobox;
|
import org.zkoss.zul.Combobox;
|
||||||
import org.zkoss.zul.Constraint;
|
import org.zkoss.zul.Constraint;
|
||||||
import org.zkoss.zul.Datebox;
|
import org.zkoss.zul.Datebox;
|
||||||
|
import org.zkoss.zul.Intbox;
|
||||||
|
import org.zkoss.zul.ListModelList;
|
||||||
import org.zkoss.zul.Messagebox;
|
import org.zkoss.zul.Messagebox;
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
|
import org.zkoss.zul.Timebox;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoCanalVenta;
|
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoCanalVenta;
|
||||||
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoExcecao;
|
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoExcecao;
|
||||||
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoPtovta;
|
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoPtovta;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoTramo;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
|
@ -31,10 +36,12 @@ import com.rjconsultores.ventaboletos.exception.BusinessException;
|
||||||
import com.rjconsultores.ventaboletos.service.ConfRestricaoCanalVentaService;
|
import com.rjconsultores.ventaboletos.service.ConfRestricaoCanalVentaService;
|
||||||
import com.rjconsultores.ventaboletos.service.ConfRestricaoExcecaoService;
|
import com.rjconsultores.ventaboletos.service.ConfRestricaoExcecaoService;
|
||||||
import com.rjconsultores.ventaboletos.service.ConfRestricaoPtovtaService;
|
import com.rjconsultores.ventaboletos.service.ConfRestricaoPtovtaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.ConfRestricaoTramoService;
|
||||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||||
|
@ -43,6 +50,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.MyComboRutaRenderer;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.MyComboRutaRenderer;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfRestricaoExcecao;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfRestricaoExcecao;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfRestricaoPtovta;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfRestricaoPtovta;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfRestricaoTramo;
|
||||||
|
|
||||||
@Controller("editarConfRestricaoCanalVentaController")
|
@Controller("editarConfRestricaoCanalVentaController")
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
|
@ -59,11 +67,14 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
|
||||||
private ConfRestricaoExcecaoService confRestricaoExcecaoServide;
|
private ConfRestricaoExcecaoService confRestricaoExcecaoServide;
|
||||||
@Autowired
|
@Autowired
|
||||||
private ConfRestricaoPtovtaService confRestricaoPtovtaService;
|
private ConfRestricaoPtovtaService confRestricaoPtovtaService;
|
||||||
|
@Autowired
|
||||||
|
private ConfRestricaoTramoService confRestricaoTramoService;
|
||||||
|
|
||||||
private ConfRestricaoCanalVenta confRestricaoCanalVenta;
|
private ConfRestricaoCanalVenta confRestricaoCanalVenta;
|
||||||
private List<TipoPuntoVenta> lsTipoPtoVta;
|
private List<TipoPuntoVenta> lsTipoPtoVta;
|
||||||
private List<Ruta> lsRuta;
|
private List<Ruta> lsRuta;
|
||||||
private List<Empresa> lsEmpresa;
|
private List<Empresa> lsEmpresa;
|
||||||
|
private List<ConfRestricaoTramo> lsConfRestricaoTramo;
|
||||||
private MyListbox confRestricaoCanalVentaList;
|
private MyListbox confRestricaoCanalVentaList;
|
||||||
private MyListbox excecaoDataList;
|
private MyListbox excecaoDataList;
|
||||||
private Button btnApagar;
|
private Button btnApagar;
|
||||||
|
@ -71,9 +82,20 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
|
||||||
private MyComboboxParada cmbOrigen;
|
private MyComboboxParada cmbOrigen;
|
||||||
private MyComboboxParada cmbDestino;
|
private MyComboboxParada cmbDestino;
|
||||||
private Combobox cmbRuta;
|
private Combobox cmbRuta;
|
||||||
|
private Intbox txtServico;
|
||||||
private Combobox cmbTipoPtoVta;
|
private Combobox cmbTipoPtoVta;
|
||||||
|
private Combobox cmbConfRestricaoTramoPtoVta;
|
||||||
|
private Combobox cmbConfRestricaoTramoExcecao;
|
||||||
private Combobox cmbEmpresa;
|
private Combobox cmbEmpresa;
|
||||||
private Datebox dtExcecaoServicio;
|
private Datebox dtExcecaoServicio;
|
||||||
|
private Timebox timeTempoPermitir;
|
||||||
|
private Checkbox chkSegunda;
|
||||||
|
private Checkbox chkTerca;
|
||||||
|
private Checkbox chkQuarta;
|
||||||
|
private Checkbox chkQuinta;
|
||||||
|
private Checkbox chkSexta;
|
||||||
|
private Checkbox chkSabado;
|
||||||
|
private Checkbox chkDomingo;
|
||||||
|
|
||||||
private Textbox txtDescConf;
|
private Textbox txtDescConf;
|
||||||
|
|
||||||
|
@ -82,6 +104,7 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
|
||||||
|
|
||||||
private MyComboboxPuntoVenta cmbPuntoVenta;
|
private MyComboboxPuntoVenta cmbPuntoVenta;
|
||||||
private MyListbox confRestricaoPtovtaDataList;
|
private MyListbox confRestricaoPtovtaDataList;
|
||||||
|
private MyListbox confRestricaoTramoDataList;
|
||||||
|
|
||||||
public ConfRestricaoCanalVenta getConfRestricaoCanalVenta() {
|
public ConfRestricaoCanalVenta getConfRestricaoCanalVenta() {
|
||||||
return confRestricaoCanalVenta;
|
return confRestricaoCanalVenta;
|
||||||
|
@ -98,7 +121,7 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
|
||||||
public void setLsTipoPtoVta(List<TipoPuntoVenta> lsTipoPtoVta) {
|
public void setLsTipoPtoVta(List<TipoPuntoVenta> lsTipoPtoVta) {
|
||||||
this.lsTipoPtoVta = lsTipoPtoVta;
|
this.lsTipoPtoVta = lsTipoPtoVta;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
@ -107,19 +130,15 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
|
||||||
|
|
||||||
lsTipoPtoVta = tipoPtoVtaService.obtenerTodos();
|
lsTipoPtoVta = tipoPtoVtaService.obtenerTodos();
|
||||||
lsEmpresa = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
lsEmpresa = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
lsRuta = rutaService.buscarRutasPorEmpresas(lsEmpresa);
|
lsConfRestricaoTramo = new ArrayList<ConfRestricaoTramo>();
|
||||||
|
|
||||||
// confRestricaoCanalVenta.getEmpresa();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||||
cmbEmpresa.setConstraint("no empty");
|
cmbEmpresa.setConstraint("no empty");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
cmbRuta.setItemRenderer(new MyComboRutaRenderer());
|
cmbRuta.setItemRenderer(new MyComboRutaRenderer());
|
||||||
if (confRestricaoCanalVenta.getConfRestricaoCanalVentaId() == null) {
|
if (confRestricaoCanalVenta.getConfRestricaoCanalVentaId() == null) {
|
||||||
btnApagar.setVisible(Boolean.FALSE);
|
btnApagar.setVisible(Boolean.FALSE);
|
||||||
|
@ -133,13 +152,24 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
|
||||||
confRestricaoCanalVenta = confRestricaoCanalVentaService.obtenerID(confRestricaoCanalVenta.getConfRestricaoCanalVentaId());
|
confRestricaoCanalVenta = confRestricaoCanalVentaService.obtenerID(confRestricaoCanalVenta.getConfRestricaoCanalVentaId());
|
||||||
excecaoDataList.setData(confRestricaoCanalVenta.getLsConfRestricaoExcecao());
|
excecaoDataList.setData(confRestricaoCanalVenta.getLsConfRestricaoExcecao());
|
||||||
confRestricaoPtovtaDataList.setData(confRestricaoCanalVenta.getLsConfRestricaoPtovta());
|
confRestricaoPtovtaDataList.setData(confRestricaoCanalVenta.getLsConfRestricaoPtovta());
|
||||||
|
confRestricaoTramoDataList.setData(confRestricaoCanalVenta.getLsConfRestricaoTramo());
|
||||||
|
lsConfRestricaoTramo = confRestricaoCanalVenta.getLsConfRestricaoTramo();
|
||||||
|
atualizarCombosDeTramosRestritos();
|
||||||
}
|
}
|
||||||
|
|
||||||
excecaoDataList.setItemRenderer(new RenderConfRestricaoExcecao());
|
excecaoDataList.setItemRenderer(new RenderConfRestricaoExcecao());
|
||||||
confRestricaoPtovtaDataList.setItemRenderer(new RenderConfRestricaoPtovta());
|
confRestricaoPtovtaDataList.setItemRenderer(new RenderConfRestricaoPtovta());
|
||||||
|
confRestricaoTramoDataList.setItemRenderer(new RenderConfRestricaoTramo());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void atualizarCombosDeTramosRestritos() {
|
||||||
|
cmbConfRestricaoTramoExcecao.setModel(new ListModelList(lsConfRestricaoTramo));
|
||||||
|
cmbConfRestricaoTramoExcecao.setSelectedItem(null);
|
||||||
|
cmbConfRestricaoTramoPtoVta.setModel(new ListModelList(lsConfRestricaoTramo));
|
||||||
|
cmbConfRestricaoTramoExcecao.setSelectedItem(null);
|
||||||
|
}
|
||||||
|
|
||||||
public List<Ruta> getLsRuta() {
|
public List<Ruta> getLsRuta() {
|
||||||
return lsRuta;
|
return lsRuta;
|
||||||
}
|
}
|
||||||
|
@ -149,6 +179,65 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean clone = false;
|
private boolean clone = false;
|
||||||
|
|
||||||
|
public void onClick$btnRemoverConfRestricaoTramo(Event ev) throws InterruptedException {
|
||||||
|
ConfRestricaoTramo tramo = (ConfRestricaoTramo) confRestricaoTramoDataList.getSelected();
|
||||||
|
if (tramo != null) {
|
||||||
|
//Para evitar erro na hora de excluir registros da lista de um registro copiado
|
||||||
|
if(tramo.getConfRestricaoTramoId() != null) {
|
||||||
|
confRestricaoTramoService.borrar(tramo);
|
||||||
|
} else {
|
||||||
|
confRestricaoCanalVenta.getLsConfRestricaoTramo().remove(tramo);
|
||||||
|
lsConfRestricaoTramo.remove(tramo);
|
||||||
|
}
|
||||||
|
|
||||||
|
confRestricaoTramoDataList.removeItem(tramo);
|
||||||
|
} else {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarConfRestricaoCanalVentaController.MSG.selecionarrestricaoPtovta"),
|
||||||
|
Labels.getLabel("editarConfRestricaoCanalVentaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
}
|
||||||
|
atualizarCombosDeTramosRestritos();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnAdicionarConfRestricaoTramo(Event ev) {
|
||||||
|
cmbOrigen.getValue(true);
|
||||||
|
cmbDestino.getValue(true);
|
||||||
|
ConfRestricaoTramo tramo = new ConfRestricaoTramo();
|
||||||
|
if(cmbTipoPtoVta.getSelectedItem()!= null) {
|
||||||
|
tramo.setTipoPuntoVenta((TipoPuntoVenta) cmbTipoPtoVta.getSelectedItem().getValue());
|
||||||
|
}else {
|
||||||
|
tramo.setTipoPuntoVenta(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(cmbOrigen.getSelectedItem()!= null) {
|
||||||
|
tramo.setOrigem((Parada) cmbOrigen.getSelectedItem().getValue());
|
||||||
|
}
|
||||||
|
if(cmbDestino.getSelectedItem()!= null) {
|
||||||
|
tramo.setDestino((Parada) cmbDestino.getSelectedItem().getValue());
|
||||||
|
}
|
||||||
|
if(timeTempoPermitir!= null) {
|
||||||
|
tramo.setTempoPermitir(timeTempoPermitir.getValue());
|
||||||
|
}
|
||||||
|
tramo.setSegunda(chkSegunda.isChecked());
|
||||||
|
tramo.setTerca(chkTerca.isChecked());
|
||||||
|
tramo.setQuarta(chkQuarta.isChecked());
|
||||||
|
tramo.setQuinta(chkQuinta.isChecked());
|
||||||
|
tramo.setSexta(chkSexta.isChecked());
|
||||||
|
tramo.setSabado(chkSabado.isChecked());
|
||||||
|
tramo.setDomingo(chkDomingo.isChecked());
|
||||||
|
|
||||||
|
tramo.setConfRestricaoCanalVenta(confRestricaoCanalVenta);
|
||||||
|
tramo.setActivo(Boolean.TRUE);
|
||||||
|
|
||||||
|
if(!lsConfRestricaoTramo.contains(tramo)) {
|
||||||
|
lsConfRestricaoTramo.add(tramo);
|
||||||
|
confRestricaoTramoDataList.addItemNovo(tramo);
|
||||||
|
confRestricaoCanalVenta.getLsConfRestricaoTramo().add(tramo);
|
||||||
|
atualizarCombosDeTramosRestritos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void onClick$btnCopiar(Event ev) throws CloneNotSupportedException, InterruptedException {
|
public void onClick$btnCopiar(Event ev) throws CloneNotSupportedException, InterruptedException {
|
||||||
|
|
||||||
|
@ -183,21 +272,18 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
|
||||||
excecaoDataList.addItemNovo(ex);
|
excecaoDataList.addItemNovo(ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Messagebox.show(Labels.getLabel("editarConfRestricaoCanalVentaController.MSG.cloneOK"),
|
|
||||||
Labels.getLabel("editarConfRestricaoCanalVentaController.window.title"),
|
|
||||||
Messagebox.OK, Messagebox.INFORMATION);*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
if( cmbRuta.getSelectedItem() == null && txtServico.getValue() == null) {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarConfRestricaoCanalVentaController.MSG.servicoOuRutaObrigatorios"),
|
||||||
|
Labels.getLabel("editarConfRestricaoCanalVentaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
cmbEmpresa.getValue();
|
cmbEmpresa.getValue();
|
||||||
cmbDestino.getValue(true); // chamar esse método senão, utilizando o mouse tem que clicar 2x para o getSelectedItem() retornar o item selecionado
|
|
||||||
cmbOrigen.getValue(true);
|
|
||||||
Parada origen = cmbOrigen.getSelectedItem() == null ? null : ((Parada) cmbOrigen.getSelectedItem().getValue());
|
|
||||||
Parada destino = cmbDestino.getSelectedItem() == null ? null : ((Parada) cmbDestino.getSelectedItem().getValue());
|
|
||||||
|
|
||||||
Integer numSecuenciaDestino = -1;
|
|
||||||
Integer numSecuenciaOrigen = -1;
|
|
||||||
|
|
||||||
Date dataDe = feciniciovigencia.getValue();
|
Date dataDe = feciniciovigencia.getValue();
|
||||||
Date dataAte = fecfinvigencia.getValue();
|
Date dataAte = fecfinvigencia.getValue();
|
||||||
|
@ -211,61 +297,24 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (confRestricaoCanalVenta.getRuta() != null) {
|
Parada origen = cmbOrigen.getSelectedItem() == null ? null : ((Parada) cmbOrigen.getSelectedItem().getValue());
|
||||||
|
Parada destino = cmbDestino.getSelectedItem() == null ? null : ((Parada) cmbDestino.getSelectedItem().getValue());
|
||||||
if (origen != null && origen.getParadaId() != -1) {
|
for (ConfRestricaoTramo confRestricaoTramo : lsConfRestricaoTramo) {
|
||||||
numSecuenciaOrigen = rutaService.getNumSecuenciaOrigen(confRestricaoCanalVenta.getRuta().getRutaId(), origen.getParadaId());
|
if(validaOrigemEDestinoDaRuta(confRestricaoTramo.getOrigem(), confRestricaoTramo.getDestino())) {
|
||||||
if (numSecuenciaOrigen == -1) { // não existe origen
|
return;
|
||||||
Messagebox.show(
|
|
||||||
Labels.getLabel("editarConfRestricaoCanalVentaController.MSG.OrigenInvalida"),
|
|
||||||
Labels.getLabel("editarConfRestricaoCanalVentaController.window.title"),
|
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (destino != null && destino.getParadaId() != -1) {
|
|
||||||
numSecuenciaDestino = rutaService.getNumSecuenciaDestino(confRestricaoCanalVenta.getRuta().getRutaId(), destino.getParadaId());
|
|
||||||
if (numSecuenciaDestino == -1) {
|
|
||||||
Messagebox.show(
|
|
||||||
Labels.getLabel("editarConfRestricaoCanalVentaController.MSG.destinoInvalido"),
|
|
||||||
Labels.getLabel("editarConfRestricaoCanalVentaController.window.title"),
|
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (numSecuenciaOrigen != -1 && numSecuenciaDestino != -1) {
|
|
||||||
if (numSecuenciaOrigen > numSecuenciaDestino) {
|
|
||||||
Messagebox.show(
|
|
||||||
Labels.getLabel("editarConfRestricaoCanalVentaController.MSG.sentidoInvalido"),
|
|
||||||
Labels.getLabel("editarConfRestricaoCanalVentaController.window.title"),
|
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Isso se faz necessário quando o usuário "deseleciona" uma ruta. Essa alteração não estava afetando o bean
|
if(confRestricaoCanalVenta.getLsConfRestricaoTramo().isEmpty()) {
|
||||||
if (cmbRuta.getSelectedItem() == null) {
|
Messagebox.show(
|
||||||
confRestricaoCanalVenta.setRuta(null);
|
Labels.getLabel("editarConfRestricaoCanalVentaController.MSG.semTramosSelecionados"),
|
||||||
cmbOrigen.getValue(true);
|
Labels.getLabel("editarConfRestricaoCanalVentaController.window.title"),
|
||||||
cmbDestino.getValue(true);
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
return;
|
||||||
|
}else {
|
||||||
|
mantendoACompatibilidade();
|
||||||
}
|
}
|
||||||
if (origen == null) {
|
|
||||||
confRestricaoCanalVenta.setOrigem(null);
|
|
||||||
} else {
|
|
||||||
confRestricaoCanalVenta.setOrigem(origen);
|
|
||||||
}
|
|
||||||
if (destino == null) {
|
|
||||||
confRestricaoCanalVenta.setDestino(null);
|
|
||||||
} else {
|
|
||||||
confRestricaoCanalVenta.setDestino(destino);
|
|
||||||
}
|
|
||||||
if (cmbTipoPtoVta.getSelectedItem() == null) {
|
|
||||||
confRestricaoCanalVenta.setTipoPuntoVenta(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!confRestricaoCanalVenta.getLsConfRestricaoPtovta().isEmpty()) {
|
if (!confRestricaoCanalVenta.getLsConfRestricaoPtovta().isEmpty()) {
|
||||||
for (ConfRestricaoPtovta cre : confRestricaoCanalVenta.getLsConfRestricaoPtovta()) {
|
for (ConfRestricaoPtovta cre : confRestricaoCanalVenta.getLsConfRestricaoPtovta()) {
|
||||||
|
@ -292,13 +341,70 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
|
||||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Método para manter a compatibilidade com o funcionamento anterior.
|
||||||
|
* TODO Deve ser removido assim que esta versão estiver em produção em todos os clientes.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private void mantendoACompatibilidade() {
|
||||||
|
confRestricaoCanalVenta.setTipoPuntoVenta(confRestricaoCanalVenta.getLsConfRestricaoTramo().get(0).getTipoPuntoVenta());
|
||||||
|
confRestricaoCanalVenta.setTempoPermitir(confRestricaoCanalVenta.getLsConfRestricaoTramo().get(0).getTempoPermitir());
|
||||||
|
confRestricaoCanalVenta.setSegunda(confRestricaoCanalVenta.getLsConfRestricaoTramo().get(0).getSegunda());
|
||||||
|
confRestricaoCanalVenta.setTerca(confRestricaoCanalVenta.getLsConfRestricaoTramo().get(0).getTerca());
|
||||||
|
confRestricaoCanalVenta.setQuarta(confRestricaoCanalVenta.getLsConfRestricaoTramo().get(0).getQuarta());
|
||||||
|
confRestricaoCanalVenta.setQuinta(confRestricaoCanalVenta.getLsConfRestricaoTramo().get(0).getQuinta());
|
||||||
|
confRestricaoCanalVenta.setSexta(confRestricaoCanalVenta.getLsConfRestricaoTramo().get(0).getSexta());
|
||||||
|
confRestricaoCanalVenta.setSabado(confRestricaoCanalVenta.getLsConfRestricaoTramo().get(0).getSabado());
|
||||||
|
confRestricaoCanalVenta.setDomingo(confRestricaoCanalVenta.getLsConfRestricaoTramo().get(0).getDomingo());
|
||||||
|
confRestricaoCanalVenta.setOrigem(confRestricaoCanalVenta.getLsConfRestricaoTramo().get(0).getOrigem());
|
||||||
|
confRestricaoCanalVenta.setDestino(confRestricaoCanalVenta.getLsConfRestricaoTramo().get(0).getDestino());
|
||||||
|
}
|
||||||
|
|
||||||
|
private Boolean validaOrigemEDestinoDaRuta(Parada origen, Parada destino) throws InterruptedException {
|
||||||
|
Integer numSecuenciaDestino = -1;
|
||||||
|
Integer numSecuenciaOrigen = -1;
|
||||||
|
|
||||||
|
|
||||||
|
if (confRestricaoCanalVenta.getRuta() != null) {
|
||||||
|
|
||||||
|
if (origen != null && origen.getParadaId() != -1) {
|
||||||
|
numSecuenciaOrigen = rutaService.getNumSecuenciaOrigen(confRestricaoCanalVenta.getRuta().getRutaId(), origen.getParadaId());
|
||||||
|
if (numSecuenciaOrigen == -1) {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarConfRestricaoCanalVentaController.MSG.OrigenInvalida"),
|
||||||
|
Labels.getLabel("editarConfRestricaoCanalVentaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (destino != null && destino.getParadaId() != -1) {
|
||||||
|
numSecuenciaDestino = rutaService.getNumSecuenciaDestino(confRestricaoCanalVenta.getRuta().getRutaId(), destino.getParadaId());
|
||||||
|
if (numSecuenciaDestino == -1) {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarConfRestricaoCanalVentaController.MSG.destinoInvalido"),
|
||||||
|
Labels.getLabel("editarConfRestricaoCanalVentaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (numSecuenciaOrigen != -1 && numSecuenciaDestino != -1) {
|
||||||
|
if (numSecuenciaOrigen > numSecuenciaDestino) {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarConfRestricaoCanalVentaController.MSG.sentidoInvalido"),
|
||||||
|
Labels.getLabel("editarConfRestricaoCanalVentaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
private void zerarHoraVigenciaInicial(){
|
private void zerarHoraVigenciaInicial(){
|
||||||
Calendar calIni = Calendar.getInstance();
|
confRestricaoCanalVenta.setFeciniciovigencia(DateUtil.inicioFecha(confRestricaoCanalVenta.getFeciniciovigencia()));
|
||||||
calIni.setTime(confRestricaoCanalVenta.getFeciniciovigencia());
|
|
||||||
calIni.set(Calendar.HOUR, 0);
|
|
||||||
|
|
||||||
confRestricaoCanalVenta.setFeciniciovigencia(calIni.getTime());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnApagar(Event ev) throws InterruptedException {
|
public void onClick$btnApagar(Event ev) throws InterruptedException {
|
||||||
|
@ -323,26 +429,22 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
|
||||||
|
|
||||||
public void onClick$btnAddRestricaoPtovta(Event ev) throws InterruptedException {
|
public void onClick$btnAddRestricaoPtovta(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
if (cmbPuntoVenta.getSelectedItem() != null) {
|
if (cmbPuntoVenta.getSelectedItem() != null && cmbConfRestricaoTramoPtoVta.getSelectedItem()!= null) {
|
||||||
|
ConfRestricaoTramo tramoRestrito = (ConfRestricaoTramo) cmbConfRestricaoTramoPtoVta.getSelectedItem().getValue();
|
||||||
PuntoVenta pv = (PuntoVenta) cmbPuntoVenta.getSelectedItem().getValue();
|
PuntoVenta pv = (PuntoVenta) cmbPuntoVenta.getSelectedItem().getValue();
|
||||||
ConfRestricaoPtovta ptovta = new ConfRestricaoPtovta();
|
ConfRestricaoPtovta ptovta = new ConfRestricaoPtovta();
|
||||||
ptovta.setPuntoVenta(pv);
|
ptovta.setPuntoVenta(pv);
|
||||||
ptovta.setConfRestricaoCanalVenta(confRestricaoCanalVenta);
|
ptovta.setConfRestricaoCanalVenta(confRestricaoCanalVenta);
|
||||||
ptovta.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
ptovta.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
ptovta.setFecmodif(Calendar.getInstance().getTime());
|
ptovta.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
ptovta.setConfRestricaoTramo(tramoRestrito);
|
||||||
ptovta.setActivo(Boolean.TRUE);
|
ptovta.setActivo(Boolean.TRUE);
|
||||||
|
|
||||||
if (confRestricaoCanalVenta.getLsConfRestricaoPtovta() == null) {
|
if (confRestricaoCanalVenta.getLsConfRestricaoPtovta() == null) {
|
||||||
confRestricaoCanalVenta.setLsConfRestricaoPtovta(new ArrayList<ConfRestricaoPtovta>());
|
confRestricaoCanalVenta.setLsConfRestricaoPtovta(new ArrayList<ConfRestricaoPtovta>());
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean ptovtaJaCadastrado = false;
|
boolean ptovtaJaCadastrado = confRestricaoCanalVenta.getLsConfRestricaoPtovta().contains(ptovta);
|
||||||
for (ConfRestricaoPtovta pt : confRestricaoCanalVenta.getLsConfRestricaoPtovta()){
|
|
||||||
if (pt.getPuntoVenta().equals(pv)){
|
|
||||||
ptovtaJaCadastrado = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!ptovtaJaCadastrado){
|
if (!ptovtaJaCadastrado){
|
||||||
confRestricaoCanalVenta.getLsConfRestricaoPtovta().add(ptovta);
|
confRestricaoCanalVenta.getLsConfRestricaoPtovta().add(ptovta);
|
||||||
|
@ -384,20 +486,24 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
|
||||||
public void onClick$btnAdicionarExcecao(Event ev) throws InterruptedException {
|
public void onClick$btnAdicionarExcecao(Event ev) throws InterruptedException {
|
||||||
Date dataExcecao = dtExcecaoServicio.getValue();
|
Date dataExcecao = dtExcecaoServicio.getValue();
|
||||||
|
|
||||||
if (dataExcecao != null) {
|
if (dataExcecao != null && cmbConfRestricaoTramoExcecao.getSelectedItem()!= null) {
|
||||||
|
ConfRestricaoTramo tramoRestrito = (ConfRestricaoTramo) cmbConfRestricaoTramoExcecao.getSelectedItem().getValue();
|
||||||
ConfRestricaoExcecao confRestricaoExcecao = new ConfRestricaoExcecao();
|
ConfRestricaoExcecao confRestricaoExcecao = new ConfRestricaoExcecao();
|
||||||
confRestricaoExcecao.setFecExcecao(dataExcecao);
|
confRestricaoExcecao.setFecExcecao(dataExcecao);
|
||||||
confRestricaoExcecao.setConfRestricaoCanalVenta(confRestricaoCanalVenta);
|
confRestricaoExcecao.setConfRestricaoCanalVenta(confRestricaoCanalVenta);
|
||||||
confRestricaoExcecao.setActivo(Boolean.TRUE);
|
confRestricaoExcecao.setActivo(Boolean.TRUE);
|
||||||
confRestricaoExcecao.setFecmodif(Calendar.getInstance().getTime());
|
confRestricaoExcecao.setFecmodif(Calendar.getInstance().getTime());
|
||||||
confRestricaoExcecao.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
confRestricaoExcecao.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
confRestricaoExcecao.setConfRestricaoTramo(tramoRestrito);
|
||||||
|
|
||||||
if (confRestricaoCanalVenta.getLsConfRestricaoExcecao() == null) {
|
if (confRestricaoCanalVenta.getLsConfRestricaoExcecao() == null) {
|
||||||
confRestricaoCanalVenta.setLsConfRestricaoExcecao(new ArrayList<ConfRestricaoExcecao>());
|
confRestricaoCanalVenta.setLsConfRestricaoExcecao(new ArrayList<ConfRestricaoExcecao>());
|
||||||
}
|
}
|
||||||
confRestricaoCanalVenta.getLsConfRestricaoExcecao().add(confRestricaoExcecao);
|
if(!confRestricaoCanalVenta.getLsConfRestricaoExcecao().contains(confRestricaoExcecao)) {
|
||||||
|
confRestricaoCanalVenta.getLsConfRestricaoExcecao().add(confRestricaoExcecao);
|
||||||
|
excecaoDataList.addItemNovo(confRestricaoExcecao);
|
||||||
|
}
|
||||||
|
|
||||||
excecaoDataList.addItemNovo(confRestricaoExcecao);
|
|
||||||
dtExcecaoServicio.setValue(null);
|
dtExcecaoServicio.setValue(null);
|
||||||
} else {
|
} else {
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
|
|
|
@ -0,0 +1,148 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.apache.log4j.Logger;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
import org.zkoss.zk.ui.WrongValueException;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zk.ui.event.InputEvent;
|
||||||
|
import org.zkoss.zkplus.databind.BindingListModel;
|
||||||
|
import org.zkoss.zkplus.databind.BindingListModelList;
|
||||||
|
import org.zkoss.zkplus.spring.SpringUtil;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||||
|
|
||||||
|
public class MyComboboxRuta extends Combobox {
|
||||||
|
|
||||||
|
private static final String SEPARADOR = " - ";
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
private static Logger log = Logger.getLogger(MyComboboxParada.class);
|
||||||
|
private final static int minLength = 2;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private RutaService rutaService;
|
||||||
|
private List<Ruta> rutas;
|
||||||
|
private Integer indiceSelected;
|
||||||
|
private Ruta initialValue;
|
||||||
|
|
||||||
|
public MyComboboxRuta() {
|
||||||
|
super();
|
||||||
|
|
||||||
|
rutas = new ArrayList<Ruta>();
|
||||||
|
|
||||||
|
this.setAutodrop(false);
|
||||||
|
this.setAutocomplete(false);
|
||||||
|
|
||||||
|
this.addEventListener("onOK", new EventListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
rutaService = (RutaService) SpringUtil.getBean("rutaService");
|
||||||
|
String stringConsulta = MyComboboxRuta.this.getText().toUpperCase();
|
||||||
|
if (stringConsulta.length() < MyComboboxRuta.minLength) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!stringConsulta.isEmpty()) {
|
||||||
|
rutas = rutaService.buscaLikeComboBox(stringConsulta);
|
||||||
|
|
||||||
|
BindingListModel listModelRutas = new BindingListModelList(rutas, true);
|
||||||
|
MyComboboxRuta.this.setModel(listModelRutas);
|
||||||
|
setIndiceSelected(null);
|
||||||
|
if (!rutas.isEmpty()) {
|
||||||
|
setIndiceSelected(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
MyComboboxRuta.this.open();
|
||||||
|
} else {
|
||||||
|
rutas.clear();
|
||||||
|
|
||||||
|
BindingListModel listModelParada = new BindingListModelList(rutas, true);
|
||||||
|
MyComboboxRuta.this.setModel(listModelParada);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
this.addEventListener("onChanging", new EventListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
InputEvent ev = (InputEvent) event;
|
||||||
|
String stringConsulta = ev.getValue();
|
||||||
|
if (stringConsulta.length() < 2) {
|
||||||
|
rutas.clear();
|
||||||
|
|
||||||
|
BindingListModel listModelRutas = new BindingListModelList(rutas, true);
|
||||||
|
MyComboboxRuta.this.setModel(listModelRutas);
|
||||||
|
|
||||||
|
MyComboboxRuta.this.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public Ruta getInitialValue() {
|
||||||
|
return initialValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInitialValue(Ruta initialValue) {
|
||||||
|
if (initialValue == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
List<Ruta> ls = new ArrayList<Ruta>();
|
||||||
|
ls.add(initialValue);
|
||||||
|
|
||||||
|
this.setModel(new BindingListModelList(ls, false));
|
||||||
|
this.setText(retornaDescricaoRuta(initialValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
private String retornaDescricaoRuta(Ruta ruta) {
|
||||||
|
return ruta.getNumRuta().concat(SEPARADOR).concat(ruta.getDescruta())
|
||||||
|
.concat(SEPARADOR).concat(ruta.getClaseServicio().getDescclase());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComboItemByRuta(Ruta ruta) {
|
||||||
|
|
||||||
|
List<Ruta> ls = new ArrayList<Ruta>();
|
||||||
|
ls.add(ruta);
|
||||||
|
|
||||||
|
this.setModel(new BindingListModelList(ls, false));
|
||||||
|
this.setText(retornaDescricaoRuta(ruta));
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getValue(boolean checaBusqueda) throws WrongValueException {
|
||||||
|
if (checaBusqueda) {
|
||||||
|
if (this.getSelectedItem() == null) {
|
||||||
|
throw new WrongValueException(this, Labels.getLabel("MSG.Error.combobox.hacerBusqueda"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return super.getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getIndiceSelected() {
|
||||||
|
return indiceSelected;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndiceSelected(Integer indiceSelected) {
|
||||||
|
this.indiceSelected = indiceSelected;
|
||||||
|
}
|
||||||
|
|
||||||
|
public <T> T getSelecteObject(Class<T> cType) {
|
||||||
|
if (this.getSelectedItem() != null) {
|
||||||
|
return cType.cast(this.getSelectedItem().getValue());
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -10,13 +10,20 @@ public class MyComboRutaRenderer implements ComboitemRenderer {
|
||||||
@Override
|
@Override
|
||||||
public void render(Comboitem item, Object data) throws Exception {
|
public void render(Comboitem item, Object data) throws Exception {
|
||||||
Ruta ruta = (Ruta) data;
|
Ruta ruta = (Ruta) data;
|
||||||
String descricao;
|
item.setLabel(buscarDescricaoComboRuta(ruta));
|
||||||
if (ruta.getRutaId() != -1){
|
|
||||||
descricao = ruta.getDescruta() + " Id:" + ruta.getRutaId() + " Sentido:" + (ruta.getIndSentidoIda() ? Labels.getLabel("editarCatalogoDeRutaController.radIda.value") : Labels.getLabel("editarCatalogoDeRutaController.radVolta.value")) + " Número:" + ruta.getNumRuta();
|
|
||||||
} else {
|
|
||||||
descricao = ruta.getDescruta() + " Id:" + ruta.getRutaId();
|
|
||||||
}
|
|
||||||
item.setLabel(descricao);
|
|
||||||
item.setValue(data);
|
item.setValue(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String buscarDescricaoComboRuta(Ruta ruta) {
|
||||||
|
return buscarInformacaoTratada(ruta.getRutaId().toString())
|
||||||
|
+ buscarInformacaoTratada(ruta.getNumRuta())
|
||||||
|
+ buscarInformacaoTratada(ruta.getDescruta())
|
||||||
|
+ buscarInformacaoTratada(ruta.getClaseServicio()!= null ? ruta.getClaseServicio().getDescclase(): null)
|
||||||
|
+ (ruta.getIndSentidoIda()!= null ?
|
||||||
|
(ruta.getIndSentidoIda() ? Labels.getLabel("editarCatalogoDeRutaController.radIda.value") : Labels.getLabel("editarCatalogoDeRutaController.radVolta.value")):"");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String buscarInformacaoTratada(String info) {
|
||||||
|
return info!= null ? info + " - ": "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,26 +19,30 @@ public class RenderConfRestricaoCanalVenta implements ListitemRenderer {
|
||||||
|
|
||||||
lc = new Listcell(confRestricaoCanalVenta.getConfRestricaoCanalVentaId().toString() == null ? "-" : confRestricaoCanalVenta.getConfRestricaoCanalVentaId().toString());
|
lc = new Listcell(confRestricaoCanalVenta.getConfRestricaoCanalVentaId().toString() == null ? "-" : confRestricaoCanalVenta.getConfRestricaoCanalVentaId().toString());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(confRestricaoCanalVenta.getRuta() == null ? "-" : MyComboRutaRenderer.buscarDescricaoComboRuta(confRestricaoCanalVenta.getRuta()));
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(confRestricaoCanalVenta.getDescConfRestricaoCanalVenta() == null ? "-" : confRestricaoCanalVenta.getDescConfRestricaoCanalVenta());
|
lc = new Listcell(confRestricaoCanalVenta.getDescConfRestricaoCanalVenta() == null ? "-" : confRestricaoCanalVenta.getDescConfRestricaoCanalVenta());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(confRestricaoCanalVenta.getTipoPuntoVenta() == null ? "-" : confRestricaoCanalVenta.getTipoPuntoVenta().getDesctipo());
|
|
||||||
lc.setParent(lstm);
|
|
||||||
|
|
||||||
lc = new Listcell(confRestricaoCanalVenta.getOrigem() == null ? "-" : confRestricaoCanalVenta.getOrigem().getDescparada());
|
|
||||||
lc.setParent(lstm);
|
|
||||||
|
|
||||||
lc = new Listcell(confRestricaoCanalVenta.getDestino() == null ? "-" : confRestricaoCanalVenta.getDestino().getDescparada());
|
|
||||||
lc.setParent(lstm);
|
|
||||||
|
|
||||||
lc = new Listcell(confRestricaoCanalVenta.getCorridaId() == null ? "-" : confRestricaoCanalVenta.getCorridaId().toString());
|
lc = new Listcell(confRestricaoCanalVenta.getCorridaId() == null ? "-" : confRestricaoCanalVenta.getCorridaId().toString());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(confRestricaoCanalVenta.getFecCorrida() == null ? "-" : sdf.format(confRestricaoCanalVenta.getFecCorrida()));
|
lc = new Listcell(confRestricaoCanalVenta.getFecCorrida() == null ? "-" : sdf.format(confRestricaoCanalVenta.getFecCorrida()));
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(buscarDescricaoVigencia(confRestricaoCanalVenta));
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lstm.setAttribute("data", confRestricaoCanalVenta);
|
lstm.setAttribute("data", confRestricaoCanalVenta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String buscarDescricaoVigencia(ConfRestricaoCanalVenta confRestricaoCanalVenta) {
|
||||||
|
if(confRestricaoCanalVenta.getFeciniciovigencia()!= null || confRestricaoCanalVenta.getFecfinvigencia()!= null) {
|
||||||
|
return "De "+ sdf.format(confRestricaoCanalVenta.getFeciniciovigencia()) + " Até " + sdf.format(confRestricaoCanalVenta.getFecfinvigencia());
|
||||||
|
}
|
||||||
|
return " - ";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,10 @@ public class RenderConfRestricaoExcecao implements ListitemRenderer {
|
||||||
public void render(Listitem lstm, Object o) throws Exception {
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
ConfRestricaoExcecao confRestricaoExcecao = (ConfRestricaoExcecao) o;
|
ConfRestricaoExcecao confRestricaoExcecao = (ConfRestricaoExcecao) o;
|
||||||
|
|
||||||
Listcell lc = new Listcell(confRestricaoExcecao.getFecExcecao() == null ? "-" : sdf.format(confRestricaoExcecao.getFecExcecao()));
|
Listcell lc = new Listcell(confRestricaoExcecao.getConfRestricaoTramo() == null ? "-" : confRestricaoExcecao.getConfRestricaoTramo().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(confRestricaoExcecao.getFecExcecao() == null ? "-" : sdf.format(confRestricaoExcecao.getFecExcecao()));
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lstm.setAttribute("data", confRestricaoExcecao);
|
lstm.setAttribute("data", confRestricaoExcecao);
|
||||||
|
|
|
@ -11,7 +11,10 @@ public class RenderConfRestricaoPtovta implements ListitemRenderer {
|
||||||
public void render(Listitem lstm, Object o) throws Exception {
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
ConfRestricaoPtovta rPtovta = (ConfRestricaoPtovta) o;
|
ConfRestricaoPtovta rPtovta = (ConfRestricaoPtovta) o;
|
||||||
|
|
||||||
Listcell lc = new Listcell(rPtovta.getPuntoVenta().getNombpuntoventa());
|
Listcell lc = new Listcell(rPtovta.getConfRestricaoTramo() == null ? "-" : rPtovta.getConfRestricaoTramo().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(rPtovta.getPuntoVenta().getNombpuntoventa());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lstm.setAttribute("data", rPtovta);
|
lstm.setAttribute("data", rPtovta);
|
||||||
|
|
|
@ -0,0 +1,53 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import org.zkoss.zul.Checkbox;
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoPtovta;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoTramo;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
|
|
||||||
|
public class RenderConfRestricaoTramo implements ListitemRenderer {
|
||||||
|
|
||||||
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
|
ConfRestricaoTramo confTramos = (ConfRestricaoTramo) o;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(confTramos.getConfRestricaoTramoId()== null ?" - " : confTramos.getConfRestricaoTramoId().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(confTramos.getTipoPuntoVenta()== null ?" - " : confTramos.getTipoPuntoVenta().getDesctipo());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(confTramos.getOrigem()== null ?" - " : confTramos.getOrigem().getDescparada());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(confTramos.getDestino()== null ?" - " : confTramos.getDestino().getDescparada());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(confTramos.getTempoPermitir()== null ?" - " : DateUtil.getStringDate(confTramos.getTempoPermitir(),DateUtil.HHmm));
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell();
|
||||||
|
|
||||||
|
criaCheckBoxDiaDaSemana(lc, confTramos.getSegunda());
|
||||||
|
criaCheckBoxDiaDaSemana(lc, confTramos.getTerca());
|
||||||
|
criaCheckBoxDiaDaSemana(lc, confTramos.getQuarta());
|
||||||
|
criaCheckBoxDiaDaSemana(lc, confTramos.getQuinta());
|
||||||
|
criaCheckBoxDiaDaSemana(lc, confTramos.getSexta());
|
||||||
|
criaCheckBoxDiaDaSemana(lc, confTramos.getSabado());
|
||||||
|
criaCheckBoxDiaDaSemana(lc, confTramos.getDomingo());
|
||||||
|
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lstm.setAttribute("data", confTramos);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void criaCheckBoxDiaDaSemana(Listcell lc, Boolean diaDaSemana) {
|
||||||
|
Checkbox checkbox = new Checkbox();
|
||||||
|
checkbox.setChecked(diaDaSemana!= null && diaDaSemana);
|
||||||
|
checkbox.setDisabled(true);
|
||||||
|
lc.appendChild(checkbox);
|
||||||
|
}
|
||||||
|
}
|
|
@ -46,6 +46,8 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.AlertaCtrl</value>
|
<value>com.rjconsultores.ventaboletos.entidad.AlertaCtrl</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ConfRestricaoExcecao
|
<value>com.rjconsultores.ventaboletos.entidad.ConfRestricaoExcecao
|
||||||
</value>
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.ConfRestricaoTramo
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.AliasServico</value>
|
<value>com.rjconsultores.ventaboletos.entidad.AliasServico</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Autobus</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Autobus</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Autorizacion</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Autorizacion</value>
|
||||||
|
@ -396,7 +398,6 @@
|
||||||
</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.OCDPtoVtaParam
|
<value>com.rjconsultores.ventaboletos.entidad.OCDPtoVtaParam
|
||||||
</value>
|
</value>
|
||||||
<!-- value>com.rjconsultores.ventaboletos.entidad.ControleEstoqueMigracao</value -->
|
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.FiscalImpressora</value>
|
<value>com.rjconsultores.ventaboletos.entidad.FiscalImpressora</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.FiscalImpressoraEstado</value>
|
<value>com.rjconsultores.ventaboletos.entidad.FiscalImpressoraEstado</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.FechamentoParamgeral</value>
|
<value>com.rjconsultores.ventaboletos.entidad.FechamentoParamgeral</value>
|
||||||
|
@ -548,17 +549,6 @@
|
||||||
|
|
||||||
<bean id="readOnlyRouteInterceptor" class="com.rjconsultores.routing.ReadOnlyRouteInterceptor" />
|
<bean id="readOnlyRouteInterceptor" class="com.rjconsultores.routing.ReadOnlyRouteInterceptor" />
|
||||||
|
|
||||||
<!-- <bean id="dataSource" -->
|
|
||||||
<!-- class="org.springframework.jdbc.datasource.DriverManagerDataSource"> -->
|
|
||||||
<!-- <property name="driverClassName" value="${database.driver}" /> -->
|
|
||||||
<!-- <property name="url" value="${database.url}" /> -->
|
|
||||||
<!-- <property name="username" value="${database.username}" /> -->
|
|
||||||
<!-- <property name="password" value="${database.password}" /> -->
|
|
||||||
<!-- </bean> -->
|
|
||||||
|
|
||||||
<!-- ====================================================== -->
|
|
||||||
<!-- Search class from Hibernate-Generic-DAO framework -->
|
|
||||||
<!-- ====================================================== -->
|
|
||||||
<bean id="hibernateSearchSupport" scope="prototype"
|
<bean id="hibernateSearchSupport" scope="prototype"
|
||||||
class="com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchSupportImpl">
|
class="com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchSupportImpl">
|
||||||
<property name="sessionFactory" ref="sessionFactory" />
|
<property name="sessionFactory" ref="sessionFactory" />
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
title="${c:l('confRestricaoCanalVentaController.window.title')}"
|
title="${c:l('confRestricaoCanalVentaController.window.title')}"
|
||||||
apply="${confRestricaoCanalVentaController}"
|
apply="${confRestricaoCanalVentaController}"
|
||||||
contentStyle="overflow:auto" height="550px" width="950px"
|
contentStyle="overflow:auto" height="550px" width="950px"
|
||||||
border="normal">
|
border="normal" xmlns:h="http://www.w3.org/1999/xhtml">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnRefresh" image="/gui/img/refresh.png"
|
<button id="btnRefresh" image="/gui/img/refresh.png"
|
||||||
width="35px"
|
width="35px"
|
||||||
|
@ -51,17 +51,8 @@
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarConfiguracionCorridaController.cmbRuta.value')}" />
|
value="${c:l('editarConfiguracionCorridaController.cmbRuta.value')}" />
|
||||||
<combobox id="cmbRuta"
|
<combobox id="cmbRuta"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxRuta"
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
mold="rounded" buttonVisible="true" width="70%" />
|
||||||
model="@{winBusquedaConfRestricaoCanalVenta$composer.lsRuta}" />
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label
|
|
||||||
value="${c:l('confRestricaoCanalVentaController.CanalVenda.label')}" />
|
|
||||||
<combobox id="cmbTipoPtoVta" autodrop="true"
|
|
||||||
mold="rounded" buttonVisible="true" width="45%"
|
|
||||||
model="@{winBusquedaConfRestricaoCanalVenta$composer.lsTipoPtoVta}"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
|
@ -77,6 +68,40 @@
|
||||||
mold="rounded" buttonVisible="true" width="45%"
|
mold="rounded" buttonVisible="true" width="45%"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('confRestricaoCanalVentaController.DataServico.label')}" />
|
||||||
|
<datebox id="dtServicio" width="30%"
|
||||||
|
mold="rounded" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('confRestricaoCanalVentaController.lhVigencia.label')}" />
|
||||||
|
<hbox>
|
||||||
|
<h:table border="0">
|
||||||
|
<h:tr>
|
||||||
|
<h:td>
|
||||||
|
<label
|
||||||
|
value="${c:l('confRestricaoCanalVentaController.lhDe.label')}" />
|
||||||
|
</h:td>
|
||||||
|
<h:td>
|
||||||
|
<datebox
|
||||||
|
id="feciniciovigencia" width="120px"
|
||||||
|
mold="rounded" />
|
||||||
|
</h:td>
|
||||||
|
<h:td>
|
||||||
|
<label
|
||||||
|
value="${c:l('confRestricaoCanalVentaController.lhAte.label')}" />
|
||||||
|
</h:td>
|
||||||
|
<h:td>
|
||||||
|
<datebox
|
||||||
|
id="fecfinvigencia" width="120px"
|
||||||
|
mold="rounded" />
|
||||||
|
</h:td>
|
||||||
|
</h:tr>
|
||||||
|
</h:table>
|
||||||
|
</hbox>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('confRestricaoCanalVentaController.Servico.label')}" />
|
value="${c:l('confRestricaoCanalVentaController.Servico.label')}" />
|
||||||
|
@ -97,24 +122,20 @@
|
||||||
<listhead sizable="true">
|
<listhead sizable="true">
|
||||||
<listheader width="5%" image="/gui/img/create_doc.gif"
|
<listheader width="5%" image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('lb.id')}" sort="auto(confRestricaoCanalVentaId)" />
|
label="${c:l('lb.id')}" sort="auto(confRestricaoCanalVentaId)" />
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('confRestricaoCanalVentaController.lhRuta.label')}"
|
||||||
|
sort="auto(ruta.numRuta)" width="25%" />
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('confRestricaoCanalVentaController.lhDesc.label')}"
|
label="${c:l('confRestricaoCanalVentaController.lhDesc.label')}"
|
||||||
sort="auto(descConfRestricaoCanalVenta)" />
|
sort="auto(descConfRestricaoCanalVenta)" />
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
<listheader image="/gui/img/create_doc.gif" width="10%"
|
||||||
label="${c:l('confRestricaoCanalVentaController.CanalVenda.label')}"
|
|
||||||
sort="auto(tipoPuntoVenta.desctipo)" />
|
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
|
||||||
label="${c:l('confRestricaoCanalVentaController.Origem.label')}"
|
|
||||||
sort="auto(origem.descparada)" />
|
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
|
||||||
label="${c:l('confRestricaoCanalVentaController.Destino.label')}"
|
|
||||||
sort="auto(destino.descparada)" />
|
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
|
||||||
label="${c:l('confRestricaoCanalVentaController.Servico.label')}"
|
label="${c:l('confRestricaoCanalVentaController.Servico.label')}"
|
||||||
sort="auto(corridaId)" />
|
sort="auto(corridaId)" />
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
<listheader image="/gui/img/create_doc.gif" width="12%"
|
||||||
label="${c:l('confRestricaoCanalVentaController.DataServico.label')}"
|
label="${c:l('confRestricaoCanalVentaController.DataServico.label')}"
|
||||||
sort="auto(fecCorrida)" />
|
sort="auto(fecCorrida)" />
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('confRestricaoCanalVentaController.lhVigencia.label')}" />
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</window>
|
</window>
|
||||||
|
|
|
@ -34,9 +34,11 @@
|
||||||
<tab
|
<tab
|
||||||
label="${c:l('editarConfRestricaoCanalVentaController.aba.Configuracoes')}" />
|
label="${c:l('editarConfRestricaoCanalVentaController.aba.Configuracoes')}" />
|
||||||
<tab
|
<tab
|
||||||
label="${c:l('editarConfRestricaoCanalVentaController.aba.Excecoes')}" />
|
label="${c:l('editarConfRestricaoCanalVentaController.aba.Tramos')}" />
|
||||||
<tab
|
<tab
|
||||||
label="${c:l('editarConfRestricaoCanalVentaController.aba.Ptovta')}" />
|
label="${c:l('editarConfRestricaoCanalVentaController.aba.Excecoes')}" id="tabConfRestricaoExcecao" />
|
||||||
|
<tab
|
||||||
|
label="${c:l('editarConfRestricaoCanalVentaController.aba.Ptovta')}" id="tabConfRestricaoPtovta" />
|
||||||
</tabs>
|
</tabs>
|
||||||
|
|
||||||
<tabpanels>
|
<tabpanels>
|
||||||
|
@ -48,13 +50,25 @@
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('confRestricaoCanalVentaController.lhDesc.label')}" />
|
value="${c:l('confRestricaoCanalVentaController.lhDesc.label')}" />
|
||||||
<textbox id="txtDescConf" width="98%"
|
<textbox id="txtDescConf" width="98%"
|
||||||
value="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.descConfRestricaoCanalVenta}"
|
value="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.descConfRestricaoCanalVenta}"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('confRestricaoCanalVentaController.Servico.label')}" />
|
||||||
|
<intbox id="txtServico" width="20%"
|
||||||
|
value="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.corridaId}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('confRestricaoCanalVentaController.DataServico.label')}" />
|
||||||
|
<datebox id="dtServicio" width="30%"
|
||||||
|
mold="rounded"
|
||||||
|
value="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.fecCorrida}" />
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('confRestricaoCanalVentaController.lhVigencia.label')}" />
|
value="${c:l('confRestricaoCanalVentaController.lhVigencia.label')}" />
|
||||||
|
@ -85,8 +99,6 @@
|
||||||
</h:table>
|
</h:table>
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('confRestricaoCanalVentaController.lhEmpresa.label')}" />
|
value="${c:l('confRestricaoCanalVentaController.lhEmpresa.label')}" />
|
||||||
|
@ -96,45 +108,53 @@
|
||||||
selectedItem="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.empresa}"
|
selectedItem="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.empresa}"
|
||||||
model="@{winEditarConfRestricaoCanalVenta$composer.lsEmpresa}" />
|
model="@{winEditarConfRestricaoCanalVenta$composer.lsEmpresa}" />
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarConfiguracionCorridaController.cmbRuta.value')}" />
|
value="${c:l('editarConfiguracionCorridaController.cmbRuta.value')}" />
|
||||||
<combobox id="cmbRuta"
|
<combobox id="cmbRuta"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxRuta"
|
||||||
mold="rounded" buttonVisible="true" width="60%"
|
mold="rounded" buttonVisible="true" width="60%"
|
||||||
selectedItem="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.ruta}"
|
initialValue="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.ruta}"
|
||||||
model="@{winEditarConfRestricaoCanalVenta$composer.lsRuta}" />
|
selectedItem="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.ruta}"/>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('confRestricaoCanalVentaController.exibeconsultavendaweb.label')}" />
|
||||||
|
<checkbox id="chkExibeconsultavendaweb"
|
||||||
|
checked="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.indexibeconsultavendaweb}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('confRestricaoCanalVentaController.exibecorridabloq.label')}" />
|
||||||
|
<checkbox id="chkExibecorridabloq"
|
||||||
|
checked="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.indexibecorridabloq}" />
|
||||||
|
|
||||||
|
</row>
|
||||||
|
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
</tabpanel>
|
||||||
|
<!-- TRAMOS -->
|
||||||
|
<tabpanel>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="80%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('confRestricaoCanalVentaController.CanalVenda.label')}" />
|
value="${c:l('confRestricaoCanalVentaController.CanalVenda.label')}" />
|
||||||
<combobox id="cmbTipoPtoVta"
|
<combobox id="cmbTipoPtoVta"
|
||||||
mold="rounded" buttonVisible="true" width="60%"
|
mold="rounded" buttonVisible="true" width="60%"
|
||||||
selectedItem="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.tipoPuntoVenta}"
|
|
||||||
model="@{winEditarConfRestricaoCanalVenta$composer.lsTipoPtoVta}"
|
model="@{winEditarConfRestricaoCanalVenta$composer.lsTipoPtoVta}"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
|
||||||
<label
|
|
||||||
value="${c:l('confRestricaoCanalVentaController.Servico.label')}" />
|
|
||||||
<intbox id="txtServico" width="20%"
|
|
||||||
value="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.corridaId}" />
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label
|
|
||||||
value="${c:l('confRestricaoCanalVentaController.DataServico.label')}" />
|
|
||||||
<datebox id="dtServicio" width="30%"
|
|
||||||
mold="rounded"
|
|
||||||
value="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.fecCorrida}" />
|
|
||||||
</row>
|
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('confRestricaoCanalVentaController.Origem.label')}" />
|
value="${c:l('confRestricaoCanalVentaController.Origem.label')}" />
|
||||||
<combobox id="cmbOrigen" mold="rounded"
|
<combobox id="cmbOrigen" mold="rounded"
|
||||||
buttonVisible="true" width="60%"
|
buttonVisible="true" width="60%"
|
||||||
initialValue="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.origem}"
|
|
||||||
selectedItem="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.origem}"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
|
@ -142,8 +162,6 @@
|
||||||
value="${c:l('confRestricaoCanalVentaController.Destino.label')}" />
|
value="${c:l('confRestricaoCanalVentaController.Destino.label')}" />
|
||||||
<combobox id="cmbDestino" mold="rounded"
|
<combobox id="cmbDestino" mold="rounded"
|
||||||
buttonVisible="true" width="60%"
|
buttonVisible="true" width="60%"
|
||||||
initialValue="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.destino}"
|
|
||||||
selectedItem="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.destino}"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
|
@ -153,71 +171,102 @@
|
||||||
<h:table border="0">
|
<h:table border="0">
|
||||||
<h:tr>
|
<h:tr>
|
||||||
<h:td width="20%">
|
<h:td width="20%">
|
||||||
<timebox id="timeTempoPermitir"
|
<timebox
|
||||||
width="70px" mold="rounded" format="HH:mm"
|
id="timeTempoPermitir" width="70px" mold="rounded"
|
||||||
value="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.tempoPermitir}" />
|
format="HH:mm" />
|
||||||
</h:td>
|
</h:td>
|
||||||
<h:td>
|
<h:td>
|
||||||
<label
|
<label
|
||||||
value="${c:l('confRestricaoCanalVentaController.TempoPermitirOBS.label')}" />
|
value="${c:l('confRestricaoCanalVentaController.TempoPermitirOBS.label')}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
</h:tr>
|
</h:tr>
|
||||||
</h:table>
|
</h:table>
|
||||||
</vbox>
|
</vbox>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('confRestricaoCanalVentaController.DiasSemana.label')}" />
|
value="${c:l('confRestricaoCanalVentaController.DiasSemana.label')}" />
|
||||||
<vbox>
|
<hbox>
|
||||||
<checkbox id="chkSegunda"
|
<checkbox id="chkSegunda"
|
||||||
label="${c:l('confRestricaoCanalVentaController.Segunda.label')}"
|
label="${c:l('confRestricaoCanalVentaController.Segunda.label')}" />
|
||||||
checked="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.segunda}" />
|
|
||||||
<checkbox id="chkTerca"
|
<checkbox id="chkTerca"
|
||||||
label="${c:l('confRestricaoCanalVentaController.Terca.label')}"
|
label="${c:l('confRestricaoCanalVentaController.Terca.label')}" />
|
||||||
checked="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.terca}" />
|
|
||||||
<checkbox id="chkQuarta"
|
<checkbox id="chkQuarta"
|
||||||
label="${c:l('confRestricaoCanalVentaController.Quarta.label')}"
|
label="${c:l('confRestricaoCanalVentaController.Quarta.label')}" />
|
||||||
checked="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.quarta}" />
|
|
||||||
<checkbox id="chkQuinta"
|
<checkbox id="chkQuinta"
|
||||||
label="${c:l('confRestricaoCanalVentaController.Quinta.label')}"
|
label="${c:l('confRestricaoCanalVentaController.Quinta.label')}" />
|
||||||
checked="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.quinta}" />
|
|
||||||
<checkbox id="chkSexta"
|
<checkbox id="chkSexta"
|
||||||
label="${c:l('confRestricaoCanalVentaController.Sexta.label')}"
|
label="${c:l('confRestricaoCanalVentaController.Sexta.label')}" />
|
||||||
checked="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.sexta}" />
|
|
||||||
<checkbox id="chkSabado"
|
<checkbox id="chkSabado"
|
||||||
label="${c:l('confRestricaoCanalVentaController.Sabado.label')}"
|
label="${c:l('confRestricaoCanalVentaController.Sabado.label')}" />
|
||||||
checked="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.sabado}" />
|
|
||||||
<checkbox id="chkDomingo"
|
<checkbox id="chkDomingo"
|
||||||
label="${c:l('confRestricaoCanalVentaController.Domingo.label')}"
|
label="${c:l('confRestricaoCanalVentaController.Domingo.label')}" />
|
||||||
checked="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.domingo}" />
|
</hbox>
|
||||||
</vbox>
|
|
||||||
</row>
|
</row>
|
||||||
<row>
|
|
||||||
<label
|
|
||||||
value="${c:l('confRestricaoCanalVentaController.exibeconsultavendaweb.label')}" />
|
|
||||||
<checkbox id="chkExibeconsultavendaweb"
|
|
||||||
checked="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.indexibeconsultavendaweb}" />
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row>
|
|
||||||
<label
|
|
||||||
value="${c:l('confRestricaoCanalVentaController.exibecorridabloq.label')}" />
|
|
||||||
<checkbox id="chkExibecorridabloq"
|
|
||||||
checked="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.indexibecorridabloq}" />
|
|
||||||
|
|
||||||
</row>
|
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
|
<toolbar>
|
||||||
|
<hbox spacing="5px" style="padding:1px"
|
||||||
|
align="right">
|
||||||
|
<button id="btnRemoverConfRestricaoTramo"
|
||||||
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionFormaPagoController.btnApagar.tooltiptext')}" />
|
||||||
|
<button id="btnAdicionarConfRestricaoTramo"
|
||||||
|
height="20" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionFormaPagoController.btnSalvar.tooltiptext')}" />
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
<paging id="pagingConfRestricaoCanalVenta"
|
||||||
|
pageSize="20" />
|
||||||
|
<listbox id="confRestricaoTramoDataList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
multiple="false" height="210px" >
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader width="10%"
|
||||||
|
label="${c:l('lb.id')}"
|
||||||
|
sort="auto(confRestricaoTramoId)" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('confRestricaoCanalVentaController.CanalVenda.label')}"
|
||||||
|
sort="auto(tipoPuntoVenta.desctipo)" width="22%" />
|
||||||
|
<listheader width="18%"
|
||||||
|
label="${c:l('confRestricaoCanalVentaController.Origem.label')}"
|
||||||
|
sort="auto(origem.descparada)" />
|
||||||
|
<listheader width="18%"
|
||||||
|
label="${c:l('confRestricaoCanalVentaController.Destino.label')}"
|
||||||
|
sort="auto(destino.descparada)" />
|
||||||
|
<listheader width="25%"
|
||||||
|
label="${c:l('confRestricaoCanalVentaController.TempoPermitir.label')}"
|
||||||
|
sort="auto(tempoPermitir)" />
|
||||||
|
<listheader align="center"
|
||||||
|
label="${c:l('confRestricaoCanalVentaController.DiasSemana.label')}" width="35%" >
|
||||||
|
<hbox>
|
||||||
|
<label value="${c:l('confRestricaoCanalVentaController.Segunda.label')}"/>
|
||||||
|
<label value="${c:l('confRestricaoCanalVentaController.Terca.label')}"/>
|
||||||
|
<label value="${c:l('confRestricaoCanalVentaController.Quarta.label')}"/>
|
||||||
|
<label value="${c:l('confRestricaoCanalVentaController.Quinta.label')}"/>
|
||||||
|
<label value="${c:l('confRestricaoCanalVentaController.Sexta.label')}"/>
|
||||||
|
<label value="${c:l('confRestricaoCanalVentaController.Sabado.label')}"/>
|
||||||
|
<label value="${c:l('confRestricaoCanalVentaController.Domingo.label')}"/>
|
||||||
|
</hbox>
|
||||||
|
</listheader>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
|
|
||||||
<!-- ConfRestricaoExcecao -->
|
<!-- ConfRestricaoExcecao -->
|
||||||
<tabpanel>
|
<tabpanel >
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
<column width="20%" />
|
<column width="20%" />
|
||||||
<column width="80%" />
|
<column width="80%" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('confRestricaoCanalVentaController.tramoRestrito.label')}" />
|
||||||
|
<combobox id="cmbConfRestricaoTramoExcecao"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="60%" />
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('confRestricaoCanalVentaController.DataServico.label')}" />
|
value="${c:l('confRestricaoCanalVentaController.DataServico.label')}" />
|
||||||
|
@ -240,6 +289,9 @@
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
multiple="false" checkmark="false" tooltiptext="">
|
multiple="false" checkmark="false" tooltiptext="">
|
||||||
<listhead sizable="true">
|
<listhead sizable="true">
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('confRestricaoCanalVentaController.tramoRestrito.label')}"
|
||||||
|
sort="auto(confRestricaoTramo)" />
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('confRestricaoCanalVentaController.DataServico.label')}"
|
label="${c:l('confRestricaoCanalVentaController.DataServico.label')}"
|
||||||
sort="auto(fecExcecao)" />
|
sort="auto(fecExcecao)" />
|
||||||
|
@ -249,13 +301,20 @@
|
||||||
|
|
||||||
<!-- ConfRestricaoPtovta -->
|
<!-- ConfRestricaoPtovta -->
|
||||||
|
|
||||||
<tabpanel>
|
<tabpanel >
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
<column width="20%" />
|
<column width="20%" />
|
||||||
<column width="80%" />
|
<column width="80%" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('confRestricaoCanalVentaController.tramoRestrito.label')}" />
|
||||||
|
<combobox id="cmbConfRestricaoTramoPtoVta"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="60%"/>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('busquedaEstacionController.lhPuntoVenta.label')}" />
|
value="${c:l('busquedaEstacionController.lhPuntoVenta.label')}" />
|
||||||
|
@ -279,6 +338,9 @@
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
multiple="false" checkmark="false" tooltiptext="">
|
multiple="false" checkmark="false" tooltiptext="">
|
||||||
<listhead sizable="true">
|
<listhead sizable="true">
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('confRestricaoCanalVentaController.tramoRestrito.label')}"
|
||||||
|
sort="auto(confRestricaoTramo)" />
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('editarConfRestricaoCanalVentaController.comb.Ptovta')}" />
|
label="${c:l('editarConfRestricaoCanalVentaController.comb.Ptovta')}" />
|
||||||
</listhead>
|
</listhead>
|
||||||
|
|
Loading…
Reference in New Issue