fixes bug#23939
qua: dev: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@110765 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
b10ac5c78b
commit
0bf0c10264
|
@ -17,6 +17,7 @@ import org.zkoss.zul.Button;
|
|||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Radio;
|
||||
import org.zkoss.zul.Row;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.constantes.Constantes;
|
||||
|
@ -77,6 +78,9 @@ public class EditarOCDParamController extends MyGenericForwardComposer {
|
|||
private Radio rdPenalizacionOrgaoConcedente;
|
||||
private Checkbox chkIndtotalbilhete;
|
||||
private Checkbox chkIndsempregerarapagar;
|
||||
private Checkbox chkIndOCDPorFormadePagamento;
|
||||
private Row rowIndOCDPorFormadePagamento;
|
||||
|
||||
|
||||
private Radio rdSomenteCartao;
|
||||
private Radio rdTodasFormasPagamento;
|
||||
|
@ -121,6 +125,8 @@ public class EditarOCDParamController extends MyGenericForwardComposer {
|
|||
chkOCDTransferencia.setChecked(ocdParamCorrente.getIndOCDTransferencia() == null ? false : ocdParamCorrente.getIndOCDTransferencia());
|
||||
chkIndtotalbilhete.setChecked(ocdParamCorrente.getIndtotalbilhete() == null ? false : ocdParamCorrente.getIndtotalbilhete());
|
||||
chkIndsempregerarapagar.setChecked(ocdParamCorrente.getIndsempregerarapagar() == null ? false : ocdParamCorrente.getIndsempregerarapagar());
|
||||
chkIndOCDPorFormadePagamento.setChecked(ocdParamCorrente.getIndOCDPorFormadePagamento() == null ? false : ocdParamCorrente.getIndOCDPorFormadePagamento());
|
||||
rowIndOCDPorFormadePagamento.setVisible(!ocdParamCorrente.getIndOcdDinheiro());
|
||||
txtPenalizacion.setDisabled(!ocdParamCorrente.getIndPenalizacionOCD());
|
||||
txtTiempoLimitePenalizacion.setDisabled(!ocdParamCorrente.getIndPenalizacionOCD());
|
||||
ptoVtaOCDParamList.setItemRenderer(new RenderOCDPtoVtaParam());
|
||||
|
@ -150,6 +156,19 @@ public class EditarOCDParamController extends MyGenericForwardComposer {
|
|||
rdTodasFormasPagamento.setChecked(ocdParamCorrente.getIndOcdDinheiro());
|
||||
}
|
||||
|
||||
public void onClick$rdSomenteCartao(Event ev) throws InterruptedException {
|
||||
if(rdSomenteCartao.isChecked()) {
|
||||
rowIndOCDPorFormadePagamento.setVisible(true);
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$rdTodasFormasPagamento(Event ev) throws InterruptedException {
|
||||
if(rdTodasFormasPagamento.isChecked()) {
|
||||
rowIndOCDPorFormadePagamento.setVisible(false);
|
||||
chkIndOCDPorFormadePagamento.setChecked(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnApagar(Event ev) throws InterruptedException {
|
||||
try {
|
||||
int resp = Messagebox.show(
|
||||
|
@ -205,6 +224,7 @@ public class EditarOCDParamController extends MyGenericForwardComposer {
|
|||
ocdParamCorrente.setIndOCDTransferencia(chkOCDTransferencia.isChecked());
|
||||
ocdParamCorrente.setIndPenalizacionOCD(rdPenalizacionOCD.isChecked());
|
||||
ocdParamCorrente.setIndOcdDinheiro(rdTodasFormasPagamento.isChecked());
|
||||
ocdParamCorrente.setIndOCDPorFormadePagamento(chkIndOCDPorFormadePagamento.isChecked());
|
||||
ocdParamCorrente.setIndtotalbilhete(chkIndtotalbilhete.isChecked());
|
||||
ocdParamCorrente.setIndsempregerarapagar(chkIndsempregerarapagar.isChecked());
|
||||
|
||||
|
|
|
@ -7344,6 +7344,7 @@ editarOCDParamController.tab.label.ptovtaSomenteEstorno=Agências permitidas s
|
|||
editarOCDParamController.puntoVenta.label=Agência
|
||||
editarOCDParamController.grid.puntoVenta.label=Agências
|
||||
busquedaOCDParamController.ocdDefault.label=OCD como padrão
|
||||
busquedaOCDParamController.indOCDPorFormadePagamento.label= Gerar a OCD separada por forma de pagamento
|
||||
busquedaOCDParamController.ocdTroca.label=OCD Troca
|
||||
busquedaOCDParamController.ocdTransferencia.label=OCD Transferencia
|
||||
busquedaOCDParamController.tipopenalizacion.label=Penalização por
|
||||
|
|
|
@ -8158,6 +8158,7 @@ editarOCDParamController.MSG.empresaJaCadastrada=No fue posible incluir Parametr
|
|||
editarOCDParamController.MSG.borrarPergunta = Desea eliminar el Parametro OCD?
|
||||
editarOCDParamController.MSG.borrarOK = Parametro OCD eliminado exitosamente.
|
||||
busquedaOCDParamController.ocdDefault.label = OCD como default
|
||||
busquedaOCDParamController.indOCDPorFormadePagamento.label = Gerar a OCD separada por forma de pagamento
|
||||
busquedaOCDParamController.ocdTroca.label = OCD Cambio
|
||||
busquedaOCDParamController.ocdTransferencia.label = OCD Transferencia
|
||||
busquedaOCDParamController.tipopenalizacion.label = Penalización por
|
||||
|
|
|
@ -7850,6 +7850,7 @@ editarOCDParamController.tab.label.ptovtaSomenteEstorno=Agências permitidas som
|
|||
editarOCDParamController.puntoVenta.label=Agência
|
||||
editarOCDParamController.grid.puntoVenta.label=Agências
|
||||
busquedaOCDParamController.ocdDefault.label = OCD como padrão
|
||||
busquedaOCDParamController.indOCDPorFormadePagamento.label = Gerar a OCD separada por forma de pagamento
|
||||
busquedaOCDParamController.ocdTroca.label = OCD Troca
|
||||
busquedaOCDParamController.ocdTransferencia.label = OCD Transferencia
|
||||
busquedaOCDParamController.tipopenalizacion.label = Penalização por
|
||||
|
|
|
@ -79,6 +79,10 @@
|
|||
</hbox>
|
||||
</radiogroup>
|
||||
</row>
|
||||
<row id="rowIndOCDPorFormadePagamento">
|
||||
<label value="${c:l('busquedaOCDParamController.indOCDPorFormadePagamento.label')}" />
|
||||
<checkbox id="chkIndOCDPorFormadePagamento" value="@{winEditarOCDParam$composer.ocdParamCorrente.indOCDPorFormadePagamento}" checked="false" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('busquedaOCDParamController.penalizacion.label')}" />
|
||||
<textbox id="txtPenalizacion" width="100px"
|
||||
|
|
Loading…
Reference in New Issue