Merge pull request 'bug #AL-4274' (!679) from AL-4274 into master
Reviewed-on: adm/VentaBoletosAdm#679 Reviewed-by: Gleison da Cruz <gleison.cruz@totvs.com.br> Reviewed-by: Célio de Souza Ribeiro JR <celio@rjconsultores.com.br>master 1.130.0
commit
0366f34d20
6
pom.xml
6
pom.xml
|
@ -4,12 +4,12 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ventaboletosadm</artifactId>
|
||||
<version>1.129.1</version>
|
||||
<version>1.130.0</version>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
<modelWeb.version>1.99.0</modelWeb.version>
|
||||
<flyway.version>1.87.0</flyway.version>
|
||||
<modelWeb.version>1.100.0</modelWeb.version>
|
||||
<flyway.version>1.88.0</flyway.version>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
</properties>
|
||||
|
||||
|
|
|
@ -97,6 +97,7 @@ import com.rjconsultores.ventaboletos.entidad.EmpresaEmailFlexBus;
|
|||
import com.rjconsultores.ventaboletos.entidad.EmpresaImposto;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaIziPayConfig;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaMercadoPagoConfig;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaNequiConfig;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaPMArtespConfig;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaRecargaConfig;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaSaferConfig;
|
||||
|
@ -133,6 +134,7 @@ import com.rjconsultores.ventaboletos.service.EmpresaEmailService;
|
|||
import com.rjconsultores.ventaboletos.service.EmpresaImpostoService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaIziPayService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaMercadoPagoConfigService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaNequiConfigService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaPMArtespConfigService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaRecargaService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaSaferConfigService;
|
||||
|
@ -225,6 +227,8 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
@Autowired
|
||||
private EmpresaCrediBancoConfigService empresaCrediBancoConfigService;
|
||||
@Autowired
|
||||
private EmpresaNequiConfigService empresaNequiConfigService;
|
||||
@Autowired
|
||||
private EmpresaAsistenciaDeViajeConfigService empresaAsistenciaDeViajeConfigService;
|
||||
@Autowired
|
||||
private EmpresaComprovantePassagemConfigService empresaComprovantePassagemConfigService;
|
||||
|
@ -251,6 +255,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
private EmpresaCertificadoConfig empresaCertificadoConfigSaftao;
|
||||
private List<EmpresaSicfeConfig> empresaSicfeConfig;
|
||||
private List<EmpresaCrediBancoConfig> empresaCrediBancoConfig;
|
||||
private EmpresaNequiConfig empresaNequiConfig;
|
||||
private List<EmpresaAsistenciaDeViajeConfig> empresaAsistenciaDeViajeConfig;
|
||||
private List<EmpresaComprovantePassagemConfig> empresaComprovantePassagemConfig;
|
||||
private MyListbox empresaList;
|
||||
|
@ -647,8 +652,16 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
private Checkbox chkindLayoutEmailConfig;
|
||||
private List<EmpresaConfigLayout> lsEmpresaConfigLayout;
|
||||
|
||||
private Textbox txtClientIdNequi;
|
||||
private Textbox txtApiKeyNequi;
|
||||
private Textbox txtCodeEmpresaNequi;
|
||||
private Textbox txtUrlNequi;
|
||||
private Textbox txtHashNequi;
|
||||
|
||||
@Autowired
|
||||
private EmpresaConfigLayoutService empresaConfigLayoutService;
|
||||
|
||||
|
||||
|
||||
private static final String EMAIL_PATTERN = "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@"
|
||||
+ "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";
|
||||
|
@ -682,6 +695,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
empresaCertificadoConfigSaftao = empresaCertificadoConfigService.buscarPorEmpresa(empresa, EnumTipoCertificado.SAFTAO);
|
||||
empresaSicfeConfig = empresaSicfeConfigService.buscarByEmpresa(empresa.getEmpresaId());
|
||||
empresaCrediBancoConfig = empresaCrediBancoConfigService.buscarByEmpresa(empresa.getEmpresaId());
|
||||
empresaNequiConfig = empresaNequiConfigService.buscarByEmpresa(empresa.getEmpresaId());
|
||||
empresaAsistenciaDeViajeConfig = empresaAsistenciaDeViajeConfigService.buscarByEmpresa(empresa.getEmpresaId());
|
||||
empresaComprovantePassagemConfig = empresaComprovantePassagemConfigService.buscarByEmpresa(empresa.getEmpresaId());
|
||||
empresaPMArtespConfig = empresaPMArtespConfigService.buscarPorEmpresa(empresa);
|
||||
|
@ -834,6 +848,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
|
||||
preencheInformacoesSicfe();
|
||||
preencheInformacoesCrediBanco();
|
||||
preencheInformacoesNequi();
|
||||
preencheInformacoesAsistenciaDeViaje();
|
||||
preencheInformacoesComprovantePassagem();
|
||||
|
||||
|
@ -1578,6 +1593,26 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
|
||||
empresaMercadoPagoConfigService.actualizacion(empresaMercadoPagoConfig);
|
||||
}
|
||||
|
||||
if (empresaNequiConfig == null) {
|
||||
empresaNequiConfig = new EmpresaNequiConfig();
|
||||
empresaNequiConfig.setEmpresa(empresa);
|
||||
empresaNequiConfig.setClienteIdNequi(txtClientIdNequi.getValue());
|
||||
empresaNequiConfig.setApiKey(txtApiKeyNequi.getValue());
|
||||
empresaNequiConfig.setCode(txtCodeEmpresaNequi.getValue());
|
||||
empresaNequiConfig.setHash(txtHashNequi.getValue());
|
||||
empresaNequiConfig.setUrl(txtUrlNequi.getValue());
|
||||
|
||||
empresaNequiConfig = empresaNequiConfigService.suscribir(empresaNequiConfig);
|
||||
} else {
|
||||
empresaNequiConfig.setClienteIdNequi(txtClientIdNequi.getValue());
|
||||
empresaNequiConfig.setApiKey(txtApiKeyNequi.getValue());
|
||||
empresaNequiConfig.setCode(txtCodeEmpresaNequi.getValue());
|
||||
empresaNequiConfig.setHash(txtHashNequi.getValue());
|
||||
empresaNequiConfig.setUrl(txtUrlNequi.getValue());
|
||||
empresaNequiConfigService.actualizacion(empresaNequiConfig);
|
||||
}
|
||||
|
||||
|
||||
adicionaInformacoesSicfe();
|
||||
adicionaInformacoesCrediBanco();
|
||||
|
@ -1903,6 +1938,19 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
txtClientSecretCrediBanco.setText(mapConfigCrediBanco.get("clientSecret"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void preencheInformacoesNequi() {
|
||||
if(empresaNequiConfig!=null) {
|
||||
txtClientIdNequi.setValue(empresaNequiConfig.getClienteIdNequi());
|
||||
txtApiKeyNequi.setValue(empresaNequiConfig.getApiKey());
|
||||
txtCodeEmpresaNequi.setValue(empresaNequiConfig.getCode());
|
||||
txtHashNequi.setValue(empresaNequiConfig.getHash());
|
||||
txtUrlNequi.setValue(empresaNequiConfig.getUrl());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void adicionaInformacoesCrediBanco() {
|
||||
Map<String, String> mapConfiCrediBanco = retornaValoresCrediBanco();
|
||||
|
@ -1924,6 +1972,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
private void salvaValoresCrediBanco(String chave, Object valor, Map<String, String> mapConfigCrediBanco) {
|
||||
|
||||
|
|
|
@ -484,6 +484,7 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.ConfComprovantePassagem</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Voucher</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EmpresaConfigLayout</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EmpresaNequiConfig</value>
|
||||
</list>
|
||||
</property>
|
||||
|
||||
|
|
|
@ -5136,6 +5136,12 @@ editarEmpresaController.utilizaResolucao.ajuda = Enables the use of resolutio
|
|||
editarEmpresaController.validadescontotarifa.ajuda = System discount/pricing calculations will be directed to the Original Fare value recorded in the price table.
|
||||
editarEmpresaController.validadescontotarifa.label = Ticket discount on Original Fare
|
||||
editarEmpresaController.voucherPersonalizado.label = Personalized Voucher
|
||||
editarEmpresaController.lblNequi.value = Nequi
|
||||
editarEmpresaController.lblClientIdNequi.value = ClientId Nequi
|
||||
editarEmpresaController.lblApiKeyNequi.value = Api Key Nequi
|
||||
editarEmpresaController.lblCodeEmpresaNequi.value = Code Empresa Nequi
|
||||
editarEmpresaController.lblUrlNequi.value = URL
|
||||
editarEmpresaController.lblHashNequi.value = Hash
|
||||
# Pantalla de Edición da empresa
|
||||
editarEmpresaController.window.title = Company
|
||||
|
||||
|
|
|
@ -5134,6 +5134,12 @@ editarEmpresaController.utilizaResolucao.ajuda = Habilita a utilização da r
|
|||
editarEmpresaController.validadescontotarifa.ajuda = Los cálculos de descuento / fijación del sistema se dirigen al valor de la tarifa original registrada en la tabla de precios.
|
||||
editarEmpresaController.validadescontotarifa.label = Desconto de passagem sobre Tarifa Original
|
||||
editarEmpresaController.voucherPersonalizado.label = Voucher Personalizado
|
||||
editarEmpresaController.lblNequi.value = Nequi
|
||||
editarEmpresaController.lblClientIdNequi.value = ClientId Nequi
|
||||
editarEmpresaController.lblApiKeyNequi.value = Api Key Nequi
|
||||
editarEmpresaController.lblCodeEmpresaNequi.value = Code Empresa Nequi
|
||||
editarEmpresaController.lblUrlNequi.value = URL
|
||||
editarEmpresaController.lblHashNequi.value = Hash
|
||||
# Pantalla de Edición da empresa
|
||||
editarEmpresaController.window.title = Empresa
|
||||
|
||||
|
|
|
@ -5134,6 +5134,13 @@ editarEmpresaController.utilizaResolucao.ajuda = Permet l'utilisation de la r
|
|||
editarEmpresaController.validadescontotarifa.ajuda = Les calculs de réduction/tarification du système seront dirigés vers la valeur du tarif d'origine enregistrée dans le tableau des prix.
|
||||
editarEmpresaController.validadescontotarifa.label = Réduction sur le tarif original
|
||||
editarEmpresaController.voucherPersonalizado.label = Bon personnalisé
|
||||
editarEmpresaController.lblNequi.value = Nequi
|
||||
editarEmpresaController.lblClientIdNequi.value = ClientId Nequi
|
||||
editarEmpresaController.lblApiKeyNequi.value = Api Key Nequi
|
||||
editarEmpresaController.lblCodeEmpresaNequi.value = Code Empresa Nequi
|
||||
editarEmpresaController.lblUrlNequi.value = URL
|
||||
editarEmpresaController.lblHashNequi.value = Hash
|
||||
|
||||
# Pantalla de Edición da empresa
|
||||
editarEmpresaController.window.title = Entreprise
|
||||
|
||||
|
|
|
@ -5129,6 +5129,12 @@ editarEmpresaController.utilizaResolucao.ajuda = Habilita a utilização da r
|
|||
editarEmpresaController.validadescontotarifa.ajuda = Cálculos de desconto/precificação do sistema serão direcionados para o valor de Tarifa Original registrada na tabela de preço.
|
||||
editarEmpresaController.validadescontotarifa.label = Desconto de passagem sobre Tarifa Original
|
||||
editarEmpresaController.voucherPersonalizado.label = Voucher Personalizado
|
||||
editarEmpresaController.lblNequi.value = Nequi
|
||||
editarEmpresaController.lblClientIdNequi.value = ClientId Nequi
|
||||
editarEmpresaController.lblApiKeyNequi.value = Api Key Nequi
|
||||
editarEmpresaController.lblCodeEmpresaNequi.value = Code Empresa Nequi
|
||||
editarEmpresaController.lblUrlNequi.value = URL
|
||||
editarEmpresaController.lblHashNequi.value = Hash
|
||||
# Pantalla de Edición da empresa
|
||||
editarEmpresaController.window.title = Empresa
|
||||
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
<tab label="${c:l('editarEmpresaController.saftao.titulo')}" id="tabSaftao" visible="false" />
|
||||
<tab label="${c:l('editarEmpresaController.sicfe.titulo')}" id="tabSicfe" />
|
||||
<tab label="${c:l('editarEmpresaController.lblCrediBanco.value')}" id="tabCrediBanco" />
|
||||
<tab label="${c:l('editarEmpresaController.lblNequi.value')}" id="tabNequi" />
|
||||
<tab label="${c:l('editarEmpresaController.lblAsistenciaDeViaje.value')}" id="tabAssistenteViagem" />
|
||||
<tab label="${c:l('editarEmpresaController.tabComprovantePassagem.value')}" id="tabComprovantePassagem" />
|
||||
<tab label="${c:l('editarEmpresaController.tabConfiguracaoLayout.value')}" />
|
||||
|
@ -2908,6 +2909,39 @@
|
|||
</grid>
|
||||
</tabpanel>
|
||||
|
||||
<!-- Nequi -->
|
||||
<tabpanel>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="25%" />
|
||||
<column width="75%" />
|
||||
</columns>
|
||||
<rows>
|
||||
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.lblClientIdNequi.value')}" />
|
||||
<textbox id="txtClientIdNequi" width="80%" maxlength="50" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.lblApiKeyNequi.value')}" />
|
||||
<textbox id="txtApiKeyNequi" width="80%" maxlength="100" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.lblCodeEmpresaNequi.value')}" />
|
||||
<textbox id="txtCodeEmpresaNequi" width="80%" maxlength="50" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.lblUrlNequi.value')}" />
|
||||
<textbox id="txtUrlNequi" width="80%" maxlength="250" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.lblHashNequi.value')}" />
|
||||
<textbox id="txtHashNequi" width="80%" maxlength="250" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
|
||||
<!-- Assistência de viagem -->
|
||||
<tabpanel>
|
||||
<grid fixedLayout="true">
|
||||
|
|
Loading…
Reference in New Issue