master
lucas.taia 2023-02-17 19:01:56 -03:00
parent d65eaba800
commit 7fc952a4b6
7 changed files with 532 additions and 5 deletions

View File

@ -4,12 +4,12 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId>
<artifactId>ventaboletosadm</artifactId>
<version>1.0.57</version>
<version>1.0.58</version>
<packaging>war</packaging>
<properties>
<modelWeb.version>1.0.33</modelWeb.version>
<flyway.version>1.0.22</flyway.version>
<modelWeb.version>1.0.34</modelWeb.version>
<flyway.version>1.0.23</flyway.version>
</properties>
<distributionManagement>

View File

@ -7,6 +7,7 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigDecimal;
import java.security.InvalidKeyException;
import java.security.KeyStore;
import java.security.KeyStoreException;
@ -32,6 +33,8 @@ import java.util.regex.Pattern;
import org.apache.commons.lang.BooleanUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.http.HttpStatus;
import org.apache.http.entity.ContentType;
import org.apache.log4j.Logger;
import org.brazilutils.br.cpfcnpj.Cnpj;
import org.brazilutils.br.cpfcnpj.Cpf;
@ -46,6 +49,7 @@ import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.UiException;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.InputEvent;
import org.zkoss.zk.ui.event.UploadEvent;
import org.zkoss.zkplus.databind.BindingListModel;
import org.zkoss.zkplus.databind.BindingListModelList;
@ -64,6 +68,7 @@ import org.zkoss.zul.Tab;
import org.zkoss.zul.Tabbox;
import org.zkoss.zul.Textbox;
import com.google.gson.Gson;
import com.rjconsultores.ventaboletos.constantes.ConstantesFuncionSistema;
import com.rjconsultores.ventaboletos.entidad.Categoria;
import com.rjconsultores.ventaboletos.entidad.Ciudad;
@ -80,6 +85,7 @@ import com.rjconsultores.ventaboletos.entidad.EmpresaEmailConfig;
import com.rjconsultores.ventaboletos.entidad.EmpresaEmailEComerce;
import com.rjconsultores.ventaboletos.entidad.EmpresaEmailFlexBus;
import com.rjconsultores.ventaboletos.entidad.EmpresaImposto;
import com.rjconsultores.ventaboletos.entidad.EmpresaMercadoPagoConfig;
import com.rjconsultores.ventaboletos.entidad.EmpresaSaferConfig;
import com.rjconsultores.ventaboletos.entidad.Estado;
import com.rjconsultores.ventaboletos.entidad.FormaPago;
@ -89,8 +95,11 @@ import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra;
import com.rjconsultores.ventaboletos.enums.TipoCstGratuidade;
import com.rjconsultores.ventaboletos.enums.TipoEmail;
import com.rjconsultores.ventaboletos.enums.TipoEnvioRest;
import com.rjconsultores.ventaboletos.enums.TipoOperacaoECommerce;
import com.rjconsultores.ventaboletos.exception.BusinessException;
import com.rjconsultores.ventaboletos.rest.generic.GenericRest;
import com.rjconsultores.ventaboletos.rest.generic.RetornoGenericRest;
import com.rjconsultores.ventaboletos.service.CategoriaService;
import com.rjconsultores.ventaboletos.service.CiudadService;
import com.rjconsultores.ventaboletos.service.EmpresaAdyenConfigService;
@ -100,6 +109,7 @@ import com.rjconsultores.ventaboletos.service.EmpresaEmailEComerceService;
import com.rjconsultores.ventaboletos.service.EmpresaEmailFlexBusService;
import com.rjconsultores.ventaboletos.service.EmpresaEmailService;
import com.rjconsultores.ventaboletos.service.EmpresaImpostoService;
import com.rjconsultores.ventaboletos.service.EmpresaMercadoPagoConfigService;
import com.rjconsultores.ventaboletos.service.EmpresaSaferConfigService;
import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.EstadoService;
@ -111,6 +121,12 @@ import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
import com.rjconsultores.ventaboletos.utilerias.RegistroConDependenciaException;
import com.rjconsultores.ventaboletos.utilerias.SendMail.AuthType;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.vo.mercadopago.PosVO;
import com.rjconsultores.ventaboletos.vo.mercadopago.RetornoErro;
import com.rjconsultores.ventaboletos.vo.mercadopago.RetornoPosVO;
import com.rjconsultores.ventaboletos.vo.mercadopago.RetornoStoreVO;
import com.rjconsultores.ventaboletos.vo.mercadopago.StoreVO;
import com.rjconsultores.ventaboletos.vo.mercadopago.StoreVO.Location;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
@ -164,6 +180,8 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
private EmpresaSaferConfigService empresaSaferConfigService;
@Autowired
private EmpresaAdyenConfigService empresaAdyenConfigService;
@Autowired
private EmpresaMercadoPagoConfigService empresaMercadoPagoConfigService;
private Empresa empresa;
private EmpresaEmail empresaEmail;
@ -173,6 +191,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
private EmpresaCieloLinkConfig empresaCieloLinkConfig;
private EmpresaSaferConfig empresaSaferConfig;
private EmpresaAdyenConfig empresaAdyenConfig;
private EmpresaMercadoPagoConfig empresaMercadoPagoConfig;
private MyListbox empresaList;
private MyTextbox txtNome;
private MyTextbox txtCNPJ;
@ -419,6 +438,31 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
private List<TipoOperacaoECommerce> lsTipoOperacao;
private Label lblTipoEmail;
private Textbox txtUserIdMercadoPago;
private Textbox txtTokenMercadoPago;
private Combobox cmbStoreMercadoPago;
private Combobox cmbPOSMercadoPago;
private Textbox txtUrlApiMercadoPago;
private List<StoreVO> lsStoreMercadoPago;
private List<PosVO> lsPosMercadoPago;
private Textbox txtNomeStore;
private Textbox txtIdStoreMercadoPago;
private Textbox txtNomePOS;
private Textbox txtIdPOSMercadoPago;
private Combobox cmbCategoriaMercadoPago;
private Combobox cmbStoreCadastroMercadoPago;
private Button btnCadastrarStoreMercadoPago;
private Button btnCadastrarPOSMercadoPago;
private PosVO posVO;
private StoreVO storeVO;
private Textbox txtLatitudeLongitude;
private Textbox txtLatitude;
private Textbox txtLongitude;
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,})$";
@ -444,6 +488,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
empresaEmailConfig = empresaEmailConfigService.buscarPorEmpresa(empresa);
empresaSaferConfig = empresaSaferConfigService.buscarPorEmpresa(empresa);
empresaAdyenConfig = empresaAdyenConfigService.buscarPorEmpresa(empresa);
empresaMercadoPagoConfig = empresaMercadoPagoConfigService.buscarPorEmpresa(empresa);
}
if (empresa != null && empresa.getEmpresaId() != null) {
@ -541,6 +586,13 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
}
}
if (empresaMercadoPagoConfig != null) {
txtUserIdMercadoPago.setText(empresaMercadoPagoConfig.getUserId());
txtTokenMercadoPago.setText(empresaMercadoPagoConfig.getToken());
txtUrlApiMercadoPago.setText(empresaMercadoPagoConfig.getUrlApi());
carregarConfiguracaoMercadoPago();
}
if (empresa.getIndfechatarifa() == null) {
rdgFechaSalida.setChecked(Boolean.TRUE);
} else if (empresa.getIndfechatarifa()) {
@ -565,6 +617,31 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
utilizaProjetoFidelidadeSim.setChecked(Boolean.FALSE);
}
txtLatitudeLongitude.addEventListener("onChanging", new EventListener() {
@Override
public void onEvent(Event event) throws Exception {
if (event instanceof InputEvent) {
InputEvent inputEvent = (InputEvent) event;
if (inputEvent.getValue() != null) {
List<String> coordinates = Arrays.asList(inputEvent.getValue().split("\\s*,\\s*"));
if (!coordinates.isEmpty() && coordinates.size() == 2) {
Float latitude = new BigDecimal(coordinates.get(0)).floatValue();
Float longitude = new BigDecimal(coordinates.get(1)).floatValue();
txtLatitude.setValue(String.valueOf(latitude));
txtLongitude.setValue(String.valueOf(longitude));
txtLatitudeLongitude.setValue(null);
txtLatitudeLongitude.setText(null);
empresa.setLatitude(latitude);
empresa.setLongitude(longitude);
event.stopPropagation();
}
}
}
}
});
chkIndgennumfoliovtaintimpost.setChecked(BooleanUtils.toBoolean(empresa.getIndgennumfoliovtaintimpost()));
chkHabilitarFidelidade.setChecked(BooleanUtils.toBoolean(empresa.getIndFidelidade()));
chkHabilitarVendaEstudanteTotem.setChecked(BooleanUtils.toBoolean(empresa.getIndVendaEstudanteTotem()));
@ -1111,6 +1188,41 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
empresaAdyenConfigService.actualizacion(empresaAdyenConfig);
}
if (empresaMercadoPagoConfig == null) {
empresaMercadoPagoConfig = new EmpresaMercadoPagoConfig();
empresaMercadoPagoConfig.setEmpresa(empresa);
empresaMercadoPagoConfig.setUserId(txtUserIdMercadoPago.getValue());
empresaMercadoPagoConfig.setToken(txtTokenMercadoPago.getValue());
empresaMercadoPagoConfig.setUrlApi(txtUrlApiMercadoPago.getValue());
if (cmbStoreMercadoPago.getSelectedItem() != null) {
empresaMercadoPagoConfig.setStore(cmbStoreMercadoPago.getSelectedItem().getValue().toString());
}
if (cmbPOSMercadoPago.getSelectedItem() != null) {
empresaMercadoPagoConfig.setPos(cmbPOSMercadoPago.getSelectedItem().getValue().toString());
}
empresaMercadoPagoConfig = empresaMercadoPagoConfigService.suscribir(empresaMercadoPagoConfig);
} else {
empresaMercadoPagoConfig.setEmpresa(empresa);
empresaMercadoPagoConfig.setUserId(txtUserIdMercadoPago.getValue());
empresaMercadoPagoConfig.setToken(txtTokenMercadoPago.getValue());
empresaMercadoPagoConfig.setUrlApi(txtUrlApiMercadoPago.getValue());
if (cmbStoreMercadoPago.getSelectedItem() != null) {
empresaMercadoPagoConfig.setStore(cmbStoreMercadoPago.getSelectedItem().getValue().toString());
}
if (cmbPOSMercadoPago.getSelectedItem() != null) {
empresaMercadoPagoConfig.setPos(cmbPOSMercadoPago.getSelectedItem().getValue().toString());
}
empresaMercadoPagoConfigService.actualizacion(empresaMercadoPagoConfig);
}
Messagebox.show(Labels.getLabel("editarEmpresaController.MSG.suscribirOK"),
Labels.getLabel("editarEmpresaController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
@ -1721,6 +1833,216 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
}
}
public void onClick$btnCadastrarStoreMercadoPago(Event ev) throws InterruptedException {
Object storeVO = cadastrarStoreMercadoPago();
if (storeVO != null && storeVO instanceof StoreVO ) {
RetornoStoreVO retornoStoreVO = retornarStoreMercadoPago();
lsStoreMercadoPago.clear();
for (StoreVO vo : retornoStoreVO.getResults()) {
lsStoreMercadoPago.add(vo);
}
BindingListModel listModel = new BindingListModelList(lsStoreMercadoPago, true);
cmbStoreMercadoPago.setModel(listModel);
cmbStoreCadastroMercadoPago.setModel(listModel);
Messagebox.show("Store cadastrada com sucesso", Labels.getLabel("editarEmpresaController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
} else {
Messagebox.show(storeVO.toString(), Labels.getLabel("editarEmpresaController.window.title"),
Messagebox.OK, Messagebox.ERROR);
}
}
public void onClick$btnCadastrarPOSMercadoPago(Event ev) throws InterruptedException {
Object posVO = cadastrarPOSMercadoPago();
if (posVO != null && posVO instanceof PosVO) {
RetornoPosVO retornoPosVO = retornarPosMercadoPago();
lsPosMercadoPago.clear();
for (PosVO vo : retornoPosVO.getResults()) {
lsPosMercadoPago.add(vo);
}
BindingListModel listModel = new BindingListModelList(lsPosMercadoPago, true);
cmbPOSMercadoPago.setModel(listModel);
Messagebox.show("POS cadastrado com sucesso", Labels.getLabel("editarEmpresaController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
} else {
Messagebox.show(storeVO.toString(), Labels.getLabel("editarEmpresaController.window.title"),
Messagebox.OK, Messagebox.ERROR);
}
}
private void carregarConfiguracaoMercadoPago() {
String store = empresaMercadoPagoConfig.getStore();
String pos = empresaMercadoPagoConfig.getPos();
lsStoreMercadoPago = new ArrayList<StoreVO>();
lsPosMercadoPago = new ArrayList<PosVO>();
RetornoStoreVO retornoStoreVO = retornarStoreMercadoPago();
for (StoreVO vo : retornoStoreVO.getResults()) {
if ( store != null && vo.toString().equals(store)) {
this.storeVO = vo;
}
lsStoreMercadoPago.add(vo);
}
RetornoPosVO retornoPosVO = retornarPosMercadoPago();
for (PosVO vo : retornoPosVO.getResults()) {
if (pos != null && vo.toString().equals(pos)) {
this.posVO = vo;
}
lsPosMercadoPago.add(vo);
}
}
private Object cadastrarStoreMercadoPago() {
try {
StoreVO consulta = new StoreVO();
consulta.setName(txtNomeStore.getValue());
consulta.setExternal_id(txtIdStoreMercadoPago.getValue());
Location item = new Location();
item.setStreet_number(empresa.getNumero());
item.setStreet_name(empresa.getLogradouro());
item.setCity_name(StringUtils.capitalize(empresa.getCidade().getNombciudad().toLowerCase()));
item.setState_name(StringUtils.capitalize(empresa.getCidade().getEstado().getNombestado().toLowerCase()) );
item.setLatitude(empresa.getLatitude());
item.setLongitude(empresa.getLongitude());
item.setReference(empresa.getComplemento());
consulta.setLocation(item);
HashMap<String, String> headers = new HashMap<String, String>();
headers.put("Authorization",
"Bearer " + txtTokenMercadoPago.getValue());
headers.put("Accept", "application/json");
headers.put("Content-type", "application/json");
String userId = txtUserIdMercadoPago.getValue();
RetornoGenericRest<?> resposta = GenericRest.getInstance().fazerChamada(
txtUrlApiMercadoPago.getValue() + "/users/" + userId + "/stores",
TipoEnvioRest.POST, new Gson().toJson(consulta).toString(), ContentType.APPLICATION_JSON,
headers, StoreVO.class, Object.class);
if (resposta != null && (resposta.getStatusResposta().equals(HttpStatus.SC_OK)
|| resposta.getStatusResposta().equals(HttpStatus.SC_CREATED))) {
return (StoreVO) resposta.getConteudo();
} else {
return resposta.getConteudoErro();
}
} catch (Exception e) {
log.error("erro ao enviar requisicao ", e);
}
return null;
}
private Object cadastrarPOSMercadoPago() {
try {
PosVO consulta = new PosVO();
consulta.setName(txtNomePOS.getValue());
consulta.setFixed_amount(false);
if (cmbStoreCadastroMercadoPago.getSelectedItem() != null) {
StoreVO storeVO = (StoreVO) cmbStoreCadastroMercadoPago.getSelectedItem().getValue();
consulta.setStore_id(storeVO.getId());
consulta.setExternal_store_id(storeVO.getExternal_id());
}
consulta.setExternal_id(txtIdPOSMercadoPago.getValue());
consulta.setCategory(5611203);
HashMap<String, String> headers = new HashMap<String, String>();
headers.put("Authorization",
"Bearer " + txtTokenMercadoPago.getValue());
headers.put("Accept", "application/json");
headers.put("Content-type", "application/json");
RetornoGenericRest<?> resposta = GenericRest.getInstance().fazerChamada(
txtUrlApiMercadoPago.getValue() + "/pos",
TipoEnvioRest.POST, new Gson().toJson(consulta).toString(), ContentType.APPLICATION_JSON,
headers, PosVO.class, RetornoErro.class);
if (resposta != null && (resposta.getStatusResposta().equals(HttpStatus.SC_OK)
|| resposta.getStatusResposta().equals(HttpStatus.SC_CREATED))) {
return (PosVO) resposta.getConteudo();
} else {
return resposta.getConteudoErro();
}
} catch (Exception e) {
log.error("erro ao enviar requisicao ", e);
}
return null;
}
private RetornoStoreVO retornarStoreMercadoPago() {
try {
HashMap<String, String> headers = new HashMap<String, String>();
headers.put("Authorization",
"Bearer " + txtTokenMercadoPago.getValue());
headers.put("Accept", "application/json");
headers.put("Content-type", "application/json");
String userId = txtUserIdMercadoPago.getValue();
RetornoGenericRest<?> resposta = GenericRest.getInstance().fazerChamada(
txtUrlApiMercadoPago.getValue() + "/users/" + userId + "/stores/search",
TipoEnvioRest.GET, null, ContentType.APPLICATION_JSON,
headers, RetornoStoreVO.class, RetornoErro.class);
if (resposta != null && (resposta.getStatusResposta().equals(HttpStatus.SC_OK)
|| resposta.getStatusResposta().equals(HttpStatus.SC_CREATED))) {
return (RetornoStoreVO) resposta.getConteudo();
}
} catch (Exception e) {
log.error("erro ao enviar requisicao ", e);
}
return null;
}
private RetornoPosVO retornarPosMercadoPago() {
try {
HashMap<String, String> headers = new HashMap<String, String>();
headers.put("Authorization",
"Bearer " + txtTokenMercadoPago.getValue());
headers.put("Accept", "application/json");
headers.put("Content-type", "application/json");
RetornoGenericRest<?> resposta = GenericRest.getInstance().fazerChamada(
txtUrlApiMercadoPago.getValue() + "/pos",
TipoEnvioRest.GET, null, ContentType.APPLICATION_JSON,
headers, RetornoPosVO.class, RetornoErro.class);
if (resposta != null && (resposta.getStatusResposta().equals(HttpStatus.SC_OK)
|| resposta.getStatusResposta().equals(HttpStatus.SC_CREATED))) {
return (RetornoPosVO) resposta.getConteudo();
}
} catch (Exception e) {
log.error("erro ao enviar requisicao ", e);
}
return null;
}
public Combobox getCmbEstadoInscEstadual() {
return cmbEstadoInscEstadual;
}
@ -2496,4 +2818,44 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
this.lblTipoEmail = lblTipoEmail;
}
public List<StoreVO> getLsStoreMercadoPago() {
return lsStoreMercadoPago;
}
public void setLsStoreMercadoPago(List<StoreVO> lsStoreMercadoPago) {
this.lsStoreMercadoPago = lsStoreMercadoPago;
}
public List<PosVO> getLsPosMercadoPago() {
return lsPosMercadoPago;
}
public void setLsPosMercadoPago(List<PosVO> lsPosMercadoPago) {
this.lsPosMercadoPago = lsPosMercadoPago;
}
public EmpresaMercadoPagoConfig getEmpresaMercadoPagoConfig() {
return empresaMercadoPagoConfig;
}
public void setEmpresaMercadoPagoConfig(EmpresaMercadoPagoConfig empresaMercadoPagoConfig) {
this.empresaMercadoPagoConfig = empresaMercadoPagoConfig;
}
public PosVO getPosVO() {
return posVO;
}
public void setPosVO(PosVO posVO) {
this.posVO = posVO;
}
public StoreVO getStoreVO() {
return storeVO;
}
public void setStoreVO(StoreVO storeVO) {
this.storeVO = storeVO;
}
}

View File

@ -421,7 +421,7 @@
<value>com.rjconsultores.ventaboletos.entidad.HistoricoFormaPagoPuntoVenta</value>
<value>com.rjconsultores.ventaboletos.entidad.EmpresaAdyenConfig</value>
<value>com.rjconsultores.ventaboletos.entidad.EmpresaCieloLinkConfig</value>
<value>com.rjconsultores.ventaboletos.entidad.EmpresaMercadoPagoConfig</value>
</list>
</property>

View File

@ -1385,6 +1385,7 @@ editarFormaPagoController.lblLogpay.label=Logpay
editarFormaPagoController.lblTPI.label=TPI
editarFormaPagoController.lblMobiPix.label=MobiPix
editarFormaPagoController.lblAdyen.label=Adyen
editarFormaPagoController.lblMercadoPago.label=Mercado Pago
editarFormaPagoController.lblAtivaProcessoEstorno.label=Ativa processo de estorno
editarFormaPagoController.lblVoucherRodoviaria.label=Voucher Rodoviária
editarFormaPagoController.lblTransferenciaReativacao.label=Utiliza na Transferência / Reativação

View File

@ -1207,6 +1207,7 @@ editarFormaPagoController.lblLogpay.label=Logpay
editarFormaPagoController.lblTPI.label=TPI
editarFormaPagoController.lblMobiPix.label=MobiPix
editarFormaPagoController.lblAdyen.label=Adyen
editarFormaPagoController.lblMercadoPago.label=Mercado Pago
editarFormaPagoController.lblAtivaProcessoEstorno.label=Activa el proceso de contracargo
editarFormaPagoController.lblVoucherRodoviaria.label=Voucher Rodoviária
editarFormaPagoController.lblTransferenciaReativacao.label=Utiliza na Transferência / Reativação

View File

@ -1386,6 +1386,7 @@ editarFormaPagoController.lblLogpay.label=Logpay
editarFormaPagoController.lblTPI.label=TPI
editarFormaPagoController.lblMobiPix.label=MobiPix
editarFormaPagoController.lblAdyen.label=Adyen
editarFormaPagoController.lblMercadoPago.label=Mercado Pago
editarFormaPagoController.lblAtivaProcessoEstorno.label=Ativa processo de estorno
editarFormaPagoController.lblVoucherRodoviaria.label=Voucher Rodoviária
editarFormaPagoController.lblTransferenciaReativacao.label=Utiliza na Transferência / Reativação

View File

@ -62,6 +62,8 @@
label="${c:l('editarEmpresaController.lblSafer.value')}" />
<tab id="tabAdyen"
label="${c:l('editarEmpresaController.lblAdyen.value')}" />
<tab id="tabMercadoPago"
label="Mercado Pago" />
</tabs>
@ -1129,6 +1131,28 @@
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row>
<row>
<!--Latitude/Longitude-->
<label
value="Latitude/Longitude (Google Maps Clipboard)" />
<textbox id="txtLatitudeLongitude" width="70%"/>
</row>
<row>
<!--Latitude-->
<label
value="Latitude" />
<textbox id="txtLatitude" width="30%"
value="@{winEditarEmpresa$composer.empresa.latitude,converter=com.rjconsultores.ventaboletos.web.utilerias.StringToFloatConverter}" />
</row>
<row>
<!--Longitude-->
<label
value="Longitude" />
<textbox id="txtLongitude" width="30%"
value="@{winEditarEmpresa$composer.empresa.longitude,converter=com.rjconsultores.ventaboletos.web.utilerias.StringToFloatConverter}" />
</row>
</rows>
</grid>
</tabpanel>
@ -2241,6 +2265,144 @@
</rows>
</grid>
</tabpanel>
<tabpanel>
<tabbox>
<tabs>
<tab label="Geral" />
<tab label="Cadastro" />
</tabs>
<tabpanels>
<tabpanel>
<grid fixedLayout="true">
<columns>
<column width="25%" />
<column width="75%" />
</columns>
<rows>
<row>
<label
value="User ID" />
<textbox id="txtUserIdMercadoPago" width="80%" maxlength="255"
value="@{winEditarEmpresa$composer.empresaMercadoPagoConfig.userId}" />
</row>
<row>
<label
value="Token" />
<textbox id="txtTokenMercadoPago" width="80%" maxlength="255"
value="@{winEditarEmpresa$composer.empresaMercadoPagoConfig.token}" />
</row>
<row>
<label
value="Url API" />
<textbox id="txtUrlApiMercadoPago" width="80%" maxlength="255"
value="@{winEditarEmpresa$composer.empresaMercadoPagoConfig.urlApi}" />
</row>
<row>
<label
value="Store" />
<combobox id="cmbStoreMercadoPago"
width="90%" mold="rounded"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winEditarEmpresa$composer.lsStoreMercadoPago}"
selectedItem="@{winEditarEmpresa$composer.storeVO}"/>
</row>
<row>
<label
value="POS" />
<combobox id="cmbPOSMercadoPago"
width="90%" mold="rounded"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winEditarEmpresa$composer.lsPosMercadoPago}"
selectedItem="@{winEditarEmpresa$composer.posVO}"/>
</row>
</rows>
</grid>
</tabpanel>
<tabpanel>
<toolbar>
<separator bar="true"/>
Store
</toolbar>
<grid fixedLayout="true">
<columns>
<column width="25%" />
<column width="75%" />
</columns>
<rows>
<row>
<label
value="Nome" />
<textbox id="txtNomeStore" width="80%" maxlength="255" />
</row>
<row>
<label
value="ID Externo" />
<textbox id="txtIdStoreMercadoPago" width="80%" maxlength="255" />
</row>
</rows>
</grid>
<button id="btnCadastrarStoreMercadoPago" height="20" label="Cadastrar Store" />
<toolbar>
<separator bar="true"/>
POS
</toolbar>
<grid fixedLayout="true">
<columns>
<column width="25%" />
<column width="75%" />
</columns>
<rows>
<row>
<label
value="Nome" />
<textbox id="txtNomePOS" width="80%" maxlength="255" />
</row>
<row>
<label
value="ID Externo" />
<textbox id="txtIdPOSMercadoPago" width="80%" maxlength="255" />
</row>
<row>
<label
value="Store" />
<combobox id="cmbStoreCadastroMercadoPago"
width="90%" mold="rounded"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"/>
</row>
</rows>
</grid>
<button id="btnCadastrarPOSMercadoPago" height="20" label="Cadastrar POS" />
</tabpanel>
</tabpanels>
</tabbox>
</tabpanel>
</tabpanels>
</tabbox>
</window>