fixes bug #6620
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@48304 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
784613ac2d
commit
1dc9ea9287
|
@ -56,6 +56,10 @@ public class EditarSecretariaController extends MyGenericForwardComposer {
|
|||
private Textbox txtDescSecretaria;
|
||||
private Textbox txtCveSecretaria;
|
||||
private MyTextboxDecimal txtPorcdescuento;
|
||||
private MyTextboxDecimal txtPorcdescuentoOutros;
|
||||
private MyTextboxDecimal txtPorcdescuentoPedagio;
|
||||
private MyTextboxDecimal txtPorcdescuentoSeguro;
|
||||
private MyTextboxDecimal txtPorcdescuentoTaxaEmbarque;
|
||||
private Longbox txtNumfolioinicio;
|
||||
private Longbox txtNumfoliofinal;
|
||||
private Button btnApagar;
|
||||
|
@ -154,8 +158,39 @@ public class EditarSecretariaController extends MyGenericForwardComposer {
|
|||
this.txtNumfolioinicio = txtNumfolioinicio;
|
||||
}
|
||||
|
||||
public MyTextboxDecimal getTxtPorcdescuentoOutros() {
|
||||
return txtPorcdescuentoOutros;
|
||||
}
|
||||
|
||||
public Button getBtnAdicionarCuponSecretaria() {
|
||||
public void setTxtPorcdescuentoOutros(MyTextboxDecimal txtPorcdescuentoOutros) {
|
||||
this.txtPorcdescuentoOutros = txtPorcdescuentoOutros;
|
||||
}
|
||||
|
||||
public MyTextboxDecimal getTxtPorcdescuentoPedagio() {
|
||||
return txtPorcdescuentoPedagio;
|
||||
}
|
||||
|
||||
public void setTxtPorcdescuentoPedagio(MyTextboxDecimal txtPorcdescuentoPedagio) {
|
||||
this.txtPorcdescuentoPedagio = txtPorcdescuentoPedagio;
|
||||
}
|
||||
|
||||
public MyTextboxDecimal getTxtPorcdescuentoSeguro() {
|
||||
return txtPorcdescuentoSeguro;
|
||||
}
|
||||
|
||||
public void setTxtPorcdescuentoSeguro(MyTextboxDecimal txtPorcdescuentoSeguro) {
|
||||
this.txtPorcdescuentoSeguro = txtPorcdescuentoSeguro;
|
||||
}
|
||||
|
||||
public MyTextboxDecimal getTxtPorcdescuentoTaxaEmbarque() {
|
||||
return txtPorcdescuentoTaxaEmbarque;
|
||||
}
|
||||
|
||||
public void setTxtPorcdescuentoTaxaEmbarque(MyTextboxDecimal txtPorcdescuentoTaxaEmbarque) {
|
||||
this.txtPorcdescuentoTaxaEmbarque = txtPorcdescuentoTaxaEmbarque;
|
||||
}
|
||||
|
||||
public Button getBtnAdicionarCuponSecretaria() {
|
||||
return btnAdicionarCuponSecretaria;
|
||||
}
|
||||
|
||||
|
@ -335,6 +370,11 @@ public class EditarSecretariaController extends MyGenericForwardComposer {
|
|||
|
||||
try {
|
||||
BigDecimal porcdescuento = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuento.getValue()));
|
||||
BigDecimal porcdescuentoOutros = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuentoOutros.getValue()));
|
||||
BigDecimal porcdescuentoPedagio = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuentoPedagio.getValue()));
|
||||
BigDecimal porcdescuentoSeguro = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuentoSeguro.getValue()));
|
||||
BigDecimal porcdescuentoTaxaEmbarque = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuentoTaxaEmbarque.getValue()));
|
||||
|
||||
Long numfolioinicio = txtNumfolioinicio.getValue();
|
||||
Long numfoliofinal = txtNumfoliofinal.getValue();
|
||||
|
||||
|
@ -364,6 +404,11 @@ public class EditarSecretariaController extends MyGenericForwardComposer {
|
|||
cd.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
cd.setFecmodif(Calendar.getInstance().getTime());
|
||||
cd.setPorcdescuento(porcdescuento);
|
||||
cd.setPorcdescuentooutros(porcdescuentoOutros);
|
||||
cd.setPorcdescuentopedagio(porcdescuentoPedagio);
|
||||
cd.setPorcdescuentoseguro(porcdescuentoSeguro);
|
||||
cd.setPorcdescuentotaxaembarque(porcdescuentoTaxaEmbarque);
|
||||
|
||||
cd.setNumfolioinicio(numfolioinicio);
|
||||
cd.setNumfoliofinal(numfoliofinal);
|
||||
|
||||
|
@ -398,6 +443,10 @@ public class EditarSecretariaController extends MyGenericForwardComposer {
|
|||
txtNumfoliofinal.setConstraint("");
|
||||
|
||||
txtPorcdescuento.setText(null);
|
||||
txtPorcdescuentoOutros.setText(null);
|
||||
txtPorcdescuentoPedagio.setText(null);
|
||||
txtPorcdescuentoSeguro.setText(null);
|
||||
txtPorcdescuentoTaxaEmbarque.setText(null);
|
||||
txtNumfolioinicio.setValue(null);
|
||||
txtNumfoliofinal.setValue(null);
|
||||
|
||||
|
|
|
@ -45,6 +45,38 @@ public class RenderCuponSecretaria implements ListitemRenderer {
|
|||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
BigDecimal porcentagemOutros = cuponSecretaria.getPorcdescuentooutros();
|
||||
if (porcentagemOutros != null) {
|
||||
lc = new Listcell(porcentagemOutros.setScale(2).toString());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
BigDecimal porcentagempedagio = cuponSecretaria.getPorcdescuentopedagio();
|
||||
if (porcentagempedagio != null) {
|
||||
lc = new Listcell(porcentagempedagio.setScale(2).toString());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
BigDecimal porcentagemseguro = cuponSecretaria.getPorcdescuentoseguro();
|
||||
if (porcentagemseguro != null) {
|
||||
lc = new Listcell(porcentagemseguro.setScale(2).toString());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
BigDecimal porcentagemtaxaembarque = cuponSecretaria.getPorcdescuentotaxaembarque();
|
||||
if (porcentagemtaxaembarque != null) {
|
||||
lc = new Listcell(porcentagemtaxaembarque.setScale(2).toString());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", cuponSecretaria);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3589,6 +3589,10 @@ editarSecretariaController.btnFechar.tooltiptext = Cerrar
|
|||
editarSecretariaController.lbDescSecretaria.value = Orden de compra - Secretaria
|
||||
editarSecretariaController.lbCveSecretaria.value = Código secretaria
|
||||
editarSecretariaController.lbValidaFolio.value = Validar número del documento
|
||||
editarSecretariaController.lbPorcDescuentoOutros.value=% Outros
|
||||
editarSecretariaController.lbPorcDescuentoPedagio.value=% Peaje
|
||||
editarSecretariaController.lbPorcDescuentoSeguro.value=% Seguro
|
||||
editarSecretariaController.lbPorcDescuentoTaxaEmbarque.value=% Tasa Embarque
|
||||
editarSecretariaController.Impression.value = Valor a imprimir
|
||||
editarSecretariaController.PrecioTotal.value = Precio total
|
||||
editarSecretariaController.PrecioDescuento.value = Precio menos descuento por cobrar
|
||||
|
@ -3596,6 +3600,10 @@ editarSecretariaController.Descuento.value = Descuento fixo
|
|||
editarSecretariaController.btnAddCuponSecretaria.tooltiptext = Incluir
|
||||
editarSecretariaController.btnBorrarCuponSecretaria.tooltiptext = Eliminar
|
||||
editarSecretariaController.lbPorcdescuento.value = Porcentaje descuento
|
||||
editarSecretariaController.lbPorcdescuentoOutros.value=% Otros
|
||||
editarSecretariaController.lbPorcdescuentoPedagio.value=% Peaje
|
||||
editarSecretariaController.lbPorcdescuentoSeguro.value=% Seguro
|
||||
editarSecretariaController.lbPorcdescuentoTaxaEmbarque.value=% Tasa Embarque
|
||||
editarSecretariaController.lbNumfolioinicio.value = Número del documento inicial
|
||||
editarSecretariaController.lbNumfoliofinal.value = Número del documento final
|
||||
editarSecretariaController.MSG.suscribirOK = Secretaria se registró exitosamente
|
||||
|
|
|
@ -3649,6 +3649,10 @@ editarSecretariaController.btnFechar.tooltiptext = Fechar
|
|||
editarSecretariaController.lbDescSecretaria.value = Ordem de Serviço - Secretaria
|
||||
editarSecretariaController.lbCveSecretaria.value = Código Secretaria
|
||||
editarSecretariaController.lbValidaFolio.value = Validar Número do Documento
|
||||
editarSecretariaController.lbPorcDescuentoOutros.value=% Outros
|
||||
editarSecretariaController.lbPorcDescuentoPedagio.value=% Pedagio
|
||||
editarSecretariaController.lbPorcDescuentoSeguro.value=% Seguro
|
||||
editarSecretariaController.lbPorcDescuentoTaxaEmbarque.value=% Taxa Embarque
|
||||
editarSecretariaController.Impression.value = Valor a Imprimir
|
||||
editarSecretariaController.PrecioTotal.value = Preço total
|
||||
editarSecretariaController.PrecioDescuento.value = Preço menos desconto por cobrar
|
||||
|
@ -3656,6 +3660,10 @@ editarSecretariaController.Descuento.value = Desconto fixo
|
|||
editarSecretariaController.btnAddCuponSecretaria.tooltiptext = Incluir
|
||||
editarSecretariaController.btnBorrarCuponSecretaria.tooltiptext = Eliminar
|
||||
editarSecretariaController.lbPorcdescuento.value = Porcentagem Desconto
|
||||
editarSecretariaController.lbPorcdescuentoOutros.value=% Outros
|
||||
editarSecretariaController.lbPorcdescuentoPedagio.value=% Pedagio
|
||||
editarSecretariaController.lbPorcdescuentoSeguro.value=% Seguro
|
||||
editarSecretariaController.lbPorcdescuentoTaxaEmbarque.value=% Taxa Embarque
|
||||
editarSecretariaController.lbNumfolioinicio.value = Número do Documento Inicial
|
||||
editarSecretariaController.lbNumfoliofinal.value = Número do Documento Final
|
||||
editarSecretariaController.MSG.suscribirOK = Secretaria Registrada com Sucesso.
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarSecretaria" border="normal"
|
||||
apply="${editarSecretariaController}"
|
||||
width="550px" height="500px" contentStyle="overflow:auto"
|
||||
width="650px" height="550px" contentStyle="overflow:auto"
|
||||
title="${c:l('editarSecretariaController.window.title')}">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
|
@ -86,6 +86,26 @@
|
|||
<longbox id="txtNumfoliofinal" maxlength="10"
|
||||
/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarSecretariaController.lbPorcDescuentoOutros.value')}"/>
|
||||
<textbox id="txtPorcdescuentoOutros" maxValue="100" maxlength="6" value="0"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarSecretariaController.lbPorcDescuentoPedagio.value')}"/>
|
||||
<textbox id="txtPorcdescuentoPedagio" maxValue="100" maxlength="6" value="0"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarSecretariaController.lbPorcDescuentoSeguro.value')}"/>
|
||||
<textbox id="txtPorcdescuentoSeguro" maxValue="100" maxlength="6" value="0"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarSecretariaController.lbPorcDescuentoTaxaEmbarque.value')}"/>
|
||||
<textbox id="txtPorcdescuentoTaxaEmbarque" maxValue="100" maxlength="6" value="0"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
|
@ -105,6 +125,14 @@
|
|||
label="${c:l('editarSecretariaController.lbNumfolioinicio.value')}"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarSecretariaController.lbNumfoliofinal.value')}"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarSecretariaController.lbPorcdescuentoOutros.value')}"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarSecretariaController.lbPorcdescuentoPedagio.value')}"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarSecretariaController.lbPorcdescuentoSeguro.value')}"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarSecretariaController.lbPorcdescuentoTaxaEmbarque.value')}"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
|
||||
|
|
Loading…
Reference in New Issue