git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@28120 d1611594-4594-4d17-8e1d-87c2c4800839
parent
ec256b5b90
commit
bb03c4f02f
|
@ -47,473 +47,497 @@ import org.zkoss.zul.Textbox;
|
|||
@Scope("prototype")
|
||||
public class BusquedaPricingEspecificoController extends MyGenericForwardComposer {
|
||||
|
||||
@Autowired
|
||||
private MarcaService marcaService;
|
||||
@Autowired
|
||||
private MonedaService monedaService;
|
||||
@Autowired
|
||||
private CategoriaService categoriaService;
|
||||
@Autowired
|
||||
private ClaseServicioService claseServicioService;
|
||||
@Autowired
|
||||
private ParadaService paradaService;
|
||||
@Autowired
|
||||
private TipoPuntoVentaService puntoVentaService;
|
||||
private List<Marca> lsMarca;
|
||||
private List<Moneda> lsMoneda;
|
||||
private List<Categoria> lsCategoria;
|
||||
private List<ClaseServicio> lsClaseServicio;
|
||||
private List<TipoPuntoVenta> lsPtovata;
|
||||
private MyListbox pricingList;
|
||||
private Paging pagingPricing;
|
||||
@Autowired
|
||||
private transient PagedListWrapper<PricingEspecifico> plwPricingEspecifico;
|
||||
private Combobox cmbMarca;
|
||||
private Combobox cmbMoneda;
|
||||
private Combobox cmbTipoPassageiro;
|
||||
private Combobox cmbTipoServicio;
|
||||
private Combobox cmbPtovta;
|
||||
private Combobox cmbOrigem;
|
||||
private Combobox cmbDestino;
|
||||
private Datebox fechaInicio;
|
||||
private Datebox fechaFin;
|
||||
private Textbox txtNombrePricing;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsMarca = marcaService.buscarMarcaPorEmpresa(UsuarioLogado.getUsuarioLogado().getEmpresa());
|
||||
lsMoneda = monedaService.obtenerTodos();
|
||||
lsCategoria = categoriaService.obtenerTodos();
|
||||
lsClaseServicio = claseServicioService.obtenerTodos();
|
||||
lsPtovata = puntoVentaService.obtenerTodos();
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
pricingList.setItemRenderer(new RenderPricingEspecifico());
|
||||
pricingList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
PricingEspecifico pricingEspecifico = (PricingEspecifico) pricingList.getSelected();
|
||||
verPricing(pricingEspecifico);
|
||||
}
|
||||
});
|
||||
|
||||
txtNombrePricing.focus();
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnRefresh(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
verPricing(new PricingEspecifico());
|
||||
}
|
||||
|
||||
private void refreshLista() {
|
||||
HibernateSearchObject<PricingEspecifico> pricingSearch =
|
||||
new HibernateSearchObject<PricingEspecifico>(PricingEspecifico.class, pagingPricing.getPageSize());
|
||||
pricingSearch.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
||||
Marca marca = (Marca) (cmbMarca.getSelectedItem() != null ? cmbMarca.getSelectedItem().getValue() : null);
|
||||
Moneda moneda = (Moneda) (cmbMoneda.getSelectedItem() != null ? cmbMoneda.getSelectedItem().getValue() : null);
|
||||
Categoria categoria = (Categoria) (cmbTipoPassageiro.getSelectedItem() != null ? cmbTipoPassageiro.getSelectedItem().getValue() : null);
|
||||
ClaseServicio claseServicio = (ClaseServicio) (cmbTipoServicio.getSelectedItem() != null ? cmbTipoServicio.getSelectedItem().getValue() : null);
|
||||
TipoPuntoVenta tipoPuntoVenta = (TipoPuntoVenta) (cmbPtovta.getSelectedItem() != null ? cmbPtovta.getSelectedItem().getValue() : null);
|
||||
Parada parada = (Parada) (cmbOrigem.getSelectedItem() != null ? cmbOrigem.getSelectedItem().getValue() : null);
|
||||
Parada parada1 = (Parada) (cmbDestino.getSelectedItem() != null ? cmbDestino.getSelectedItem().getValue() : null);
|
||||
|
||||
if (fechaInicio.getValue() != null) {
|
||||
pricingSearch.addFilterGreaterOrEqual("fechorinicio", fechaInicio.getValue());
|
||||
}
|
||||
|
||||
if (fechaFin.getValue() != null) {
|
||||
pricingSearch.addFilterLessOrEqual("fechorfin", fechaFin.getValue());
|
||||
}
|
||||
|
||||
if (parada != null) {
|
||||
pricingSearch.addFilterEqual("parada", parada);
|
||||
}
|
||||
|
||||
if (parada1 != null) {
|
||||
pricingSearch.addFilterEqual("parada1", parada1);
|
||||
}
|
||||
|
||||
if (tipoPuntoVenta != null) {
|
||||
pricingSearch.addFilterEqual("tipoPtovta", tipoPuntoVenta);
|
||||
}
|
||||
|
||||
if (marca != null) {
|
||||
pricingSearch.addFilterEqual("marca", marca);
|
||||
}else{
|
||||
pricingSearch.addFilterIn("marca", lsMarca);
|
||||
}
|
||||
if (moneda != null) {
|
||||
pricingSearch.addFilterEqual("moneda", moneda);
|
||||
}
|
||||
if (categoria != null) {
|
||||
pricingSearch.addFilterEqual("categoria", categoria);
|
||||
}
|
||||
if (claseServicio != null) {
|
||||
pricingSearch.addFilterEqual("claseServicio", claseServicio);
|
||||
}
|
||||
|
||||
String nomePricing = txtNombrePricing.getText().trim();
|
||||
if (!nomePricing.isEmpty()) {
|
||||
pricingSearch.addFilterILike("nombPricing", "%" + nomePricing + "%");
|
||||
}
|
||||
|
||||
pricingSearch.addSortAsc("nombPricing");
|
||||
|
||||
plwPricingEspecifico.init(pricingSearch, pricingList, pagingPricing);
|
||||
|
||||
if (pricingList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("busquedaPricingEspecificoController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void verPricing(PricingEspecifico pricingEspecifico) {
|
||||
if (pricingEspecifico == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("pricingEspecifico", pricingEspecifico);
|
||||
args.put("pricingList", pricingList);
|
||||
|
||||
openWindow("/gui/pricing/editarPricingEspecifico.zul",
|
||||
Labels.getLabel("busquedaPricingEspecificoController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the lsMarca
|
||||
*/
|
||||
public List<Marca> getLsMarca() {
|
||||
return lsMarca;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param lsMarca the lsMarca to set
|
||||
*/
|
||||
public void setLsMarca(List<Marca> lsMarca) {
|
||||
this.lsMarca = lsMarca;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the lsMoneda
|
||||
*/
|
||||
public List<Moneda> getLsMoneda() {
|
||||
return lsMoneda;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param lsMoneda the lsMoneda to set
|
||||
*/
|
||||
public void setLsMoneda(List<Moneda> lsMoneda) {
|
||||
this.lsMoneda = lsMoneda;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the pricingList
|
||||
*/
|
||||
public MyListbox getPricingList() {
|
||||
return pricingList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param pricingList the pricingList to set
|
||||
*/
|
||||
public void setPricingList(MyListbox pricingList) {
|
||||
this.pricingList = pricingList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the pagingPricing
|
||||
*/
|
||||
public Paging getPagingPricing() {
|
||||
return pagingPricing;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param pagingPricing the pagingPricing to set
|
||||
*/
|
||||
public void setPagingPricing(Paging pagingPricing) {
|
||||
this.pagingPricing = pagingPricing;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the marcaService
|
||||
*/
|
||||
public MarcaService getMarcaService() {
|
||||
return marcaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param marcaService the marcaService to set
|
||||
*/
|
||||
public void setMarcaService(MarcaService marcaService) {
|
||||
this.marcaService = marcaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the monedaService
|
||||
*/
|
||||
public MonedaService getMonedaService() {
|
||||
return monedaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param monedaService the monedaService to set
|
||||
*/
|
||||
public void setMonedaService(MonedaService monedaService) {
|
||||
this.monedaService = monedaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the plwPricingEspecifico
|
||||
*/
|
||||
public PagedListWrapper<PricingEspecifico> getPlwPricingEspecifico() {
|
||||
return plwPricingEspecifico;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param plwPricingEspecifico the plwPricingEspecifico to set
|
||||
*/
|
||||
public void setPlwPricingEspecifico(PagedListWrapper<PricingEspecifico> plwPricingEspecifico) {
|
||||
this.plwPricingEspecifico = plwPricingEspecifico;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the lsCategoria
|
||||
*/
|
||||
public List<Categoria> getLsCategoria() {
|
||||
return lsCategoria;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param lsCategoria the lsCategoria to set
|
||||
*/
|
||||
public void setLsCategoria(List<Categoria> lsCategoria) {
|
||||
this.lsCategoria = lsCategoria;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the lsClaseServicio
|
||||
*/
|
||||
public List<ClaseServicio> getLsClaseServicio() {
|
||||
return lsClaseServicio;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param lsClaseServicio the lsClaseServicio to set
|
||||
*/
|
||||
public void setLsClaseServicio(List<ClaseServicio> lsClaseServicio) {
|
||||
this.lsClaseServicio = lsClaseServicio;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the categoriaService
|
||||
*/
|
||||
public CategoriaService getCategoriaService() {
|
||||
return categoriaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param categoriaService the categoriaService to set
|
||||
*/
|
||||
public void setCategoriaService(CategoriaService categoriaService) {
|
||||
this.categoriaService = categoriaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the claseServicioService
|
||||
*/
|
||||
public ClaseServicioService getClaseServicioService() {
|
||||
return claseServicioService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param claseServicioService the claseServicioService to set
|
||||
*/
|
||||
public void setClaseServicioService(ClaseServicioService claseServicioService) {
|
||||
this.claseServicioService = claseServicioService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the cmbMarca
|
||||
*/
|
||||
public Combobox getCmbMarca() {
|
||||
return cmbMarca;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmbMarca the cmbMarca to set
|
||||
*/
|
||||
public void setCmbMarca(Combobox cmbMarca) {
|
||||
this.cmbMarca = cmbMarca;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the cmbMoneda
|
||||
*/
|
||||
public Combobox getCmbMoneda() {
|
||||
return cmbMoneda;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmbMoneda the cmbMoneda to set
|
||||
*/
|
||||
public void setCmbMoneda(Combobox cmbMoneda) {
|
||||
this.cmbMoneda = cmbMoneda;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the cmbTipoPassageiro
|
||||
*/
|
||||
public Combobox getCmbTipoPassageiro() {
|
||||
return cmbTipoPassageiro;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmbTipoPassageiro the cmbTipoPassageiro to set
|
||||
*/
|
||||
public void setCmbTipoPassageiro(Combobox cmbTipoPassageiro) {
|
||||
this.cmbTipoPassageiro = cmbTipoPassageiro;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the cmbTipoServicio
|
||||
*/
|
||||
public Combobox getCmbTipoServicio() {
|
||||
return cmbTipoServicio;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmbTipoServicio the cmbTipoServicio to set
|
||||
*/
|
||||
public void setCmbTipoServicio(Combobox cmbTipoServicio) {
|
||||
this.cmbTipoServicio = cmbTipoServicio;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the paradaService
|
||||
*/
|
||||
public ParadaService getParadaService() {
|
||||
return paradaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param paradaService the paradaService to set
|
||||
*/
|
||||
public void setParadaService(ParadaService paradaService) {
|
||||
this.paradaService = paradaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the lsPtovata
|
||||
*/
|
||||
public List<TipoPuntoVenta> getLsPtovata() {
|
||||
return lsPtovata;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param lsPtovata the lsPtovata to set
|
||||
*/
|
||||
public void setLsPtovata(List<TipoPuntoVenta> lsPtovata) {
|
||||
this.lsPtovata = lsPtovata;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the puntoVentaService
|
||||
*/
|
||||
public TipoPuntoVentaService getPuntoVentaService() {
|
||||
return puntoVentaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param puntoVentaService the puntoVentaService to set
|
||||
*/
|
||||
public void setPuntoVentaService(TipoPuntoVentaService puntoVentaService) {
|
||||
this.puntoVentaService = puntoVentaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the cmbPtovta
|
||||
*/
|
||||
public Combobox getCmbPtovta() {
|
||||
return cmbPtovta;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmbPtovta the cmbPtovta to set
|
||||
*/
|
||||
public void setCmbPtovta(Combobox cmbPtovta) {
|
||||
this.cmbPtovta = cmbPtovta;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the cmbOrigem
|
||||
*/
|
||||
public Combobox getCmbOrigem() {
|
||||
return cmbOrigem;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmbOrigem the cmbOrigem to set
|
||||
*/
|
||||
public void setCmbOrigem(Combobox cmbOrigem) {
|
||||
this.cmbOrigem = cmbOrigem;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the cmbDestino
|
||||
*/
|
||||
public Combobox getCmbDestino() {
|
||||
return cmbDestino;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmbDestino the cmbDestino to set
|
||||
*/
|
||||
public void setCmbDestino(Combobox cmbDestino) {
|
||||
this.cmbDestino = cmbDestino;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the fechaInicio
|
||||
*/
|
||||
public Datebox getFechaInicio() {
|
||||
return fechaInicio;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param fechaInicio the fechaInicio to set
|
||||
*/
|
||||
public void setFechaInicio(Datebox fechaInicio) {
|
||||
this.fechaInicio = fechaInicio;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the fechaFin
|
||||
*/
|
||||
public Datebox getFechaFin() {
|
||||
return fechaFin;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param fechaFin the fechaFin to set
|
||||
*/
|
||||
public void setFechaFin(Datebox fechaFin) {
|
||||
this.fechaFin = fechaFin;
|
||||
}
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private MarcaService marcaService;
|
||||
@Autowired
|
||||
private MonedaService monedaService;
|
||||
@Autowired
|
||||
private CategoriaService categoriaService;
|
||||
@Autowired
|
||||
private ClaseServicioService claseServicioService;
|
||||
@Autowired
|
||||
private ParadaService paradaService;
|
||||
@Autowired
|
||||
private TipoPuntoVentaService puntoVentaService;
|
||||
private List<Marca> lsMarca;
|
||||
private List<Moneda> lsMoneda;
|
||||
private List<Categoria> lsCategoria;
|
||||
private List<ClaseServicio> lsClaseServicio;
|
||||
private List<TipoPuntoVenta> lsPtovata;
|
||||
private MyListbox pricingList;
|
||||
private Paging pagingPricing;
|
||||
@Autowired
|
||||
private transient PagedListWrapper<PricingEspecifico> plwPricingEspecifico;
|
||||
private Combobox cmbMarca;
|
||||
private Combobox cmbMoneda;
|
||||
private Combobox cmbTipoPassageiro;
|
||||
private Combobox cmbTipoServicio;
|
||||
private Combobox cmbPtovta;
|
||||
private Combobox cmbOrigem;
|
||||
private Combobox cmbDestino;
|
||||
private Datebox fechaInicio;
|
||||
private Datebox fechaFin;
|
||||
private Textbox txtNombrePricing;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsMarca = marcaService.buscarMarcaPorEmpresa(UsuarioLogado.getUsuarioLogado().getEmpresa());
|
||||
lsMoneda = monedaService.obtenerTodos();
|
||||
lsCategoria = categoriaService.obtenerTodos();
|
||||
lsClaseServicio = claseServicioService.obtenerTodos();
|
||||
lsPtovata = puntoVentaService.obtenerTodos();
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
pricingList.setItemRenderer(new RenderPricingEspecifico());
|
||||
pricingList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
PricingEspecifico pricingEspecifico = (PricingEspecifico) pricingList.getSelected();
|
||||
verPricing(pricingEspecifico);
|
||||
}
|
||||
});
|
||||
|
||||
txtNombrePricing.focus();
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnRefresh(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
verPricing(new PricingEspecifico());
|
||||
}
|
||||
|
||||
private void refreshLista() {
|
||||
HibernateSearchObject<PricingEspecifico> pricingSearch =
|
||||
new HibernateSearchObject<PricingEspecifico>(PricingEspecifico.class, pagingPricing.getPageSize());
|
||||
pricingSearch.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
||||
Marca marca = (Marca) (cmbMarca.getSelectedItem() != null ? cmbMarca.getSelectedItem().getValue() : null);
|
||||
Moneda moneda = (Moneda) (cmbMoneda.getSelectedItem() != null ? cmbMoneda.getSelectedItem().getValue() : null);
|
||||
Categoria categoria = (Categoria) (cmbTipoPassageiro.getSelectedItem() != null ? cmbTipoPassageiro.getSelectedItem().getValue() : null);
|
||||
ClaseServicio claseServicio = (ClaseServicio) (cmbTipoServicio.getSelectedItem() != null ? cmbTipoServicio.getSelectedItem().getValue() : null);
|
||||
TipoPuntoVenta tipoPuntoVenta = (TipoPuntoVenta) (cmbPtovta.getSelectedItem() != null ? cmbPtovta.getSelectedItem().getValue() : null);
|
||||
Parada parada = (Parada) (cmbOrigem.getSelectedItem() != null ? cmbOrigem.getSelectedItem().getValue() : null);
|
||||
Parada parada1 = (Parada) (cmbDestino.getSelectedItem() != null ? cmbDestino.getSelectedItem().getValue() : null);
|
||||
|
||||
if (fechaInicio.getValue() != null) {
|
||||
pricingSearch.addFilterGreaterOrEqual("fechorinicio", fechaInicio.getValue());
|
||||
}
|
||||
|
||||
if (fechaFin.getValue() != null) {
|
||||
pricingSearch.addFilterLessOrEqual("fechorfin", fechaFin.getValue());
|
||||
}
|
||||
|
||||
if (parada != null) {
|
||||
pricingSearch.addFilterEqual("parada", parada);
|
||||
}
|
||||
|
||||
if (parada1 != null) {
|
||||
pricingSearch.addFilterEqual("parada1", parada1);
|
||||
}
|
||||
|
||||
if (tipoPuntoVenta != null) {
|
||||
pricingSearch.addFilterEqual("tipoPtovta", tipoPuntoVenta);
|
||||
}
|
||||
|
||||
if (marca != null) {
|
||||
pricingSearch.addFilterEqual("marca", marca);
|
||||
} else {
|
||||
pricingSearch.addFilterIn("marca", lsMarca);
|
||||
}
|
||||
if (moneda != null) {
|
||||
pricingSearch.addFilterEqual("moneda", moneda);
|
||||
}
|
||||
if (categoria != null) {
|
||||
pricingSearch.addFilterEqual("categoria", categoria);
|
||||
}
|
||||
if (claseServicio != null) {
|
||||
pricingSearch.addFilterEqual("claseServicio", claseServicio);
|
||||
}
|
||||
|
||||
String nomePricing = txtNombrePricing.getText().trim();
|
||||
if (!nomePricing.isEmpty()) {
|
||||
pricingSearch.addFilterILike("nombPricing", "%" + nomePricing + "%");
|
||||
}
|
||||
|
||||
pricingSearch.addSortAsc("nombPricing");
|
||||
|
||||
plwPricingEspecifico.init(pricingSearch, pricingList, pagingPricing);
|
||||
|
||||
if (pricingList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("busquedaPricingEspecificoController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void verPricing(PricingEspecifico pricingEspecifico) {
|
||||
if (pricingEspecifico == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("pricingEspecifico", pricingEspecifico);
|
||||
args.put("pricingList", pricingList);
|
||||
|
||||
openWindow("/gui/pricing/editarPricingEspecifico.zul",
|
||||
Labels.getLabel("busquedaPricingEspecificoController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the lsMarca
|
||||
*/
|
||||
public List<Marca> getLsMarca() {
|
||||
return lsMarca;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param lsMarca
|
||||
* the lsMarca to set
|
||||
*/
|
||||
public void setLsMarca(List<Marca> lsMarca) {
|
||||
this.lsMarca = lsMarca;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the lsMoneda
|
||||
*/
|
||||
public List<Moneda> getLsMoneda() {
|
||||
return lsMoneda;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param lsMoneda
|
||||
* the lsMoneda to set
|
||||
*/
|
||||
public void setLsMoneda(List<Moneda> lsMoneda) {
|
||||
this.lsMoneda = lsMoneda;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the pricingList
|
||||
*/
|
||||
public MyListbox getPricingList() {
|
||||
return pricingList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param pricingList
|
||||
* the pricingList to set
|
||||
*/
|
||||
public void setPricingList(MyListbox pricingList) {
|
||||
this.pricingList = pricingList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the pagingPricing
|
||||
*/
|
||||
public Paging getPagingPricing() {
|
||||
return pagingPricing;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param pagingPricing
|
||||
* the pagingPricing to set
|
||||
*/
|
||||
public void setPagingPricing(Paging pagingPricing) {
|
||||
this.pagingPricing = pagingPricing;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the marcaService
|
||||
*/
|
||||
public MarcaService getMarcaService() {
|
||||
return marcaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param marcaService
|
||||
* the marcaService to set
|
||||
*/
|
||||
public void setMarcaService(MarcaService marcaService) {
|
||||
this.marcaService = marcaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the monedaService
|
||||
*/
|
||||
public MonedaService getMonedaService() {
|
||||
return monedaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param monedaService
|
||||
* the monedaService to set
|
||||
*/
|
||||
public void setMonedaService(MonedaService monedaService) {
|
||||
this.monedaService = monedaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the plwPricingEspecifico
|
||||
*/
|
||||
public PagedListWrapper<PricingEspecifico> getPlwPricingEspecifico() {
|
||||
return plwPricingEspecifico;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param plwPricingEspecifico
|
||||
* the plwPricingEspecifico to set
|
||||
*/
|
||||
public void setPlwPricingEspecifico(PagedListWrapper<PricingEspecifico> plwPricingEspecifico) {
|
||||
this.plwPricingEspecifico = plwPricingEspecifico;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the lsCategoria
|
||||
*/
|
||||
public List<Categoria> getLsCategoria() {
|
||||
return lsCategoria;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param lsCategoria
|
||||
* the lsCategoria to set
|
||||
*/
|
||||
public void setLsCategoria(List<Categoria> lsCategoria) {
|
||||
this.lsCategoria = lsCategoria;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the lsClaseServicio
|
||||
*/
|
||||
public List<ClaseServicio> getLsClaseServicio() {
|
||||
return lsClaseServicio;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param lsClaseServicio
|
||||
* the lsClaseServicio to set
|
||||
*/
|
||||
public void setLsClaseServicio(List<ClaseServicio> lsClaseServicio) {
|
||||
this.lsClaseServicio = lsClaseServicio;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the categoriaService
|
||||
*/
|
||||
public CategoriaService getCategoriaService() {
|
||||
return categoriaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param categoriaService
|
||||
* the categoriaService to set
|
||||
*/
|
||||
public void setCategoriaService(CategoriaService categoriaService) {
|
||||
this.categoriaService = categoriaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the claseServicioService
|
||||
*/
|
||||
public ClaseServicioService getClaseServicioService() {
|
||||
return claseServicioService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param claseServicioService
|
||||
* the claseServicioService to set
|
||||
*/
|
||||
public void setClaseServicioService(ClaseServicioService claseServicioService) {
|
||||
this.claseServicioService = claseServicioService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the cmbMarca
|
||||
*/
|
||||
public Combobox getCmbMarca() {
|
||||
return cmbMarca;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmbMarca
|
||||
* the cmbMarca to set
|
||||
*/
|
||||
public void setCmbMarca(Combobox cmbMarca) {
|
||||
this.cmbMarca = cmbMarca;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the cmbMoneda
|
||||
*/
|
||||
public Combobox getCmbMoneda() {
|
||||
return cmbMoneda;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmbMoneda
|
||||
* the cmbMoneda to set
|
||||
*/
|
||||
public void setCmbMoneda(Combobox cmbMoneda) {
|
||||
this.cmbMoneda = cmbMoneda;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the cmbTipoPassageiro
|
||||
*/
|
||||
public Combobox getCmbTipoPassageiro() {
|
||||
return cmbTipoPassageiro;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmbTipoPassageiro
|
||||
* the cmbTipoPassageiro to set
|
||||
*/
|
||||
public void setCmbTipoPassageiro(Combobox cmbTipoPassageiro) {
|
||||
this.cmbTipoPassageiro = cmbTipoPassageiro;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the cmbTipoServicio
|
||||
*/
|
||||
public Combobox getCmbTipoServicio() {
|
||||
return cmbTipoServicio;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmbTipoServicio
|
||||
* the cmbTipoServicio to set
|
||||
*/
|
||||
public void setCmbTipoServicio(Combobox cmbTipoServicio) {
|
||||
this.cmbTipoServicio = cmbTipoServicio;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the paradaService
|
||||
*/
|
||||
public ParadaService getParadaService() {
|
||||
return paradaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param paradaService
|
||||
* the paradaService to set
|
||||
*/
|
||||
public void setParadaService(ParadaService paradaService) {
|
||||
this.paradaService = paradaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the lsPtovata
|
||||
*/
|
||||
public List<TipoPuntoVenta> getLsPtovata() {
|
||||
return lsPtovata;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param lsPtovata
|
||||
* the lsPtovata to set
|
||||
*/
|
||||
public void setLsPtovata(List<TipoPuntoVenta> lsPtovata) {
|
||||
this.lsPtovata = lsPtovata;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the puntoVentaService
|
||||
*/
|
||||
public TipoPuntoVentaService getPuntoVentaService() {
|
||||
return puntoVentaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param puntoVentaService
|
||||
* the puntoVentaService to set
|
||||
*/
|
||||
public void setPuntoVentaService(TipoPuntoVentaService puntoVentaService) {
|
||||
this.puntoVentaService = puntoVentaService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the cmbPtovta
|
||||
*/
|
||||
public Combobox getCmbPtovta() {
|
||||
return cmbPtovta;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmbPtovta
|
||||
* the cmbPtovta to set
|
||||
*/
|
||||
public void setCmbPtovta(Combobox cmbPtovta) {
|
||||
this.cmbPtovta = cmbPtovta;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the cmbOrigem
|
||||
*/
|
||||
public Combobox getCmbOrigem() {
|
||||
return cmbOrigem;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmbOrigem
|
||||
* the cmbOrigem to set
|
||||
*/
|
||||
public void setCmbOrigem(Combobox cmbOrigem) {
|
||||
this.cmbOrigem = cmbOrigem;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the cmbDestino
|
||||
*/
|
||||
public Combobox getCmbDestino() {
|
||||
return cmbDestino;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmbDestino
|
||||
* the cmbDestino to set
|
||||
*/
|
||||
public void setCmbDestino(Combobox cmbDestino) {
|
||||
this.cmbDestino = cmbDestino;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the fechaInicio
|
||||
*/
|
||||
public Datebox getFechaInicio() {
|
||||
return fechaInicio;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param fechaInicio
|
||||
* the fechaInicio to set
|
||||
*/
|
||||
public void setFechaInicio(Datebox fechaInicio) {
|
||||
this.fechaInicio = fechaInicio;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the fechaFin
|
||||
*/
|
||||
public Datebox getFechaFin() {
|
||||
return fechaFin;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param fechaFin
|
||||
* the fechaFin to set
|
||||
*/
|
||||
public void setFechaFin(Datebox fechaFin) {
|
||||
this.fechaFin = fechaFin;
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -17,32 +17,41 @@ import org.zkoss.zul.Listcell;
|
|||
*/
|
||||
public class RenderPricingEspecifico implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
PricingEspecifico pe = (PricingEspecifico) o;
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
PricingEspecifico pe = (PricingEspecifico) o;
|
||||
|
||||
Listcell lc = new Listcell(pe.getPricingespecificoId().toString());
|
||||
lc.setParent(lstm);
|
||||
Listcell lc = new Listcell(pe.getPricingespecificoId().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(pe.getNombPricing() == null ? "" : pe.getNombPricing());
|
||||
lc.setParent(lstm);
|
||||
lc = new Listcell(pe.getNombPricing() == null ? "" : pe.getNombPricing());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(pe.getMarca().getDescmarca());
|
||||
lc.setParent(lstm);
|
||||
lc = new Listcell(pe.getMarca().getDescmarca());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(pe.getMoneda().getDescmoneda());
|
||||
lc.setParent(lstm);
|
||||
lc = new Listcell(pe.getMoneda().getDescmoneda());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(pe.getCategoria().getDesccategoria());
|
||||
lc.setParent(lstm);
|
||||
lc = new Listcell(pe.getCategoria().getDesccategoria());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(pe.getClaseServicio().getDescclase());
|
||||
lc.setParent(lstm);
|
||||
lc = new Listcell(pe.getClaseServicio().getDescclase());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(DateUtil.getStringDate(pe.getFechorinicio(), "dd/MM/yyyy HH:mm"));
|
||||
lc.setParent(lstm);
|
||||
lc = new Listcell(DateUtil.getStringDate(pe.getFechorinicio(), "dd/MM/yyyy HH:mm"));
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(DateUtil.getStringDate(pe.getFechorfin(), "dd/MM/yyyy HH:mm"));
|
||||
lc.setParent(lstm);
|
||||
lc = new Listcell(DateUtil.getStringDate(pe.getFechorfin(), "dd/MM/yyyy HH:mm"));
|
||||
lc.setParent(lstm);
|
||||
|
||||
}
|
||||
Integer corridaId = pe.getCorridaId();
|
||||
if (corridaId != null) {
|
||||
lc = new Listcell(corridaId.toString());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", pe);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1746,6 +1746,9 @@ busquedaPricingController.btnRefresh.tooltiptext = Atualizar
|
|||
busquedaPricingController.btnCerrar.tooltiptext = Fechar
|
||||
|
||||
#Pricing - busquedaPricingController
|
||||
editarPricingController.lhCorridaId.labelLH = Serviço
|
||||
editarPricingController.MSG.corridaId = O serviço <1> não existe.
|
||||
editarPricingController.MSG.corridaIdFinalNaoExiste = O serviço <1> nâo existe com esses dados de origem, destino, marca e classe de serviço. Deseja salva-lo assim mesmo?
|
||||
editarPricingController.MSG.porcentajeCero = Quando se informa o pricing por poltrona ou ocupação, a porcentagem principal tem que ser zero
|
||||
editarPricingController.window.title = Pricing
|
||||
editarPricingController.windowEspecifico.title = Pricing Específico
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaPricingEspecifico" border="normal"
|
||||
apply="${busquedaPricingEspecificoController}"
|
||||
height="450px" width="850px" contentStyle="overflow:auto"
|
||||
height="450px" width="950px" contentStyle="overflow:auto"
|
||||
title="${c:l('busquedaPricingEspecificoController.window.title')}">
|
||||
|
||||
<toolbar>
|
||||
|
@ -101,6 +101,9 @@
|
|||
label="${c:l('editarPricingController.lhFechaHoraInicioLH.label')}"/>
|
||||
<listheader image="/gui/img/create_doc.gif" sort="auto(claseServicio.descclase)"
|
||||
label="${c:l('editarPricingController.lhFechaHoraFin.labelLH')}"/>
|
||||
|
||||
<listheader image="/gui/img/create_doc.gif" sort="auto(corridaId)"
|
||||
label="${c:l('editarPricingController.lhCorridaId.labelLH')}"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
|
|
|
@ -6,106 +6,143 @@
|
|||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
|
||||
<window id="winEditarPricingEspecifico" border="normal"
|
||||
apply="${editarPricingEspecificoController}"
|
||||
height="440px" width="600px" contentStyle="overflow:auto"
|
||||
title="${c:l('editarPricingController.window.title')}">
|
||||
<window id="winEditarPricingEspecifico" border="normal"
|
||||
apply="${editarPricingEspecificoController}" width="600px"
|
||||
contentStyle="overflow:auto"
|
||||
title="${c:l('editarPricingController.window.title')}">
|
||||
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagar" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}"/>
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnSalvar.tooltiptext')}"/>
|
||||
<button id="btnFechar" onClick="winEditarPricingEspecifico.detach()" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnFechar.tooltiptext')}"/>
|
||||
</hbox>
|
||||
</toolbar>
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagar" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnSalvar.tooltiptext')}" />
|
||||
<button id="btnFechar"
|
||||
onClick="winEditarPricingEspecifico.detach()" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnFechar.tooltiptext')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid>
|
||||
<columns>
|
||||
<column width="40%" />
|
||||
<column width="60%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('editarPricingController.nombrePricingEsp.label')}"/>
|
||||
<textbox id="nombrePricing" constraint="no empty" maxlength="20"
|
||||
value="@{winEditarPricingEspecifico$composer.pricingEspecifico.nombPricing}" width="50%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarPricingController.lhFechaHoraInicio.label')}"/>
|
||||
<datebox width="200px" id="fechaInicio" lenient="false"
|
||||
value="@{winEditarPricingEspecifico$composer.pricingEspecifico.fechorinicio}" format="dd/MM/yyyy HH:mm" mold="rounded"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarPricingController.lhFechaHoraFin.label')}"/>
|
||||
<datebox width="200px" id="fechaFin" lenient="false"
|
||||
value="@{winEditarPricingEspecifico$composer.pricingEspecifico.fechorfin}" format="dd/MM/yyyy HH:mm" mold="rounded"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarPricingController.ptovta.value')}"/>
|
||||
<combobox id="cmbPtovta" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarPricingEspecifico$composer.lsPtovata}"
|
||||
selectedItem="@{winEditarPricingEspecifico$composer.pricingEspecifico.tipoPtovta}"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarPricingController.windowCategoria.title')}"/>
|
||||
<combobox id="cmbCategoria" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarPricingEspecifico$composer.lsCategoria}"
|
||||
selectedItem="@{winEditarPricingEspecifico$composer.pricingEspecifico.categoria}"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarPricingController.windowTipoServicio.title')}"/>
|
||||
<combobox id="cmbServicio" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarPricingEspecifico$composer.lsclaseServicio}"
|
||||
selectedItem="@{winEditarPricingEspecifico$composer.pricingEspecifico.claseServicio}"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarPricingController.marca.value')}"/>
|
||||
<combobox id="cmbMarca" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarPricingEspecifico$composer.lsMarca}"
|
||||
selectedItem="@{winEditarPricingEspecifico$composer.pricingEspecifico.marca}"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarPricingController.origem.label')}"/>
|
||||
<combobox id="cmbOrigem" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
selectedItem="@{winEditarPricingEspecifico$composer.pricingEspecifico.parada}"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarPricingController.destino.label')}"/>
|
||||
<combobox id="cmbDestino" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
selectedItem="@{winEditarPricingEspecifico$composer.pricingEspecifico.parada1}"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarPricingController.impMon.value')}"/>
|
||||
<combobox id="cmbMoneda" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarPricingEspecifico$composer.lsMoneda}"
|
||||
selectedItem="@{winEditarPricingEspecifico$composer.pricingEspecifico.moneda}"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarPricingController.tarifia.label')}"/>
|
||||
<textbox id="tarifa" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2" constraint="no empty"
|
||||
value="@{winEditarPricingEspecifico$composer.pricingEspecifico.tarifa,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarPricingController.tarifiaredondoabierto.label')}"/>
|
||||
<textbox id="tarifaAbierto" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2" constraint="no empty"
|
||||
value="@{winEditarPricingEspecifico$composer.pricingEspecifico.tarifaredabierto,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</window>
|
||||
<grid>
|
||||
<columns>
|
||||
<column width="40%" />
|
||||
<column width="60%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPricingController.nombrePricingEsp.label')}" />
|
||||
<textbox id="nombrePricing" constraint="no empty"
|
||||
maxlength="20"
|
||||
value="@{winEditarPricingEspecifico$composer.pricingEspecifico.nombPricing}"
|
||||
width="50%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPricingController.lhFechaHoraInicio.label')}" />
|
||||
<datebox width="200px" id="fechaInicio"
|
||||
lenient="false"
|
||||
value="@{winEditarPricingEspecifico$composer.pricingEspecifico.fechorinicio}"
|
||||
format="dd/MM/yyyy HH:mm" mold="rounded" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPricingController.lhFechaHoraFin.label')}" />
|
||||
<datebox width="200px" id="fechaFin" lenient="false"
|
||||
value="@{winEditarPricingEspecifico$composer.pricingEspecifico.fechorfin}"
|
||||
format="dd/MM/yyyy HH:mm" mold="rounded" />
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPricingController.lhCorridaId.labelLH')}" />
|
||||
<intbox id="txtCorridaId" mold="rounded"
|
||||
value="@{winEditarPricingEspecifico$composer.pricingEspecifico.corridaId}" />
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPricingController.ptovta.value')}" />
|
||||
<combobox id="cmbPtovta"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarPricingEspecifico$composer.lsPtovata}"
|
||||
selectedItem="@{winEditarPricingEspecifico$composer.pricingEspecifico.tipoPtovta}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPricingController.windowCategoria.title')}" />
|
||||
<combobox id="cmbCategoria"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarPricingEspecifico$composer.lsCategoria}"
|
||||
selectedItem="@{winEditarPricingEspecifico$composer.pricingEspecifico.categoria}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPricingController.windowTipoServicio.title')}" />
|
||||
<combobox id="cmbServicio"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarPricingEspecifico$composer.lsclaseServicio}"
|
||||
selectedItem="@{winEditarPricingEspecifico$composer.pricingEspecifico.claseServicio}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPricingController.marca.value')}" />
|
||||
<combobox id="cmbMarca"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarPricingEspecifico$composer.lsMarca}"
|
||||
selectedItem="@{winEditarPricingEspecifico$composer.pricingEspecifico.marca}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPricingController.origem.label')}" />
|
||||
<combobox id="cmbOrigem"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
selectedItem="@{winEditarPricingEspecifico$composer.pricingEspecifico.parada}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPricingController.destino.label')}" />
|
||||
<combobox id="cmbDestino"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
selectedItem="@{winEditarPricingEspecifico$composer.pricingEspecifico.parada1}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPricingController.impMon.value')}" />
|
||||
<combobox id="cmbMoneda"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarPricingEspecifico$composer.lsMoneda}"
|
||||
selectedItem="@{winEditarPricingEspecifico$composer.pricingEspecifico.moneda}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPricingController.tarifia.label')}" />
|
||||
<textbox id="tarifa"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
precision="7" scale="2" constraint="no empty"
|
||||
value="@{winEditarPricingEspecifico$composer.pricingEspecifico.tarifa,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPricingController.tarifiaredondoabierto.label')}" />
|
||||
<textbox id="tarifaAbierto"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
precision="7" scale="2" constraint="no empty"
|
||||
value="@{winEditarPricingEspecifico$composer.pricingEspecifico.tarifaredabierto,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</window>
|
||||
|
||||
</zk>
|
||||
|
|
Loading…
Reference in New Issue