master
Lucas 2024-08-28 16:56:42 -03:00
parent a50a4aefd8
commit f4ff5fb593
3 changed files with 20 additions and 4 deletions

View File

@ -8,8 +8,8 @@
<packaging>war</packaging> <packaging>war</packaging>
<properties> <properties>
<modelWeb.version>1.101.0</modelWeb.version> <modelWeb.version>1.102.0</modelWeb.version>
<flyway.version>1.88.2</flyway.version> <flyway.version>1.89.0</flyway.version>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties> </properties>

View File

@ -92,6 +92,7 @@ public class EditarTipoEventoExtraController extends MyGenericForwardComposer {
private MyComboboxEstandar cmbEmpresa; private MyComboboxEstandar cmbEmpresa;
private MyComboboxPuntoVenta cmbPontoVenda; private MyComboboxPuntoVenta cmbPontoVenda;
private MyComboboxImpresionLayoutConfig cmbImpresionLayoutConfig; private MyComboboxImpresionLayoutConfig cmbImpresionLayoutConfig;
private MyComboboxImpresionLayoutConfig cmbImpresionLayoutEmailConfig;
/*Forma de Pagamento*/ /*Forma de Pagamento*/
private List<Empresa> lsEmpresas; private List<Empresa> lsEmpresas;
/*Forma de Pagamento*/ /*Forma de Pagamento*/
@ -144,6 +145,7 @@ public class EditarTipoEventoExtraController extends MyGenericForwardComposer {
rowIndEnviaExcessoDeBagagemSefaz.setVisible(false); rowIndEnviaExcessoDeBagagemSefaz.setVisible(false);
} }
cmbImpresionLayoutConfig.setInitialValue(tipoEventoExtra.getImpresionLayoutConfig()); cmbImpresionLayoutConfig.setInitialValue(tipoEventoExtra.getImpresionLayoutConfig());
cmbImpresionLayoutEmailConfig.setInitialValue(tipoEventoExtra.getImpresionLayoutEmailConfig());
} else { } else {
rowIndEnviaExcessoDeBagagemSefaz.setVisible(false); rowIndEnviaExcessoDeBagagemSefaz.setVisible(false);
btnApagar.setVisible(false); btnApagar.setVisible(false);
@ -292,6 +294,12 @@ public class EditarTipoEventoExtraController extends MyGenericForwardComposer {
tipoEventoExtra.setImpresionLayoutConfig((ImpresionLayoutConfig) cbImpresionLayoutConfig.getValue()); tipoEventoExtra.setImpresionLayoutConfig((ImpresionLayoutConfig) cbImpresionLayoutConfig.getValue());
} }
Comboitem cbImpresionLayoutEmailConfig = cmbImpresionLayoutEmailConfig.getSelectedItem();
tipoEventoExtra.setImpresionLayoutEmailConfig(null);
if (cbImpresionLayoutEmailConfig != null) {
tipoEventoExtra.setImpresionLayoutEmailConfig((ImpresionLayoutConfig) cbImpresionLayoutEmailConfig.getValue());
}
try { try {
tipoEventoExtra.setActivo(Boolean.TRUE); tipoEventoExtra.setActivo(Boolean.TRUE);
tipoEventoExtra.setFecmodif(Calendar.getInstance().getTime()); tipoEventoExtra.setFecmodif(Calendar.getInstance().getTime());

View File

@ -6,7 +6,7 @@
<zk xmlns="http://www.zkoss.org/2005/zul"> <zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winEditarTipoEventoExtra" border="normal" <window id="winEditarTipoEventoExtra" border="normal"
apply="${editarTipoEventoExtraController}" width="520px" apply="${editarTipoEventoExtraController}" width="600px"
contentStyle="overflow:auto" contentStyle="overflow:auto"
title="${c:l('editarTipoEventoExtraController.window.title')}"> title="${c:l('editarTipoEventoExtraController.window.title')}">
@ -66,11 +66,19 @@
</row> </row>
<row> <row>
<label <label
value="${c:l('busquedaImpresionLayoutConfigController.window.title')}" /> value="${c:l('editarEmpresaController.cmbImpresionLayoutConfig')}" />
<combobox id="cmbImpresionLayoutConfig" <combobox id="cmbImpresionLayoutConfig"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxImpresionLayoutConfig" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxImpresionLayoutConfig"
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.impresionLayoutConfig}" selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.impresionLayoutConfig}"
mold="rounded" buttonVisible="true" width="100%" /> mold="rounded" buttonVisible="true" width="100%" />
</row>
<row>
<label
value="${c:l('editarEmpresaController.lblLayoutEmail')}" />
<combobox id="cmbImpresionLayoutEmailConfig"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxImpresionLayoutConfig"
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.impresionLayoutEmailConfig}"
mold="rounded" buttonVisible="true" width="100%" />
</row> </row>
<row id="rowIndEnviaExcessoDeBagagemSefaz"> <row id="rowIndEnviaExcessoDeBagagemSefaz">
<label <label