fixes bug#0014171
dev: valdir qua: marcelo Implementação do parametro para validação do documento monitrip. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@93000 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
9137308868
commit
1ccb0dc04b
|
@ -19,6 +19,7 @@ import org.zkoss.zul.Checkbox;
|
|||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Radio;
|
||||
import org.zkoss.zul.Row;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Categoria;
|
||||
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
|
||||
|
@ -31,6 +32,8 @@ import com.rjconsultores.ventaboletos.service.CategoriaService;
|
|||
import com.rjconsultores.ventaboletos.service.ClaseServicioService;
|
||||
import com.rjconsultores.ventaboletos.service.OrgaoCancelacionService;
|
||||
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEmpresa;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
|
@ -112,10 +115,14 @@ public class EditarOrgaoConcedenteController extends MyGenericForwardComposer {
|
|||
|
||||
private List<OrgaoEmpParam> lsOrgaoEmpParam;
|
||||
|
||||
private Checkbox chkIndNomDocObligatorio;
|
||||
private Checkbox chkIndValDocObligatorioMonitrip;
|
||||
private Checkbox chkIndemitesegundavia;
|
||||
private Checkbox chkInddoiscupomembarque;
|
||||
private Checkbox chkIndNaoRestringe2ViaBPe;
|
||||
|
||||
private Row rowIndValDocObligatorioMonitrip;
|
||||
|
||||
public OrgaoConcedente getOrgaoConcedente() {
|
||||
return orgaoConcedente;
|
||||
}
|
||||
|
@ -179,7 +186,14 @@ public class EditarOrgaoConcedenteController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
});
|
||||
configuraChkIndValDocObligatorioMonitrip();
|
||||
}
|
||||
|
||||
private void configuraChkIndValDocObligatorioMonitrip() {
|
||||
chkIndNomDocObligatorio.addEventListener("onClick", new OnClickNomDocObligatorio());
|
||||
rowIndValDocObligatorioMonitrip.setVisible(ApplicationProperties.getInstance()
|
||||
.isCustomHabilitado(CustomEnum.IS_VALIDA_DOCUMENTACAO_MONITRIP.getDescricao()));
|
||||
chkIndValDocObligatorioMonitrip.setDisabled(chkIndValDocObligatorioMonitrip.isVisible() && !orgaoConcedente.getIndNomDocObligatorio());
|
||||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||
|
@ -537,5 +551,16 @@ public class EditarOrgaoConcedenteController extends MyGenericForwardComposer {
|
|||
this.txtCodEmpresa = txtCodEmpresa;
|
||||
}
|
||||
|
||||
private final class OnClickNomDocObligatorio implements EventListener {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event arg0) throws Exception {
|
||||
chkIndValDocObligatorioMonitrip.setDisabled(!(chkIndValDocObligatorioMonitrip.isVisible() && chkIndNomDocObligatorio.isChecked()));
|
||||
if (chkIndValDocObligatorioMonitrip.isVisible() && !chkIndNomDocObligatorio.isChecked()) {
|
||||
chkIndValDocObligatorioMonitrip.setChecked(false);
|
||||
orgaoConcedente.setIndValDocObligatorioMonitrip(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -5705,6 +5705,7 @@ busquedaOrgaoConcedenteController.btnPesquisa.label = Buscar
|
|||
busquedaOrgaoConcedenteController.indDefaultSeguro.label = Seguro default
|
||||
busquedaOrgaoConcedenteController.indSubSeguro.label = Sub seguro
|
||||
busquedaOrgaoConcedenteController.indNomDocObligatorio.label=Doc. Obligatorio
|
||||
busquedaOrgaoConcedenteController.indValidaDocObligatorioMonitrip.label=Valida Doc. Obligatorio Monitrip
|
||||
busquedaOrgaoConcedenteController.indicePeaje.label = Índice Peaje
|
||||
busquedaOrgaoConcedenteController.idadeIdoso.label = Edad Estimada de Mayor
|
||||
busquedaOrgaoConcedenteController.indUtilizaICMS.label=Utiliza ICMS para cálculo de preço
|
||||
|
|
|
@ -5951,6 +5951,7 @@ busquedaOrgaoConcedenteController.btnPesquisa.label = Buscar
|
|||
busquedaOrgaoConcedenteController.indDefaultSeguro.label = Seguro Default
|
||||
busquedaOrgaoConcedenteController.indSubSeguro.label = Sub Seguro
|
||||
busquedaOrgaoConcedenteController.indNomDocObligatorio.label=Doc. Obrigatorio
|
||||
busquedaOrgaoConcedenteController.indValidaDocObligatorioMonitrip.label=Valida Doc. Obrigatória Monitrip
|
||||
busquedaOrgaoConcedenteController.indicePeaje.label = Índice Pedágio
|
||||
busquedaOrgaoConcedenteController.classe.label=Classe
|
||||
busquedaOrgaoConcedenteController.idadeIdoso.label = Idade Considerada Idoso
|
||||
|
|
|
@ -58,9 +58,15 @@
|
|||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaOrgaoConcedenteController.indNomDocObligatorio.label')}" />
|
||||
<checkbox
|
||||
<checkbox id="chkIndNomDocObligatorio"
|
||||
checked="@{winEditarOrgaoConcedente$composer.orgaoConcedente.indNomDocObligatorio}" />
|
||||
</row>
|
||||
<row id="rowIndValDocObligatorioMonitrip">
|
||||
<label
|
||||
value="${c:l('busquedaOrgaoConcedenteController.indValidaDocObligatorioMonitrip.label')}" />
|
||||
<checkbox id="chkIndValDocObligatorioMonitrip"
|
||||
checked="@{winEditarOrgaoConcedente$composer.orgaoConcedente.indValDocObligatorioMonitrip}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaOrgaoConcedenteController.indUtilizaICMS.label')}" />
|
||||
|
|
Loading…
Reference in New Issue