git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@28914 d1611594-4594-4d17-8e1d-87c2c4800839
parent
369102e551
commit
4e1d8b560a
|
@ -1,7 +1,10 @@
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
|
||||||
|
|
||||||
|
import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.GregorianCalendar;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -12,11 +15,16 @@ import org.zkoss.zhtml.Messagebox;
|
||||||
import org.zkoss.zk.ui.Component;
|
import org.zkoss.zk.ui.Component;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zk.ui.event.EventListener;
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
import org.zkoss.zul.Intbox;
|
import org.zkoss.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Comboitem;
|
||||||
import org.zkoss.zul.Paging;
|
import org.zkoss.zul.Paging;
|
||||||
import org.zkoss.zul.api.Datebox;
|
import org.zkoss.zul.api.Datebox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Feriado;
|
import com.rjconsultores.ventaboletos.entidad.Feriado;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||||
|
@ -31,44 +39,41 @@ public class BusquedaConfigFeriadoController extends MyGenericForwardComposer {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@Autowired
|
@Autowired
|
||||||
private transient PagedListWrapper<Feriado> plwFeriado;
|
private transient PagedListWrapper<Feriado> plwFeriado;
|
||||||
|
@Autowired
|
||||||
|
private EmpresaService empresaService;
|
||||||
|
@Autowired
|
||||||
|
private EstadoService estadoService;
|
||||||
|
private List<Empresa> lsEmpresa;
|
||||||
|
private List<Estado> lsEstado;
|
||||||
private MyListbox configFeriadoList;
|
private MyListbox configFeriadoList;
|
||||||
private Paging pagingConfigFeriado;
|
private Paging pagingConfigFeriado;
|
||||||
|
|
||||||
private MyTextbox textboxDescricao;
|
private MyTextbox textboxDescricao;
|
||||||
private Intbox txtID;
|
|
||||||
private Datebox fecFeriado;
|
private Datebox fecFeriado;
|
||||||
|
private Combobox cmbEstado;
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresa() {
|
||||||
public MyTextbox getTextboxDescricao() {
|
return lsEmpresa;
|
||||||
return textboxDescricao;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTextboxDescricao(MyTextbox textboxDescricao) {
|
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||||
this.textboxDescricao = textboxDescricao;
|
this.lsEmpresa = lsEmpresa;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Intbox getTxtID() {
|
public List<Estado> getLsEstado() {
|
||||||
return txtID;
|
return lsEstado;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTxtID(Intbox txtID) {
|
public void setLsEstado(List<Estado> lsEstado) {
|
||||||
this.txtID = txtID;
|
this.lsEstado = lsEstado;
|
||||||
}
|
|
||||||
|
|
||||||
public Datebox getFecFeriado() {
|
|
||||||
return fecFeriado;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFecFeriado(Datebox fecFeriado) {
|
|
||||||
this.fecFeriado = fecFeriado;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
lsEmpresa = empresaService.obtenerTodos();
|
||||||
|
lsEstado = estadoService.obtenerTodos();
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
configFeriadoList.setItemRenderer(new RenderFeriado());
|
configFeriadoList.setItemRenderer(new RenderFeriado());
|
||||||
configFeriadoList.addEventListener("onDoubleClick", new EventListener() {
|
configFeriadoList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
|
||||||
|
@ -80,8 +85,6 @@ public class BusquedaConfigFeriadoController extends MyGenericForwardComposer {
|
||||||
});
|
});
|
||||||
|
|
||||||
refreshLista();
|
refreshLista();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
|
@ -99,37 +102,42 @@ public class BusquedaConfigFeriadoController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void refreshLista() {
|
private void refreshLista() {
|
||||||
HibernateSearchObject<Feriado> feriado=
|
HibernateSearchObject<Feriado> searchFeriado =
|
||||||
new HibernateSearchObject<Feriado>(Feriado.class,
|
new HibernateSearchObject<Feriado>(Feriado.class, pagingConfigFeriado.getPageSize());
|
||||||
pagingConfigFeriado.getPageSize());
|
|
||||||
|
|
||||||
|
Comboitem cbiEmpresa = cmbEmpresa.getSelectedItem();
|
||||||
Integer idFeriado= txtID.getValue();
|
if (cbiEmpresa != null) {
|
||||||
if (idFeriado != null) {
|
Empresa empresa = (Empresa) cbiEmpresa.getValue();
|
||||||
feriado.addFilterEqual("feriadoId", idFeriado);
|
searchFeriado.addFilterEqual("empresa", empresa);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Comboitem cbiEstado = cmbEstado.getSelectedItem();
|
||||||
|
if (cbiEstado != null) {
|
||||||
|
Estado estado = (Estado) cbiEstado.getValue();
|
||||||
|
searchFeriado.addFilterEqual("estado", estado);
|
||||||
|
}
|
||||||
|
|
||||||
String descricao = textboxDescricao.getText();
|
String descricao = textboxDescricao.getText();
|
||||||
|
if ((descricao != null)) {
|
||||||
if ((descricao != null) ) {
|
searchFeriado.addFilterLike("descferiado", "%" + descricao.trim().concat("%"));
|
||||||
feriado.addFilterLike("descferiado", "%" + descricao.trim().concat("%"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fecFeriado.getValue() != null) {
|
if (fecFeriado.getValue() != null) {
|
||||||
Date data = fecFeriado.getValue();
|
Date data = fecFeriado.getValue();
|
||||||
data.setHours(00);
|
GregorianCalendar gc = new GregorianCalendar();
|
||||||
data.setMinutes(00);
|
gc.setTime(data);
|
||||||
data.setSeconds(00);
|
gc.set(Calendar.HOUR_OF_DAY, 00);
|
||||||
feriado.addFilterEqual("fecferiado",data);
|
gc.set(Calendar.MINUTE, 00);
|
||||||
|
gc.set(Calendar.SECOND, 00);
|
||||||
|
|
||||||
|
searchFeriado.addFilterEqual("fecferiado", gc.getTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
feriado.addFilterEqual("activo", Boolean.TRUE);
|
searchFeriado.addFilterEqual("activo", Boolean.TRUE);
|
||||||
feriado.addSortAsc("descferiado");
|
searchFeriado.addSortAsc("descferiado");
|
||||||
feriado.addFilterNotEqual("feriadoId", -1);
|
searchFeriado.addFilterNotEqual("feriadoId", -1);
|
||||||
|
|
||||||
|
plwFeriado.init(searchFeriado, configFeriadoList, pagingConfigFeriado);
|
||||||
plwFeriado.init(feriado, configFeriadoList, pagingConfigFeriado);
|
|
||||||
if (configFeriadoList.getData().length == 0) {
|
if (configFeriadoList.getData().length == 0) {
|
||||||
try {
|
try {
|
||||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
@ -151,7 +159,4 @@ public class BusquedaConfigFeriadoController extends MyGenericForwardComposer {
|
||||||
public void onClick$btnNovo(Event ev) {
|
public void onClick$btnNovo(Event ev) {
|
||||||
verFeriado(new Feriado());
|
verFeriado(new Feriado());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccome
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.zkoss.util.resource.Labels;
|
import org.zkoss.util.resource.Labels;
|
||||||
|
@ -13,31 +14,36 @@ import org.zkoss.zul.Button;
|
||||||
import org.zkoss.zul.Datebox;
|
import org.zkoss.zul.Datebox;
|
||||||
import org.zkoss.zul.Messagebox;
|
import org.zkoss.zul.Messagebox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Feriado;
|
import com.rjconsultores.ventaboletos.entidad.Feriado;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||||
import com.rjconsultores.ventaboletos.service.FeriadoService;
|
import com.rjconsultores.ventaboletos.service.FeriadoService;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||||
|
|
||||||
|
|
||||||
@Controller("editarConfigFeriadoController")
|
@Controller("editarConfigFeriadoController")
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
public class EditarConfigFeriadoController extends MyGenericForwardComposer {
|
public class EditarConfigFeriadoController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
private static Logger log = Logger.getLogger(EditarConfigFeriadoController.class);
|
private static Logger log = Logger.getLogger(EditarConfigFeriadoController.class);
|
||||||
|
@Autowired
|
||||||
private FeriadoService feriadoService;
|
private FeriadoService feriadoService;
|
||||||
|
@Autowired
|
||||||
|
private EmpresaService empresaService;
|
||||||
|
@Autowired
|
||||||
|
private EstadoService estadoService;
|
||||||
|
private List<Empresa> lsEmpresa;
|
||||||
|
private List<Estado> lsEstado;
|
||||||
private Feriado feriado;
|
private Feriado feriado;
|
||||||
private MyListbox configFeriadoList;
|
private MyListbox configFeriadoList;
|
||||||
private MyTextbox textboxDescricao;
|
private MyTextbox textboxDescricao;
|
||||||
|
|
||||||
|
|
||||||
private Datebox fecFeriado;
|
private Datebox fecFeriado;
|
||||||
private Button btnApagar;
|
private Button btnApagar;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Feriado getFeriado() {
|
public Feriado getFeriado() {
|
||||||
return feriado;
|
return feriado;
|
||||||
}
|
}
|
||||||
|
@ -46,48 +52,39 @@ public class EditarConfigFeriadoController extends MyGenericForwardComposer {
|
||||||
this.feriado = feriado;
|
this.feriado = feriado;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresa() {
|
||||||
|
return lsEmpresa;
|
||||||
public FeriadoService getFeriadoService() {
|
|
||||||
return feriadoService;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFeriadoService(FeriadoService feriadoService) {
|
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||||
this.feriadoService = feriadoService;
|
this.lsEmpresa = lsEmpresa;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MyTextbox getTextboxDescricao() {
|
public List<Estado> getLsEstado() {
|
||||||
return textboxDescricao;
|
return lsEstado;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTextboxDescricao(MyTextbox textboxDescricao) {
|
public void setLsEstado(List<Estado> lsEstado) {
|
||||||
this.textboxDescricao = textboxDescricao;
|
this.lsEstado = lsEstado;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
lsEmpresa = empresaService.obtenerTodos();
|
||||||
|
lsEstado = estadoService.obtenerTodos();
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
feriado = (Feriado) Executions.getCurrent().getArg().get("feriado");
|
feriado = (Feriado) Executions.getCurrent().getArg().get("feriado");
|
||||||
configFeriadoList = (MyListbox) Executions.getCurrent().getArg().get("configFeriadoList");
|
configFeriadoList = (MyListbox) Executions.getCurrent().getArg().get("configFeriadoList");
|
||||||
|
|
||||||
if (feriado.getFeriadoId() == null) {
|
if (feriado.getFeriadoId() == null) {
|
||||||
btnApagar.setVisible(Boolean.FALSE);
|
btnApagar.setVisible(Boolean.FALSE);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
feriado = feriadoService.obtenerID(feriado.getFeriadoId());
|
feriado = feriadoService.obtenerID(feriado.getFeriadoId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
textboxDescricao.focus();
|
textboxDescricao.focus();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Feriado: " + e);
|
log.error("Feriado: " + e);
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
|
@ -95,22 +92,13 @@ public class EditarConfigFeriadoController extends MyGenericForwardComposer {
|
||||||
Labels.getLabel("editarConfigFeriadoController.window.title"),
|
Labels.getLabel("editarConfigFeriadoController.window.title"),
|
||||||
Messagebox.OK, Messagebox.ERROR);
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
textboxDescricao.getValue();
|
textboxDescricao.getValue();
|
||||||
fecFeriado.getValue();
|
fecFeriado.getValue();
|
||||||
|
|
||||||
|
if (feriado.getFeriadoId() == null) {
|
||||||
|
|
||||||
if (feriado.getFeriadoId()== null) {
|
|
||||||
java.sql.Date data = new java.sql.Date(fecFeriado.getValue().getTime());
|
java.sql.Date data = new java.sql.Date(fecFeriado.getValue().getTime());
|
||||||
List<Feriado> lsFeriado = feriadoService.buscar(data);
|
List<Feriado> lsFeriado = feriadoService.buscar(data);
|
||||||
if (!lsFeriado.isEmpty()) {
|
if (!lsFeriado.isEmpty()) {
|
||||||
|
@ -120,18 +108,13 @@ public class EditarConfigFeriadoController extends MyGenericForwardComposer {
|
||||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (feriado.getFeriadoId() == null) {
|
if (feriado.getFeriadoId() == null) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
feriadoService.suscribir(feriado);
|
feriadoService.suscribir(feriado);
|
||||||
configFeriadoList.addItem(feriado);
|
configFeriadoList.addItemNovo(feriado);
|
||||||
} else {
|
} else {
|
||||||
feriadoService.actualizacion(feriado);
|
feriadoService.actualizacion(feriado);
|
||||||
configFeriadoList.updateItem(feriado);
|
configFeriadoList.updateItem(feriado);
|
||||||
|
@ -143,7 +126,6 @@ public class EditarConfigFeriadoController extends MyGenericForwardComposer {
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
|
||||||
closeWindow();
|
closeWindow();
|
||||||
|
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
log.error("editarConfigFeriadoController: " + ex);
|
log.error("editarConfigFeriadoController: " + ex);
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
|
@ -177,5 +159,4 @@ public class EditarConfigFeriadoController extends MyGenericForwardComposer {
|
||||||
log.error(ex);
|
log.error(ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,10 +6,10 @@ import org.zkoss.zul.Listcell;
|
||||||
import org.zkoss.zul.Listitem;
|
import org.zkoss.zul.Listitem;
|
||||||
import org.zkoss.zul.ListitemRenderer;
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Feriado;
|
import com.rjconsultores.ventaboletos.entidad.Feriado;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class RenderFeriado implements ListitemRenderer {
|
public class RenderFeriado implements ListitemRenderer {
|
||||||
|
|
||||||
public void render(Listitem lstm, Object o) throws Exception {
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
|
@ -18,7 +18,6 @@ public class RenderFeriado implements ListitemRenderer {
|
||||||
Listcell lc = new Listcell(feriado.getFeriadoId().toString());
|
Listcell lc = new Listcell(feriado.getFeriadoId().toString());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
|
||||||
SimpleDateFormat data = new SimpleDateFormat("dd/MM/yyyy");
|
SimpleDateFormat data = new SimpleDateFormat("dd/MM/yyyy");
|
||||||
lc = new Listcell(data.format(feriado.getFecferiado()));
|
lc = new Listcell(data.format(feriado.getFecferiado()));
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
@ -26,6 +25,22 @@ public class RenderFeriado implements ListitemRenderer {
|
||||||
lc = new Listcell(feriado.getDescferiado());
|
lc = new Listcell(feriado.getDescferiado());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
Empresa empresa = feriado.getEmpresa();
|
||||||
|
if (empresa != null) {
|
||||||
|
lc = new Listcell(empresa.getNombempresa());
|
||||||
|
} else {
|
||||||
|
lc = new Listcell("");
|
||||||
|
}
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
Estado estado = feriado.getEstado();
|
||||||
|
if (estado != null) {
|
||||||
|
lc = new Listcell(estado.getNombestado());
|
||||||
|
} else {
|
||||||
|
lc = new Listcell("");
|
||||||
|
}
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lstm.setAttribute("data", feriado);
|
lstm.setAttribute("data", feriado);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4212,6 +4212,8 @@ busquedaConfigFeriadoController.btnNovo.tooltiptext = Incluir
|
||||||
busquedaConfigFeriadoController.btnCerrar.tooltiptext = Fechar
|
busquedaConfigFeriadoController.btnCerrar.tooltiptext = Fechar
|
||||||
busquedaConfigFeriadoController.btnPesquisa.label = Pesquisa
|
busquedaConfigFeriadoController.btnPesquisa.label = Pesquisa
|
||||||
busquedaConfigFeriadoController.lhId.label = ID
|
busquedaConfigFeriadoController.lhId.label = ID
|
||||||
|
busquedaConfigFeriadoController.lhEmpresa.label = Empresa
|
||||||
|
busquedaConfigFeriadoController.lhEstado.label = Estado
|
||||||
busquedaConfigFeriadoController.lhData.label = Data
|
busquedaConfigFeriadoController.lhData.label = Data
|
||||||
busquedaConfigFeriadoController.lhDescricao.label = Descrição
|
busquedaConfigFeriadoController.lhDescricao.label = Descrição
|
||||||
|
|
||||||
|
|
|
@ -5,18 +5,22 @@
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
<window id="winBusquedaConfigFeriado" title="${c:l('busquedaConfigFeriadoController.window.title')}"
|
<window id="winBusquedaConfigFeriado"
|
||||||
apply="${busquedaConfigFeriadoController}" contentStyle="overflow:auto"
|
title="${c:l('busquedaConfigFeriadoController.window.title')}"
|
||||||
width="700px" height="500px" border="normal" xmlns:h="http://www.w3.org/1999/xhtml">
|
apply="${busquedaConfigFeriadoController}"
|
||||||
|
contentStyle="overflow:auto" width="800px" height="500px"
|
||||||
|
border="normal" xmlns:h="http://www.w3.org/1999/xhtml">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
<button id="btnRefresh" image="/gui/img/refresh.png"
|
||||||
|
width="35px"
|
||||||
tooltiptext="${c:l('busquedaConfigFeriadoController.btnRefresh.tooltiptext')}" />
|
tooltiptext="${c:l('busquedaConfigFeriadoController.btnRefresh.tooltiptext')}" />
|
||||||
<separator orient="vertical" />
|
<separator orient="vertical" />
|
||||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||||
tooltiptext="${c:l('busquedaConfigFeriadoController.btnNovo.tooltiptext')}" />
|
tooltiptext="${c:l('busquedaConfigFeriadoController.btnNovo.tooltiptext')}" />
|
||||||
<separator orient="vertical" />
|
<separator orient="vertical" />
|
||||||
<button id="btnCerrar" image="/gui/img/exit.png" width="35px" onClick="winBusquedaConfigFeriado.detach()"
|
<button id="btnCerrar" image="/gui/img/exit.png"
|
||||||
tooltiptext="${c:l('busquedaConfigFeriadoController.btnCerrar.tooltiptext')}"/>
|
width="35px" onClick="winBusquedaConfigFeriado.detach()"
|
||||||
|
tooltiptext="${c:l('busquedaConfigFeriadoController.btnCerrar.tooltiptext')}" />
|
||||||
</toolbar>
|
</toolbar>
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
|
@ -24,47 +28,64 @@
|
||||||
<column width="80%" />
|
<column width="80%" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row >
|
<row>
|
||||||
<label value="${c:l('lb.id')}"/>
|
<label
|
||||||
<intbox id="txtID" width="40%"/>
|
value="${c:l('editarConfigFeriadoController.lbDescricao.value')}" />
|
||||||
|
<textbox id="textboxDescricao"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
|
width="95%" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfigFeriadoController.lbData.value')}"/>
|
<label
|
||||||
<datebox id="fecFeriado" width="40%" mold="rounded" lenient="false"/>
|
value="${c:l('editarConfigFeriadoController.lbData.value')}" />
|
||||||
|
<datebox id="fecFeriado" width="25%" mold="rounded"
|
||||||
|
lenient="false" />
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
<row >
|
<label
|
||||||
<label value="${c:l('editarConfigFeriadoController.lbDescricao.value')}"/>
|
value="${c:l('busquedaConfigFeriadoController.lhEstado.label')}" />
|
||||||
<textbox id="textboxDescricao" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
<combobox id="cmbEstado" width="50%" mold="rounded"
|
||||||
width="70%" />
|
buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winBusquedaConfigFeriado$composer.lsEstado}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('busquedaConfigFeriadoController.lhEmpresa.label')}" />
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" width="50%"
|
||||||
|
model="@{winBusquedaConfigFeriado$composer.lsEmpresa}" />
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||||
label="${c:l('busquedaConfigFeriadoController.btnPesquisa.label')}"/>
|
label="${c:l('busquedaConfigFeriadoController.btnPesquisa.label')}" />
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
<paging id="pagingConfigFeriado" pageSize="20" />
|
<paging id="pagingConfigFeriado" pageSize="20" />
|
||||||
<listbox id="configFeriadoList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
<listbox id="configFeriadoList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
multiple="false" vflex="true" height="50%">
|
multiple="false" vflex="true" height="50%">
|
||||||
<listhead sizable="true" >
|
<listhead sizable="true">
|
||||||
<listheader width="50px" image="/gui/img/builder.gif"
|
<listheader width="5%" image="/gui/img/builder.gif"
|
||||||
label="${c:l('busquedaConfigFeriadoController.lhId.label')}"
|
label="${c:l('busquedaConfigFeriadoController.lhId.label')}"
|
||||||
sort="auto(feriadoId)" />
|
sort="auto(feriadoId)" />
|
||||||
|
|
||||||
<listheader image="/gui/img/builder.gif"
|
<listheader image="/gui/img/builder.gif"
|
||||||
label="${c:l('busquedaConfigFeriadoController.lhData.label')}"
|
label="${c:l('busquedaConfigFeriadoController.lhData.label')}"
|
||||||
sort="auto(fecferiado)" />
|
sort="auto(fecferiado)" width="10%" />
|
||||||
<listheader image="/gui/img/builder.gif"
|
<listheader image="/gui/img/builder.gif"
|
||||||
label="${c:l('busquedaConfigFeriadoController.lhDescricao.label')}"
|
label="${c:l('busquedaConfigFeriadoController.lhDescricao.label')}"
|
||||||
sort="auto(descferiado)" />
|
sort="auto(descferiado)" />
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaConfigFeriadoController.lhEmpresa.label')}"
|
||||||
|
sort="auto(empresa.nombempresa)" />
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaConfigFeriadoController.lhEstado.label')}"
|
||||||
|
sort="auto(estado.nombestado)" />
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
|
|
||||||
|
|
||||||
</window>
|
</window>
|
||||||
</zk>
|
</zk>
|
||||||
|
|
|
@ -6,42 +6,63 @@
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
<window id="winEditarConfigFeriado" border="normal"
|
<window id="winEditarConfigFeriado" border="normal"
|
||||||
apply="${editarConfigFeriadoController}"
|
apply="${editarConfigFeriadoController}" width="500px"
|
||||||
width="500px" height="175px" contentStyle="overflow:auto"
|
contentStyle="overflow:auto"
|
||||||
title="${c:l('editarConfigFeriadoController.window.title')}">
|
title="${c:l('editarConfigFeriadoController.window.title')}">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
<button id="btnApagar" height="20"
|
<button id="btnApagar" height="20"
|
||||||
image="/gui/img/remove.png" width="35px"
|
image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('editarConfigFeriadoController.btnApagar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarConfigFeriadoController.btnApagar.tooltiptext')}" />
|
||||||
<button id="btnSalvar" height="20"
|
<button id="btnSalvar" height="20"
|
||||||
image="/gui/img/save.png" width="35px"
|
image="/gui/img/save.png" width="35px"
|
||||||
tooltiptext="${c:l('editarConfigFeriadoController.btnSalvar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarConfigFeriadoController.btnSalvar.tooltiptext')}" />
|
||||||
<button id="btnFechar" height="20"
|
<button id="btnFechar" height="20"
|
||||||
image="/gui/img/exit.png" width="35px" onClick="winEditarConfigFeriado.detach()"
|
image="/gui/img/exit.png" width="35px"
|
||||||
tooltiptext="${c:l('editarConfigFeriadoController.btnFechar.tooltiptext')}"/>
|
onClick="winEditarConfigFeriado.detach()"
|
||||||
|
tooltiptext="${c:l('editarConfigFeriadoController.btnFechar.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
|
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
<column width="20%" />
|
<column width="30%" />
|
||||||
<column width="80%" />
|
<column width="70%" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfigFeriadoController.lbData.value')}"/>
|
<label
|
||||||
<datebox id="fecFeriado" width="40%" mold="rounded" lenient="false" constraint="no empty"
|
value="${c:l('editarConfigFeriadoController.lbDescricao.value')}" />
|
||||||
value="@{winEditarConfigFeriado$composer.feriado.fecferiado}"/>
|
<textbox id="textboxDescricao"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
|
value="@{winEditarConfigFeriado$composer.feriado.descferiado}"
|
||||||
|
constraint="no empty" width="95%" />
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
<row >
|
<label
|
||||||
<label value="${c:l('editarConfigFeriadoController.lbDescricao.value')}"/>
|
value="${c:l('editarConfigFeriadoController.lbData.value')}" />
|
||||||
<textbox id="textboxDescricao" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
<datebox id="fecFeriado" width="40%" mold="rounded"
|
||||||
value="@{winEditarConfigFeriado$composer.feriado.descferiado}" constraint="no empty" width="70%" />
|
lenient="false" constraint="no empty"
|
||||||
|
value="@{winEditarConfigFeriado$composer.feriado.fecferiado}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('busquedaConfigFeriadoController.lhEstado.label')}" />
|
||||||
|
<combobox id="cmbEstado" width="95%" mold="rounded"
|
||||||
|
buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winEditarConfigFeriado$composer.lsEstado}"
|
||||||
|
selectedItem="@{winEditarConfigFeriado$composer.feriado.estado}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('busquedaConfigFeriadoController.lhEmpresa.label')}" />
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" width="95%"
|
||||||
|
model="@{winEditarConfigFeriado$composer.lsEmpresa}"
|
||||||
|
selectedItem="@{winEditarConfigFeriado$composer.feriado.empresa}" />
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
</window>
|
</window>
|
||||||
|
|
Loading…
Reference in New Issue