fixes bug #8307
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@63165 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
5b1b9308ff
commit
2c06a225e1
|
@ -22,6 +22,8 @@ import org.zkoss.zul.Textbox;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.MotivoCancelVendaPacote;
|
||||
import com.rjconsultores.ventaboletos.service.MotivoCancelVendaPacoteService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.BigDecimalUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.LocaleUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.gui.controladores.tarifas.EnumTipoCancelVendaPacote;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -87,6 +89,7 @@ public class EditarMotivoCancelVendaPacoteController extends MyGenericForwardCom
|
|||
motivoCancelVendaPacote = (MotivoCancelVendaPacote) Executions.getCurrent().getArg().get("motivoCancelVendaPacote");
|
||||
motivoCancelVendaPacoteList = (MyListbox) Executions.getCurrent().getArg().get("motivoCancelVendaPacoteList");
|
||||
setLsMotivoCancelamento(EnumTipoCancelVendaPacote.obterBundleValues());
|
||||
decPorcMulta.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(motivoCancelVendaPacote.getPorcmulta(), LocaleUtil.getLocale()));
|
||||
txtNome.focus();
|
||||
}
|
||||
|
||||
|
|
|
@ -7,12 +7,10 @@ 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"));
|
||||
REEMBOLSO(Labels.getLabel("busquedaMotivoCancelVendaPacoteController.lhReembolso.label")),
|
||||
CANCELAMENTO_RESERVA(Labels.getLabel("busquedaMotivoCancelVendaPacoteController.lhCancelacionReserva.label"));
|
||||
|
||||
private String descricao;
|
||||
|
||||
|
@ -33,19 +31,23 @@ public enum EnumTipoCancelVendaPacote {
|
|||
lst.add(EnumTipoCancelVendaPacote.CANCELAMENTO_VENDA.getDescricao());
|
||||
lst.add(EnumTipoCancelVendaPacote.NOTA_CREDITO.getDescricao());
|
||||
lst.add(EnumTipoCancelVendaPacote.REEMBOLSO.getDescricao());
|
||||
lst.add(EnumTipoCancelVendaPacote.CANCELAMENTO_RESERVA.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;
|
||||
if(descricao != null) {
|
||||
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;
|
||||
}else if(descricao.equals(EnumTipoCancelVendaPacote.CANCELAMENTO_RESERVA.descricao)){
|
||||
return EnumTipoCancelVendaPacote.CANCELAMENTO_RESERVA;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -9,6 +9,8 @@ import org.zkoss.zul.Listitem;
|
|||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.MotivoCancelVendaPacote;
|
||||
import com.rjconsultores.ventaboletos.utilerias.BigDecimalUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.LocaleUtil;
|
||||
import com.rjconsultores.ventaboletos.web.gui.controladores.tarifas.EnumTipoCancelVendaPacote;
|
||||
|
||||
/**
|
||||
|
@ -30,7 +32,7 @@ public class RenderMotivoCancelVendaPacote implements ListitemRenderer {
|
|||
lc = new Listcell(EnumTipoCancelVendaPacote.obterEnumPorDescricao(motivoCancelVendaPacote.getTipomotivocancel()).getDescricao());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(motivoCancelVendaPacote.getPorcmulta().toString());
|
||||
lc = new Listcell(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(motivoCancelVendaPacote.getPorcmulta(), LocaleUtil.getLocale()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", motivoCancelVendaPacote);
|
||||
|
|
|
@ -753,8 +753,9 @@ 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.lhReembolso.label = Reembolso
|
||||
busquedaMotivoCancelVendaPacoteController.lhNotaCredito.label = Nota Credito
|
||||
busquedaMotivoCancelVendaPacoteController.lhCancelacionReserva.label = Cancelamento Reserva
|
||||
|
||||
|
||||
# Pantalla Editar CANCELACION Razón
|
||||
|
|
|
@ -791,9 +791,10 @@ 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.lhReembolso.label = Reembolso
|
||||
busquedaMotivoCancelVendaPacoteController.lhNotaCredito.label = Nota Credito
|
||||
busquedaMotivoCancelVendaPacoteController.lbPorcMulta.value = Porcentagem Multa
|
||||
busquedaMotivoCancelVendaPacoteController.lhCancelacionReserva.label = Cancelamento Reserva
|
||||
|
||||
# Pantalla Editar CANCELACION Razón
|
||||
editarMotivoCancelVendaPacoteController.window.title = Motivo de Cancelamento
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
sort="auto(tipomotivocancel)"/>
|
||||
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarMotivoCancelVendaPacoteController.lbtipomotivo.value')}"
|
||||
label="${c:l('editarMotivoCancelVendaPacoteController.lbPorcMulta.value')}"
|
||||
sort="auto(porcmulta)"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
|
|
Loading…
Reference in New Issue