0004758: Configuração Tipo de Passagem - Conf. permissão de Venda em Aberto
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@32697 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
2f39d3dcff
commit
f709c019c1
|
@ -14,7 +14,6 @@ import org.zkoss.zk.ui.Component;
|
|||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.WrongValueException;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Label;
|
||||
|
@ -56,6 +55,9 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
|||
private Spinner spnMinuto;
|
||||
private Radio rdVendaAntecipadaSi;
|
||||
private Radio rdVendaAntecipadaNo;
|
||||
private Radio rdVendeAbertoSi;
|
||||
private Radio rdVendaAbertoNao;
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
|
@ -115,6 +117,12 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
|||
lblMsgTiempo.setValue(Labels.getLabel("editarConfiguracionCategoriaController.lblVentaAntecipadaTempoActivar.value"));
|
||||
}
|
||||
|
||||
if (categoriaDescuento.getIndVentaAbierto() != null && categoriaDescuento.getIndVentaAbierto()){
|
||||
rdVendeAbertoSi.setChecked(true);
|
||||
} else {
|
||||
rdVendaAbertoNao.setChecked(true);
|
||||
}
|
||||
|
||||
}
|
||||
private void preencherDataHora(Integer tiempoMinutos){
|
||||
if (tiempoMinutos != null){
|
||||
|
@ -143,6 +151,8 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
categoriaDescuento.setIndVentaAbierto(rdVendeAbertoSi.isChecked());
|
||||
categoriaDescuento.setIndAplicaFeriado((String) cmbIndGeneraFeriado.getSelectedItem().getValue());
|
||||
categoriaDescuento.setIndCuota(false);
|
||||
categoriaDescuento.setIndCuotaTramo(false);
|
||||
|
|
|
@ -88,6 +88,16 @@
|
|||
<radio id="rdVendaAntecipadaNo" label="Nao" />
|
||||
</radiogroup>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblVendaAberto.value')}" />
|
||||
<radiogroup>
|
||||
<radio id="rdVendeAbertoSi"
|
||||
selected="true" label="Sim" />
|
||||
<radio id="rdVendaAbertoNao"
|
||||
label="Nao" />
|
||||
</radiogroup>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarConfiguracionCategoriaController.lblVentaAntecipadaTempo.value')}" />
|
||||
<hbox>
|
||||
|
|
Loading…
Reference in New Issue