0014842: Tela de Cadastro de Empresa - Troco Simples
bug#14842 dev:emerson qua:wallysson git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@95376 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
2bbe25cfbc
commit
5d3432df39
|
@ -0,0 +1,228 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.apache.log4j.Logger;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.zkoss.zhtml.Messagebox;
|
||||||
|
import org.zkoss.zk.ui.Component;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Comboitem;
|
||||||
|
import org.zkoss.zul.Longbox;
|
||||||
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.EmpresaTrocoSimples;
|
||||||
|
import com.rjconsultores.ventaboletos.enums.TypeEventListener;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaTrocoSimplesService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MensagensUtils;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
|
||||||
|
@Controller("editarEmpresaTrocoSimplesController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class EditarEmpresaTrocoSimplesController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private static Logger log = Logger.getLogger(EditarEmpresaTrocoSimplesController.class);
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EmpresaTrocoSimplesService trocoService;
|
||||||
|
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
private List<Empresa> lsEmpresas;
|
||||||
|
private Textbox txtRazaoSocial;
|
||||||
|
private Textbox txtNomeFantasia;
|
||||||
|
private Longbox txtCNPJ;
|
||||||
|
private Textbox txtTelefone;
|
||||||
|
private Textbox txtEndereco;
|
||||||
|
private Textbox txtValorSugerido;
|
||||||
|
private Textbox txtToken;
|
||||||
|
|
||||||
|
private EmpresaTrocoSimples empresaTroco;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
cmbEmpresa.addEventListener(TypeEventListener.ON_CHANGE.getEvent(), new EventListenerOnChangeComboEmpresa());
|
||||||
|
}
|
||||||
|
|
||||||
|
private final class EventListenerOnChangeComboEmpresa implements EventListener {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event arg0) throws Exception {
|
||||||
|
if(cmbEmpresa.getSelectedIndex() < 0) {
|
||||||
|
log.info("Não foi selecionado empresa");
|
||||||
|
empresaTroco = null;
|
||||||
|
preencherTela();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||||
|
Empresa empresa = (Empresa) itemEmpresa.getValue();
|
||||||
|
|
||||||
|
empresaTroco = trocoService.buscarEmpresaTrocoSimplesPorEmpresaId(empresa.getEmpresaId());
|
||||||
|
|
||||||
|
if(empresaTroco == null) {
|
||||||
|
empresaTroco = new EmpresaTrocoSimples();
|
||||||
|
}
|
||||||
|
|
||||||
|
preencherTela();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void preencherTela() {
|
||||||
|
if(empresaTroco == null) {
|
||||||
|
txtRazaoSocial.setText("");
|
||||||
|
txtNomeFantasia.setText("");
|
||||||
|
txtCNPJ.setText("");
|
||||||
|
txtTelefone.setText("");
|
||||||
|
txtEndereco.setText("");
|
||||||
|
txtValorSugerido.setText("");
|
||||||
|
txtToken.setText("");
|
||||||
|
} else {
|
||||||
|
txtRazaoSocial.setText(empresaTroco.getRazaoSocial());
|
||||||
|
txtNomeFantasia.setText(empresaTroco.getNomeFantasia());
|
||||||
|
txtCNPJ.setText(empresaTroco.getCnpj());
|
||||||
|
txtTelefone.setText(empresaTroco.getTelefone());
|
||||||
|
txtEndereco.setText(empresaTroco.getEndereco());
|
||||||
|
txtValorSugerido.setText(empresaTroco.getValorSugerirTroco() == null ? "" : empresaTroco.getValorSugerirTroco().toString());
|
||||||
|
txtToken.setText(empresaTroco.getTokenEmpresa());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnSalvar(Event ev) {
|
||||||
|
try {
|
||||||
|
if(empresaTroco != null) {
|
||||||
|
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||||
|
Empresa empresa = (Empresa) itemEmpresa.getValue();
|
||||||
|
|
||||||
|
empresaTroco.setEmpresa(empresa);
|
||||||
|
empresaTroco.setCnpj(txtCNPJ.getText());
|
||||||
|
empresaTroco.setNomeFantasia(txtNomeFantasia.getText());
|
||||||
|
empresaTroco.setRazaoSocial(txtRazaoSocial.getText());
|
||||||
|
empresaTroco.setTelefone(txtTelefone.getText());
|
||||||
|
empresaTroco.setEndereco(txtEndereco.getText());
|
||||||
|
empresaTroco.setValorSugerirTroco(new BigDecimal(txtValorSugerido.getText()));
|
||||||
|
empresaTroco.setTokenEmpresa(txtToken.getText());
|
||||||
|
empresaTroco.setActivo(true);
|
||||||
|
empresaTroco = trocoService.suscribirActualizar(empresaTroco);
|
||||||
|
|
||||||
|
MensagensUtils.showMessageExclamation("editarEmpresaTrocoSimples.MSG.suscribirOK", "editarEmpresaTrocoSimples.window.title");
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("Erro ao salvar configuração de troco simples: ", e);
|
||||||
|
MensagensUtils.showMessageError("editarConvenioController.MSG.erro", "editarEmpresaTrocoSimples.window.title");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnApagar(Event ev) {
|
||||||
|
try {
|
||||||
|
if(!(empresaTroco != null && empresaTroco.getEmpresaTrocoSimplesId() != null)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Messagebox.YES == MensagensUtils.showMessageQuestion("editarEmpresaTrocoSimples.MSG.borrarPergunta", "editarEmpresaTrocoSimples.window.title")) {
|
||||||
|
|
||||||
|
trocoService.apagar(empresaTroco);
|
||||||
|
|
||||||
|
MensagensUtils.showMessageExclamation("editarConvenioController.MSG.borrarOK", "editarConvenioController.window.title");
|
||||||
|
|
||||||
|
cmbEmpresa.setSelectedIndex(-1);
|
||||||
|
empresaTroco = null;
|
||||||
|
preencherTela();
|
||||||
|
|
||||||
|
}
|
||||||
|
} catch (Exception ex) {
|
||||||
|
log.error("Erro ao apagar configuração de troco simples: ", ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbEmpresa() {
|
||||||
|
return cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbEmpresa(Combobox cmbEmpresa) {
|
||||||
|
this.cmbEmpresa = cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EmpresaTrocoSimplesService getTrocoService() {
|
||||||
|
return trocoService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrocoService(EmpresaTrocoSimplesService trocoService) {
|
||||||
|
this.trocoService = trocoService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresas() {
|
||||||
|
return lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
||||||
|
this.lsEmpresas = lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtRazaoSocial() {
|
||||||
|
return txtRazaoSocial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtRazaoSocial(Textbox txtRazaoSocial) {
|
||||||
|
this.txtRazaoSocial = txtRazaoSocial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtNomeFantasia() {
|
||||||
|
return txtNomeFantasia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtNomeFantasia(Textbox txtNomeFantasia) {
|
||||||
|
this.txtNomeFantasia = txtNomeFantasia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Longbox getTxtCNPJ() {
|
||||||
|
return txtCNPJ;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtCNPJ(Longbox txtCNPJ) {
|
||||||
|
this.txtCNPJ = txtCNPJ;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtTelefone() {
|
||||||
|
return txtTelefone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtTelefone(Textbox txtTelefone) {
|
||||||
|
this.txtTelefone = txtTelefone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtEndereco() {
|
||||||
|
return txtEndereco;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtEndereco(Textbox txtEndereco) {
|
||||||
|
this.txtEndereco = txtEndereco;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtValorSugerido() {
|
||||||
|
return txtValorSugerido;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtValorSugerido(Textbox txtValorSugerido) {
|
||||||
|
this.txtValorSugerido = txtValorSugerido;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtToken() {
|
||||||
|
return txtToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtToken(Textbox txtToken) {
|
||||||
|
this.txtToken = txtToken;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.constantes.ConstantesFuncionSistema;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuCadastroEmpresaTrocoSimples extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuCadastroEmpresaTrocoSimples() {
|
||||||
|
super("indexController.mniTrocoSimples.cadastroEmpresa.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return ConstantesFuncionSistema.CLAVE_TROCO_SIMPLES;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/esquema_operacional/editarEmpresaTrocoSimples.zul",
|
||||||
|
Labels.getLabel("editarEmpresaTrocoSimples.window.title"), getArgs() ,desktop);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.constantes.ConstantesFuncionSistema;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class SubMenuTrocoSimples extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public SubMenuTrocoSimples() {
|
||||||
|
super("indexController.mniTrocoSimples.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return ConstantesFuncionSistema.CLAVE_TROCO_SIMPLES;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -92,6 +92,8 @@ esquemaOperacional.atualizacorridafechusofecverano=com.rjconsultores.ventaboleto
|
||||||
esquemaOperacional.geracaoArquivoEMTU=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemGeracaoArquivoEMTU
|
esquemaOperacional.geracaoArquivoEMTU=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemGeracaoArquivoEMTU
|
||||||
esquemaOperacional.configuracaoVendaEmbarcada=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.SubMenuConfiguracaoVendaEmbarcada
|
esquemaOperacional.configuracaoVendaEmbarcada=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.SubMenuConfiguracaoVendaEmbarcada
|
||||||
esquemaOperacional.configuracaoVendaEmbarcada.ItemMenuCadastroOperadorEmbarcada=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuCadastroOperadorEmbarcada
|
esquemaOperacional.configuracaoVendaEmbarcada.ItemMenuCadastroOperadorEmbarcada=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuCadastroOperadorEmbarcada
|
||||||
|
esquemaOperacional.trocoSimples=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.SubMenuTrocoSimples
|
||||||
|
esquemaOperacional.trocoSimples.ItemMenuCadastroEmpresaTrocoSimples=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuCadastroEmpresaTrocoSimples
|
||||||
tarifasOficial=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial.MenuTarifasOficial
|
tarifasOficial=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial.MenuTarifasOficial
|
||||||
tarifasOficial.seguroKm=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial.ItemMenuSeguroKm
|
tarifasOficial.seguroKm=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial.ItemMenuSeguroKm
|
||||||
tarifasOficial.seguroTarifa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial.ItemMenuSeguroTarifa
|
tarifasOficial.seguroTarifa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial.ItemMenuSeguroTarifa
|
||||||
|
|
|
@ -484,6 +484,7 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.OperadorEmbarcadaLinha</value>
|
<value>com.rjconsultores.ventaboletos.entidad.OperadorEmbarcadaLinha</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.OperadorEmbarcadaServico</value>
|
<value>com.rjconsultores.ventaboletos.entidad.OperadorEmbarcadaServico</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.LogHistoricoContingencia</value>
|
<value>com.rjconsultores.ventaboletos.entidad.LogHistoricoContingencia</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.EmpresaTrocoSimples</value>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
|
|
|
@ -8174,3 +8174,23 @@ editarContigencia.tabela.usuario=USUARIO
|
||||||
editarContigencia.tabela.data=DATA
|
editarContigencia.tabela.data=DATA
|
||||||
editarContigencia.tabela.ambiente=Ambiente
|
editarContigencia.tabela.ambiente=Ambiente
|
||||||
editarContigencia.tabela.status=STATUS
|
editarContigencia.tabela.status=STATUS
|
||||||
|
|
||||||
|
indexController.mniTrocoSimples.label= Troco Simples
|
||||||
|
indexController.mniTrocoSimples.cadastroEmpresa.label= Cadastro Empresa
|
||||||
|
editarEmpresaTrocoSimples.window.title= Cadastro da empresa no Troco Simples
|
||||||
|
editarEmpresaTrocoSimples.btnApagar.tooltiptext = Apagar
|
||||||
|
editarEmpresaTrocoSimples.btnSalvar.tooltiptext = Salvar
|
||||||
|
editarEmpresaTrocoSimples.btnFechar.tooltiptext = Fechar
|
||||||
|
editarEmpresaTrocoSimples.empresa=Empresa
|
||||||
|
editarEmpresaTrocoSimples.razaoSocial=Razão Social
|
||||||
|
editarEmpresaTrocoSimples.nomeFantasia=Nome Fantasia
|
||||||
|
editarEmpresaTrocoSimples.cnpj=CNPJ
|
||||||
|
editarEmpresaTrocoSimples.telefone=Telefone
|
||||||
|
editarEmpresaTrocoSimples.endereco=Endereço
|
||||||
|
editarEmpresaTrocoSimples.valorSugerir=Valor para Sugestão de Troco Simples
|
||||||
|
editarEmpresaTrocoSimples.token=Token
|
||||||
|
editarEmpresaTrocoSimples.MSG.suscribirOK = Cadastro da empresa no Troco Simples registrado com sucesso.
|
||||||
|
editarEmpresaTrocoSimples.MSG.borrarPergunta = Remover configurações do troco simples para empresa?
|
||||||
|
editarEmpresaTrocoSimples.MSG.borrarOK = Configuração removida com Sucesso.
|
||||||
|
editarConvenioController.MSG.erro= Erro ao salvar
|
||||||
|
|
||||||
|
|
|
@ -8671,3 +8671,24 @@ editarContigencia.tabela.usuario=USUARIO
|
||||||
editarContigencia.tabela.data=DATA
|
editarContigencia.tabela.data=DATA
|
||||||
editarContigencia.tabela.ambiente=Ambiente
|
editarContigencia.tabela.ambiente=Ambiente
|
||||||
editarContigencia.tabela.status=STATUS
|
editarContigencia.tabela.status=STATUS
|
||||||
|
|
||||||
|
#Troco Simples
|
||||||
|
indexController.mniTrocoSimples.label= Troco Simples
|
||||||
|
indexController.mniTrocoSimples.cadastroEmpresa.label= Cadastro Empresa
|
||||||
|
editarEmpresaTrocoSimples.window.title= Cadastro da empresa no Troco Simples
|
||||||
|
editarEmpresaTrocoSimples.btnApagar.tooltiptext = Apagar
|
||||||
|
editarEmpresaTrocoSimples.btnSalvar.tooltiptext = Salvar
|
||||||
|
editarEmpresaTrocoSimples.btnFechar.tooltiptext = Fechar
|
||||||
|
editarEmpresaTrocoSimples.empresa=Empresa
|
||||||
|
editarEmpresaTrocoSimples.razaoSocial=Razão Social
|
||||||
|
editarEmpresaTrocoSimples.nomeFantasia=Nome Fantasia
|
||||||
|
editarEmpresaTrocoSimples.cnpj=CNPJ
|
||||||
|
editarEmpresaTrocoSimples.telefone=Telefone
|
||||||
|
editarEmpresaTrocoSimples.endereco=Endereço
|
||||||
|
editarEmpresaTrocoSimples.valorSugerir=Valor para Sugestão de Troco Simples
|
||||||
|
editarEmpresaTrocoSimples.token=Token
|
||||||
|
editarEmpresaTrocoSimples.MSG.suscribirOK = Cadastro da empresa no Troco Simples registrado com sucesso.
|
||||||
|
editarEmpresaTrocoSimples.MSG.borrarPergunta = Remover configurações do troco simples para empresa?
|
||||||
|
editarEmpresaTrocoSimples.MSG.borrarOK = Configuração removida com Sucesso.
|
||||||
|
editarConvenioController.MSG.erro= Erro ao salvar
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,81 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEmpresaTrocoSimples"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winEmpresaTrocoSimples" border="normal" apply="${editarEmpresaTrocoSimplesController}"
|
||||||
|
width="600px" height="300px" contentStyle="overflow:auto" sizable="true"
|
||||||
|
title="${c:l('editarEmpresaTrocoSimples.window.title')}">
|
||||||
|
<toolbar>
|
||||||
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
|
<button id="btnApagar" height="20"
|
||||||
|
image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarEmpresaTrocoSimples.btnApagar.tooltiptext')}" />
|
||||||
|
<button id="btnSalvar" height="20"
|
||||||
|
image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarEmpresaTrocoSimples.btnSalvar.tooltiptext')}" />
|
||||||
|
<button id="btnFechar" height="20"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
onClick="winEmpresaTrocoSimples.detach()"
|
||||||
|
tooltiptext="${c:l('editarEmpresaTrocoSimples.btnFechar.tooltiptext')}"/>
|
||||||
|
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarEmpresaTrocoSimples.empresa')}" />
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="100%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winEmpresaTrocoSimples$composer.lsEmpresas}"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarEmpresaTrocoSimples.razaoSocial')}" />
|
||||||
|
<textbox id="txtRazaoSocial" width="99%" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarEmpresaTrocoSimples.nomeFantasia')}" />
|
||||||
|
<textbox id="txtNomeFantasia" width="99%" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarEmpresaTrocoSimples.cnpj')}" />
|
||||||
|
<longbox id="txtCNPJ" width="99%" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarEmpresaTrocoSimples.telefone')}" />
|
||||||
|
<textbox id="txtTelefone" width="99%" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarEmpresaTrocoSimples.endereco')}" />
|
||||||
|
<textbox id="txtEndereco" width="99%" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarEmpresaTrocoSimples.valorSugerir')}" />
|
||||||
|
<textbox id="txtValorSugerido" width="99%" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarEmpresaTrocoSimples.token')}" />
|
||||||
|
<textbox id="txtToken" width="99%" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
</window>
|
||||||
|
</zk>
|
Loading…
Reference in New Issue