fixes bug#15119
qua: dev: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@97358 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
47ad2aa378
commit
89ede7b4e9
|
@ -0,0 +1,189 @@
|
|||
|
||||
|
||||
/*
|
||||
* 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.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
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.ConfTotem;
|
||||
import com.rjconsultores.ventaboletos.entidad.Custom;
|
||||
import com.rjconsultores.ventaboletos.enums.SistemaEnum;
|
||||
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.RenderConfTotem;
|
||||
import com.trg.search.Search;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Wallace
|
||||
*/
|
||||
@Controller("busquedaConfTotemController")
|
||||
@Scope("prototype")
|
||||
public class BusquedaConfTotemController extends MyGenericForwardComposer {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private transient PagedListWrapper<ConfTotem> plwConfTotem;
|
||||
private MyListbox confTotemList;
|
||||
private Paging pagingCustom;
|
||||
private Textbox txtChave;
|
||||
private Combobox cmbSistema;
|
||||
private List<SistemaEnum> lsSistemaEnum;
|
||||
private Search customBusqueda;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
lsSistemaEnum = Arrays.asList(SistemaEnum.values());
|
||||
|
||||
confTotemList.setItemRenderer(new RenderConfTotem());
|
||||
confTotemList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
ConfTotem a = (ConfTotem) confTotemList.getSelected();
|
||||
verConfTotem(a);
|
||||
}
|
||||
});
|
||||
|
||||
refreshLista();
|
||||
|
||||
txtChave.focus();
|
||||
}
|
||||
|
||||
private void verConfTotem(ConfTotem a) {
|
||||
if (a == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("confTotem", a);
|
||||
args.put("confTotemList", confTotemList);
|
||||
|
||||
openWindow("/gui/catalogos/editarConfTotem.zul",
|
||||
Labels.getLabel("customController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
private void refreshLista() {
|
||||
HibernateSearchObject<ConfTotem> customBusqueda = new HibernateSearchObject<ConfTotem>(ConfTotem.class,
|
||||
pagingCustom.getPageSize());
|
||||
|
||||
customBusqueda.addFilterLike("chave",
|
||||
"%" + txtChave.getText().trim().concat("%"));
|
||||
|
||||
Comboitem cbiSistema = cmbSistema.getSelectedItem();
|
||||
if (cbiSistema != null) {
|
||||
SistemaEnum dab = (SistemaEnum) cbiSistema.getValue();
|
||||
customBusqueda.addFilterEqual("sistema", dab.getValor());
|
||||
}
|
||||
|
||||
customBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
||||
customBusqueda.addSortAsc("valor");
|
||||
|
||||
plwConfTotem.init(customBusqueda, confTotemList, pagingCustom);
|
||||
|
||||
if (confTotemList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("customController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnRefresh(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
verConfTotem(new ConfTotem());
|
||||
}
|
||||
|
||||
public PagedListWrapper<ConfTotem> getPlwCustom() {
|
||||
return plwConfTotem;
|
||||
}
|
||||
|
||||
public void setPlwCustom(PagedListWrapper<ConfTotem> plwConfTotem) {
|
||||
this.plwConfTotem = plwConfTotem;
|
||||
}
|
||||
|
||||
public MyListbox getConfTotemList() {
|
||||
return confTotemList;
|
||||
}
|
||||
|
||||
public void setCustomList(MyListbox confTotemList) {
|
||||
this.confTotemList = confTotemList;
|
||||
}
|
||||
|
||||
public Paging getPagingCustom() {
|
||||
return pagingCustom;
|
||||
}
|
||||
|
||||
public void setPagingCustom(Paging pagingCustom) {
|
||||
this.pagingCustom = pagingCustom;
|
||||
}
|
||||
|
||||
public Textbox getTxtChave() {
|
||||
return txtChave;
|
||||
}
|
||||
|
||||
public void setTxtChave(Textbox txtChave) {
|
||||
this.txtChave = txtChave;
|
||||
}
|
||||
|
||||
public Combobox getCmbSistema() {
|
||||
return cmbSistema;
|
||||
}
|
||||
|
||||
public void setCmbSistema(Combobox cmbSistema) {
|
||||
this.cmbSistema = cmbSistema;
|
||||
}
|
||||
|
||||
public List<SistemaEnum> getLsSistemaEnum() {
|
||||
return lsSistemaEnum;
|
||||
}
|
||||
|
||||
public void setLsSistemaEnum(List<SistemaEnum> lsSistemaEnum) {
|
||||
this.lsSistemaEnum = lsSistemaEnum;
|
||||
}
|
||||
|
||||
public Search getCustomBusqueda() {
|
||||
return customBusqueda;
|
||||
}
|
||||
|
||||
public void setCustomBusqueda(Search customBusqueda) {
|
||||
this.customBusqueda = customBusqueda;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,189 @@
|
|||
/*
|
||||
* 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.Arrays;
|
||||
import java.util.Calendar;
|
||||
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.util.resource.Labels;
|
||||
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.zul.Button;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Textbox;
|
||||
import org.zkoss.zul.api.Comboitem;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ConfTotem;
|
||||
import com.rjconsultores.ventaboletos.entidad.Custom;
|
||||
import com.rjconsultores.ventaboletos.enums.SistemaEnum;
|
||||
import com.rjconsultores.ventaboletos.service.ConfTotemService;
|
||||
import com.rjconsultores.ventaboletos.service.CustomService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Lucas
|
||||
*/
|
||||
@Controller("editarConfTotemController")
|
||||
@Scope("prototype")
|
||||
public class EditarConfTotemController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private ConfTotemService confTotemService;
|
||||
private ConfTotem confTotem;
|
||||
private MyListbox confTotemList;
|
||||
private Button btnApagar;
|
||||
private Textbox txtChave;
|
||||
private Textbox txtValor;
|
||||
private Combobox cmbSistema;
|
||||
private List<SistemaEnum> lsSistemaEnum;
|
||||
|
||||
private static Logger log = Logger.getLogger(EditarCustomController.class);
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
confTotem = (ConfTotem) Executions.getCurrent().getArg().get("confTotem");
|
||||
confTotemList = (MyListbox) Executions.getCurrent().getArg().get("confTotemList");
|
||||
|
||||
lsSistemaEnum = Arrays.asList(SistemaEnum.values());
|
||||
|
||||
if (confTotem.getConfTotemId() == null) {
|
||||
btnApagar.setVisible(Boolean.FALSE);
|
||||
}else{
|
||||
txtChave.setDisabled(Boolean.TRUE);
|
||||
cmbSistema.setDisabled(Boolean.TRUE);
|
||||
|
||||
}
|
||||
|
||||
txtValor.focus();
|
||||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||
txtValor.getValue();
|
||||
|
||||
try {
|
||||
|
||||
Comboitem cbSistema = cmbSistema.getSelectedItem();
|
||||
|
||||
confTotem.setActivo(Boolean.TRUE);
|
||||
confTotem.setFecmodif(Calendar.getInstance().getTime());
|
||||
confTotem.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
|
||||
ConfTotem tempConfTotem = confTotemService.buscar(confTotem.getChave());
|
||||
|
||||
if (confTotem.getConfTotemId() == null && tempConfTotem != null) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Registro.Existe"),
|
||||
Labels.getLabel("customController.window.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
} else {
|
||||
if (confTotem.getConfTotemId() == null) {
|
||||
confTotemService.suscribir(confTotem);
|
||||
confTotemList.addItem(confTotem);
|
||||
} else {
|
||||
confTotemService.actualizacion(confTotem);
|
||||
confTotemList.updateItem(confTotem);
|
||||
}
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("customController.MSG.suscribirOK"),
|
||||
Labels.getLabel("customController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
closeWindow();
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
log.error("", ex);
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Error"),
|
||||
Labels.getLabel("customController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnApagar(Event ev) throws InterruptedException {
|
||||
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("customController.MSG.borrarPergunta"),
|
||||
Labels.getLabel("customController.window.title"),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
|
||||
confTotemService.borrar(confTotem);
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("customController.MSG.borrarOK"),
|
||||
Labels.getLabel("customController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
confTotemList.removeItem(confTotem);
|
||||
|
||||
closeWindow();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public ConfTotem getCustom() {
|
||||
return confTotem;
|
||||
}
|
||||
|
||||
public void setCustom(ConfTotem confTotem) {
|
||||
this.confTotem = confTotem;
|
||||
}
|
||||
|
||||
public Button getBtnApagar() {
|
||||
return btnApagar;
|
||||
}
|
||||
|
||||
public void setBtnApagar(Button btnApagar) {
|
||||
this.btnApagar = btnApagar;
|
||||
}
|
||||
|
||||
public Textbox getTxtChave() {
|
||||
return txtChave;
|
||||
}
|
||||
|
||||
public void setTxtChave(Textbox txtChave) {
|
||||
this.txtChave = txtChave;
|
||||
}
|
||||
|
||||
public Textbox getTxtValor() {
|
||||
return txtValor;
|
||||
}
|
||||
|
||||
public void setTxtValor(Textbox txtValor) {
|
||||
this.txtValor = txtValor;
|
||||
}
|
||||
|
||||
public List<SistemaEnum> getLsSistemaEnum() {
|
||||
return lsSistemaEnum;
|
||||
}
|
||||
|
||||
public void setLsSistemaEnum(List<SistemaEnum> lsSistemaEnum) {
|
||||
this.lsSistemaEnum = lsSistemaEnum;
|
||||
}
|
||||
|
||||
public Combobox getCmbSistema() {
|
||||
return cmbSistema;
|
||||
}
|
||||
|
||||
public void setCmbSistema(Combobox cmbSistema) {
|
||||
this.cmbSistema = cmbSistema;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuConfTotem extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuConfTotem() {
|
||||
super("indexController.mniConfTotem.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.ESQUEMAOPERACIONAL.MENU.CONFTOTEM";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/catalogos/busquedaConfTotem.zul",
|
||||
Labels.getLabel("busquedaConfTotemController.window.title"), getArgs(), desktop);
|
||||
}
|
||||
|
||||
}
|
|
@ -93,6 +93,7 @@ esquemaOperacional.atualizacorridafechusofecverano=com.rjconsultores.ventaboleto
|
|||
esquemaOperacional.geracaoArquivoEMTU=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemGeracaoArquivoEMTU
|
||||
esquemaOperacional.configuracaoVendaEmbarcada=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.SubMenuConfiguracaoVendaEmbarcada
|
||||
esquemaOperacional.configuracaoVendaEmbarcada.ItemMenuCadastroOperadorEmbarcada=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuCadastroOperadorEmbarcada
|
||||
esquemaOperacional.configuracaoVendaTotem=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuConfTotem
|
||||
esquemaOperacional.trocoSimples=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.SubMenuTrocoSimples
|
||||
esquemaOperacional.trocoSimples.ItemMenuCadastroEmpresaTrocoSimples=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuCadastroEmpresaTrocoSimples
|
||||
esquemaOperacional.trocoSimples.ItemMenuRelatorioTrocoSimples=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuRelatorioTrocoSimples
|
||||
|
|
|
@ -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.ConfTotem;
|
||||
|
||||
public class RenderConfTotem implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
|
||||
ConfTotem confTotem = (ConfTotem) o;
|
||||
|
||||
Listcell lc = new Listcell(confTotem.getConfTotemId().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(confTotem.getChave());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell("");
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", confTotem);
|
||||
}
|
||||
|
||||
}
|
|
@ -487,6 +487,7 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.EmpresaTrocoSimples</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Imagem</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RutaIcmsExcepcion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConfTotem</value>
|
||||
</list>
|
||||
</property>
|
||||
|
||||
|
|
|
@ -107,6 +107,7 @@ indexController.mnCatalogos.label = Catálogos
|
|||
indexController.mnConfiguracionesComerciales.label = Configuração Comercial
|
||||
indexController.mnEsquemaOperacional.label = Esquema Operacional
|
||||
indexController.mnPricing.label = Pricing
|
||||
indexController.mniConfTotem.label = Configuração Totem
|
||||
indexController.mnTarifas.label = Adm. de Preço
|
||||
indexController.mnSubSegOpcional.label= Seg. Opcional
|
||||
indexController.mnTarifasOficial.label = Cálculo de Preço
|
||||
|
@ -8743,6 +8744,11 @@ editarEmpresaTrocoSimples.MSG.borrarOK = Configuração removida com Sucesso.
|
|||
editarConvenioController.MSG.erro= Erro ao salvar
|
||||
busquedaEmpresaTrocoSimples.valorSugerir= Valor Sugerido
|
||||
|
||||
editarConfTotemController.permitirTecladoAlfaNumerico =Permitir teclado Alfanumérico
|
||||
editarConfTotemController.permitirVenda=Permitir Venda
|
||||
editarConfTotemController.permitirImpressao=Permitir Impressão
|
||||
|
||||
|
||||
indexController.mniTrocoSimples.mniRelatorioTrocoSimples.label=Relatório Troco Simples
|
||||
relatorioTrocoSimples.window.title=Relatório Troco Simples
|
||||
relatorioTrocoSimples.dataInicial.label=Data Inicial
|
||||
|
|
|
@ -0,0 +1,61 @@
|
|||
<?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="winBusquedaConfTotem"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaConfTotem" title="${c:l('customController.window.title')}"
|
||||
apply="${busquedaConfTotemController}" contentStyle="overflow:auto"
|
||||
height="500px" width="980px" border="normal" >
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||
tooltiptext="${c:l('customController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnCerrar" onClick="winBusquedaConfTotem.detach()" image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('customController.btnCerrar.tooltiptext')}"/>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="80%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('customController.chave.value')}"/>
|
||||
<textbox id="txtChave" width="500px" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('customController.sistema.value')}"/>
|
||||
<combobox id="cmbSistema"
|
||||
mold="rounded" buttonVisible="true" width="300px"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winBusquedaConfTotem$composer.lsSistemaEnum}"
|
||||
/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('customController.btnPesquisa.label')}"/>
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingCustom" pageSize="20"/>
|
||||
<listbox id="confTotemList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="85%">
|
||||
<listhead sizable="true">
|
||||
<listheader id="confTotemId" width="70px" image="/gui/img/builder.gif"
|
||||
label="${c:l('customController.id.value')}"
|
||||
sort="auto(confTotemId)"/>
|
||||
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('customController.chave.value')}"
|
||||
sort="auto(chave)"/>
|
||||
<listheader id="lhValor" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('customController.valor.value')}"
|
||||
sort="auto(valor)"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
|
@ -0,0 +1,77 @@
|
|||
<?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="winEditarConfTotem"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
|
||||
<window id="winEditarConfTotem"
|
||||
apply="${editarConfTotem}"
|
||||
contentStyle="overflow:auto" xmlns:h="http://www.w3.org/1999/xhtml"
|
||||
title="${c:l('editarConfTotemController.window.title')}"
|
||||
height="400px" width="950px" border="normal" sizable="true">
|
||||
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagar" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarConfTotemController.btnApagar.tooltiptext')}" />
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarConfTotemController.btnSalvar.tooltiptext')}" />
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarConfTotem.detach()"
|
||||
tooltiptext="${c:l('editarConfTotemController.btnFechar.tooltiptext')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="50%" />
|
||||
<column width="50%" />
|
||||
</columns>
|
||||
<rows>
|
||||
|
||||
|
||||
<row>
|
||||
<groupbox >
|
||||
<caption label="${c:l('editarConfTotemController.permitirTecladoAlfaNumerico')}" />
|
||||
<hlayout>
|
||||
<checkbox
|
||||
id="chkPermitirTecladoAlfaNumerico"
|
||||
value="@{winEditarConfTotem$composer.empresa.indImprimeGratuidade}" />
|
||||
<image src="/gui/img/Question_mark_1.png" tooltiptext="${c:l('editarConfTotemController.permitirImpressaoGratuidade.ajuda')}"
|
||||
style="cursor: help" />
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
|
||||
<groupbox >
|
||||
<caption label="${c:l('editarConfTotemController.permitirVenda')}" />
|
||||
<hlayout>
|
||||
<checkbox
|
||||
id="chkPermitirVenda"
|
||||
value="@{winEditarConfTotem$composer.empresa.indImprimeGratuidade}" />
|
||||
<image src="/gui/img/Question_mark_1.png" tooltiptext="${c:l('editarConfTotemController.permitirImpressaoGratuidade.ajuda')}"
|
||||
style="cursor: help" />
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
</row>
|
||||
<row>
|
||||
<groupbox>
|
||||
<caption label="${c:l('editarConfTotemController.permitirImpressao')}" />
|
||||
<hlayout>
|
||||
<checkbox
|
||||
id="chkPermitirImpressao"
|
||||
value="@{winEditarConfTotem$composer.empresa.indImprimeGratuidade}" />
|
||||
<image src="/gui/img/Question_mark_1.png" tooltiptext="${c:l('editarConfTotemController.permitirImpressaoGratuidade.ajuda')}"
|
||||
style="cursor: help" />
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</window>
|
||||
|
||||
</zk>
|
Loading…
Reference in New Issue