fixed bug #0008306 - Criado o CRUD do MotivoCancelVendaPacote

fixed bug #0008313 - Adicionada a coluna percentual de devolução. percmulta

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@63146 d1611594-4594-4d17-8e1d-87c2c4800839
master
bruno.neves 2016-12-02 18:03:42 +00:00
parent f3b7481cbf
commit 00daaf4869
11 changed files with 677 additions and 2 deletions

View File

@ -0,0 +1,161 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.zkoss.util.resource.Labels;
import org.zkoss.zhtml.Messagebox;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zul.Combobox;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Paging;
import org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.entidad.MotivoCancelVendaPacote;
import com.rjconsultores.ventaboletos.web.gui.controladores.tarifas.EnumTipoCancelVendaPacote;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderMotivoCancelVendaPacote;
/**
*
* @author Bruno
*/
@Controller("busquedaMotivoCancelVendaPacoteController")
@Scope("prototype")
public class BusquedaMotivoCancelVendaPacoteController extends MyGenericForwardComposer {
@Autowired
private transient PagedListWrapper<MotivoCancelVendaPacote> plwMotivoCancelVendaPacote;
private MyListbox motivoCancelVendaPacoteList;
private Paging pagingMotivoCancelVendaPacote;
private Textbox txtNombre;
private Combobox cmbTipoMotivo;
private List<String> lsMotivoCancelamento;
public Combobox getCmbTipoMotivo() {
return cmbTipoMotivo;
}
public void setCmbTipoMotivo(Combobox cmbTipoMotivo) {
this.cmbTipoMotivo = cmbTipoMotivo;
}
public Paging getPagingMotivoCancelVendaPacote() {
return pagingMotivoCancelVendaPacote;
}
public void setPagingMotivoCancelVendaPacote(Paging pagingMotivoCancelVendaPacote) {
this.pagingMotivoCancelVendaPacote = pagingMotivoCancelVendaPacote;
}
public MyListbox getMotivoCancelVendaPacoteList() {
return motivoCancelVendaPacoteList;
}
public void setMotivoCancelVendaPacoteList(MyListbox motivoCancelVendaPacoteList) {
this.motivoCancelVendaPacoteList = motivoCancelVendaPacoteList;
}
public PagedListWrapper<MotivoCancelVendaPacote> getPlwMotivoCancelVendaPacote() {
return plwMotivoCancelVendaPacote;
}
public void setPlwMotivoCancelVendaPacote(PagedListWrapper<MotivoCancelVendaPacote> plwMotivoCancelVendaPacote) {
this.plwMotivoCancelVendaPacote = plwMotivoCancelVendaPacote;
}
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
refreshLista();
}
public void onClick$btnRefresh(Event ev) {
refreshLista();
}
public void onClick$btnNovo(Event ev) {
verPeriodo(new MotivoCancelVendaPacote());
}
@Override
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
motivoCancelVendaPacoteList.setItemRenderer(new RenderMotivoCancelVendaPacote());
setLsMotivoCancelamento(EnumTipoCancelVendaPacote.obterBundleValues());
lsMotivoCancelamento.add(0, " ");
motivoCancelVendaPacoteList.addEventListener("onDoubleClick", new EventListener() {
@Override
public void onEvent(Event event) throws Exception {
MotivoCancelVendaPacote mc = (MotivoCancelVendaPacote) motivoCancelVendaPacoteList.getSelected();
verPeriodo(mc);
}
});
refreshLista();
txtNombre.focus();
}
private void verPeriodo(MotivoCancelVendaPacote mc) {
if (mc == null) {
return;
}
Map args = new HashMap();
args.put("motivoCancelVendaPacote", mc);
args.put("motivoCancelVendaPacoteList", motivoCancelVendaPacoteList);
openWindow("/gui/configuraciones_comerciales/editarMotivoCancelVendaPacote.zul",
Labels.getLabel("editarMotivoCancelVendaPacoteController.window.title"), args, MODAL);
}
private void refreshLista() {
HibernateSearchObject<MotivoCancelVendaPacote> claseServicioBusqueda =
new HibernateSearchObject<MotivoCancelVendaPacote>(MotivoCancelVendaPacote.class, pagingMotivoCancelVendaPacote.getPageSize());
Comboitem ci = cmbTipoMotivo.getSelectedItem();
String tipoMotivo = null;
if (ci != null && ci.getValue() != " ") {
tipoMotivo = (String) ci.getValue();
}
claseServicioBusqueda.addFilterLike("descmotivocancel", "%" + txtNombre.getText().trim().concat("%"));
claseServicioBusqueda.addFilterEqual("tipomotivocancel", tipoMotivo);
claseServicioBusqueda.addFilterEqual("activo", true);
claseServicioBusqueda.addSortAsc("descmotivocancel");
plwMotivoCancelVendaPacote.init(claseServicioBusqueda, motivoCancelVendaPacoteList, pagingMotivoCancelVendaPacote);
if (motivoCancelVendaPacoteList.getData().length == 0) {
try {
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
Labels.getLabel("busquedaMotivoCancelVendaPacoteController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
} catch (InterruptedException ex) {
}
}
}
public List<String> getLsMotivoCancelamento() {
return lsMotivoCancelamento;
}
public void setLsMotivoCancelamento(List<String> lsMotivoCancelamento) {
this.lsMotivoCancelamento = lsMotivoCancelamento;
}
}

