bug #6250: Adm - Telas para Persistirem os dados fiscais
Descrição Telas para persistirem os dados: - Totalizadores não fiscais - Meios de pagamento - Relatórios gerencias git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@43721 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
6d3dfdd2f1
commit
8ddd6ffdfd
|
@ -0,0 +1,124 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.impressaofiscal;
|
||||||
|
|
||||||
|
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.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FiscalFormapagoEmpresa;
|
||||||
|
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("busquedaFormapagoEmpresaController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class BusquedaFormapagoEmpresaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<FiscalFormapagoEmpresa> plwFormapagoEmpresa;
|
||||||
|
private Paging pagingFormapagoEmpresa;
|
||||||
|
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
private List<Empresa> lsEmpresas;
|
||||||
|
|
||||||
|
private MyListbox formapagoEmpresaList;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
formapagoEmpresaList.setItemRenderer(new FormapagoEmpresaListItemRenderer());
|
||||||
|
formapagoEmpresaList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
FiscalFormapagoEmpresa formapagoEmpresa = (FiscalFormapagoEmpresa) formapagoEmpresaList.getSelected();
|
||||||
|
visualizaFormapagoEmpresa(formapagoEmpresa);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
actualizaFormapagoEmpresaList();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void visualizaFormapagoEmpresa(FiscalFormapagoEmpresa formapagoEmpresa){
|
||||||
|
|
||||||
|
if (formapagoEmpresa == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("formapagoEmpresa", formapagoEmpresa);
|
||||||
|
args.put("formapagoEmpresaList", formapagoEmpresaList);
|
||||||
|
|
||||||
|
openWindow("/gui/impressaofiscal/editarFormapagoEmpresa.zul",
|
||||||
|
Labels.getLabel("editarFormapagoEmpresa.window.title"), args, MODAL);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||||
|
actualizaFormapagoEmpresaList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnRefresh(Event ev) {
|
||||||
|
actualizaFormapagoEmpresaList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnNovo(Event ev) {
|
||||||
|
visualizaFormapagoEmpresa(new FiscalFormapagoEmpresa());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void actualizaFormapagoEmpresaList() {
|
||||||
|
HibernateSearchObject<FiscalFormapagoEmpresa> editarFormapagoEmpresaBusqueda =
|
||||||
|
new HibernateSearchObject<FiscalFormapagoEmpresa>(FiscalFormapagoEmpresa.class, pagingFormapagoEmpresa.getPageSize());
|
||||||
|
|
||||||
|
editarFormapagoEmpresaBusqueda.addFilterEqual("activo", true);
|
||||||
|
|
||||||
|
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||||
|
if (itemEmpresa != null) {
|
||||||
|
Empresa empresa = (Empresa) itemEmpresa.getValue();
|
||||||
|
editarFormapagoEmpresaBusqueda.addFilterEqual("empresa", empresa);
|
||||||
|
} else {
|
||||||
|
editarFormapagoEmpresaBusqueda.addFilterIn("empresa", lsEmpresas);
|
||||||
|
}
|
||||||
|
|
||||||
|
plwFormapagoEmpresa.init(editarFormapagoEmpresaBusqueda, formapagoEmpresaList, pagingFormapagoEmpresa);
|
||||||
|
|
||||||
|
if (formapagoEmpresaList.getData().length == 0) {
|
||||||
|
try {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("busquedaAidfController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresas() {
|
||||||
|
return lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresas(List<Empresa> _lsEmpresas) {
|
||||||
|
lsEmpresas = _lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,124 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.impressaofiscal;
|
||||||
|
|
||||||
|
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.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FiscalRelgerencialEmpresa;
|
||||||
|
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("busquedaRelgerencialEmpresaController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class BusquedaRelgerencialEmpresaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<FiscalRelgerencialEmpresa> plwRelgerencialEmpresa;
|
||||||
|
private Paging pagingRelgerencialEmpresa;
|
||||||
|
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
private List<Empresa> lsEmpresas;
|
||||||
|
|
||||||
|
private MyListbox relgerencialEmpresaList;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
relgerencialEmpresaList.setItemRenderer(new RelgerencialEmpresaListItemRenderer());
|
||||||
|
relgerencialEmpresaList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
FiscalRelgerencialEmpresa relgerencialEmpresa = (FiscalRelgerencialEmpresa) relgerencialEmpresaList.getSelected();
|
||||||
|
visualizaRelgerencialEmpresa(relgerencialEmpresa);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
actualizaRelgerencialEmpresaList();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void visualizaRelgerencialEmpresa(FiscalRelgerencialEmpresa relgerencialEmpresa){
|
||||||
|
|
||||||
|
if (relgerencialEmpresa == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("relgerencialEmpresa", relgerencialEmpresa);
|
||||||
|
args.put("relgerencialEmpresaList", relgerencialEmpresaList);
|
||||||
|
|
||||||
|
openWindow("/gui/impressaofiscal/editarRelgerencialEmpresa.zul",
|
||||||
|
Labels.getLabel("editarRelgerencialEmpresa.window.title"), args, MODAL);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||||
|
actualizaRelgerencialEmpresaList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnRefresh(Event ev) {
|
||||||
|
actualizaRelgerencialEmpresaList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnNovo(Event ev) {
|
||||||
|
visualizaRelgerencialEmpresa(new FiscalRelgerencialEmpresa());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void actualizaRelgerencialEmpresaList() {
|
||||||
|
HibernateSearchObject<FiscalRelgerencialEmpresa> editarRelgerencialEmpresaBusqueda =
|
||||||
|
new HibernateSearchObject<FiscalRelgerencialEmpresa>(FiscalRelgerencialEmpresa.class, pagingRelgerencialEmpresa.getPageSize());
|
||||||
|
|
||||||
|
editarRelgerencialEmpresaBusqueda.addFilterEqual("activo", true);
|
||||||
|
|
||||||
|
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||||
|
if (itemEmpresa != null) {
|
||||||
|
Empresa empresa = (Empresa) itemEmpresa.getValue();
|
||||||
|
editarRelgerencialEmpresaBusqueda.addFilterEqual("empresa", empresa);
|
||||||
|
} else {
|
||||||
|
editarRelgerencialEmpresaBusqueda.addFilterIn("empresa", lsEmpresas);
|
||||||
|
}
|
||||||
|
|
||||||
|
plwRelgerencialEmpresa.init(editarRelgerencialEmpresaBusqueda, relgerencialEmpresaList, pagingRelgerencialEmpresa);
|
||||||
|
|
||||||
|
if (relgerencialEmpresaList.getData().length == 0) {
|
||||||
|
try {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("busquedaAidfController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresas() {
|
||||||
|
return lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresas(List<Empresa> _lsEmpresas) {
|
||||||
|
lsEmpresas = _lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,123 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.impressaofiscal;
|
||||||
|
|
||||||
|
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.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FiscalTotnaofiscalEmpresa;
|
||||||
|
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("busquedaTotnaofiscalEmpresaController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class BusquedaTotnaofiscalEmpresaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<FiscalTotnaofiscalEmpresa> plwTotnaofiscalEmpresa;
|
||||||
|
private Paging pagingTotnaofiscalEmpresa;
|
||||||
|
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
private List<Empresa> lsEmpresas;
|
||||||
|
|
||||||
|
private MyListbox totnaofiscalEmpresaList;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
totnaofiscalEmpresaList.setItemRenderer(new TotnaofiscalEmpresaListItemRenderer());
|
||||||
|
totnaofiscalEmpresaList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
FiscalTotnaofiscalEmpresa totnaofiscalEmpresa = (FiscalTotnaofiscalEmpresa) totnaofiscalEmpresaList.getSelected();
|
||||||
|
visualizaTotnaofiscalEmpresa(totnaofiscalEmpresa);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
actualizaTotnaofiscalEmpresaList();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void visualizaTotnaofiscalEmpresa(FiscalTotnaofiscalEmpresa totnaofiscalEmpresa){
|
||||||
|
|
||||||
|
if (totnaofiscalEmpresa == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("totnaofiscalEmpresa", totnaofiscalEmpresa);
|
||||||
|
args.put("totnaofiscalEmpresaList", totnaofiscalEmpresaList);
|
||||||
|
|
||||||
|
openWindow("/gui/impressaofiscal/editarTotnaofiscalEmpresa.zul",
|
||||||
|
Labels.getLabel("editarTotnaofiscalEmpresa.window.title"), args, MODAL);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||||
|
actualizaTotnaofiscalEmpresaList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnRefresh(Event ev) {
|
||||||
|
actualizaTotnaofiscalEmpresaList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnNovo(Event ev) {
|
||||||
|
visualizaTotnaofiscalEmpresa(new FiscalTotnaofiscalEmpresa());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void actualizaTotnaofiscalEmpresaList() {
|
||||||
|
HibernateSearchObject<FiscalTotnaofiscalEmpresa> editarTotnaofiscalEmpresaBusqueda =
|
||||||
|
new HibernateSearchObject<FiscalTotnaofiscalEmpresa>(FiscalTotnaofiscalEmpresa.class, pagingTotnaofiscalEmpresa.getPageSize());
|
||||||
|
|
||||||
|
editarTotnaofiscalEmpresaBusqueda.addFilterEqual("activo", true);
|
||||||
|
|
||||||
|
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||||
|
if (itemEmpresa != null) {
|
||||||
|
Empresa empresa = (Empresa) itemEmpresa.getValue();
|
||||||
|
editarTotnaofiscalEmpresaBusqueda.addFilterEqual("empresa", empresa);
|
||||||
|
} else {
|
||||||
|
editarTotnaofiscalEmpresaBusqueda.addFilterIn("empresa", lsEmpresas);
|
||||||
|
}
|
||||||
|
|
||||||
|
plwTotnaofiscalEmpresa.init(editarTotnaofiscalEmpresaBusqueda, totnaofiscalEmpresaList, pagingTotnaofiscalEmpresa);
|
||||||
|
|
||||||
|
if (totnaofiscalEmpresaList.getData().length == 0) {
|
||||||
|
try {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("busquedaAidfController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresas() {
|
||||||
|
return lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresas(List<Empresa> _lsEmpresas) {
|
||||||
|
lsEmpresas = _lsEmpresas;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,235 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.impressaofiscal;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
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.Checkbox;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Comboitem;
|
||||||
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FiscalFormapagoEmpresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FiscalTotnaofiscalEmpresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FormaPago;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra;
|
||||||
|
import com.rjconsultores.ventaboletos.service.FiscalImpressoraService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.FormaPagoService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.TipoEventoExtraService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
import com.rjconsultores.ventaboletos.web.gui.controladores.impressaofiscal.EditarTotnaofiscalEmpresaController.TipoTotalizadorNaoFiscal;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
|
||||||
|
@Controller("editarFormapagoEmpresaController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class EditarFormapagoEmpresaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
public enum TipoFormaPagamento {
|
||||||
|
TotalCartao,
|
||||||
|
PtaAtendido,
|
||||||
|
TrocaPassagem,
|
||||||
|
Gratuidade,
|
||||||
|
CUSTOM;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FiscalImpressoraService fiscalImpressoraService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FormaPagoService formaPagoService;
|
||||||
|
|
||||||
|
private FiscalFormapagoEmpresa formapagoEmpresa;
|
||||||
|
private MyListbox formapagoEmpresaList;
|
||||||
|
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
private List<Empresa> lsEmpresas;
|
||||||
|
|
||||||
|
private Combobox cmbTipoformapago;
|
||||||
|
private List<String> lsTipoformapago = new ArrayList<String>();
|
||||||
|
|
||||||
|
private Textbox txtDescricao;
|
||||||
|
|
||||||
|
private Combobox cmbTipoformapagoTotalBus;
|
||||||
|
private List<FormaPago> lsTipoformapagoTotalBus = new ArrayList<FormaPago>();
|
||||||
|
|
||||||
|
private Button btnApagar;
|
||||||
|
|
||||||
|
private static Logger log = Logger.getLogger(EditarFormapagoEmpresaController.class);
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
for(TipoFormaPagamento tipo : TipoFormaPagamento.values()){
|
||||||
|
lsTipoformapago.add(tipo.name());
|
||||||
|
}
|
||||||
|
|
||||||
|
for(FormaPago tipo : formaPagoService.obtenerTodos()){
|
||||||
|
if(tipo.getImpfiscal() != null && tipo.getImpfiscal()){
|
||||||
|
lsTipoformapagoTotalBus.add(tipo);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
|
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
formapagoEmpresa = (FiscalFormapagoEmpresa) Executions.getCurrent().getArg().get("formapagoEmpresa");
|
||||||
|
formapagoEmpresaList = (MyListbox) Executions.getCurrent().getArg().get("formapagoEmpresaList");
|
||||||
|
|
||||||
|
if (formapagoEmpresa.getFiscalformapagoempresaId() == null)
|
||||||
|
btnApagar.setVisible(Boolean.FALSE);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
|
cmbEmpresa.getValue();
|
||||||
|
cmbTipoformapago.getValue();
|
||||||
|
cmbTipoformapagoTotalBus.getValue();
|
||||||
|
|
||||||
|
try{
|
||||||
|
|
||||||
|
Comboitem itemFormapagoTotalBus = cmbTipoformapagoTotalBus.getSelectedItem();
|
||||||
|
if(itemFormapagoTotalBus != null){
|
||||||
|
FormaPago fpTotalBus = (FormaPago) itemFormapagoTotalBus.getValue();
|
||||||
|
formapagoEmpresa.setFormaPago(fpTotalBus);
|
||||||
|
}
|
||||||
|
|
||||||
|
Comboitem itemTipoFormapago = cmbTipoformapago.getSelectedItem();
|
||||||
|
if(itemTipoFormapago != null){
|
||||||
|
String tipoFormapago = (String) itemTipoFormapago.getValue();
|
||||||
|
formapagoEmpresa.setTipoformapago(tipoFormapago);
|
||||||
|
}
|
||||||
|
|
||||||
|
formapagoEmpresa.setDescricao(txtDescricao.getText());
|
||||||
|
|
||||||
|
formapagoEmpresa.setActivo(true);
|
||||||
|
formapagoEmpresa.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
formapagoEmpresa.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
|
||||||
|
if(formapagoEmpresa.getFiscalformapagoempresaId() == null){
|
||||||
|
fiscalImpressoraService.suscribirFormapagoEmpresa(formapagoEmpresa);
|
||||||
|
formapagoEmpresaList.addItemNovo(formapagoEmpresa);
|
||||||
|
} else {
|
||||||
|
fiscalImpressoraService.actualizacionFormapagoEmpresa(formapagoEmpresa);
|
||||||
|
formapagoEmpresaList.updateItem(formapagoEmpresa);
|
||||||
|
}
|
||||||
|
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarFormapagoEmpresaController.MSG.suscribirOK"),
|
||||||
|
Labels.getLabel("editarFormapagoEmpresaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
|
||||||
|
closeWindow();
|
||||||
|
|
||||||
|
}catch (Exception ex) {
|
||||||
|
log.error("editarFormapagoEmpresaController: " + ex);
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("MSG.Error"),
|
||||||
|
Labels.getLabel("editarFormapagoEmpresaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public FiscalFormapagoEmpresa getFormapagoEmpresa() {
|
||||||
|
return formapagoEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFormapagoEmpresa(FiscalFormapagoEmpresa formapagoEmpresa) {
|
||||||
|
this.formapagoEmpresa = formapagoEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getFormapagoEmpresaList() {
|
||||||
|
return formapagoEmpresaList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFormapagoEmpresaList(MyListbox formapagoEmpresaList) {
|
||||||
|
this.formapagoEmpresaList = formapagoEmpresaList;
|
||||||
|
}
|
||||||
|
|
||||||
|
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 Combobox getCmbTipoformapago() {
|
||||||
|
return cmbTipoformapago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbTipoformapago(Combobox cmbTipoformapago) {
|
||||||
|
this.cmbTipoformapago = cmbTipoformapago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getLsTipoformapago() {
|
||||||
|
return lsTipoformapago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsTipoformapago(List<String> lsTipoformapago) {
|
||||||
|
this.lsTipoformapago = lsTipoformapago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtDescricao() {
|
||||||
|
return txtDescricao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtDescricao(Textbox txtDescricao) {
|
||||||
|
this.txtDescricao = txtDescricao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbTipoformapagoTotalBus() {
|
||||||
|
return cmbTipoformapagoTotalBus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbTipoformapagoTotalBus(Combobox cmbTipoformapagoTotalBus) {
|
||||||
|
this.cmbTipoformapagoTotalBus = cmbTipoformapagoTotalBus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<FormaPago> getLsTipoformapagoTotalBus() {
|
||||||
|
return lsTipoformapagoTotalBus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsTipoformapagoTotalBus(List<FormaPago> lsTipoformapagoTotalBus) {
|
||||||
|
this.lsTipoformapagoTotalBus = lsTipoformapagoTotalBus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Button getBtnApagar() {
|
||||||
|
return btnApagar;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBtnApagar(Button btnApagar) {
|
||||||
|
this.btnApagar = btnApagar;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,204 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.impressaofiscal;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Calendar;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
import org.apache.log4j.Logger;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
import org.zkoss.zhtml.Messagebox;
|
||||||
|
import org.zkoss.zk.ui.Component;
|
||||||
|
import org.zkoss.zk.ui.Executions;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zul.Button;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Comboitem;
|
||||||
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FiscalRelgerencialEmpresa;
|
||||||
|
import com.rjconsultores.ventaboletos.service.FiscalImpressoraService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
|
||||||
|
@Controller("editarRelgerencialEmpresaController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class EditarRelgerencialEmpresaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
public enum TipoRelatorioGerencial {
|
||||||
|
RelatorioGeral,
|
||||||
|
CupomEmbarque,
|
||||||
|
CupomEmbGratuidade,
|
||||||
|
IdentificacaoPafECF,
|
||||||
|
ManifestoFiscal,
|
||||||
|
ParametrosConfiguracao,
|
||||||
|
IdentificacaoIdaVolta,
|
||||||
|
CUSTOM;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FiscalImpressoraService fiscalImpressoraService;
|
||||||
|
|
||||||
|
private FiscalRelgerencialEmpresa relgerencialEmpresa;
|
||||||
|
private MyListbox relgerencialEmpresaList;
|
||||||
|
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
private List<Empresa> lsEmpresas;
|
||||||
|
|
||||||
|
private Combobox cmbTiporelgerencial;
|
||||||
|
private List<String> lsTiporelgerencial = new ArrayList<String>();
|
||||||
|
|
||||||
|
private Textbox txtIndice;
|
||||||
|
private Textbox txtDescricao;
|
||||||
|
|
||||||
|
private Button btnApagar;
|
||||||
|
|
||||||
|
private static Logger log = Logger.getLogger(EditarRelgerencialEmpresaController.class);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
for(TipoRelatorioGerencial tipo : TipoRelatorioGerencial.values()){
|
||||||
|
lsTiporelgerencial.add(tipo.name());
|
||||||
|
}
|
||||||
|
|
||||||
|
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
relgerencialEmpresa = (FiscalRelgerencialEmpresa) Executions.getCurrent().getArg().get("relgerencialEmpresa");
|
||||||
|
relgerencialEmpresaList = (MyListbox) Executions.getCurrent().getArg().get("relgerencialEmpresaList");
|
||||||
|
|
||||||
|
if (relgerencialEmpresa.getFiscalrelgerencialId() == null)
|
||||||
|
btnApagar.setVisible(Boolean.FALSE);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
|
cmbEmpresa.getValue();
|
||||||
|
cmbTiporelgerencial.getValue();
|
||||||
|
|
||||||
|
try{
|
||||||
|
|
||||||
|
Comboitem itemTiporelgerencial = cmbTiporelgerencial.getSelectedItem();
|
||||||
|
if(itemTiporelgerencial != null){
|
||||||
|
String tipoRelgerencial = (String) itemTiporelgerencial.getValue();
|
||||||
|
relgerencialEmpresa.setTiporelgerencial(tipoRelgerencial);
|
||||||
|
}
|
||||||
|
|
||||||
|
relgerencialEmpresa.setDescricao(txtDescricao.getText());
|
||||||
|
relgerencialEmpresa.setIndice(StringUtils.leftPad(txtIndice.getText(), 2, "0"));
|
||||||
|
|
||||||
|
relgerencialEmpresa.setActivo(true);
|
||||||
|
relgerencialEmpresa.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
relgerencialEmpresa.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
|
||||||
|
if(relgerencialEmpresa.getFiscalrelgerencialId() == null){
|
||||||
|
fiscalImpressoraService.suscribirRelgerencialEmpresa(relgerencialEmpresa);
|
||||||
|
relgerencialEmpresaList.addItemNovo(relgerencialEmpresa);
|
||||||
|
} else {
|
||||||
|
fiscalImpressoraService.actualizacionRelgerencialEmpresa(relgerencialEmpresa);
|
||||||
|
relgerencialEmpresaList.updateItem(relgerencialEmpresa);
|
||||||
|
}
|
||||||
|
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarRelgerencialEmpresaController.MSG.suscribirOK"),
|
||||||
|
Labels.getLabel("editarRelgerencialEmpresaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
|
||||||
|
closeWindow();
|
||||||
|
|
||||||
|
}catch (Exception ex) {
|
||||||
|
log.error("editarRelgerencialEmpresaController: " + ex);
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("MSG.Error"),
|
||||||
|
Labels.getLabel("editarRelgerencialEmpresaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public FiscalRelgerencialEmpresa getRelgerencialEmpresa() {
|
||||||
|
return relgerencialEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRelgerencialEmpresa(FiscalRelgerencialEmpresa relgerencialEmpresa) {
|
||||||
|
this.relgerencialEmpresa = relgerencialEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getRelgerencialEmpresaList() {
|
||||||
|
return relgerencialEmpresaList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRelgerencialEmpresaList(MyListbox relgerencialEmpresaList) {
|
||||||
|
this.relgerencialEmpresaList = relgerencialEmpresaList;
|
||||||
|
}
|
||||||
|
|
||||||
|
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 Combobox getCmbTiporelgerencial() {
|
||||||
|
return cmbTiporelgerencial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbTiporelgerencial(Combobox cmbTiporelgerencial) {
|
||||||
|
this.cmbTiporelgerencial = cmbTiporelgerencial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getLsTiporelgerencial() {
|
||||||
|
return lsTiporelgerencial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsTiporelgerencial(List<String> lsTiporelgerencial) {
|
||||||
|
this.lsTiporelgerencial = lsTiporelgerencial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtIndice() {
|
||||||
|
return txtIndice;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtIndice(Textbox txtIndice) {
|
||||||
|
this.txtIndice = txtIndice;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtDescricao() {
|
||||||
|
return txtDescricao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtDescricao(Textbox txtDescricao) {
|
||||||
|
this.txtDescricao = txtDescricao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Button getBtnApagar() {
|
||||||
|
return btnApagar;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBtnApagar(Button btnApagar) {
|
||||||
|
this.btnApagar = btnApagar;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,246 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.impressaofiscal;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Calendar;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
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.Checkbox;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Comboitem;
|
||||||
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FiscalTotnaofiscalEmpresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra;
|
||||||
|
import com.rjconsultores.ventaboletos.service.FiscalImpressoraService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.TipoEventoExtraService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
|
||||||
|
@Controller("editarTotnaofiscalEmpresaController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class EditarTotnaofiscalEmpresaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
public enum TipoTotalizadorNaoFiscal {
|
||||||
|
|
||||||
|
CancImpPost,
|
||||||
|
CartaoCredDeb,
|
||||||
|
CanPassagem,
|
||||||
|
VendaManual,
|
||||||
|
ImpressaoPost,
|
||||||
|
SeguroOpcional,
|
||||||
|
CancSeguroOpcional,
|
||||||
|
ExcessoBagagem,
|
||||||
|
TaxaEmbarque,
|
||||||
|
TaxaConveniencia,
|
||||||
|
Multa,
|
||||||
|
DiferencaMaior,
|
||||||
|
DiferencaMenor,
|
||||||
|
CUSTOM;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FiscalImpressoraService fiscalImpressoraService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private TipoEventoExtraService tipoEventoExtraService;
|
||||||
|
|
||||||
|
private FiscalTotnaofiscalEmpresa totnaofiscalEmpresa;
|
||||||
|
private MyListbox totnaofiscalEmpresaList;
|
||||||
|
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
private List<Empresa> lsEmpresas;
|
||||||
|
|
||||||
|
private Combobox cmbTipototalizador;
|
||||||
|
private List<String> lsTipototalizador = new ArrayList<String>();
|
||||||
|
|
||||||
|
private Combobox cmbTipoEventoExtra;
|
||||||
|
private List<TipoEventoExtra> lsTipoEventoExtra;
|
||||||
|
|
||||||
|
private Textbox txtIndice;
|
||||||
|
private Textbox txtDescricao;
|
||||||
|
private Checkbox chkImportarImp;
|
||||||
|
|
||||||
|
private Button btnApagar;
|
||||||
|
|
||||||
|
private static Logger log = Logger.getLogger(EditarTotnaofiscalEmpresaController.class);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
for(TipoTotalizadorNaoFiscal tipo : TipoTotalizadorNaoFiscal.values()){
|
||||||
|
lsTipototalizador.add(tipo.name());
|
||||||
|
}
|
||||||
|
|
||||||
|
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
|
lsTipoEventoExtra = tipoEventoExtraService.obtenerTodos();
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
totnaofiscalEmpresa = (FiscalTotnaofiscalEmpresa) Executions.getCurrent().getArg().get("totnaofiscalEmpresa");
|
||||||
|
totnaofiscalEmpresaList = (MyListbox) Executions.getCurrent().getArg().get("totnaofiscalEmpresaList");
|
||||||
|
|
||||||
|
if (totnaofiscalEmpresa.getFiscaltotnaofiscalId() == null)
|
||||||
|
btnApagar.setVisible(Boolean.FALSE);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
|
cmbEmpresa.getValue();
|
||||||
|
cmbTipoEventoExtra.getValue();
|
||||||
|
cmbTipototalizador.getValue();
|
||||||
|
|
||||||
|
try{
|
||||||
|
|
||||||
|
Comboitem itemTipoEventoExtra = cmbTipoEventoExtra.getSelectedItem();
|
||||||
|
if(itemTipoEventoExtra != null){
|
||||||
|
TipoEventoExtra tipoeventoextra = (TipoEventoExtra) itemTipoEventoExtra.getValue();
|
||||||
|
totnaofiscalEmpresa.setTipoeventoextra(tipoeventoextra);
|
||||||
|
}
|
||||||
|
|
||||||
|
Comboitem itemTipototalizador = cmbTipototalizador.getSelectedItem();
|
||||||
|
if(itemTipototalizador != null){
|
||||||
|
String tipoTotalizadorNaoFiscal = (String) itemTipototalizador.getValue();
|
||||||
|
totnaofiscalEmpresa.setTipototalizador(tipoTotalizadorNaoFiscal);
|
||||||
|
}
|
||||||
|
|
||||||
|
totnaofiscalEmpresa.setDescricao(txtDescricao.getText());
|
||||||
|
totnaofiscalEmpresa.setIndice(StringUtils.leftPad(txtIndice.getText(), 2, "0"));
|
||||||
|
totnaofiscalEmpresa.setIndimportar(chkImportarImp.isChecked());
|
||||||
|
|
||||||
|
totnaofiscalEmpresa.setActivo(true);
|
||||||
|
totnaofiscalEmpresa.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
totnaofiscalEmpresa.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
|
||||||
|
if(totnaofiscalEmpresa.getFiscaltotnaofiscalId() == null){
|
||||||
|
fiscalImpressoraService.suscribirTotnaofiscalEmpresa(totnaofiscalEmpresa);
|
||||||
|
totnaofiscalEmpresaList.addItemNovo(totnaofiscalEmpresa);
|
||||||
|
} else {
|
||||||
|
fiscalImpressoraService.actualizacionTotnaofiscalEmpresa(totnaofiscalEmpresa);
|
||||||
|
totnaofiscalEmpresaList.updateItem(totnaofiscalEmpresa);
|
||||||
|
}
|
||||||
|
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarTotnaofiscalEmpresaController.MSG.suscribirOK"),
|
||||||
|
Labels.getLabel("editarTotnaofiscalEmpresaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
|
||||||
|
closeWindow();
|
||||||
|
|
||||||
|
}catch (Exception ex) {
|
||||||
|
log.error("editarTotnaofiscalEmpresaController: " + ex);
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("MSG.Error"),
|
||||||
|
Labels.getLabel("editarTotnaofiscalEmpresaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<TipoEventoExtra> getLsTipoEventoExtra() {
|
||||||
|
return lsTipoEventoExtra;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsTipoEventoExtra(List<TipoEventoExtra> lsTipoEventoExtra) {
|
||||||
|
this.lsTipoEventoExtra = lsTipoEventoExtra;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresas() {
|
||||||
|
return lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
||||||
|
this.lsEmpresas = lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FiscalTotnaofiscalEmpresa getTotnaofiscalEmpresa() {
|
||||||
|
return totnaofiscalEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTotnaofiscalEmpresa(FiscalTotnaofiscalEmpresa totnaofiscalEmpresa) {
|
||||||
|
this.totnaofiscalEmpresa = totnaofiscalEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getTotnaofiscalEmpresaList() {
|
||||||
|
return totnaofiscalEmpresaList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTotnaofiscalEmpresaList(MyListbox totnaofiscalEmpresaList) {
|
||||||
|
this.totnaofiscalEmpresaList = totnaofiscalEmpresaList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbEmpresa() {
|
||||||
|
return cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbEmpresa(Combobox cmbEmpresa) {
|
||||||
|
this.cmbEmpresa = cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbTipototalizador() {
|
||||||
|
return cmbTipototalizador;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbTipototalizador(Combobox cmbTipototalizador) {
|
||||||
|
this.cmbTipototalizador = cmbTipototalizador;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getLsTipototalizador() {
|
||||||
|
return lsTipototalizador;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsTipototalizador(List<String> lsTipototalizador) {
|
||||||
|
this.lsTipototalizador = lsTipototalizador;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbTipoEventoExtra() {
|
||||||
|
return cmbTipoEventoExtra;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbTipoEventoExtra(Combobox cmbTipoEventoExtra) {
|
||||||
|
this.cmbTipoEventoExtra = cmbTipoEventoExtra;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtIndice() {
|
||||||
|
return txtIndice;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtIndice(Textbox txtIndice) {
|
||||||
|
this.txtIndice = txtIndice;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtDescricao() {
|
||||||
|
return txtDescricao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtDescricao(Textbox txtDescricao) {
|
||||||
|
this.txtDescricao = txtDescricao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Checkbox getChkImportarImp() {
|
||||||
|
return chkImportarImp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChkImportarImp(Checkbox chkImportarImp) {
|
||||||
|
this.chkImportarImp = chkImportarImp;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.impressaofiscal;
|
||||||
|
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FiscalFormapagoEmpresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FormaPago;
|
||||||
|
|
||||||
|
public class FormapagoEmpresaListItemRenderer implements ListitemRenderer {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(Listitem listItem, Object obj) throws Exception {
|
||||||
|
FiscalFormapagoEmpresa formapagoEmpresa = (FiscalFormapagoEmpresa)obj;
|
||||||
|
|
||||||
|
Listcell idCell = new Listcell(formapagoEmpresa.getFiscalformapagoempresaId().toString());
|
||||||
|
idCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell empresaCell = new Listcell(formapagoEmpresa.getEmpresa().toString());
|
||||||
|
empresaCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell tipoFormapagoCell = new Listcell(formapagoEmpresa.getTipoformapago());
|
||||||
|
tipoFormapagoCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell descricaoCell = new Listcell(formapagoEmpresa.getDescricao());
|
||||||
|
descricaoCell.setParent(listItem);
|
||||||
|
|
||||||
|
FormaPago formaPagoTotalBus = formapagoEmpresa.getFormaPago();
|
||||||
|
Listcell formaPagoTotalBusCell = new Listcell((formaPagoTotalBus != null)?formaPagoTotalBus.toString():"");
|
||||||
|
formaPagoTotalBusCell.setParent(listItem);
|
||||||
|
|
||||||
|
listItem.setAttribute("data", formapagoEmpresa);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.impressaofiscal;
|
||||||
|
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FiscalRelgerencialEmpresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FiscalTotnaofiscalEmpresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra;
|
||||||
|
|
||||||
|
public class RelgerencialEmpresaListItemRenderer implements ListitemRenderer {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(Listitem listItem, Object obj) throws Exception {
|
||||||
|
FiscalRelgerencialEmpresa relgerencialEmpresa = (FiscalRelgerencialEmpresa)obj;
|
||||||
|
|
||||||
|
Listcell idCell = new Listcell(relgerencialEmpresa.getFiscalrelgerencialId().toString());
|
||||||
|
idCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell empresaCell = new Listcell(relgerencialEmpresa.getEmpresa().toString());
|
||||||
|
empresaCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell tipoRelatorioCell = new Listcell(relgerencialEmpresa.getTiporelgerencial());
|
||||||
|
tipoRelatorioCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell indiceCell = new Listcell(relgerencialEmpresa.getIndice());
|
||||||
|
indiceCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell descricaoCell = new Listcell(relgerencialEmpresa.getDescricao());
|
||||||
|
descricaoCell.setParent(listItem);
|
||||||
|
|
||||||
|
listItem.setAttribute("data", relgerencialEmpresa);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.impressaofiscal;
|
||||||
|
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FiscalTotnaofiscalEmpresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra;
|
||||||
|
|
||||||
|
public class TotnaofiscalEmpresaListItemRenderer implements ListitemRenderer {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(Listitem listItem, Object obj) throws Exception {
|
||||||
|
FiscalTotnaofiscalEmpresa totnaofiscalEmpresa = (FiscalTotnaofiscalEmpresa)obj;
|
||||||
|
|
||||||
|
Listcell idCell = new Listcell(totnaofiscalEmpresa.getFiscaltotnaofiscalId().toString());
|
||||||
|
idCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell empresaCell = new Listcell(totnaofiscalEmpresa.getEmpresa().toString());
|
||||||
|
empresaCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell tipoTotalizadorCell = new Listcell(totnaofiscalEmpresa.getTipototalizador());
|
||||||
|
tipoTotalizadorCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell indiceCell = new Listcell(totnaofiscalEmpresa.getIndice());
|
||||||
|
indiceCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell descricaoCell = new Listcell(totnaofiscalEmpresa.getDescricao());
|
||||||
|
descricaoCell.setParent(listItem);
|
||||||
|
|
||||||
|
Listcell indimportarCell = new Listcell((totnaofiscalEmpresa.getIndimportar())?"Sim":"Não");
|
||||||
|
indimportarCell.setParent(listItem);
|
||||||
|
|
||||||
|
TipoEventoExtra tipoEventoExtra = totnaofiscalEmpresa.getTipoeventoextra();
|
||||||
|
Listcell tipoeventoextraCell = new Listcell((tipoEventoExtra != null)?tipoEventoExtra.toString():"");
|
||||||
|
tipoeventoextraCell.setParent(listItem);
|
||||||
|
|
||||||
|
listItem.setAttribute("data", totnaofiscalEmpresa);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuFormapagoEmpresa extends DefaultItemMenuSistema {
|
||||||
|
public ItemMenuFormapagoEmpresa() {
|
||||||
|
super("indexController.mniFormapagoEmpresa.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.IMPRESSAOFISCAL.MENU.FORMAPAGOEMPRESA";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/impressaofiscal/busquedaFormapagoEmpresa.zul",
|
||||||
|
Labels.getLabel("busquedaFormapagoEmpresaController.window.title"),
|
||||||
|
getArgs() ,desktop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuRelgerencialEmpresa extends DefaultItemMenuSistema {
|
||||||
|
public ItemMenuRelgerencialEmpresa() {
|
||||||
|
super("indexController.mniRelgerencialEmpresa.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.IMPRESSAOFISCAL.MENU.RELGERENCIALEMPRESA";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/impressaofiscal/busquedaRelgerencialEmpresa.zul",
|
||||||
|
Labels.getLabel("busquedaRelgerencialEmpresaController.window.title"),
|
||||||
|
getArgs() ,desktop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuTotnaofiscalEmpresa extends DefaultItemMenuSistema {
|
||||||
|
public ItemMenuTotnaofiscalEmpresa() {
|
||||||
|
super("indexController.mniTotnaofiscalEmpresa.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.IMPRESSAOFISCAL.MENU.TOTNAOFISCALEMPRESA";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/impressaofiscal/busquedaTotnaofiscalEmpresa.zul",
|
||||||
|
Labels.getLabel("busquedaTotnaofiscalEmpresaController.window.title"),
|
||||||
|
getArgs() ,desktop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class SubMenuImpressaoFiscal extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public SubMenuImpressaoFiscal() {
|
||||||
|
super("indexController.mnSubMenuImpressaoFiscal.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.IMPRESSAOFISCAL";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -370,6 +370,10 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.FechamentoParamgeral</value>
|
<value>com.rjconsultores.ventaboletos.entidad.FechamentoParamgeral</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.FechamentoParamptovta</value>
|
<value>com.rjconsultores.ventaboletos.entidad.FechamentoParamptovta</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TipoIdentificacion</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TipoIdentificacion</value>
|
||||||
|
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.FiscalTotnaofiscalEmpresa</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.FiscalFormapagoEmpresa</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.FiscalRelgerencialEmpresa</value>
|
||||||
|
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -243,6 +243,11 @@ indexController.mniRelatorioCorridas.label = Relatório de Serviços
|
||||||
indexController.mniRelatorioCorridas.label = Relatório de Serviços
|
indexController.mniRelatorioCorridas.label = Relatório de Serviços
|
||||||
indexController.mniRelatorioDemandas.label = Relatório de Demandas
|
indexController.mniRelatorioDemandas.label = Relatório de Demandas
|
||||||
|
|
||||||
|
indexController.mnSubMenuImpressaoFiscal.label=Impressão Fiscal
|
||||||
|
indexController.mniTotnaofiscalEmpresa.label=Totalizadoes Não-fiscais
|
||||||
|
indexController.mniFormapagoEmpresa.label=Formas de Pagamento
|
||||||
|
indexController.mniRelgerencialEmpresa.label=Relatorio Gerencial
|
||||||
|
|
||||||
#PARTE REALIZADA POR MANUEL
|
#PARTE REALIZADA POR MANUEL
|
||||||
indexController.mnCortesias.label = Cortesias Para Funcionários
|
indexController.mnCortesias.label = Cortesias Para Funcionários
|
||||||
indexController.mniTipoCortesiaD.label = Desconto por Tipo de Cortesia
|
indexController.mniTipoCortesiaD.label = Desconto por Tipo de Cortesia
|
||||||
|
@ -5216,4 +5221,38 @@ relatorioGratuidadeController.lbDataFin.value = Data Final
|
||||||
indexController.mniRelatorioAgenciaFechamento.label= Relatorio Agências Fechamento
|
indexController.mniRelatorioAgenciaFechamento.label= Relatorio Agências Fechamento
|
||||||
|
|
||||||
integracion.totvs = ERRO ao fazer integração com a TOTVS
|
integracion.totvs = ERRO ao fazer integração com a TOTVS
|
||||||
integracion.totvs.ja.cadastrado = Está Agencia já possui cadastrado no sistema da TOTVS. Os dados de integração não seram enviados novamente
|
integracion.totvs.ja.cadastrado = Está Agencia já possui cadastrado no sistema da TOTVS. Os dados de integração não seram enviados novamente
|
||||||
|
|
||||||
|
|
||||||
|
#Parametros Impressão Fiscal
|
||||||
|
busquedaTotnaofiscalEmpresaController.window.title=Impressão Fiscal :: Totalizadores não-fiscais
|
||||||
|
busquedaTotnaofiscalEmpresaController.empresa.label=Empresa
|
||||||
|
busquedaTotnaofiscalEmpresaController.tipototalizador.label=Tipo Totalizador
|
||||||
|
busquedaTotnaofiscalEmpresaController.indice.label=Indice imp.
|
||||||
|
busquedaTotnaofiscalEmpresaController.descricao.label=Descrição
|
||||||
|
busquedaTotnaofiscalEmpresaController.indimportar.label=Importa p/imp.
|
||||||
|
busquedaTotnaofiscalEmpresaController.tipoeventoextra.label=Tipo Evt. Extra
|
||||||
|
busquedaTotnaofiscalEmpresaController.btnPesquisa.label=Pesquisar
|
||||||
|
|
||||||
|
editarTotnaofiscalEmpresaController.MSG.suscribirOK=Totalizador não-fiscal gravado com sucesso!
|
||||||
|
editarTotnaofiscalEmpresaController.window.title=Impressão Fiscal :: Editar Totalizador não-fiscal
|
||||||
|
|
||||||
|
busquedaFormapagoEmpresaController.window.title=Impressão Fiscal :: Formas de Pagamento
|
||||||
|
busquedaFormapagoEmpresaController.empresa.label=Empresa
|
||||||
|
busquedaFormapagoEmpresaController.tipoformapago.label=Tipo Forma Pago
|
||||||
|
busquedaFormapagoEmpresaController.descricao.label=Descrição
|
||||||
|
busquedaFormapagoEmpresaController.formapagototalbus.label=Forma Pago TotalBus
|
||||||
|
busquedaFormapagoEmpresaController.btnPesquisa.label=Pesquisar
|
||||||
|
|
||||||
|
editarFormapagoEmpresaController.MSG.suscribirOK=Forma de pagamento gravado com sucesso!
|
||||||
|
editarFormapagoEmpresaController.window.title=Impressão Fiscal :: Editar Forma de pagamento
|
||||||
|
|
||||||
|
busquedaRelgerencialEmpresaController.window.title=Impressão Fiscal :: Relatório Gerencial
|
||||||
|
busquedaRelgerencialEmpresaController.empresa.label=Empresa
|
||||||
|
busquedaRelgerencialEmpresaController.tiporelgerencial.label=Tipo Rel.Gerencial
|
||||||
|
busquedaRelgerencialEmpresaController.indice.label=Indice
|
||||||
|
busquedaRelgerencialEmpresaController.descricao.label=Descrição
|
||||||
|
busquedaRelgerencialEmpresaController.btnPesquisa.label=Pesquisar
|
||||||
|
|
||||||
|
editarRelgerencialEmpresaController.MSG.suscribirOK=Relatorio Gerencial gravado com sucesso!
|
||||||
|
editarRelgerencialEmpresaController.window.title=Impressão Fiscal :: Editar Relatorio Gerencial
|
|
@ -0,0 +1,73 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page title="FormapagoEmpresa" contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaFormapagoEmpresa"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk>
|
||||||
|
<window id="winBusquedaFormapagoEmpresa" title="${c:l('busquedaFormapagoEmpresaController.window.title')}"
|
||||||
|
apply="${busquedaFormapagoEmpresaController}" contentStyle="overflow:auto"
|
||||||
|
height="500px" width="820px" border="normal" >
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaFormapagoEmpresaController.btnRefresh.tooltiptext')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
|
||||||
|
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaFormapagoEmpresaController.btnNovo.tooltiptext')}" />
|
||||||
|
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winBusquedaFormapagoEmpresa.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaFormapagoEmpresaController.btnCerrar.tooltiptext')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column/>
|
||||||
|
<column/>
|
||||||
|
<column/>
|
||||||
|
<column/>
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<cell>
|
||||||
|
<label value="${c:l('busquedaFormapagoEmpresaController.empresa.label')}" />
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="50%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winBusquedaFormapagoEmpresa$composer.lsEmpresas}" />
|
||||||
|
</cell>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||||
|
label="${c:l('busquedaFormapagoEmpresaController.btnPesquisa.label')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<paging id="pagingFormapagoEmpresa" pageSize="10"/>
|
||||||
|
<listbox id="formapagoEmpresaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" fixedLayout="true" vflex="true" hflex="min"
|
||||||
|
multiple="false" height="250px" width="800px">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader width="3%" image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('lb.id')}" sort="auto(fiscalFormapagoId)"/>
|
||||||
|
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaFormapagoEmpresaController.empresa.label')}" sort="auto(empresa)"/>
|
||||||
|
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaFormapagoEmpresaController.tipoformapago.label')}" sort="auto(tipoformapago)"/>
|
||||||
|
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaFormapagoEmpresaController.descricao.label')}" sort="auto(descricao)"/>
|
||||||
|
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaFormapagoEmpresaController.formapagototalbus.label')}" sort="auto(formaPago)"/>
|
||||||
|
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,75 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page title="RelgerencialEmpresa" contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaRelgerencialEmpresa"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk>
|
||||||
|
<window id="winBusquedaRelgerencialEmpresa" title="${c:l('busquedaRelgerencialEmpresaController.window.title')}"
|
||||||
|
apply="${busquedaRelgerencialEmpresaController}" contentStyle="overflow:auto"
|
||||||
|
height="500px" width="870px" border="normal" >
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaRelgerencialEmpresaController.btnRefresh.tooltiptext')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
|
||||||
|
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaRelgerencialEmpresaController.btnNovo.tooltiptext')}" />
|
||||||
|
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winBusquedaRelgerencialEmpresa.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaRelgerencialEmpresaController.btnCerrar.tooltiptext')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column/>
|
||||||
|
<column/>
|
||||||
|
<column/>
|
||||||
|
<column/>
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<cell>
|
||||||
|
<label value="${c:l('busquedaRelgerencialEmpresaController.empresa.label')}" />
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="100%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winBusquedaRelgerencialEmpresa$composer.lsEmpresas}" />
|
||||||
|
</cell>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||||
|
label="${c:l('busquedaRelgerencialEmpresaController.btnPesquisa.label')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<paging id="pagingRelgerencialEmpresa" pageSize="10"/>
|
||||||
|
<listbox id="relgerencialEmpresaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" fixedLayout="true" vflex="true" hflex="min"
|
||||||
|
multiple="false" height="250px" width="845px">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader width="3%" image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('lb.id')}" sort="auto(fiscalrelgerencialId)"/>
|
||||||
|
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaRelgerencialEmpresaController.empresa.label')}" sort="auto(empresa)"/>
|
||||||
|
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaRelgerencialEmpresaController.tiporelgerencial.label')}" sort="auto(tiporelgerencial)"/>
|
||||||
|
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaRelgerencialEmpresaController.indice.label')}" sort="auto(indice)" width="7%"/>
|
||||||
|
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaRelgerencialEmpresaController.descricao.label')}" sort="auto(descricao)"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,79 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page title="TotnaofiscalEmpresa" contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaTotnaofiscalEmpresa"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk>
|
||||||
|
<window id="winBusquedaTotnaofiscalEmpresa" title="${c:l('busquedaTotnaofiscalEmpresaController.window.title')}"
|
||||||
|
apply="${busquedaTotnaofiscalEmpresaController}" contentStyle="overflow:auto"
|
||||||
|
height="500px" width="825px" border="normal" >
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaTotnaofiscalEmpresaController.btnRefresh.tooltiptext')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
|
||||||
|
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaTotnaofiscalEmpresaController.btnNovo.tooltiptext')}" />
|
||||||
|
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winBusquedaTotnaofiscalEmpresa.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaTotnaofiscalEmpresaController.btnCerrar.tooltiptext')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column/>
|
||||||
|
<column/>
|
||||||
|
<column/>
|
||||||
|
<column/>
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<cell>
|
||||||
|
<label value="${c:l('busquedaTotnaofiscalEmpresaController.empresa.label')}" />
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="100%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winBusquedaTotnaofiscalEmpresa$composer.lsEmpresas}" />
|
||||||
|
</cell>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||||
|
label="${c:l('busquedaTotnaofiscalEmpresaController.btnPesquisa.label')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<paging id="pagingTotnaofiscalEmpresa" pageSize="10"/>
|
||||||
|
<listbox id="totnaofiscalEmpresaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" fixedLayout="true" vflex="true" hflex="min"
|
||||||
|
multiple="false" height="250px" width="800px">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader width="3%" image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('lb.id')}" sort="auto(fiscaltotnaofiscalId)"/>
|
||||||
|
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaTotnaofiscalEmpresaController.empresa.label')}" sort="auto(empresa)"/>
|
||||||
|
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaTotnaofiscalEmpresaController.tipototalizador.label')}" sort="auto(tipototalizador)"/>
|
||||||
|
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaTotnaofiscalEmpresaController.indice.label')}" sort="auto(indice)" width="10%"/>
|
||||||
|
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaTotnaofiscalEmpresaController.descricao.label')}" sort="auto(descricao)"/>
|
||||||
|
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaTotnaofiscalEmpresaController.indimportar.label')}" sort="auto(indimportar)" width="7%"/>
|
||||||
|
|
||||||
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
|
label="${c:l('busquedaTotnaofiscalEmpresaController.tipoeventoextra.label')}" sort="auto(tipoeventoextra)"/>
|
||||||
|
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,73 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page title="FormapagoEmpresa" contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarFormapagoEmpresa"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk>
|
||||||
|
<window id="winEditarFormapagoEmpresa" title="${c:l('editarFormapagoEmpresaController.window.title')}"
|
||||||
|
apply="${editarFormapagoEmpresaController}" contentStyle="overflow:auto"
|
||||||
|
height="300px" 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('editarFormapagoEmpresaController.btnApagar.tooltiptext')}" disabled="false"/>
|
||||||
|
<button id="btnSalvar" height="20"
|
||||||
|
image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarFormapagoEmpresaController.btnSalvar.tooltiptext')}" disabled="false"/>
|
||||||
|
<button id="btnFechar" height="20"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
onClick="winEditarFormapagoEmpresa.detach()"
|
||||||
|
tooltiptext="${c:l('editarFormapagoEmpresaController.btnFechar.tooltiptext')}" disabled="false"/>
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="40%" />
|
||||||
|
<column width="60%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('busquedaFormapagoEmpresaController.empresa.label')}" />
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="70%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winEditarFormapagoEmpresa$composer.lsEmpresas}"
|
||||||
|
selectedItem="@{winEditarFormapagoEmpresa$composer.formapagoEmpresa.empresa}"
|
||||||
|
constraint="no empty" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaFormapagoEmpresaController.tipoformapago.label')}"/>
|
||||||
|
<combobox id="cmbTipototalizador" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="70%"
|
||||||
|
model="@{winEditarFormapagoEmpresa$composer.lsTipoformapago}"
|
||||||
|
selectedItem="@{winEditarFormapagoEmpresa$composer.formapagoEmpresa.tipoformapago}"
|
||||||
|
constraint="no empty"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaFormapagoEmpresaController.descricao.label')}" />
|
||||||
|
<textbox id="txtDescricao" width="300px"
|
||||||
|
maxlength="20"
|
||||||
|
value="@{winEditarFormapagoEmpresa$composer.formapagoEmpresa.descricao}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
|
constraint="no empty"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaFormapagoEmpresaController.formapagototalbus.label')}"/>
|
||||||
|
<combobox id="cmbTipoformapago" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="70%"
|
||||||
|
model="@{winEditarFormapagoEmpresa$composer.lsTipoformapagoTotalBus}"
|
||||||
|
selectedItem="@{winEditarFormapagoEmpresa$composer.formapagoEmpresa.formaPago}"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,74 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page title="RelgerencialEmpresa" contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarRelgerencialEmpresa"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk>
|
||||||
|
<window id="winEditarRelgerencialEmpresa" title="${c:l('editarRelgerencialEmpresaController.window.title')}"
|
||||||
|
apply="${editarRelgerencialEmpresaController}" contentStyle="overflow:auto"
|
||||||
|
height="300px" 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('editarRelgerencialEmpresaController.btnApagar.tooltiptext')}" disabled="false"/>
|
||||||
|
<button id="btnSalvar" height="20"
|
||||||
|
image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarRelgerencialEmpresaController.btnSalvar.tooltiptext')}" disabled="false"/>
|
||||||
|
<button id="btnFechar" height="20"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
onClick="winEditarRelgerencialEmpresa.detach()"
|
||||||
|
tooltiptext="${c:l('editarRelgerencialEmpresaController.btnFechar.tooltiptext')}" disabled="false"/>
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="40%" />
|
||||||
|
<column width="60%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('busquedaRelgerencialEmpresaController.empresa.label')}" />
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="70%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winEditarRelgerencialEmpresa$composer.lsEmpresas}"
|
||||||
|
selectedItem="@{winEditarRelgerencialEmpresa$composer.relgerencialEmpresa.empresa}"
|
||||||
|
constraint="no empty" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaRelgerencialEmpresaController.tiporelgerencial.label')}"/>
|
||||||
|
<combobox id="cmbTiporelgerencial" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="70%"
|
||||||
|
model="@{winEditarRelgerencialEmpresa$composer.lsTiporelgerencial}"
|
||||||
|
selectedItem="@{winEditarRelgerencialEmpresa$composer.relgerencialEmpresa.tiporelgerencial}"
|
||||||
|
constraint="no empty"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaRelgerencialEmpresaController.indice.label')}" />
|
||||||
|
<textbox id="txtIndice" width="30px"
|
||||||
|
maxlength="2"
|
||||||
|
value="@{winEditarRelgerencialEmpresa$composer.relgerencialEmpresa.indice}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
|
constraint="no empty"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaRelgerencialEmpresaController.descricao.label')}" />
|
||||||
|
<textbox id="txtDescricao" width="300px"
|
||||||
|
maxlength="20"
|
||||||
|
value="@{winEditarRelgerencialEmpresa$composer.relgerencialEmpresa.descricao}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
|
constraint="no empty"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,88 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page title="TotnaofiscalEmpresa" contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarTotnaofiscalEmpresa"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk>
|
||||||
|
<window id="winEditarTotnaofiscalEmpresa" title="${c:l('editarTotnaofiscalEmpresaController.window.title')}"
|
||||||
|
apply="${editarTotnaofiscalEmpresaController}" contentStyle="overflow:auto"
|
||||||
|
height="300px" 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('editarTotnaofiscalEmpresaController.btnApagar.tooltiptext')}" disabled="false"/>
|
||||||
|
<button id="btnSalvar" height="20"
|
||||||
|
image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarTotnaofiscalEmpresaController.btnSalvar.tooltiptext')}" disabled="false"/>
|
||||||
|
<button id="btnFechar" height="20"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
onClick="winEditarTotnaofiscalEmpresa.detach()"
|
||||||
|
tooltiptext="${c:l('editarTotnaofiscalEmpresaController.btnFechar.tooltiptext')}" disabled="false"/>
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="40%" />
|
||||||
|
<column width="60%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('busquedaTotnaofiscalEmpresaController.empresa.label')}" />
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="70%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winEditarTotnaofiscalEmpresa$composer.lsEmpresas}"
|
||||||
|
selectedItem="@{winEditarTotnaofiscalEmpresa$composer.totnaofiscalEmpresa.empresa}"
|
||||||
|
constraint="no empty" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaTotnaofiscalEmpresaController.tipototalizador.label')}"/>
|
||||||
|
<combobox id="cmbTipototalizador" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="70%"
|
||||||
|
model="@{winEditarTotnaofiscalEmpresa$composer.lsTipototalizador}"
|
||||||
|
selectedItem="@{winEditarTotnaofiscalEmpresa$composer.totnaofiscalEmpresa.tipototalizador}"
|
||||||
|
constraint="no empty"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('busquedaTotnaofiscalEmpresaController.tipoeventoextra.label')}" />
|
||||||
|
<combobox id="cmbTipoEventoExtra"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="70%"
|
||||||
|
model="@{winEditarTotnaofiscalEmpresa$composer.lsTipoEventoExtra}"
|
||||||
|
selectedItem="@{winEditarTotnaofiscalEmpresa$composer.totnaofiscalEmpresa.tipoeventoextra}"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaTotnaofiscalEmpresaController.indice.label')}" />
|
||||||
|
<textbox id="txtIndice" width="30px"
|
||||||
|
maxlength="2"
|
||||||
|
value="@{winEditarTotnaofiscalEmpresa$composer.totnaofiscalEmpresa.indice}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
|
constraint="no empty"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaTotnaofiscalEmpresaController.descricao.label')}" />
|
||||||
|
<textbox id="txtDescricao" width="300px"
|
||||||
|
maxlength="20"
|
||||||
|
value="@{winEditarTotnaofiscalEmpresa$composer.totnaofiscalEmpresa.descricao}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
|
constraint="no empty"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaTotnaofiscalEmpresaController.indimportar.label')}" />
|
||||||
|
<checkbox id="chkImportarImp"
|
||||||
|
checked="@{winEditarTotnaofiscalEmpresa$composer.totnaofiscalEmpresa.indimportar}" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
|
||||||
|
</window>
|
||||||
|
</zk>
|
Loading…
Reference in New Issue