fixed bug#14842
qua:Wallysson dev:Validr git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@95842 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
7624561851
commit
d1310054b6
|
@ -0,0 +1,168 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
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.Paging;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaTrocoSimples;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaTrocoSimples;
|
||||
|
||||
@Controller("busquedaEmpresaTrocoSimples")
|
||||
@Scope("prototype")
|
||||
public class BusquedaEmpresaTrocoSimplesController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private transient PagedListWrapper<EmpresaTrocoSimples> plwEmpresaTrocoSimples;
|
||||
|
||||
private MyListbox empresaTrocoSimplesList;
|
||||
private Paging pagingEmpresaTrocoSimples;
|
||||
private Textbox txtCnpj;
|
||||
private Combobox cmbEmpresa;
|
||||
|
||||
private List<Empresa> lsEmpresas;
|
||||
|
||||
public Combobox getCmbEmpresa() {
|
||||
return cmbEmpresa;
|
||||
}
|
||||
|
||||
public void setCmbEmpresa(Combobox cmbEmpresa) {
|
||||
this.cmbEmpresa = cmbEmpresa;
|
||||
}
|
||||
|
||||
public Paging getPagingEmpresaTrocoSimples() {
|
||||
return pagingEmpresaTrocoSimples;
|
||||
}
|
||||
|
||||
public void setPagingEmpresaTrocoSimples(Paging pagingEmpresaTrocoSimples) {
|
||||
this.pagingEmpresaTrocoSimples = pagingEmpresaTrocoSimples;
|
||||
}
|
||||
|
||||
public MyListbox getEmpresaTrocoSimplesList() {
|
||||
return empresaTrocoSimplesList;
|
||||
}
|
||||
|
||||
public void setEmpresaTrocoSimplesList(MyListbox empresaTrocoSimplesList) {
|
||||
this.empresaTrocoSimplesList = empresaTrocoSimplesList;
|
||||
}
|
||||
|
||||
public PagedListWrapper<EmpresaTrocoSimples> getPlwEmpresaTrocoSimples() {
|
||||
return plwEmpresaTrocoSimples;
|
||||
}
|
||||
|
||||
public void setPlwEmpresaTrocoSimples(PagedListWrapper<EmpresaTrocoSimples> plwEmpresaTrocoSimples) {
|
||||
this.plwEmpresaTrocoSimples = plwEmpresaTrocoSimples;
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnRefresh(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
editar(new EmpresaTrocoSimples());
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresas() {
|
||||
return lsEmpresas;
|
||||
}
|
||||
|
||||
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
||||
this.lsEmpresas = lsEmpresas;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||
|
||||
|
||||
empresaTrocoSimplesList.setItemRenderer(new RenderEmpresaTrocoSimples());
|
||||
empresaTrocoSimplesList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
EmpresaTrocoSimples e= (EmpresaTrocoSimples) empresaTrocoSimplesList.getSelected();
|
||||
editar(e);
|
||||
}
|
||||
});
|
||||
|
||||
refreshLista();
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void editar(EmpresaTrocoSimples e) {
|
||||
if (e == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("empresaTrocoSimples", e);
|
||||
args.put("busquedaEmpresaTrocoSimples", this);
|
||||
|
||||
openWindow("/gui/esquema_operacional/editarEmpresaTrocoSimples.zul",
|
||||
Labels.getLabel("editarPuntoVentaController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
public void refreshLista() {
|
||||
HibernateSearchObject<EmpresaTrocoSimples> empresaTrocoSimplesBusqueda =
|
||||
new HibernateSearchObject<EmpresaTrocoSimples>(EmpresaTrocoSimples.class, pagingEmpresaTrocoSimples.getPageSize());
|
||||
|
||||
|
||||
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||
|
||||
if (itemEmpresa != null) {
|
||||
Empresa empresa = (Empresa) itemEmpresa.getValue();
|
||||
empresaTrocoSimplesBusqueda.addFilterEqual("empresa", empresa);
|
||||
}
|
||||
|
||||
if (StringUtils.isNotBlank(txtCnpj.getText())) {
|
||||
empresaTrocoSimplesBusqueda.addFilterLike("cnpj", txtCnpj.getText().trim().concat("%"));
|
||||
}
|
||||
|
||||
empresaTrocoSimplesBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
empresaTrocoSimplesBusqueda.addSortAsc("empresa.nombempresa");
|
||||
|
||||
plwEmpresaTrocoSimples.init(empresaTrocoSimplesBusqueda, empresaTrocoSimplesList, pagingEmpresaTrocoSimples);
|
||||
|
||||
if (empresaTrocoSimplesList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("editarEmpresaTrocoSimples.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
}
|
||||
catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -9,8 +9,8 @@ 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.Executions;
|
||||
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;
|
||||
|
@ -18,9 +18,9 @@ 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.gui.controladores.catalogos.BusquedaEmpresaTrocoSimplesController;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MensagensUtils;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
||||
|
@ -46,48 +46,21 @@ public class EditarEmpresaTrocoSimplesController extends MyGenericForwardCompose
|
|||
private Textbox txtToken;
|
||||
|
||||
private EmpresaTrocoSimples empresaTroco;
|
||||
private BusquedaEmpresaTrocoSimplesController busquedaEmpresaTrocoSimples;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
empresaTroco = (EmpresaTrocoSimples) Executions.getCurrent().getArg().get("empresaTrocoSimples");
|
||||
busquedaEmpresaTrocoSimples = (BusquedaEmpresaTrocoSimplesController) Executions.getCurrent().getArg().get("busquedaEmpresaTrocoSimples");
|
||||
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 {
|
||||
if (empresaTroco != null && empresaTroco.getEmpresa() != null) {
|
||||
cmbEmpresa.setText(empresaTroco.getEmpresa().getNombempresa());
|
||||
txtRazaoSocial.setText(empresaTroco.getRazaoSocial());
|
||||
txtNomeFantasia.setText(empresaTroco.getNomeFantasia());
|
||||
txtCNPJ.setText(empresaTroco.getCnpj());
|
||||
|
@ -99,23 +72,33 @@ public class EditarEmpresaTrocoSimplesController extends MyGenericForwardCompose
|
|||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) {
|
||||
cmbEmpresa.getValue();
|
||||
txtCNPJ.getValue();
|
||||
txtToken.getValue();
|
||||
try {
|
||||
if(empresaTroco != null) {
|
||||
if (empresaTroco != null) {
|
||||
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||
Empresa empresa = (Empresa) itemEmpresa.getValue();
|
||||
|
||||
empresaTroco.setEmpresa(empresa);
|
||||
empresaTroco.setCnpj(txtCNPJ.getText());
|
||||
empresaTroco.setCnpj(txtCNPJ.getText().trim());
|
||||
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.setValorSugerirTroco(txtValorSugerido.getText() != null && !txtValorSugerido.getText().isEmpty() ? new BigDecimal(txtValorSugerido.getText()) : null);
|
||||
empresaTroco.setTokenEmpresa(txtToken.getText().trim());
|
||||
empresaTroco.setActivo(true);
|
||||
empresaTroco = trocoService.suscribirActualizar(empresaTroco);
|
||||
|
||||
if (!validaEmpresaTrocoSimplesExistente(empresaTroco)) {
|
||||
MensagensUtils.showMessageError("editarEmpresaTrocoSimples.MSG.cadastroExistente", "editarEmpresaTrocoSimples.window.title");
|
||||
return;
|
||||
}
|
||||
|
||||
empresaTroco = trocoService.suscribirActualizar(empresaTroco);
|
||||
MensagensUtils.showMessageExclamation("editarEmpresaTrocoSimples.MSG.suscribirOK", "editarEmpresaTrocoSimples.window.title");
|
||||
busquedaEmpresaTrocoSimples.refreshLista();
|
||||
this.closeWindow();
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
|
@ -124,23 +107,35 @@ public class EditarEmpresaTrocoSimplesController extends MyGenericForwardCompose
|
|||
}
|
||||
}
|
||||
|
||||
public void onClick$btnApagar(Event ev) {
|
||||
private boolean validaEmpresaTrocoSimplesExistente(EmpresaTrocoSimples empresaTroco) {
|
||||
|
||||
EmpresaTrocoSimples existente = trocoService.buscarEmpresaTrocoSimplesPorEmpresaId(empresaTroco.getEmpresa().getEmpresaId());
|
||||
|
||||
if (existente != null && empresaTroco.getEmpresaTrocoSimplesId() == null) {
|
||||
return false;
|
||||
}
|
||||
if(existente != null && !empresaTroco.getEmpresaTrocoSimplesId().equals(existente.getEmpresaTrocoSimplesId())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public void onClick$btnApagar(Event ev) {
|
||||
try {
|
||||
if(!(empresaTroco != null && empresaTroco.getEmpresaTrocoSimplesId() != null)) {
|
||||
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();
|
||||
|
||||
busquedaEmpresaTrocoSimples.refreshLista();
|
||||
this.closeWindow();
|
||||
}
|
||||
|
||||
} catch (Exception ex) {
|
||||
log.error("Erro ao apagar configuração de troco simples: ", ex);
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ public class ItemMenuCadastroEmpresaTrocoSimples extends DefaultItemMenuSistema
|
|||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/esquema_operacional/editarEmpresaTrocoSimples.zul",
|
||||
PantallaUtileria.openWindow("/gui/esquema_operacional/busquedaEmpresaTrocoSimples.zul",
|
||||
Labels.getLabel("editarEmpresaTrocoSimples.window.title"), getArgs() ,desktop);
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
|
||||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaTrocoSimples;
|
||||
|
||||
|
||||
public class RenderEmpresaTrocoSimples implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
EmpresaTrocoSimples e = (EmpresaTrocoSimples) o;
|
||||
|
||||
Listcell lc = new Listcell(e.getEmpresa().getNombempresa());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(e.getCnpj());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(e.getValorSugerirTroco() != null ? e.getValorSugerirTroco().toString() :"");
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", e);
|
||||
}
|
||||
}
|
|
@ -8217,9 +8217,12 @@ 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.cadastroExistente = Já existe uma configuração para esta Empresa.
|
||||
|
||||
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
|
||||
busquedaEmpresaTrocoSimples.valorSugerir= Valor Sugerido
|
||||
|
||||
#viewTestEmailController
|
||||
viewTestEmailController.window.title= Testar configurações da conta
|
||||
|
|
|
@ -8716,9 +8716,11 @@ 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.cadastroExistente = Já existe uma configuração para esta Empresa.
|
||||
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
|
||||
busquedaEmpresaTrocoSimples.valorSugerir= Valor Sugerido
|
||||
|
||||
#viewTestEmailController
|
||||
viewTestEmailController.window.title= Testar configurações da conta
|
||||
|
|
|
@ -0,0 +1,70 @@
|
|||
<?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="winBusquedaEmpresaTrocoSimples"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaEmpresaTrocoSimples"
|
||||
title="${c:l('editarEmpresaTrocoSimples.window.title')}"
|
||||
apply="${busquedaEmpresaTrocoSimples}" contentStyle="overflow:auto"
|
||||
height="510px" width="960px" border="normal">
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png"
|
||||
width="35px"
|
||||
tooltiptext="${c:l('busquedaPuntoVentaController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaPuntoVentaController.btnNovo.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="35%" />
|
||||
<column width="10%" />
|
||||
<column width="35%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaTrocoSimples.empresa')}" />
|
||||
<combobox id="cmbEmpresa"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
width="99%" mold="rounded" buttonVisible="true"
|
||||
model="@{winBusquedaEmpresaTrocoSimples$composer.lsEmpresas}" />
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaTrocoSimples.cnpj')}" />
|
||||
<textbox id="txtCnpj" width="99%" maxlength="60"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('busquedaPuntoVentaController.btnPesquisa.label')}" />
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingEmpresaTrocoSimples" pageSize="20" />
|
||||
<listbox id="empresaTrocoSimplesList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarEmpresaTrocoSimples.empresa')}"
|
||||
sort="auto(empresa.nombempresa)" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarEmpresaTrocoSimples.cnpj')}"
|
||||
sort="auto(cnpj)" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaEmpresaTrocoSimples.valorSugerir')}"
|
||||
sort="auto(valorSugerirTroco)" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
|
@ -35,7 +35,7 @@
|
|||
value="${c:l('editarEmpresaTrocoSimples.empresa')}" />
|
||||
<combobox id="cmbEmpresa"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
width="100%" mold="rounded" buttonVisible="true"
|
||||
width="100%" mold="rounded" buttonVisible="true" constraint="no empty"
|
||||
model="@{winEmpresaTrocoSimples$composer.lsEmpresas}"/>
|
||||
</row>
|
||||
|
||||
|
@ -51,7 +51,7 @@
|
|||
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaTrocoSimples.cnpj')}" />
|
||||
<longbox id="txtCNPJ" width="99%" />
|
||||
<longbox id="txtCNPJ" width="99%" constraint="no empty" maxlength="14"/>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
|
@ -71,7 +71,7 @@
|
|||
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaTrocoSimples.token')}" />
|
||||
<textbox id="txtToken" width="99%" />
|
||||
<textbox id="txtToken" width="99%" constraint="no empty" />
|
||||
</row>
|
||||
|
||||
</rows>
|
||||
|
|
Loading…
Reference in New Issue