View File

@ -0,0 +1,211 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
import java.util.Calendar;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.zkoss.util.resource.Labels;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Button;
import org.zkoss.zul.Combobox;
import org.zkoss.zul.Messagebox;
import org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.entidad.MotivoCancelVendaPacote;
import com.rjconsultores.ventaboletos.service.MotivoCancelVendaPacoteService;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.gui.controladores.tarifas.EnumTipoCancelVendaPacote;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal;
/**
*
* @author Bruno
*/
@Controller("editarMotivoCancelVendaPacoteController")
@Scope("prototype")
public class EditarMotivoCancelVendaPacoteController extends MyGenericForwardComposer {
private static final long serialVersionUID = 1L;
@Autowired
private MotivoCancelVendaPacoteService motivoCancelVendaPacoteService;
private MotivoCancelVendaPacote motivoCancelVendaPacote;
private MyListbox motivoCancelVendaPacoteList;
private static Logger log = Logger.getLogger(EditarMotivoCancelVendaPacoteController.class);
private Textbox txtNome;
private Button btnApagar;
private Combobox cmbTipoMotivo;
private MyTextboxDecimal decPorcMulta;
private List<String> lsMotivoCancelamento;
public Button getBtnApagar() {
return btnApagar;
}
public void setBtnApagar(Button btnApagar) {
this.btnApagar = btnApagar;
}
public Textbox getTxtNome() {
return txtNome;
}
public void setTxtNome(Textbox txtNome) {
this.txtNome = txtNome;
}
public Combobox getCmbTipoMotivo() {
return cmbTipoMotivo;
}
public void setCmbTipoMotivo(Combobox cmbTipoMotivo) {
this.cmbTipoMotivo = cmbTipoMotivo;
}
public MyTextboxDecimal getDecPorcMulta() {
return decPorcMulta;
}
public void setDecPorcMulta(MyTextboxDecimal decPorcMulta) {
this.decPorcMulta = decPorcMulta;
}
@Override
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
motivoCancelVendaPacote = (MotivoCancelVendaPacote) Executions.getCurrent().getArg().get("motivoCancelVendaPacote");
motivoCancelVendaPacoteList = (MyListbox) Executions.getCurrent().getArg().get("motivoCancelVendaPacoteList");
setLsMotivoCancelamento(EnumTipoCancelVendaPacote.obterBundleValues());
txtNome.focus();
}
public void onClick$btnSalvar(Event ev) throws InterruptedException {
txtNome.getValue();
cmbTipoMotivo.getValue();
decPorcMulta.getValueDecimal();
try {
motivoCancelVendaPacote.setActivo(true);
motivoCancelVendaPacote.setFecmodif(Calendar.getInstance().getTime());
motivoCancelVendaPacote.setPorcmulta(decPorcMulta.getValueDecimal());
motivoCancelVendaPacote.setTipomotivocancel(EnumTipoCancelVendaPacote.obterEnumPorDescricao(cmbTipoMotivo.getValue()).getDescricao());
motivoCancelVendaPacote.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
if (motivoCancelVendaPacote.getTipomotivocancel() == null) {
Messagebox.show(
Labels.getLabel("editarMotivoCancelVendaPacoteController.MSG.tipo"),
Labels.getLabel("editarMotivoCancelVendaPacoteController.window.title"),
Messagebox.OK, Messagebox.EXCLAMATION);
} else {
if (motivoCancelVendaPacote.getMotivocancelvendapacoteId() == null) {
List<MotivoCancelVendaPacote> lsMotivoCancelVendaPacote =
motivoCancelVendaPacoteService.buscar(motivoCancelVendaPacote.getDescmotivocancel(),
motivoCancelVendaPacote.getTipomotivocancel());
if (lsMotivoCancelVendaPacote.isEmpty()) {
motivoCancelVendaPacoteService.suscribir(motivoCancelVendaPacote);
motivoCancelVendaPacoteList.addItem(motivoCancelVendaPacote);
Messagebox.show(
Labels.getLabel("editarMotivoCancelVendaPacoteController.MSG.suscribirOK"),
Labels.getLabel("editarMotivoCancelVendaPacoteController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
} else {
Messagebox.show(
Labels.getLabel("MSG.Registro.Existe"),
Labels.getLabel("editarMotivoCancelVendaPacoteController.window.title"),
Messagebox.OK, Messagebox.EXCLAMATION);
}
} else {
motivoCancelVendaPacoteService.actualizacion(motivoCancelVendaPacote);
motivoCancelVendaPacoteList.updateItem(motivoCancelVendaPacote);
Messagebox.show(
Labels.getLabel("editarMotivoCancelVendaPacoteController.MSG.suscribirOK"),
Labels.getLabel("editarMotivoCancelaVendaPacoteController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
}
closeWindow();
}
} catch (Exception ex) {
log.error("editarMotivoCancelVendaPacoteController: " + ex);
Messagebox.show(
Labels.getLabel("MSG.Error"),
Labels.getLabel("editarMotivoCancelVendaPacoteController.window.title"),
Messagebox.OK, Messagebox.ERROR);
}
}
public void onClick$btnApagar(Event ev) {
try {
int resp = Messagebox.show(
Labels.getLabel("editarMotivoCancelVendaPacoteController.MSG.borrarPergunta"),
Labels.getLabel("editarMotivoCancelVendaPacoteController.window.title"),
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
if (resp == Messagebox.YES) {
motivoCancelVendaPacoteService.borrar(motivoCancelVendaPacote);
Messagebox.show(
Labels.getLabel("editarMotivoCancelVendaPacoteController.MSG.borrarOK"),
Labels.getLabel("editarMotivoCancelVendaPacoteController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
motivoCancelVendaPacoteList.removeItem(motivoCancelVendaPacote);
closeWindow();
}
} catch (Exception ex) {
log.error(ex);
}
}
public MotivoCancelVendaPacote getMotivoCancelVendaPacote() {
return motivoCancelVendaPacote;
}
public void setMotivoCancelVendaPacote(MotivoCancelVendaPacote motivoCancelVendaPacote) {
this.motivoCancelVendaPacote = motivoCancelVendaPacote;
}
public MyListbox getMotivoCancelVendaPacoteList() {
return motivoCancelVendaPacoteList;
}
public void setMotivoCancelVendaPacoteList(MyListbox motivoCancelVendaPacoteList) {
this.motivoCancelVendaPacoteList = motivoCancelVendaPacoteList;
}
public MotivoCancelVendaPacoteService getMotivoCancelVendaPacoteService() {
return motivoCancelVendaPacoteService;
}
public void setMotivoCancelVendaPacoteService(MotivoCancelVendaPacoteService motivoCancelVendaPacoteService) {
this.motivoCancelVendaPacoteService = motivoCancelVendaPacoteService;
}
public List<String> getLsMotivoCancelamento() {
return lsMotivoCancelamento;
}
public void setLsMotivoCancelamento(List<String> lsMotivoCancelamento) {
this.lsMotivoCancelamento = lsMotivoCancelamento;
}
}

View File

@ -0,0 +1,51 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.tarifas;
import java.util.ArrayList;
import java.util.List;
import org.zkoss.util.resource.Labels;
public enum EnumTipoCancelVendaPacote {
CANCELAMENTO_VENDA(Labels.getLabel("busquedaMotivoCancelVendaPacoteController.lhCancelacionVenta.label")),
NOTA_CREDITO(Labels.getLabel("busquedaMotivoCancelVendaPacoteController.lhNotaCredito.label")),
REEMBOLSO(Labels.getLabel("busquedaMotivoCancelVendaPacoteController.lhReembolso .label"));
private String descricao;
private EnumTipoCancelVendaPacote(String descricao) {
this.descricao = descricao;
}
public String getDescricao() {
return descricao;
}
public void setDescricao(String descricao) {
this.descricao = descricao;
}
public static List<String> obterBundleValues(){
List<String> lst = new ArrayList<String>();
lst.add(EnumTipoCancelVendaPacote.CANCELAMENTO_VENDA.getDescricao());
lst.add(EnumTipoCancelVendaPacote.NOTA_CREDITO.getDescricao());
lst.add(EnumTipoCancelVendaPacote.REEMBOLSO.getDescricao());
return lst;
}
public static EnumTipoCancelVendaPacote obterEnumPorDescricao(String descricao){
if(descricao.equals(EnumTipoCancelVendaPacote.CANCELAMENTO_VENDA.descricao)){
return EnumTipoCancelVendaPacote.CANCELAMENTO_VENDA;
}else if(descricao.equals(EnumTipoCancelVendaPacote.NOTA_CREDITO.descricao)){
return EnumTipoCancelVendaPacote.NOTA_CREDITO;
}else if(descricao.equals(EnumTipoCancelVendaPacote.REEMBOLSO.descricao)){
return EnumTipoCancelVendaPacote.REEMBOLSO;
}
return null;
}
}

View File

@ -0,0 +1,26 @@
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales;
import org.zkoss.util.resource.Labels;
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
public class ItemMenuMotivoCancelVendaPacote extends DefaultItemMenuSistema {
public ItemMenuMotivoCancelVendaPacote() {
super("indexController.mniMotivoCancelVendaPacote.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.CATALOGO.MENU.MOTIVOSDELACANCELVENDAPACOTE";
}
@Override
public void ejecutar() {
PantallaUtileria.openWindow("/gui/configuraciones_comerciales/busquedaMotivoCancelVendaPacote.zul",
Labels.getLabel("busquedaMotivoCancelVendaPacoteController.window.title"), getArgs(), desktop);
}
}

View File

@ -49,6 +49,7 @@ confComerciales.configuracionGeneral=com.rjconsultores.ventaboletos.web.utileria
confComerciales.configuracionFeriado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuConfiguracionFeriado confComerciales.configuracionFeriado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuConfiguracionFeriado
confComerciales.tarjetacredito=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuTarjetaCredito confComerciales.tarjetacredito=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuTarjetaCredito
confComerciales.fechamentoParamgeral=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuFechamentoParamgeral confComerciales.fechamentoParamgeral=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuFechamentoParamgeral
confComerciales.motivoCancelVendaPacote=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuMotivoCancelVendaPacote
confComerciales.impressaofiscal=com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal.SubMenuImpressaoFiscal confComerciales.impressaofiscal=com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal.SubMenuImpressaoFiscal
confComerciales.impressaofiscal.totnaofiscalEmpresa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal.ItemMenuTotnaofiscalEmpresa confComerciales.impressaofiscal.totnaofiscalEmpresa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal.ItemMenuTotnaofiscalEmpresa
confComerciales.impressaofiscal.formapagoEmpresa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal.ItemMenuFormapagoEmpresa confComerciales.impressaofiscal.formapagoEmpresa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal.ItemMenuFormapagoEmpresa

View File

@ -0,0 +1,38 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.rjconsultores.ventaboletos.web.utilerias.render;
import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer;
import com.rjconsultores.ventaboletos.entidad.MotivoCancelVendaPacote;
import com.rjconsultores.ventaboletos.web.gui.controladores.tarifas.EnumTipoCancelVendaPacote;
/**
*
* @author Bruno
*/
public class RenderMotivoCancelVendaPacote implements ListitemRenderer {
public void render(Listitem lstm, Object o) throws Exception {
MotivoCancelVendaPacote motivoCancelVendaPacote = (MotivoCancelVendaPacote) o;
Listcell lc = new Listcell(motivoCancelVendaPacote.getMotivocancelvendapacoteId().toString());
lc.setParent(lstm);
lc = new Listcell(motivoCancelVendaPacote.getDescmotivocancel());
lc.setParent(lstm);
lc = new Listcell(EnumTipoCancelVendaPacote.obterEnumPorDescricao(motivoCancelVendaPacote.getTipomotivocancel()).getDescricao());
lc.setParent(lstm);
lc = new Listcell(motivoCancelVendaPacote.getPorcmulta().toString());
lc.setParent(lstm);
lstm.setAttribute("data", motivoCancelVendaPacote);
}
}

View File

@ -162,6 +162,8 @@
</value> </value>
<value>com.rjconsultores.ventaboletos.entidad.MotivoCancelacion <value>com.rjconsultores.ventaboletos.entidad.MotivoCancelacion
</value> </value>
<value>com.rjconsultores.ventaboletos.entidad.MotivoCancelVendaPacote
</value>
<value>com.rjconsultores.ventaboletos.entidad.MotivocancelacionEquivalencia <value>com.rjconsultores.ventaboletos.entidad.MotivocancelacionEquivalencia
</value> </value>
<value>com.rjconsultores.ventaboletos.entidad.MotivoReimpresion <value>com.rjconsultores.ventaboletos.entidad.MotivoReimpresion

View File

@ -108,6 +108,7 @@ indexController.mniGeracionCorrida.label = Generación de servicio
indexController.mniFormaPago.label = Forma de pago indexController.mniFormaPago.label = Forma de pago
indexController.mniPeriodoVacacional.label = Periodo de vacaciones indexController.mniPeriodoVacacional.label = Periodo de vacaciones
indexController.mniMotivoCancelacion.label = Motivo de cancelación indexController.mniMotivoCancelacion.label = Motivo de cancelación
indexController.mniMotivoCancelVendaPacote.label = Motivo de cancelación
indexController.mniMotivoReimpresion.label = Motivo de la reimpresión indexController.mniMotivoReimpresion.label = Motivo de la reimpresión
indexController.mniCategoria.label = Tipo de pasaje indexController.mniCategoria.label = Tipo de pasaje
indexController.mniPuntoVenta.label = Punto de venta (Agencias) indexController.mniPuntoVenta.label = Punto de venta (Agencias)
@ -727,6 +728,35 @@ busquedaMotivoCancelacionController.lhId.label = ID
busquedaMotivoCancelacionController.lhDesc.label = Descripción busquedaMotivoCancelacionController.lhDesc.label = Descripción
busquedaMotivoCancelacionController.txtNombre.label = Motivo de Cancelación busquedaMotivoCancelacionController.txtNombre.label = Motivo de Cancelación
# Pantalla Editar CANCELACION VENDA PACOTE Razón
editarMotivoCancelVendaPacoteController.window.title = Motivo de Cancelación
editarMotivoCancelVendaPacoteController.btnApagar.tooltiptext = Eliminar
editarMotivoCancelVendaPacoteController.btnSalvar.tooltiptext = Guardar
editarMotivoCancelVendaPacoteController.btnFechar.tooltiptext = Cerrar
editarMotivoCancelVendaPacoteController.lbNome.value = Descripción
editarMotivoCancelVendaPacoteController.MSG.suscribirOK = Motivo de Cancelación se Registró Exitosamente
editarMotivoCancelVendaPacoteController.MSG.borrarPergunta = Desea eliminar este motivo de cancelación?
editarMotivoCancelVendaPacoteController.MSG.borrarOK = Motivo de cancelación se eliminó exitosamente
editarMotivoCancelVendaPacoteController.lbtipomotivo.value = Tipo motivo
editarMotivoCancelVendaPacoteController.lbttextoVenda.value = Descripción para reporte de cancelación
editarMotivoCancelVendaPacoteController.MSG.tipo = Necesita informar un tipo motivo
editarMotivoCancelVendaPacoteController.lbPorcMulta.value = Porc. Multa.
# Muestra a CANCELACION VENDA PACOTE da Búsqueda Razón
busquedaMotivoCancelVendaPacoteController.window.title = Motivo de cancelación
busquedaMotivoCancelVendaPacoteController.btnRefresh.tooltiptext = Actualizar
busquedaMotivoCancelVendaPacoteController.btnNovo.tooltiptext = Incluir
busquedaMotivoCancelVendaPacoteController.btnCerrar.tooltiptext = Cerrar
busquedaMotivoCancelVendaPacoteController.btnPesquisa.label = Búsqueda
busquedaMotivoCancelVendaPacoteController.lhId.label = ID
busquedaMotivoCancelVendaPacoteController.lhDesc.label = Descripción
busquedaMotivoCancelVendaPacoteController.txtNombre.label = Motivo de Cancelación
busquedaMotivoCancelVendaPacoteController.lhCancelacionVenta.label = Cancelamento Venda
busquedaMotivoCancelVendaPacoteController.lhReembolso .label = Reembolso
busquedaMotivoCancelVendaPacoteController.lhNotaCredito.label = Nota Credito
# Pantalla Editar CANCELACION Razón # Pantalla Editar CANCELACION Razón
editarMotivoCancelacionController.window.title = Motivo de Cancelación editarMotivoCancelacionController.window.title = Motivo de Cancelación
editarMotivoCancelacionController.btnApagar.tooltiptext = Eliminar editarMotivoCancelacionController.btnApagar.tooltiptext = Eliminar

View File

@ -110,6 +110,7 @@ indexController.mniGeracionCorrida.label = Geração de Serviço
indexController.mniFormaPago.label = Forma de Pagamento indexController.mniFormaPago.label = Forma de Pagamento
indexController.mniPeriodoVacacional.label = Período de Férias indexController.mniPeriodoVacacional.label = Período de Férias
indexController.mniMotivoCancelacion.label = Motivo do Cancelamento indexController.mniMotivoCancelacion.label = Motivo do Cancelamento
indexController.mniMotivoCancelVendaPacote.label = Motivo do Cancelamento Venda Pacote
indexController.mniMotivoReimpresion.label = Motivo da Reimpressão indexController.mniMotivoReimpresion.label = Motivo da Reimpressão
indexController.mniCategoria.label = Tipo de Passagem indexController.mniCategoria.label = Tipo de Passagem
indexController.mniPuntoVenta.label = Ponto de Venda (Agências) indexController.mniPuntoVenta.label = Ponto de Venda (Agências)
@ -780,6 +781,34 @@ editarMotivoCancelacionController.lbtipomotivo.value = Tipo motivo
editarMotivoCancelacionController.lbttextoVenda.value = Descrição para relatório de cancelamento. editarMotivoCancelacionController.lbttextoVenda.value = Descrição para relatório de cancelamento.
editarMotivoCancelacionController.MSG.tipo = Necessita informar um tipo motivo. editarMotivoCancelacionController.MSG.tipo = Necessita informar um tipo motivo.
# Muestra a CANCELACION da Pesquisa Razón
busquedaMotivoCancelVendaPacoteController.window.title = Motivo de Cancelamento
busquedaMotivoCancelVendaPacoteController.btnRefresh.tooltiptext = Atualizar
busquedaMotivoCancelVendaPacoteController.btnNovo.tooltiptext = Incluir
busquedaMotivoCancelVendaPacoteController.btnCerrar.tooltiptext = Fechar
busquedaMotivoCancelVendaPacoteController.btnPesquisa.label = Pesquisa
busquedaMotivoCancelVendaPacoteController.lhId.label = ID
busquedaMotivoCancelVendaPacoteController.lhDesc.label = Descrição
busquedaMotivoCancelVendaPacoteController.txtNombre.label = Motivo de Cancelamento
busquedaMotivoCancelVendaPacoteController.lhCancelacionVenta.label = Cancelamento Venda
busquedaMotivoCancelVendaPacoteController.lhReembolso .label = Reembolso
busquedaMotivoCancelVendaPacoteController.lhNotaCredito.label = Nota Credito
busquedaMotivoCancelVendaPacoteController.lbPorcMulta.value = Porcentagem Multa
# Pantalla Editar CANCELACION Razón
editarMotivoCancelVendaPacoteController.window.title = Motivo de Cancelamento
editarMotivoCancelVendaPacoteController.btnApagar.tooltiptext = Eliminar
editarMotivoCancelVendaPacoteController.btnSalvar.tooltiptext = Salvar
editarMotivoCancelVendaPacoteController.btnFechar.tooltiptext = Fechar
editarMotivoCancelVendaPacoteController.lbNome.value = Descrição
editarMotivoCancelVendaPacoteController.MSG.suscribirOK = Motivo do cancelamento Registrado com Sucesso.
editarMotivoCancelVendaPacoteController.MSG.borrarPergunta = Deseja Eliminar Este Motivo de Cancelamento?
editarMotivoCancelVendaPacoteController.MSG.borrarOK = Motivo de Cancelamento Excluido com Sucesso.
editarMotivoCancelVendaPacoteController.lbtipomotivo.value = Tipo motivo
editarMotivoCancelVendaPacoteController.lbttextoVenda.value = Descrição para relatório de cancelamento.
editarMotivoCancelVendaPacoteController.MSG.tipo = Necessita informar um tipo motivo.
editarMotivoCancelVendaPacoteController.lbPorcMulta.value = Porcentagem Multa
# Muestra a Reimpresión da Pesquisa Razón # Muestra a Reimpresión da Pesquisa Razón
busquedaMotivoReimpresionController.window.title = Motivos da reimpressão busquedaMotivoReimpresionController.window.title = Motivos da reimpressão
busquedaMotivoReimpresionController.btnRefresh.tooltiptext = Atualizar busquedaMotivoReimpresionController.btnRefresh.tooltiptext = Atualizar
@ -3903,7 +3932,7 @@ busquedaExcepcionPeajeController.lhOrigem.label = Origen
busquedaExcepcionPeajeController.lhDestino.label = Destino busquedaExcepcionPeajeController.lhDestino.label = Destino
busquedaExcepcionPeajeController.lhRuta.label = Linha busquedaExcepcionPeajeController.lhRuta.label = Linha
busquedaExcepcionPeajeController.MSG.suscribirOK = Exceção de Pedágio Registrado com Sucesso. busquedaExcepcionPeajeController.MSG.suscribirOK = Exceção de Pedágio Registrado com Sucesso.
busquedaExcepcionPeajeController.lhId.label busquedaExcepcionPeajeController.lhId.label = colocar Label
# editar ExcepcionPeaje # editar ExcepcionPeaje
editarExcepcionPeajeController.window.title = Exceção de Pedágio editarExcepcionPeajeController.window.title = Exceção de Pedágio
@ -6712,7 +6741,7 @@ editarLogConferenciaComissaoController.window.title = Lançamento de Observaçõ
editarLogConferenciaComissaoController.lhSituacaoLog.value = Situação editarLogConferenciaComissaoController.lhSituacaoLog.value = Situação
editarLogConferenciaComissaoController.lhObservacao.value = Observação editarLogConferenciaComissaoController.lhObservacao.value = Observação
editarLogConferenciaComissaoController.lhValorLog.value = Valor editarLogConferenciaComissaoController.lhValorLog.value = Valor
editarLogConferenciaComissaoController.btnCerrar.tooltiptext editarLogConferenciaComissaoController.btnCerrar.tooltiptext = colocar label
editarLogConferenciaComissaoController.btnAdicionarObservacaoLog.tooltiptext = Adicionar Observação editarLogConferenciaComissaoController.btnAdicionarObservacaoLog.tooltiptext = Adicionar Observação
# Tipo Informativo Comissão # Tipo Informativo Comissão

View File

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<?page contentType="text/html;charset=UTF-8"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaMotivoCancelVendaPacote"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winBusquedaMotivoCancelVendaPacote" title="${c:l('busquedaMotivoCancelVendaPacoteController.window.title')}"
apply="${busquedaMotivoCancelVendaPacoteController}" contentStyle="overflow:auto"
height="400px" width="600px" border="normal" >
<toolbar>
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
tooltiptext="${c:l('busquedaMotivoCancelVendaPacoteController.btnRefresh.tooltiptext')}" />
<separator orient="vertical" />
<button id="btnNovo" image="/gui/img/add.png" width="35px"
tooltiptext="${c:l('busquedaMotivoCancelVendaPacoteController.btnNovo.tooltiptext')}" />
<separator orient="vertical" />
<button id="btnCerrar" onClick="winBusquedaMotivoCancelVendaPacote.detach()" image="/gui/img/exit.png" width="35px"
tooltiptext="${c:l('busquedaMotivoCancelVendaPacoteController.btnCerrar.tooltiptext')}"/>
</toolbar>
<grid fixedLayout="true">
<columns>
<column width="40%" />
<column width="60%" />
</columns>
<rows>
<row>
<label value="${c:l('busquedaMotivoCancelVendaPacoteController.txtNombre.label')}"/>
<textbox id="txtNombre" width="300px" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
</row>
<row>
<label value="${c:l('editarMotivoCancelVendaPacoteController.lbtipomotivo.value')}"/>
<combobox id="cmbTipoMotivo" width="90%" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
mold="rounded" buttonVisible="true"
model="@{winBusquedaMotivoCancelVendaPacote$composer.lsMotivoCancelamento}"/>
</row>
</rows>
</grid>
<toolbar>
<button id="btnPesquisa" image="/gui/img/find.png"
label="${c:l('busquedaMotivoCancelVendaPacoteController.btnPesquisa.label')}"/>
</toolbar>
<paging id="pagingMotivoCancelVendaPacote" pageSize="20" />
<listbox id="motivoCancelVendaPacoteList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" multiple="false">
<listhead sizable="true">
<listheader id="lhId" width="15%" image="/gui/img/builder.gif"
label="${c:l('busquedaMotivoCancelVendaPacoteController.lhId.label')}"
sort="auto(motivocancelvendapacoteId)"/>
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
label="${c:l('busquedaMotivoCancelVendaPacoteController.lhDesc.label')}"
sort="auto(descmotivocancel)"/>
<listheader image="/gui/img/create_doc.gif"
label="${c:l('editarMotivoCancelVendaPacoteController.lbtipomotivo.value')}"
sort="auto(tipomotivocancel)"/>
<listheader image="/gui/img/create_doc.gif"
label="${c:l('editarMotivoCancelVendaPacoteController.lbtipomotivo.value')}"
sort="auto(porcmulta)"/>
</listhead>
</listbox>
</window>
</zk>

View File

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<?page contentType="text/html;charset=UTF-8"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarMotivoCancelVendaPacote"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winEditarMotivoCancelVendaPacote" border="normal"
apply="${editarMotivoCancelVendaPacoteController}"
width="400px" height="457x" contentStyle="overflow:auto"
title="${c:l('editarMotivoCancelVendaPacoteController.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('editarMotivoCancelVendaPacoteController.btnApagar.tooltiptext')}"/>
<button id="btnSalvar" height="20"
image="/gui/img/save.png" width="35px"
tooltiptext="${c:l('editarMotivoCancelVendaPacoteController.btnSalvar.tooltiptext')}"/>
<button id="btnFechar" height="20"
image="/gui/img/exit.png" width="35px"
onClick="winEditarMotivoCancelVendaPacote.detach()"
tooltiptext="${c:l('editarMotivoCancelVendaPacoteController.btnFechar.tooltiptext')}"/>
</hbox>
</toolbar>
<grid fixedLayout="true">
<columns>
<column width="40%" />
<column width="60%" />
</columns>
<rows>
<row>
<label id="lbNome" value="${c:l('editarMotivoCancelVendaPacoteController.lbNome.value')}"/>
<textbox id="txtNome" constraint="no empty" width="90%" maxlength="30"
value="@{winEditarMotivoCancelVendaPacote$composer.MotivoCancelVendaPacote.descmotivocancel}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
</row>
<row>
<label value="${c:l('editarMotivoCancelVendaPacoteController.lbtipomotivo.value')}"/>
<combobox id="cmbTipoMotivo" width="90%" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
mold="rounded" buttonVisible="true" constraint="no empty"
selectedItem="@{winEditarMotivoCancelVendaPacote$composer.MotivoCancelVendaPacote.tipomotivocancel}"
model="@{winEditarMotivoCancelVendaPacote$composer.lsMotivoCancelamento}"/>
</row>
<row>
<label id="lbPorcMulta" value="${c:l('editarMotivoCancelVendaPacoteController.lbPorcMulta.value')}"/>
<textbox id="decPorcMulta" constraint="no empty, no negative" precision="5" scale="2" width="50%"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"/>
</row>
<row>
<label value="${c:l('editarMotivoCancelVendaPacoteController.lbttextoVenda.value')}"/>
<textbox rows="5" maxlength="100"
width="90%" tabindex="50" value="@{winEditarMotivoCancelVendaPacote$composer.MotivoCancelVendaPacote.txtRelatorio}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
</row>
</rows>
</grid>
</window>
</zk>