git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@32260 d1611594-4594-4d17-8e1d-87c2c4800839
parent
c694d6eb40
commit
25ca568e0a
|
@ -0,0 +1,65 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.gr;
|
||||||
|
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||||
|
|
||||||
|
public class AidfListItemRenderer implements ListitemRenderer {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(Listitem listItem, Object _aidf) throws Exception {
|
||||||
|
Aidf aidf = (Aidf)_aidf;
|
||||||
|
|
||||||
|
Listcell idCell = new Listcell(aidf.getAidfId().toString());
|
||||||
|
idCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell especieCell = new Listcell(aidf.getAidfEspecie().toString());
|
||||||
|
especieCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell tipoCell = new Listcell(aidf.getAidfTipo().toString());
|
||||||
|
tipoCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell estadoCell = new Listcell(aidf.getEstado().toString());
|
||||||
|
estadoCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell empresaCell = new Listcell(aidf.getEmpresa().toString());
|
||||||
|
empresaCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell inscEstadualCell = new Listcell(aidf.getInscestadual());
|
||||||
|
inscEstadualCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell docFiscalCell = new Listcell(aidf.getDocfiscal());
|
||||||
|
docFiscalCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell acFiscalCell = new Listcell(aidf.getAcfiscal());
|
||||||
|
acFiscalCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell serieCell = new Listcell(aidf.getSerie());
|
||||||
|
serieCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell subserieCell = new Listcell(aidf.getSubserie());
|
||||||
|
subserieCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell formInicialCell = new Listcell(aidf.getForminicial());
|
||||||
|
formInicialCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell formFinalCell = new Listcell(aidf.getFormfinal());
|
||||||
|
formFinalCell.setParent(listItem);
|
||||||
|
|
||||||
|
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
|
||||||
|
|
||||||
|
Listcell fecadquisicionCell = new Listcell(sdf.format(aidf.getFecadquisicion()));
|
||||||
|
fecadquisicionCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell fecvencimientoCell = new Listcell(sdf.format(aidf.getFecvencimiento()));
|
||||||
|
fecvencimientoCell.setParent(listItem);
|
||||||
|
|
||||||
|
listItem.setAttribute("data", aidf);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,50 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.gr;
|
||||||
|
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.AbastoCentral;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Estacion;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
|
|
||||||
|
public class BilhetesListitemRenderer implements ListitemRenderer {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(Listitem listItem, Object _bilhete) throws Exception {
|
||||||
|
|
||||||
|
AbastoCentral bilhete = (AbastoCentral)_bilhete;
|
||||||
|
|
||||||
|
Listcell idCell = new Listcell(bilhete.getAbastocentralId().toString());
|
||||||
|
idCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell aidfCell = new Listcell(bilhete.getAidf().toString());
|
||||||
|
aidfCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell numfolioCell = new Listcell(bilhete.getNumfoliopreimpreso());
|
||||||
|
numfolioCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell serieCell = new Listcell(bilhete.getNumseriepreimpresa());
|
||||||
|
serieCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell subserieCell = new Listcell(bilhete.getNumsubseriepreimpreso());
|
||||||
|
subserieCell.setParent(listItem);
|
||||||
|
|
||||||
|
PuntoVenta puntoVenta = bilhete.getPuntoventa();
|
||||||
|
Listcell puntoventaCell = new Listcell(puntoVenta != null ? puntoVenta.toString() : " - ");
|
||||||
|
puntoventaCell.setParent(listItem);
|
||||||
|
|
||||||
|
Estacion estacion = bilhete.getEstacion();
|
||||||
|
Listcell estacionCell = new Listcell(estacion != null ? estacion.getDescestacion() : " - ");
|
||||||
|
estacionCell.setParent(listItem);
|
||||||
|
|
||||||
|
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
|
||||||
|
|
||||||
|
Listcell fecmodifCell = new Listcell(sdf.format(bilhete.getFecmodif()));
|
||||||
|
fecmodifCell.setParent(listItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,190 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.gr;
|
||||||
|
|
||||||
|
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 com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.AidfEspecie;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.AidfTipo;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||||
|
import com.rjconsultores.ventaboletos.service.AidfService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||||
|
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;
|
||||||
|
|
||||||
|
@Controller("busquedaAidfController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class BusquedaAidfController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private AidfService aidfService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EstadoService estadoService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<Aidf> plwAidf;
|
||||||
|
private Paging pagingAidf;
|
||||||
|
|
||||||
|
private MyListbox aidfList;
|
||||||
|
|
||||||
|
private List<AidfEspecie> lsAidfEspecie;
|
||||||
|
private Combobox cmbAidfEspecie;
|
||||||
|
|
||||||
|
private List<Estado> lsEstado;
|
||||||
|
private Combobox cmbEstado;
|
||||||
|
|
||||||
|
private List<AidfTipo> lsAidfTipo;
|
||||||
|
private Combobox cmbAidfTipo;
|
||||||
|
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
private List<Empresa> lsEmpresas;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
lsAidfTipo = aidfService.obtenerTodosAdifTipo();
|
||||||
|
lsAidfEspecie = aidfService.obtenerTodosAdifEspecie();
|
||||||
|
lsEstado = estadoService.obtenerTodos();
|
||||||
|
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
aidfList.setItemRenderer(new AidfListItemRenderer());
|
||||||
|
aidfList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
Aidf aidf = (Aidf) aidfList.getSelected();
|
||||||
|
visualizaAidf(aidf);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
actualizaAidfList();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void visualizaAidf(Aidf _aidf){
|
||||||
|
|
||||||
|
if (_aidf == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("aidf", _aidf);
|
||||||
|
args.put("aidfList", aidfList);
|
||||||
|
|
||||||
|
openWindow("/gui/gr/editarAidf.zul",
|
||||||
|
Labels.getLabel("editarAidfController.window.title"), args, MODAL);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||||
|
actualizaAidfList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnRefresh(Event ev) {
|
||||||
|
actualizaAidfList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnNovo(Event ev) {
|
||||||
|
visualizaAidf(new Aidf());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void actualizaAidfList() {
|
||||||
|
HibernateSearchObject<Aidf> aidfBusqueda =
|
||||||
|
new HibernateSearchObject<Aidf>(Aidf.class, pagingAidf.getPageSize());
|
||||||
|
|
||||||
|
aidfBusqueda.addFilterEqual("activo", true);
|
||||||
|
|
||||||
|
|
||||||
|
Comboitem cbiEspecie = cmbAidfEspecie.getSelectedItem();
|
||||||
|
if (cbiEspecie != null) {
|
||||||
|
AidfEspecie especie = (AidfEspecie) cbiEspecie.getValue();
|
||||||
|
aidfBusqueda.addFilterEqual("aidfEspecie", especie);
|
||||||
|
}
|
||||||
|
|
||||||
|
Comboitem cbiTipo = cmbAidfTipo.getSelectedItem();
|
||||||
|
if (cbiTipo != null) {
|
||||||
|
AidfTipo tipo = (AidfTipo) cbiTipo.getValue();
|
||||||
|
aidfBusqueda.addFilterEqual("aidfTipo", tipo);
|
||||||
|
}
|
||||||
|
|
||||||
|
Comboitem cbiEstado = cmbEstado.getSelectedItem();
|
||||||
|
if (cbiEstado != null) {
|
||||||
|
Estado estado = (Estado) cbiEstado.getValue();
|
||||||
|
aidfBusqueda.addFilterEqual("estado", estado);
|
||||||
|
}
|
||||||
|
|
||||||
|
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||||
|
if (itemEmpresa != null) {
|
||||||
|
Empresa empresa = (Empresa) itemEmpresa.getValue();
|
||||||
|
aidfBusqueda.addFilterEqual("empresa", empresa);
|
||||||
|
} else {
|
||||||
|
aidfBusqueda.addFilterIn("empresa", lsEmpresas);
|
||||||
|
}
|
||||||
|
|
||||||
|
aidfBusqueda.addSortDesc("fecvencimiento");
|
||||||
|
|
||||||
|
plwAidf.init(aidfBusqueda, aidfList, pagingAidf);
|
||||||
|
|
||||||
|
if (aidfList.getData().length == 0) {
|
||||||
|
try {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("busquedaAidfController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<AidfEspecie> getLsAidfEspecie() {
|
||||||
|
return lsAidfEspecie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsAidfEspecie(List<AidfEspecie> _lsAidfEspecie) {
|
||||||
|
lsAidfEspecie = _lsAidfEspecie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Estado> getLsEstado() {
|
||||||
|
return lsEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEstado(List<Estado> _lsEstado) {
|
||||||
|
lsEstado = _lsEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<AidfTipo> getLsAidfTipo() {
|
||||||
|
return lsAidfTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsAidfTipo(List<AidfTipo> _lsAidfTipo) {
|
||||||
|
lsAidfTipo = _lsAidfTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresas() {
|
||||||
|
return lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresas(List<Empresa> _lsEmpresas) {
|
||||||
|
lsEmpresas = _lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,150 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.gr;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
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.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Comboitem;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.AbastoCentral;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.service.AidfService;
|
||||||
|
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;
|
||||||
|
|
||||||
|
@Controller("busquedaBilhetesController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class BusquedaBilhetesController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private AidfService aidfService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<AbastoCentral> plwBilhetes;
|
||||||
|
private Paging pagingBilhetes;
|
||||||
|
|
||||||
|
private MyListbox bilheteList;
|
||||||
|
|
||||||
|
private Combobox cmbAidf;
|
||||||
|
private List<Aidf> lsAidf;
|
||||||
|
|
||||||
|
private Textbox txtForminicial;
|
||||||
|
private Textbox txtFormfinal;
|
||||||
|
|
||||||
|
public BusquedaBilhetesController() {
|
||||||
|
// TODO Auto-generated constructor stub
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getBilheteList() {
|
||||||
|
return bilheteList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBilheteList(MyListbox bilheteList) {
|
||||||
|
this.bilheteList = bilheteList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbAidf() {
|
||||||
|
return cmbAidf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbAidf(Combobox cmbAidf) {
|
||||||
|
this.cmbAidf = cmbAidf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Aidf> getLsAidf() {
|
||||||
|
return lsAidf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsAidf(List<Aidf> lsAidf) {
|
||||||
|
this.lsAidf = lsAidf;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
List<Empresa> lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
|
lsAidf = aidfService.buscaAidfsPorEmpresas(lsEmpresas);
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
bilheteList.setItemRenderer(new BilhetesListitemRenderer());
|
||||||
|
|
||||||
|
actualizaBilheteList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||||
|
actualizaBilheteList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnRefresh(Event ev) {
|
||||||
|
actualizaBilheteList();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void actualizaBilheteList() {
|
||||||
|
HibernateSearchObject<AbastoCentral> bilheteBusqueda =
|
||||||
|
new HibernateSearchObject<AbastoCentral>(AbastoCentral.class, pagingBilhetes.getPageSize());
|
||||||
|
|
||||||
|
bilheteBusqueda.addFilterEqual("activo", true);
|
||||||
|
bilheteBusqueda.addSortDesc("fecmodif");
|
||||||
|
|
||||||
|
Comboitem aidfSeleccionada = cmbAidf.getSelectedItem();
|
||||||
|
|
||||||
|
if(aidfSeleccionada != null){
|
||||||
|
Aidf aidf = (Aidf) aidfSeleccionada.getValue();
|
||||||
|
bilheteBusqueda.addFilterEqual("aidf", aidf);
|
||||||
|
}
|
||||||
|
|
||||||
|
String formInicial = txtForminicial.getValue();
|
||||||
|
if(StringUtils.isNotBlank(formInicial))
|
||||||
|
bilheteBusqueda.addFilterGreaterOrEqual("numfoliopreimpreso", formInicial);
|
||||||
|
|
||||||
|
String formFinal = txtFormfinal.getValue();
|
||||||
|
if(StringUtils.isNotBlank(formFinal))
|
||||||
|
bilheteBusqueda.addFilterLessOrEqual("numfoliopreimpreso", formFinal);
|
||||||
|
|
||||||
|
if(aidfSeleccionada != null || StringUtils.isNotBlank(formInicial) || StringUtils.isNotBlank(formFinal)){
|
||||||
|
plwBilhetes.init(bilheteBusqueda, bilheteList, pagingBilhetes);
|
||||||
|
|
||||||
|
if (bilheteList.getData().length == 0) {
|
||||||
|
try {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("busquedaBilhetesController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtForminicial() {
|
||||||
|
return txtForminicial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtForminicial(Textbox txtForminicial) {
|
||||||
|
this.txtForminicial = txtForminicial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtFormfinal() {
|
||||||
|
return txtFormfinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtFormfinal(Textbox txtFormfinal) {
|
||||||
|
this.txtFormfinal = txtFormfinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,329 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.gr;
|
||||||
|
|
||||||
|
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.Datebox;
|
||||||
|
import org.zkoss.zul.Textbox;
|
||||||
|
import org.zkoss.zul.api.Combobox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.AidfEspecie;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.AidfTipo;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||||
|
import com.rjconsultores.ventaboletos.service.AidfService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.MovimentacionBilhetesService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
|
||||||
|
@Controller("editarAidfController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class EditarAidfController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private AidfService aidfService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EstadoService estadoService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MovimentacionBilhetesService movimentacionBilhetesService;
|
||||||
|
|
||||||
|
private Aidf aidf;
|
||||||
|
private MyListbox aidfList;
|
||||||
|
|
||||||
|
private List<AidfEspecie> lsAidfEspecie;
|
||||||
|
private Combobox cmbAidfEspecie;
|
||||||
|
|
||||||
|
private List<Estado> lsEstado;
|
||||||
|
private Combobox cmbEstado;
|
||||||
|
|
||||||
|
private List<AidfTipo> lsAidfTipo;
|
||||||
|
private Combobox cmbAidfTipo;
|
||||||
|
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
private List<Empresa> lsEmpresas;
|
||||||
|
|
||||||
|
private Textbox txtInscestadual;
|
||||||
|
|
||||||
|
private Textbox txtDocFiscal;
|
||||||
|
private Textbox txtAcFiscal;
|
||||||
|
private Textbox txtSerie;
|
||||||
|
private Textbox txtSubSerie;
|
||||||
|
private Textbox txtFormInicial;
|
||||||
|
private Textbox txtFormFinal;
|
||||||
|
private Textbox txtFecAquisicao;
|
||||||
|
private Textbox txtFecVencimento;
|
||||||
|
|
||||||
|
private Textbox txtForminicial;
|
||||||
|
private Textbox txtFormfinal;
|
||||||
|
|
||||||
|
private Button btnApagar;
|
||||||
|
|
||||||
|
private Datebox dtbFecadquisicion;
|
||||||
|
private Datebox dtbFecvencimiento;
|
||||||
|
|
||||||
|
private static Logger log = Logger.getLogger(EditarAidfController.class);
|
||||||
|
|
||||||
|
public Button getBtnApagar() {
|
||||||
|
return btnApagar;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBtnApagar(Button btnApagar) {
|
||||||
|
this.btnApagar = btnApagar;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EstadoService getEstadoService() {
|
||||||
|
return estadoService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEstadoService(EstadoService estadoService) {
|
||||||
|
this.estadoService = estadoService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<AidfEspecie> getLsAidfEspecie() {
|
||||||
|
return lsAidfEspecie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsAidfEspecie(List<AidfEspecie> lsAidfEspecie) {
|
||||||
|
this.lsAidfEspecie = lsAidfEspecie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Estado> getLsEstado() {
|
||||||
|
return lsEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEstado(List<Estado> lsEstado) {
|
||||||
|
this.lsEstado = lsEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<AidfTipo> getLsAidfTipo() {
|
||||||
|
return lsAidfTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsAidfTipo(List<AidfTipo> lsAidfTipo) {
|
||||||
|
this.lsAidfTipo = lsAidfTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbEmpresa() {
|
||||||
|
return cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbEmpresa(Combobox cmbEmpresa) {
|
||||||
|
this.cmbEmpresa = cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresas() {
|
||||||
|
return lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
||||||
|
this.lsEmpresas = lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtDocFiscal() {
|
||||||
|
return txtDocFiscal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtDocFiscal(Textbox txtDocFiscal) {
|
||||||
|
this.txtDocFiscal = txtDocFiscal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtAcFiscal() {
|
||||||
|
return txtAcFiscal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtAcFiscal(Textbox txtAcFiscal) {
|
||||||
|
this.txtAcFiscal = txtAcFiscal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtSerie() {
|
||||||
|
return txtSerie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtSerie(Textbox txtSerie) {
|
||||||
|
this.txtSerie = txtSerie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtSubSerie() {
|
||||||
|
return txtSubSerie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtSubSerie(Textbox txtSubSerie) {
|
||||||
|
this.txtSubSerie = txtSubSerie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtFormInicial() {
|
||||||
|
return txtFormInicial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtFormInicial(Textbox txtFormInicial) {
|
||||||
|
this.txtFormInicial = txtFormInicial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtFormFinal() {
|
||||||
|
return txtFormFinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtFormFinal(Textbox txtFormFinal) {
|
||||||
|
this.txtFormFinal = txtFormFinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtFecAquisicao() {
|
||||||
|
return txtFecAquisicao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtFecAquisicao(Textbox txtFecAquisicao) {
|
||||||
|
this.txtFecAquisicao = txtFecAquisicao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtFecVencimento() {
|
||||||
|
return txtFecVencimento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtFecVencimento(Textbox txtFecVencimento) {
|
||||||
|
this.txtFecVencimento = txtFecVencimento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbAidfTipo() {
|
||||||
|
return cmbAidfTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbAidfTipo(Combobox _cmbAidfTipo) {
|
||||||
|
cmbAidfTipo = _cmbAidfTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbAidfEspecie() {
|
||||||
|
return cmbAidfEspecie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbAidfEspecie(Combobox _cmbAidfEspecie) {
|
||||||
|
cmbAidfEspecie = _cmbAidfEspecie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbEstado() {
|
||||||
|
return cmbEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbEstado(Combobox _cmbEstado) {
|
||||||
|
cmbEstado = _cmbEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Aidf getAidf() {
|
||||||
|
return aidf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAidf(Aidf aidf) {
|
||||||
|
this.aidf = aidf;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
lsAidfTipo = aidfService.obtenerTodosAdifTipo();
|
||||||
|
lsAidfEspecie = aidfService.obtenerTodosAdifEspecie();
|
||||||
|
lsEstado = estadoService.obtenerTodos();
|
||||||
|
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
aidf = (Aidf) Executions.getCurrent().getArg().get("aidf");
|
||||||
|
aidfList = (MyListbox) Executions.getCurrent().getArg().get("aidfList");
|
||||||
|
|
||||||
|
if (aidf.getAidfId() == null)
|
||||||
|
btnApagar.setVisible(Boolean.FALSE);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
|
cmbAidfEspecie.getValue();
|
||||||
|
cmbAidfTipo.getValue();
|
||||||
|
cmbEmpresa.getValue();
|
||||||
|
cmbEstado.getValue();
|
||||||
|
|
||||||
|
try{
|
||||||
|
aidf.setActivo(true);
|
||||||
|
aidf.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
aidf.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
|
||||||
|
if(aidf.getAidfId() == null){
|
||||||
|
aidfService.suscribir(aidf);
|
||||||
|
aidfList.addItemNovo(aidf);
|
||||||
|
} else {
|
||||||
|
aidfService.actualizacion(aidf);
|
||||||
|
aidfList.updateItem(aidf);
|
||||||
|
}
|
||||||
|
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarAidfController.MSG.suscribirOK"),
|
||||||
|
Labels.getLabel("editarAidfController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
|
||||||
|
closeWindow();
|
||||||
|
|
||||||
|
}catch (Exception ex) {
|
||||||
|
log.error("editarAidfController: " + ex);
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("MSG.Error"),
|
||||||
|
Labels.getLabel("editarAidfController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public Datebox getDtbFecadquisicion() {
|
||||||
|
return dtbFecadquisicion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtbFecadquisicion(Datebox dtbFecadquisicion) {
|
||||||
|
this.dtbFecadquisicion = dtbFecadquisicion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Datebox getDtbFecvencimiento() {
|
||||||
|
return dtbFecvencimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtbFecvencimiento(Datebox dtbFecvencimiento) {
|
||||||
|
this.dtbFecvencimiento = dtbFecvencimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtForminicial() {
|
||||||
|
return txtForminicial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtForminicial(Textbox txtForminicial) {
|
||||||
|
this.txtForminicial = txtForminicial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtFormfinal() {
|
||||||
|
return txtFormfinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtFormfinal(Textbox txtFormfinal) {
|
||||||
|
this.txtFormfinal = txtFormfinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtInscestadual() {
|
||||||
|
return txtInscestadual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtInscestadual(Textbox txtInscestadual) {
|
||||||
|
this.txtInscestadual = txtInscestadual;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,267 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.gr;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
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.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Comboitem;
|
||||||
|
import org.zkoss.zul.Datebox;
|
||||||
|
import org.zkoss.zul.Label;
|
||||||
|
import org.zkoss.zul.Longbox;
|
||||||
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoMovimentacion;
|
||||||
|
import com.rjconsultores.ventaboletos.service.AidfService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.MovimentacionBilhetesService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
|
||||||
|
@Controller("movimentacionBilhetesController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class MovimentacionBilhetesController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MovimentacionBilhetesService movimentacionBilhetesService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private AidfService aidfService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private PuntoVentaService puntoVentaService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EstadoService estadoService;
|
||||||
|
|
||||||
|
private Combobox cmbAidf;
|
||||||
|
private List<Aidf> lsAidf;
|
||||||
|
|
||||||
|
private Combobox cmbTipoMovimentacion;
|
||||||
|
private List<TipoMovimentacion> lsTipoMovimentacion;
|
||||||
|
|
||||||
|
private Textbox txtForminicial;
|
||||||
|
private Textbox txtFormfinal;
|
||||||
|
|
||||||
|
private Longbox txtCantidad;
|
||||||
|
private List<PuntoVenta> lsPuntoVenta;
|
||||||
|
private MyComboboxPuntoVenta cmbPuntoVentaOrigem;
|
||||||
|
private MyComboboxPuntoVenta cmbPuntoVentaDestino;
|
||||||
|
|
||||||
|
private Date fecmovimentacion;
|
||||||
|
private Datebox dtbFecMovimentacion;
|
||||||
|
|
||||||
|
private Label aidfEstado, aidfSerie, aidfSubserie;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
List<Empresa> lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
|
lsAidf = aidfService.buscaAidfsPorEmpresas(lsEmpresas);
|
||||||
|
lsTipoMovimentacion = movimentacionBilhetesService.obtenerTiposMovimetacion();
|
||||||
|
setLsPuntoVenta(new ArrayList<PuntoVenta>());
|
||||||
|
fecmovimentacion = new Date();
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtForminicial() {
|
||||||
|
return txtForminicial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtForminicial(Textbox txtForminicial) {
|
||||||
|
this.txtForminicial = txtForminicial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtFormfinal() {
|
||||||
|
return txtFormfinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtFormfinal(Textbox txtFormfinal) {
|
||||||
|
this.txtFormfinal = txtFormfinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EstadoService getEstadoService() {
|
||||||
|
return estadoService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEstadoService(EstadoService estadoService) {
|
||||||
|
this.estadoService = estadoService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbAidf() {
|
||||||
|
return cmbAidf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbAidf(Combobox cmbAidf) {
|
||||||
|
this.cmbAidf = cmbAidf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Aidf> getLsAidf() {
|
||||||
|
return lsAidf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsAidf(List<Aidf> lsAidf) {
|
||||||
|
this.lsAidf = lsAidf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Datebox getDtbFecMovimentacion() {
|
||||||
|
return dtbFecMovimentacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtbFecMovimentacion(Datebox dtbFecMovimentacion) {
|
||||||
|
this.dtbFecMovimentacion = dtbFecMovimentacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getFecmovimentacion() {
|
||||||
|
return fecmovimentacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFecmovimentacion(Date fecmovimentacion) {
|
||||||
|
this.fecmovimentacion = fecmovimentacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
|
cmbAidf.getValue();
|
||||||
|
cmbPuntoVentaDestino.getValue();
|
||||||
|
cmbPuntoVentaOrigem.getValue();
|
||||||
|
|
||||||
|
try{
|
||||||
|
|
||||||
|
Comboitem aidfSeleccionada = cmbAidf.getSelectedItem();
|
||||||
|
Aidf aidf = (Aidf)aidfSeleccionada.getValue();
|
||||||
|
|
||||||
|
Comboitem origemSeleccionada = cmbPuntoVentaOrigem.getSelectedItem();
|
||||||
|
PuntoVenta origem = (PuntoVenta)origemSeleccionada.getValue();
|
||||||
|
|
||||||
|
Comboitem destinoSeleccionado = cmbPuntoVentaDestino.getSelectedItem();
|
||||||
|
PuntoVenta destino = (PuntoVenta)destinoSeleccionado.getValue();
|
||||||
|
|
||||||
|
Comboitem tipoMovSeleccionado = cmbTipoMovimentacion.getSelectedItem();
|
||||||
|
TipoMovimentacion tipoMovimentacion = (TipoMovimentacion)tipoMovSeleccionado.getValue();
|
||||||
|
|
||||||
|
String formInicial = txtForminicial.getValue();
|
||||||
|
String formFinal = txtFormfinal.getValue();
|
||||||
|
|
||||||
|
Long cantidad = txtCantidad.getValue();
|
||||||
|
|
||||||
|
if(StringUtils.isNotBlank(formInicial) && StringUtils.isNotBlank(formFinal) && cantidad == null)
|
||||||
|
movimentacionBilhetesService.realizaMovimentacionBilhetes(aidf, origem, destino, formInicial, formFinal, tipoMovimentacion);
|
||||||
|
else if(cantidad != null)
|
||||||
|
movimentacionBilhetesService.realizaMovimentacionBilhetes(aidf, origem, destino, cantidad, tipoMovimentacion);
|
||||||
|
else
|
||||||
|
movimentacionBilhetesService.realizaMovimentacionBilhetes(aidf, origem, destino, tipoMovimentacion);
|
||||||
|
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("movimentacionBilhetesController.MSG.suscribirOK"),
|
||||||
|
Labels.getLabel("movimentacionBilhetesController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (Exception ex) {
|
||||||
|
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("MSG.Error"),
|
||||||
|
Labels.getLabel("movimentacionBilhetesController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onChange$cmbAidf(Event evt) throws InterruptedException {
|
||||||
|
|
||||||
|
Comboitem aidfSeleccionada = cmbAidf.getSelectedItem();
|
||||||
|
Aidf aidf = (Aidf)aidfSeleccionada.getValue();
|
||||||
|
|
||||||
|
getAidfEstado().setValue(aidf.getEstado().getNombestado());
|
||||||
|
getAidfSerie().setValue(aidf.getSerie());
|
||||||
|
getAidfSubserie().setValue(aidf.getSubserie());
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<TipoMovimentacion> getLsTipoMovimentacion() {
|
||||||
|
return lsTipoMovimentacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsTipoMovimentacion(List<TipoMovimentacion> lsTipoMovimentacion) {
|
||||||
|
this.lsTipoMovimentacion = lsTipoMovimentacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbTipoMovimentacion() {
|
||||||
|
return cmbTipoMovimentacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbTipoMovimentacion(Combobox cmbTipoMovimentacion) {
|
||||||
|
this.cmbTipoMovimentacion = cmbTipoMovimentacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Longbox getTxtCantidad() {
|
||||||
|
return txtCantidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtCantidad(Longbox txtCantidad) {
|
||||||
|
this.txtCantidad = txtCantidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Label getAidfEstado() {
|
||||||
|
return aidfEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAidfEstado(Label aidfEstado) {
|
||||||
|
this.aidfEstado = aidfEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Label getAidfSerie() {
|
||||||
|
return aidfSerie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAidfSerie(Label aidfSerie) {
|
||||||
|
this.aidfSerie = aidfSerie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Label getAidfSubserie() {
|
||||||
|
return aidfSubserie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAidfSubserie(Label aidfSubserie) {
|
||||||
|
this.aidfSubserie = aidfSubserie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyComboboxPuntoVenta getCmbPuntoVentaOrigem() {
|
||||||
|
return cmbPuntoVentaOrigem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbPuntoVentaOrigem(MyComboboxPuntoVenta cmbPuntoVentaOrigem) {
|
||||||
|
this.cmbPuntoVentaOrigem = cmbPuntoVentaOrigem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyComboboxPuntoVenta getCmbPuntoVentaDestino() {
|
||||||
|
return cmbPuntoVentaDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbPuntoVentaDestino(MyComboboxPuntoVenta cmbPuntoVentaDestino) {
|
||||||
|
this.cmbPuntoVentaDestino = cmbPuntoVentaDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PuntoVenta> getLsPuntoVenta() {
|
||||||
|
return lsPuntoVenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsPuntoVenta(List<PuntoVenta> lsPuntoVenta) {
|
||||||
|
this.lsPuntoVenta = lsPuntoVenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,211 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.gr;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
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.zkplus.databind.BindingListModel;
|
||||||
|
import org.zkoss.zkplus.databind.BindingListModelList;
|
||||||
|
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.Aidf;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Estacion;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoMovimentacion;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EstacionService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.MovimentacionBilhetesService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
|
||||||
|
@Controller("movimentacionBilhetesPuntoVentaController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class MovimentacionBilhetesPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MovimentacionBilhetesService movimentacionBilhetesService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EstacionService estacionService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private PuntoVentaService puntoVentaService;
|
||||||
|
|
||||||
|
private Combobox cmbTipoMovimentacion;
|
||||||
|
private List<TipoMovimentacion> lsTipoMovimentacion;
|
||||||
|
|
||||||
|
private Textbox txtForminicial;
|
||||||
|
private Textbox txtFormfinal;
|
||||||
|
|
||||||
|
private Longbox txtCantidad;
|
||||||
|
|
||||||
|
private List<Estacion> lsEstacion;
|
||||||
|
private Combobox cmbEstacionOrigem;
|
||||||
|
private Combobox cmbEstacionDestino;
|
||||||
|
|
||||||
|
private List<PuntoVenta> lsPuntoVenta;
|
||||||
|
private Combobox cmbPuntoVenta;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
lsEstacion = new ArrayList<Estacion>();
|
||||||
|
lsTipoMovimentacion = movimentacionBilhetesService.obtenerTiposMovimetacionPuntoVenta();
|
||||||
|
|
||||||
|
setLsPuntoVenta(puntoVentaService.buscarPuntosVentaPorUsuario(UsuarioLogado.getUsuarioLogado()));
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onChange$cmbPuntoVenta(Event ev) {
|
||||||
|
Comboitem cbiPuntoVenta = cmbPuntoVenta.getSelectedItem();
|
||||||
|
if (cbiPuntoVenta != null) {
|
||||||
|
PuntoVenta puntoVenta = (PuntoVenta) cbiPuntoVenta.getValue();
|
||||||
|
|
||||||
|
List<Estacion> estaciones = estacionService.buscarEstaciones(puntoVenta);
|
||||||
|
|
||||||
|
lsEstacion.addAll(estaciones);
|
||||||
|
BindingListModel listModelEstacion = new BindingListModelList(lsEstacion, true);
|
||||||
|
cmbEstacionOrigem.setModel(listModelEstacion);
|
||||||
|
cmbEstacionDestino.setModel(listModelEstacion);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
|
try{
|
||||||
|
|
||||||
|
Comboitem puntoVentaSeleccionada = cmbPuntoVenta.getSelectedItem();
|
||||||
|
PuntoVenta puntoVenta = (PuntoVenta)puntoVentaSeleccionada.getValue();
|
||||||
|
|
||||||
|
Comboitem origemSeleccionada = cmbEstacionOrigem.getSelectedItem();
|
||||||
|
Estacion origem = origemSeleccionada != null ? (Estacion)origemSeleccionada.getValue() : null;
|
||||||
|
|
||||||
|
Comboitem destinoSeleccionado = cmbEstacionDestino.getSelectedItem();
|
||||||
|
Estacion destino = destinoSeleccionado != null ? (Estacion)destinoSeleccionado.getValue() : null;
|
||||||
|
|
||||||
|
Comboitem tipoMovSeleccionado = cmbTipoMovimentacion.getSelectedItem();
|
||||||
|
TipoMovimentacion tipoMovimentacion = (TipoMovimentacion)tipoMovSeleccionado.getValue();
|
||||||
|
|
||||||
|
String formInicial = txtForminicial.getValue();
|
||||||
|
String formFinal = txtFormfinal.getValue();
|
||||||
|
|
||||||
|
Long cantidad = txtCantidad.getValue();
|
||||||
|
|
||||||
|
if(StringUtils.isNotBlank(formInicial) && StringUtils.isNotBlank(formFinal) && cantidad == null)
|
||||||
|
movimentacionBilhetesService.realizaMovimentacionBilhetes(puntoVenta, origem, destino, formInicial, formFinal, tipoMovimentacion);
|
||||||
|
else if(cantidad != null)
|
||||||
|
movimentacionBilhetesService.realizaMovimentacionBilhetes(puntoVenta, origem, destino, formInicial, cantidad, tipoMovimentacion);
|
||||||
|
else
|
||||||
|
movimentacionBilhetesService.realizaMovimentacionBilhetes(puntoVenta, origem, destino, tipoMovimentacion);
|
||||||
|
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("movimentacionBilhetesController.MSG.suscribirOK"),
|
||||||
|
Labels.getLabel("movimentacionBilhetesController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
|
||||||
|
cmbEstacionDestino.setSelectedItem(null);
|
||||||
|
cmbEstacionOrigem.setSelectedItem(null);
|
||||||
|
txtForminicial.setValue(null);
|
||||||
|
txtFormfinal.setValue(null);
|
||||||
|
txtCantidad.setValue(null);
|
||||||
|
|
||||||
|
} catch (Exception ex) {
|
||||||
|
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("MSG.Error"),
|
||||||
|
Labels.getLabel("movimentacionBilhetesController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbTipoMovimentacion() {
|
||||||
|
return cmbTipoMovimentacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbTipoMovimentacion(Combobox cmbTipoMovimentacion) {
|
||||||
|
this.cmbTipoMovimentacion = cmbTipoMovimentacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<TipoMovimentacion> getLsTipoMovimentacion() {
|
||||||
|
return lsTipoMovimentacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsTipoMovimentacion(List<TipoMovimentacion> lsTipoMovimentacion) {
|
||||||
|
this.lsTipoMovimentacion = lsTipoMovimentacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtForminicial() {
|
||||||
|
return txtForminicial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtForminicial(Textbox txtForminicial) {
|
||||||
|
this.txtForminicial = txtForminicial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtFormfinal() {
|
||||||
|
return txtFormfinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtFormfinal(Textbox txtFormfinal) {
|
||||||
|
this.txtFormfinal = txtFormfinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Longbox getTxtCantidad() {
|
||||||
|
return txtCantidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtCantidad(Longbox txtCantidad) {
|
||||||
|
this.txtCantidad = txtCantidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Estacion> getLsEstacion() {
|
||||||
|
return lsEstacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEstacion(List<Estacion> lsEstacion) {
|
||||||
|
this.lsEstacion = lsEstacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbEstacionOrigem() {
|
||||||
|
return cmbEstacionOrigem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbEstacionOrigem(Combobox cmbEstacionOrigem) {
|
||||||
|
this.cmbEstacionOrigem = cmbEstacionOrigem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbEstacionDestino() {
|
||||||
|
return cmbEstacionDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbEstacionDestino(Combobox cmbEstacionDestino) {
|
||||||
|
this.cmbEstacionDestino = cmbEstacionDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public List<PuntoVenta> getLsPuntoVenta() {
|
||||||
|
return lsPuntoVenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setLsPuntoVenta(List<PuntoVenta> lsPuntoVenta) {
|
||||||
|
this.lsPuntoVenta = lsPuntoVenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuAidf extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuAidf() {
|
||||||
|
super("indexController.mniAidf.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.GR.MENU.AIDF";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/gr/busquedaAidf.zul",
|
||||||
|
Labels.getLabel("busquedaAidfController.window.title"),
|
||||||
|
null, desktop);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuBusquedaBilhetes extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuBusquedaBilhetes() {
|
||||||
|
super("indexController.mniBusquedaBilhetes.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.GR.MENU.BUSQUEDABILHETES";
|
||||||
|
};
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/gr/busquedaBilhetes.zul",
|
||||||
|
Labels.getLabel("busquedaBilhetesController.window.title"),
|
||||||
|
null, desktop);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.labellocator.MenuLabelLocator;
|
||||||
|
|
||||||
|
public class ItemMenuMovimentacionBilhetes extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuMovimentacionBilhetes() {
|
||||||
|
super("indexController.mniMovimentacionBilhetes.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.GR.MENU.MOVIMENTACIONBILHETES";
|
||||||
|
};
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/gr/movimentacionBilhetes.zul",
|
||||||
|
Labels.getLabel("movimentacionBilhetesController.window.title"),
|
||||||
|
null, desktop);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.labellocator.MenuLabelLocator;
|
||||||
|
|
||||||
|
public class ItemMenuMovimentacionBilhetesPuntoVenta extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuMovimentacionBilhetesPuntoVenta() {
|
||||||
|
super("indexController.mniMovimentacionBilhetesPuntoVenta.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.GR.MENU.MOVIMENTACIONBILHETESPUNTOVENTA";
|
||||||
|
};
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/gr/movimentacionBilhetesPuntoVenta.zul",
|
||||||
|
Labels.getLabel("movimentacionBilhetesPuntoVentaController.window.title"),
|
||||||
|
null, desktop);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class MenuGr extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public MenuGr() {
|
||||||
|
super("indexController.mnGR.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.GR";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -302,6 +302,15 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ClienteDireccion
|
<value>com.rjconsultores.ventaboletos.entidad.ClienteDireccion
|
||||||
</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TarjetaCredito</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TarjetaCredito</value>
|
||||||
|
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.Aidf</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.AidfEspecie</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.AidfTipo</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.TipoMovimentacion</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.PtovtaTipoEstoque</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.AbastoCentral</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.AbastoHisto</value>
|
||||||
|
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
|
|
|
@ -4525,5 +4525,73 @@ editarConexionConfController.MSG.ativarOK = Conexión se activo exitosamente.
|
||||||
#atualizaCorridaFecHusoFecVerano
|
#atualizaCorridaFecHusoFecVerano
|
||||||
atualizaCorridaFecHusoFecVerano.numcorrida=Servicio
|
atualizaCorridaFecHusoFecVerano.numcorrida=Servicio
|
||||||
|
|
||||||
|
#GR
|
||||||
|
indexController.mnGR.label=GR
|
||||||
|
indexController.mniAidf.label=AIDF
|
||||||
|
indexController.mniMovimentacionBilhetes.label=Movimentação de Estoque
|
||||||
|
|
||||||
PricingOcupaAntecipaServiceImpl.msg.traslapa=El registro se traslapa con uno que ya existe
|
busquedaAidfController.window.title=AIDF
|
||||||
|
busquedaAidfController.btnRefresh.tooltiptext=Atualizar
|
||||||
|
busquedaAidfController.btnNovo.tooltiptext=Incluir
|
||||||
|
busquedaAidfController.btnCerrar.tooltiptext=Fechar
|
||||||
|
busquedaAidfController.btnPesquisa.label=Pesquisar
|
||||||
|
busquedaAidfController.aidfEspecie.label=Espécie
|
||||||
|
busquedaAidfController.aidfTipo.label=Tipo
|
||||||
|
|
||||||
|
busquedaAidfController.docfiscal.label=Doc.Fiscal
|
||||||
|
busquedaAidfController.acfiscal.label=AC.Fiscal
|
||||||
|
busquedaAidfController.serie.label=Série
|
||||||
|
busquedaAidfController.subserie.label=SubSérie
|
||||||
|
busquedaAidfController.forminicial.label=Form.Inicial
|
||||||
|
busquedaAidfController.formfinal.label=Form.Final
|
||||||
|
busquedaAidfController.fecadquisicion.label=Aquisição
|
||||||
|
busquedaAidfController.fecvencimiento.label=Vencimento
|
||||||
|
busquedaAidfController.inscestadual.label=Insc.Estadual
|
||||||
|
busquedaAidfController.empresa.label=Empresa
|
||||||
|
busquedaAidfController.estado.label=Estado
|
||||||
|
|
||||||
|
editarAidfController.btnApagar.tooltiptext=Apagar
|
||||||
|
editarAidfController.btnSalvar.tooltiptext=Salvar
|
||||||
|
editarAidfController.btnFechar.tooltiptext=Fechar
|
||||||
|
|
||||||
|
editarAidfController.window.title=Editar Aidf
|
||||||
|
editarAidfController.MSG.suscribirOK=Aidf gravada com sucesso! A movimentação de aquisição já realizada automáticamente.
|
||||||
|
|
||||||
|
movimentacionBilhetesController.window.title=Movimentação de Estoque
|
||||||
|
movimentacionBilhetesController.MSG.suscribirOK=Movimentação gravada com sucesso!
|
||||||
|
|
||||||
|
winMovimentacionBilhetes.fecmovimentacion.label=Data Mov.
|
||||||
|
winMovimentacionBilhetes.origem.label=Origem
|
||||||
|
winMovimentacionBilhetes.destino.label=Destino
|
||||||
|
winMovimentacionBilhetes.aidf.label=AIDF
|
||||||
|
winMovimentacionBilhetes.estado.label=Estado
|
||||||
|
winMovimentacionBilhetes.serie.label=Série
|
||||||
|
winMovimentacionBilhetes.subserie.label=Subserie
|
||||||
|
winMovimentacionBilhetes.cantidad.label=Quantidade
|
||||||
|
winMovimentacionBilhetes.forminicial.label=Form.Inicial
|
||||||
|
winMovimentacionBilhetes.formfinal.label=Form.Final
|
||||||
|
winMovimentacionBilhetes.tipoMovimentacion.label=Natureza
|
||||||
|
|
||||||
|
indexController.mniBusquedaBilhetes.label=Bilhetes
|
||||||
|
busquedaBilhetesController.window.title=Consulta de Bilhetes
|
||||||
|
|
||||||
|
busquedaBilhetesController.aidf.label=AIDF
|
||||||
|
busquedaBilhetesController.numfoliopreimpreso.label=Num.Pré-impresso
|
||||||
|
busquedaBilhetesController.numseriepreimpresa.label=Série
|
||||||
|
busquedaBilhetesController.numsubseriepreimpreso.label=Subsérie
|
||||||
|
busquedaBilhetesController.puntoventa.label=Agência
|
||||||
|
busquedaBilhetesController.fecmodif.label=Ult.Atual.
|
||||||
|
busquedaBilhetesController.estacion.label=Estacion
|
||||||
|
|
||||||
|
movimentacionBilhetesPuntoVentaController.window.title=Movimentação de Estoque - Agência
|
||||||
|
movimentacionBilhetesPuntoVentaController.MSG.suscribirOK=Movimentação gravada com sucesso!
|
||||||
|
|
||||||
|
winMovimentacionBilhetesPuntoVenta.puntoventa.label=Ag.
|
||||||
|
winMovimentacionBilhetesPuntoVenta.origem.label=Origem
|
||||||
|
winMovimentacionBilhetesPuntoVenta.destino.label=Destino
|
||||||
|
winMovimentacionBilhetesPuntoVenta.cantidad.label=Quantidade
|
||||||
|
winMovimentacionBilhetesPuntoVenta.forminicial.label=Form.Inicial
|
||||||
|
winMovimentacionBilhetesPuntoVenta.formfinal.label=Form.Final
|
||||||
|
winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label=Natureza
|
||||||
|
|
||||||
|
indexController.mniMovimentacionBilhetesPuntoVenta.label=Movimentação de Estoque - Agência
|
|
@ -4579,4 +4579,73 @@ editarConexionConfController.MSG.ativarOK = Conexao ativada com sucesso.
|
||||||
#atualizaCorridaFecHusoFecVerano
|
#atualizaCorridaFecHusoFecVerano
|
||||||
atualizaCorridaFecHusoFecVerano.numcorrida=Serviço
|
atualizaCorridaFecHusoFecVerano.numcorrida=Serviço
|
||||||
|
|
||||||
PricingOcupaAntecipaServiceImpl.msg.traslapa=O registro informado se sobrepõe a um existente
|
#GR
|
||||||
|
indexController.mnGR.label=GR
|
||||||
|
indexController.mniAidf.label=AIDF
|
||||||
|
indexController.mniMovimentacionBilhetes.label=Movimentação de Estoque
|
||||||
|
|
||||||
|
busquedaAidfController.window.title=AIDF
|
||||||
|
busquedaAidfController.btnRefresh.tooltiptext=Atualizar
|
||||||
|
busquedaAidfController.btnNovo.tooltiptext=Incluir
|
||||||
|
busquedaAidfController.btnCerrar.tooltiptext=Fechar
|
||||||
|
busquedaAidfController.btnPesquisa.label=Pesquisar
|
||||||
|
busquedaAidfController.aidfEspecie.label=Espécie
|
||||||
|
busquedaAidfController.aidfTipo.label=Tipo
|
||||||
|
|
||||||
|
busquedaAidfController.docfiscal.label=Doc.Fiscal
|
||||||
|
busquedaAidfController.acfiscal.label=AC.Fiscal
|
||||||
|
busquedaAidfController.serie.label=Série
|
||||||
|
busquedaAidfController.subserie.label=SubSérie
|
||||||
|
busquedaAidfController.forminicial.label=Form.Inicial
|
||||||
|
busquedaAidfController.formfinal.label=Form.Final
|
||||||
|
busquedaAidfController.fecadquisicion.label=Aquisição
|
||||||
|
busquedaAidfController.fecvencimiento.label=Vencimento
|
||||||
|
busquedaAidfController.inscestadual.label=Insc.Estadual
|
||||||
|
busquedaAidfController.empresa.label=Empresa
|
||||||
|
busquedaAidfController.estado.label=Estado
|
||||||
|
|
||||||
|
editarAidfController.btnApagar.tooltiptext=Apagar
|
||||||
|
editarAidfController.btnSalvar.tooltiptext=Salvar
|
||||||
|
editarAidfController.btnFechar.tooltiptext=Fechar
|
||||||
|
|
||||||
|
editarAidfController.window.title=Editar Aidf
|
||||||
|
editarAidfController.MSG.suscribirOK=Aidf gravada com sucesso! A movimentação de aquisição já realizada automáticamente.
|
||||||
|
|
||||||
|
movimentacionBilhetesController.window.title=Movimentação de Estoque
|
||||||
|
movimentacionBilhetesController.MSG.suscribirOK=Movimentação gravada com sucesso!
|
||||||
|
|
||||||
|
winMovimentacionBilhetes.fecmovimentacion.label=Data Mov.
|
||||||
|
winMovimentacionBilhetes.origem.label=Origem
|
||||||
|
winMovimentacionBilhetes.destino.label=Destino
|
||||||
|
winMovimentacionBilhetes.aidf.label=AIDF
|
||||||
|
winMovimentacionBilhetes.estado.label=Estado
|
||||||
|
winMovimentacionBilhetes.serie.label=Série
|
||||||
|
winMovimentacionBilhetes.subserie.label=Subserie
|
||||||
|
winMovimentacionBilhetes.cantidad.label=Quantidade
|
||||||
|
winMovimentacionBilhetes.forminicial.label=Form.Inicial
|
||||||
|
winMovimentacionBilhetes.formfinal.label=Form.Final
|
||||||
|
winMovimentacionBilhetes.tipoMovimentacion.label=Natureza
|
||||||
|
|
||||||
|
indexController.mniBusquedaBilhetes.label=Bilhetes
|
||||||
|
busquedaBilhetesController.window.title=Consulta de Bilhetes
|
||||||
|
|
||||||
|
busquedaBilhetesController.aidf.label=AIDF
|
||||||
|
busquedaBilhetesController.numfoliopreimpreso.label=Num.Pré-impresso
|
||||||
|
busquedaBilhetesController.numseriepreimpresa.label=Série
|
||||||
|
busquedaBilhetesController.numsubseriepreimpreso.label=Subsérie
|
||||||
|
busquedaBilhetesController.puntoventa.label=Agência
|
||||||
|
busquedaBilhetesController.fecmodif.label=Ult.Atual.
|
||||||
|
busquedaBilhetesController.estacion.label=Estação
|
||||||
|
|
||||||
|
movimentacionBilhetesPuntoVentaController.window.title=Movimentação de Estoque - Agência
|
||||||
|
movimentacionBilhetesPuntoVentaController.MSG.suscribirOK=Movimentação gravada com sucesso!
|
||||||
|
|
||||||
|
winMovimentacionBilhetesPuntoVenta.puntoventa.label=Ag.
|
||||||
|
winMovimentacionBilhetesPuntoVenta.origem.label=Origem
|
||||||
|
winMovimentacionBilhetesPuntoVenta.destino.label=Destino
|
||||||
|
winMovimentacionBilhetesPuntoVenta.cantidad.label=Quantidade
|
||||||
|
winMovimentacionBilhetesPuntoVenta.forminicial.label=Form.Inicial
|
||||||
|
winMovimentacionBilhetesPuntoVenta.formfinal.label=Form.Final
|
||||||
|
winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label=Natureza
|
||||||
|
|
||||||
|
indexController.mniMovimentacionBilhetesPuntoVenta.label=Movimentação de Estoque - Agência
|
||||||
|
|
|
@ -0,0 +1,105 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page title="AIDF" contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaAidf"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk>
|
||||||
|
<window id="winBusquedaAidf" title="${c:l('busquedaAidfController.window.title')}"
|
||||||
|
apply="${busquedaAidfController}" contentStyle="overflow:auto"
|
||||||
|
height="500px" width="1300px" border="normal" >
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaAidfController.btnRefresh.tooltiptext')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
|
||||||
|
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaAidfController.btnNovo.tooltiptext')}" />
|
||||||
|
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winBusquedaAidf.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaAidfController.btnCerrar.tooltiptext')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column/>
|
||||||
|
<column/>
|
||||||
|
<column/>
|
||||||
|
<column/>
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<cell>
|
||||||
|
<label value="${c:l('busquedaAidfController.aidfEspecie.label')}"/>
|
||||||
|
<combobox id="cmbAidfEspecie" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="50%"
|
||||||
|
model="@{winBusquedaAidf$composer.lsAidfEspecie}"/>
|
||||||
|
</cell>
|
||||||
|
<cell>
|
||||||
|
<label value="${c:l('busquedaAidfController.aidfTipo.label')}"/>
|
||||||
|
<combobox id="cmbAidfTipo" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="50%"
|
||||||
|
model="@{winBusquedaAidf$composer.lsAidfTipo}"/>
|
||||||
|
</cell>
|
||||||
|
<cell>
|
||||||
|
<label value="${c:l('busquedaAidfController.estado.label')}" />
|
||||||
|
<combobox id="cmbEstado"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="50%"
|
||||||
|
model="@{winBusquedaAidf$composer.lsEstado}" />
|
||||||
|
</cell>
|
||||||
|
<cell>
|
||||||
|
<label value="${c:l('busquedaAidfController.empresa.label')}" />
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="50%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winBusquedaAidf$composer.lsEmpresas}" />
|
||||||
|
</cell>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||||
|
label="${c:l('busquedaAidfController.btnPesquisa.label')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<paging id="pagingAidf" pageSize="10"/>
|
||||||
|
<listbox id="aidfList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" fixedLayout="true" vflex="true" hflex="min"
|
||||||
|
multiple="false" height="250px" width="1299px">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader width="3%" image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('lb.id')}" sort="auto(aidfId)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaAidfController.aidfEspecie.label')}" sort="auto(aidfEspecie)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaAidfController.aidfTipo.label')}" sort="auto(aidfTipo)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaAidfController.estado.label')}" sort="auto(estado)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaAidfController.empresa.label')}" sort="auto(empresa)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaAidfController.inscestadual.label')}" sort="auto(inscestadual)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaAidfController.docfiscal.label')}" sort="auto(docfiscal)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaAidfController.acfiscal.label')}" sort="auto(acfiscal)"/>
|
||||||
|
<listheader width="5%" image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaAidfController.serie.label')}" sort="auto(serie)"/>
|
||||||
|
<listheader width="5%" image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaAidfController.subserie.label')}" sort="auto(subserie)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaAidfController.forminicial.label')}" sort="auto(forminicial)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaAidfController.formfinal.label')}" sort="auto(formfinal)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaAidfController.fecadquisicion.label')}" sort="auto(fecadquisicion)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaAidfController.fecvencimiento.label')}" sort="auto(fecvencimiento)"/>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,77 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page title="AIDF" contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaBilhetes"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk>
|
||||||
|
<window id="winBusquedaBilhetes" title="${c:l('busquedaBilhetesController.window.title')}"
|
||||||
|
apply="${busquedaBilhetesController}" contentStyle="overflow:auto"
|
||||||
|
height="600px" width="800px" border="normal" >
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaBilhetesController.btnRefresh.tooltiptext')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winBusquedaBilhetes.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaBilhetesController.btnCerrar.tooltiptext')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<cell width="10%">
|
||||||
|
<label
|
||||||
|
value="${c:l('busquedaBilhetesController.aidf.label')}"/>
|
||||||
|
</cell>
|
||||||
|
<combobox id="cmbAidf"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="50%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winBusquedaBilhetes$composer.lsAidf}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
|
||||||
|
<label value="${c:l('winMovimentacionBilhetesPuntoVenta.forminicial.label')}" />
|
||||||
|
<textbox id="txtForminicial" width="100px"
|
||||||
|
maxlength="20"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('winMovimentacionBilhetesPuntoVenta.formfinal.label')}" />
|
||||||
|
<textbox id="txtFormfinal" width="100px"
|
||||||
|
maxlength="20"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||||
|
label="${c:l('winBusquedaBilhetes.btnPesquisa.label')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<paging id="pagingBilhetes" pageSize="10"/>
|
||||||
|
<listbox id="bilheteList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" fixedLayout="true" vflex="true" hflex="min"
|
||||||
|
multiple="false" height="100%" width="100%">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader width="3%" image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('lb.id')}" sort="auto(abastocentralId)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaBilhetesController.aidf.label')}" sort="auto(aidf)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaBilhetesController.numfoliopreimpreso.label')}" sort="auto(numfoliopreimpreso)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaBilhetesController.numseriepreimpresa.label')}" sort="auto(numseriepreimpresa)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaBilhetesController.numsubseriepreimpreso.label')}" sort="auto(numsubseriepreimpreso)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaBilhetesController.puntoventa.label')}" sort="auto(puntoventa)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaBilhetesController.estacion.label')}" sort="auto(estacion)"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaBilhetesController.fecmodif.label')}" sort="auto(fecmodif)"/>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,136 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page title="AIDF" contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarAidf"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk>
|
||||||
|
<window id="winEditarAidf" title="${c:l('editarAidfController.window.title')}"
|
||||||
|
apply="${editarAidfController}" contentStyle="overflow:auto"
|
||||||
|
height="450px" width="450px" border="normal" >
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
|
<button id="btnApagar" height="20"
|
||||||
|
image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarAidfController.btnApagar.tooltiptext')}" />
|
||||||
|
<button id="btnSalvar" height="20"
|
||||||
|
image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarAidfController.btnSalvar.tooltiptext')}" />
|
||||||
|
<button id="btnFechar" height="20"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
onClick="winEditarAidf.detach()"
|
||||||
|
tooltiptext="${c:l('editarAidfController.btnFechar.tooltiptext')}" />
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="40%" />
|
||||||
|
<column width="60%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaAidfController.aidfEspecie.label')}"/>
|
||||||
|
<combobox id="cmbAidfEspecie" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="70%"
|
||||||
|
model="@{winEditarAidf$composer.lsAidfEspecie}"
|
||||||
|
selectedItem="@{winEditarAidf$composer.aidf.aidfEspecie}"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaAidfController.aidfTipo.label')}"/>
|
||||||
|
<combobox id="cmbAidfTipo" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="70%"
|
||||||
|
model="@{winEditarAidf$composer.lsAidfTipo}"
|
||||||
|
selectedItem="@{winEditarAidf$composer.aidf.aidfTipo}"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('busquedaAidfController.estado.label')}" />
|
||||||
|
<combobox id="cmbEstado"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="70%"
|
||||||
|
model="@{winEditarAidf$composer.lsEstado}"
|
||||||
|
selectedItem="@{winEditarAidf$composer.aidf.estado}"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaAidfController.docfiscal.label')}" />
|
||||||
|
<textbox id="txtDocFiscal" width="100px"
|
||||||
|
maxlength="20"
|
||||||
|
value="@{winEditarAidf$composer.aidf.docfiscal}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaAidfController.acfiscal.label')}" />
|
||||||
|
<textbox id="txtAcFiscal" width="100px"
|
||||||
|
maxlength="20"
|
||||||
|
value="@{winEditarAidf$composer.aidf.acfiscal}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaAidfController.serie.label')}" />
|
||||||
|
<textbox id="txtSerie" width="30px"
|
||||||
|
maxlength="3"
|
||||||
|
value="@{winEditarAidf$composer.aidf.serie}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaAidfController.subserie.label')}" />
|
||||||
|
<textbox id="txtSubserie" width="30px"
|
||||||
|
maxlength="3"
|
||||||
|
value="@{winEditarAidf$composer.aidf.subserie}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaAidfController.formfinal.label')}" />
|
||||||
|
<textbox id="txtForminicial" width="100px"
|
||||||
|
maxlength="20"
|
||||||
|
value="@{winEditarAidf$composer.aidf.forminicial}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaAidfController.formfinal.label')}" />
|
||||||
|
<textbox id="txtFormfinal" width="100px"
|
||||||
|
maxlength="20"
|
||||||
|
value="@{winEditarAidf$composer.aidf.formfinal}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('busquedaAidfController.empresa.label')}" />
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="70%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winEditarAidf$composer.lsEmpresas}"
|
||||||
|
selectedItem="@{winEditarAidf$composer.aidf.empresa}"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaAidfController.inscestadual.label')}" />
|
||||||
|
<textbox id="txtInscEstadual" width="100px"
|
||||||
|
maxlength="20"
|
||||||
|
value="@{winEditarAidf$composer.aidf.inscestadual}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaAidfController.fecadquisicion.label')}" />
|
||||||
|
<datebox id="fecadquisicion" width="90%"
|
||||||
|
format="dd/MM/yyyy" lenient="false" maxlength="10"
|
||||||
|
value="@{winEditarAidf$composer.aidf.fecadquisicion}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaAidfController.fecvencimiento.label')}" />
|
||||||
|
<datebox id="fecvencimiento" width="90%"
|
||||||
|
format="dd/MM/yyyy" lenient="false" maxlength="10"
|
||||||
|
value="@{winEditarAidf$composer.aidf.fecvencimiento}" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,108 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page title="Movimentação de Estoque" contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winMovimentacionBilhetes"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk>
|
||||||
|
<window id="winMovimentacionBilhetes" title="${c:l('movimentacionBilhetesController.window.title')}"
|
||||||
|
apply="${movimentacionBilhetesController}" contentStyle="overflow:auto"
|
||||||
|
height="450px" width="450px" border="normal" >
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
|
<button id="btnSalvar" height="20"
|
||||||
|
image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('movimentacionBilhetesController.btnSalvar.tooltiptext')}" />
|
||||||
|
<button id="btnFechar" height="20"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
onClick="winMovimentacionBilhetes.detach()"
|
||||||
|
tooltiptext="${c:l('movimentacionBilhetesController.btnFechar.tooltiptext')}" />
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="40%" />
|
||||||
|
<column width="60%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('winMovimentacionBilhetes.fecmovimentacion.label')}" />
|
||||||
|
<datebox id="dtbFecMovimentacion" width="90%"
|
||||||
|
format="dd/MM/yyyy" lenient="false" maxlength="10"
|
||||||
|
value="@{winMovimentacionBilhetes$composer.fecmovimentacion}" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('winMovimentacionBilhetes.tipoMovimentacion.label')}" />
|
||||||
|
<combobox id="cmbTipoMovimentacion"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="70%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winMovimentacionBilhetes$composer.lsTipoMovimentacion}"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('winMovimentacionBilhetes.origem.label')}" />
|
||||||
|
<combobox id="cmbPuntoVentaOrigem"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
||||||
|
width="70%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winMovimentacionBilhetes$composer.lsPuntoVenta}"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('winMovimentacionBilhetes.destino.label')}" />
|
||||||
|
<combobox id="cmbPuntoVentaDestino"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
||||||
|
width="70%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winMovimentacionBilhetes$composer.lsPuntoVenta}"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('winMovimentacionBilhetes.aidf.label')}" />
|
||||||
|
<combobox id="cmbAidf"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="70%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winMovimentacionBilhetes$composer.lsAidf}" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('winMovimentacionBilhetes.estado.label')}" />
|
||||||
|
<label id="aidfEstado" style="font-style:bold" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('winMovimentacionBilhetes.serie.label')}" />
|
||||||
|
<label id="aidfSerie" style="font-style:bold" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('winMovimentacionBilhetes.subserie.label')}" />
|
||||||
|
<label id="aidfSubserie" style="font-style:bold" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('winMovimentacionBilhetes.cantidad.label')}" />
|
||||||
|
<longbox id="txtCantidad" width="100px"
|
||||||
|
maxlength="20"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('winMovimentacionBilhetes.forminicial.label')}" />
|
||||||
|
<textbox id="txtForminicial" width="100px"
|
||||||
|
maxlength="20"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('winMovimentacionBilhetes.formfinal.label')}" />
|
||||||
|
<textbox id="txtFormfinal" width="100px"
|
||||||
|
maxlength="20"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,90 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page title="Movimentação de Estoque - Agência" contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winMovimentacionBilhetesPuntoVenta"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk>
|
||||||
|
<window id="winMovimentacionBilhetesPuntoVenta" title="${c:l('movimentacionBilhetesController.window.title')}"
|
||||||
|
apply="${movimentacionBilhetesPuntoVentaController}" contentStyle="overflow:auto"
|
||||||
|
height="300px" width="450px" border="normal" >
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
|
<button id="btnSalvar" height="20"
|
||||||
|
image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('movimentacionBilhetesPuntoVentaController.btnSalvar.tooltiptext')}" />
|
||||||
|
<button id="btnFechar" height="20"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
onClick="winMovimentacionBilhetesPuntoVenta.detach()"
|
||||||
|
tooltiptext="${c:l('movimentacionBilhetesPuntoVentaController.btnFechar.tooltiptext')}" />
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="40%" />
|
||||||
|
<column width="60%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label')}" />
|
||||||
|
<combobox id="cmbTipoMovimentacion"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="70%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winMovimentacionBilhetesPuntoVenta$composer.lsTipoMovimentacion}"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('winMovimentacionBilhetesPuntoVenta.puntoventa.label')}" />
|
||||||
|
<combobox id="cmbPuntoVenta"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="70%" mold="rounded" buttonVisible="true"
|
||||||
|
|
||||||
|
model="@{winMovimentacionBilhetesPuntoVenta$composer.lsPuntoVenta}"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('winMovimentacionBilhetesPuntoVenta.origem.label')}" />
|
||||||
|
<combobox id="cmbEstacionOrigem"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="70%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winMovimentacionBilhetesPuntoVenta$composer.lsEstacion}"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('winMovimentacionBilhetesPuntoVenta.destino.label')}" />
|
||||||
|
<combobox id="cmbEstacionDestino"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="70%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winMovimentacionBilhetesPuntoVenta$composer.lsEstacion}"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('winMovimentacionBilhetesPuntoVenta.cantidad.label')}" />
|
||||||
|
<longbox id="txtCantidad" width="100px"
|
||||||
|
maxlength="20"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('winMovimentacionBilhetesPuntoVenta.forminicial.label')}" />
|
||||||
|
<textbox id="txtForminicial" width="100px"
|
||||||
|
maxlength="20" constraint="no empty"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('winMovimentacionBilhetesPuntoVenta.formfinal.label')}" />
|
||||||
|
<textbox id="txtFormfinal" width="100px"
|
||||||
|
maxlength="20"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
|
||||||
|
</window>
|
||||||
|
</zk>
|
Loading…
Reference in New Issue