Conferência de Caixa - MD (issue 9150)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@70803 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
f669809771
commit
f9b0f80a54
|
@ -0,0 +1,119 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
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.zk.ui.Component;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ContaMD;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderContaMD;
|
||||||
|
|
||||||
|
@Scope("prototype")
|
||||||
|
@Controller("busquedaContasMDController")
|
||||||
|
public class BusquedaContasMDController extends MyGenericForwardComposer {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<ContaMD> plwConta;
|
||||||
|
private MyListbox contaList;
|
||||||
|
private Paging pagingConta;
|
||||||
|
private Textbox txtNombre;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
contaList.setItemRenderer(new RenderContaMD());
|
||||||
|
contaList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
ContaMD tc = (ContaMD) contaList.getSelected();
|
||||||
|
verContaMD(tc);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
refreshLista();
|
||||||
|
|
||||||
|
txtNombre.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Paging getPagingTipoInformativo() {
|
||||||
|
return pagingConta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagingTipoInformativo(Paging pagingTipoInformativo) {
|
||||||
|
this.pagingConta = pagingTipoInformativo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PagedListWrapper<ContaMD> getPlwTipoInformativo() {
|
||||||
|
return plwConta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlwTipoInformativo(PagedListWrapper<ContaMD> plwConta) {
|
||||||
|
this.plwConta = plwConta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getTipoInformativoList() {
|
||||||
|
return contaList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipoInformativoList(MyListbox tipoInformativoList) {
|
||||||
|
this.contaList = tipoInformativoList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtNombre() {
|
||||||
|
return txtNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtNombre(Textbox txtNombre) {
|
||||||
|
this.txtNombre = txtNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnRefresh(Event ev) {
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnNovo(Event ev) {
|
||||||
|
verContaMD(new ContaMD());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void verContaMD(ContaMD contaMD) {
|
||||||
|
if (contaMD == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, Object> args = new HashMap<String, Object>();
|
||||||
|
args.put("conta", contaMD);
|
||||||
|
args.put("contaList", contaList);
|
||||||
|
|
||||||
|
openWindow("/gui/catalogos/editarContaMD.zul",
|
||||||
|
Labels.getLabel("editarContaMDController.window.title"), args, MODAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void refreshLista() {
|
||||||
|
HibernateSearchObject<ContaMD> claseServicioBusqueda = new HibernateSearchObject<ContaMD>(ContaMD.class, pagingConta.getPageSize());
|
||||||
|
|
||||||
|
claseServicioBusqueda.addFilterLike("nome", "%" + txtNombre.getText().trim().concat("%"));
|
||||||
|
claseServicioBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
claseServicioBusqueda.addSortAsc("codigoContabil");
|
||||||
|
|
||||||
|
plwConta.init(claseServicioBusqueda, contaList, pagingConta);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,316 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||||
|
|
||||||
|
import java.util.Calendar;
|
||||||
|
|
||||||
|
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.zk.ui.Component;
|
||||||
|
import org.zkoss.zk.ui.Executions;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zul.Messagebox;
|
||||||
|
import org.zkoss.zul.Radio;
|
||||||
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ContaMD;
|
||||||
|
import com.rjconsultores.ventaboletos.service.ContaMDService;
|
||||||
|
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.MyTextbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyTextboxSimple;
|
||||||
|
|
||||||
|
@Controller("editarContaMDController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class EditarContaMDController extends MyGenericForwardComposer {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private static Logger log = Logger.getLogger(EditarContaMDController.class);
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ContaMDService contaMDService;
|
||||||
|
|
||||||
|
private ContaMD conta;
|
||||||
|
private MyListbox contaList;
|
||||||
|
private MyTextboxDecimal txtCodigoContabil;
|
||||||
|
private MyTextboxSimple txtNome;
|
||||||
|
private Radio radioTipoC;
|
||||||
|
private Radio radioTipoD;
|
||||||
|
private Radio radioDocAssociadoS;
|
||||||
|
private Radio radioDocAssociadoN;
|
||||||
|
private Radio radioStatusA;
|
||||||
|
private Radio radioStatusI;
|
||||||
|
private Radio radioOrigemIN;
|
||||||
|
private Radio radioOrigemEE;
|
||||||
|
private Radio radioOrigemFP;
|
||||||
|
private MyTextbox txtReferencia;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
conta = (ContaMD) Executions.getCurrent().getArg().get("conta");
|
||||||
|
contaList = (MyListbox) Executions.getCurrent().getArg().get("contaList");
|
||||||
|
|
||||||
|
if (conta != null) {
|
||||||
|
if (conta.getCodigoContabil() != null) {
|
||||||
|
txtCodigoContabil.setValue(conta.getCodigoContabil().toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (conta.getNome() != null) {
|
||||||
|
txtNome.setText(conta.getNome());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (conta.getTipo() != null) {
|
||||||
|
if (conta.getTipo().equals("C")) {
|
||||||
|
radioTipoC.setChecked(Boolean.TRUE);
|
||||||
|
radioTipoD.setChecked(Boolean.FALSE);
|
||||||
|
} else {
|
||||||
|
radioTipoC.setChecked(Boolean.FALSE);
|
||||||
|
radioTipoD.setChecked(Boolean.TRUE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (conta.getDocAssociado() != null) {
|
||||||
|
if (conta.getDocAssociado()) {
|
||||||
|
radioDocAssociadoS.setChecked(Boolean.TRUE);
|
||||||
|
radioDocAssociadoN.setChecked(Boolean.FALSE);
|
||||||
|
} else {
|
||||||
|
radioDocAssociadoS.setChecked(Boolean.FALSE);
|
||||||
|
radioDocAssociadoN.setChecked(Boolean.TRUE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (conta.getStatus() != null) {
|
||||||
|
if (conta.getStatus()) {
|
||||||
|
radioStatusA.setChecked(Boolean.TRUE);
|
||||||
|
radioStatusI.setChecked(Boolean.FALSE);
|
||||||
|
} else {
|
||||||
|
radioStatusA.setChecked(Boolean.FALSE);
|
||||||
|
radioStatusI.setChecked(Boolean.TRUE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (conta.getOrigem() == null || conta.getOrigem().equals("IN")) {
|
||||||
|
radioOrigemIN.setChecked(Boolean.TRUE);
|
||||||
|
radioOrigemEE.setChecked(Boolean.FALSE);
|
||||||
|
radioOrigemFP.setChecked(Boolean.FALSE);
|
||||||
|
} else if (conta.getOrigem().equals("EE")) {
|
||||||
|
radioOrigemIN.setChecked(Boolean.FALSE);
|
||||||
|
radioOrigemEE.setChecked(Boolean.TRUE);
|
||||||
|
radioOrigemFP.setChecked(Boolean.FALSE);
|
||||||
|
} else if (conta.getOrigem().equals("FP")) {
|
||||||
|
radioOrigemIN.setChecked(Boolean.FALSE);
|
||||||
|
radioOrigemEE.setChecked(Boolean.FALSE);
|
||||||
|
radioOrigemFP.setChecked(Boolean.TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (conta.getReferencia() != null) {
|
||||||
|
txtReferencia.setText(conta.getReferencia());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
txtNome.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
txtCodigoContabil.getValue();
|
||||||
|
txtNome.getValue();
|
||||||
|
|
||||||
|
Integer codigoContabil = null;
|
||||||
|
|
||||||
|
try {
|
||||||
|
codigoContabil = txtCodigoContabil.getValueDecimal().intValue();
|
||||||
|
} catch (Exception e) {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarContaMDController.MSG.CodContabil.Invalido"),
|
||||||
|
Labels.getLabel("editarContaMDController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
conta.setCodigoContabil(codigoContabil);
|
||||||
|
conta.setNome(txtNome.getText());
|
||||||
|
|
||||||
|
if (radioTipoC.isChecked()) {
|
||||||
|
conta.setTipo("C");
|
||||||
|
} else if (radioTipoD.isChecked()) {
|
||||||
|
conta.setTipo("D");
|
||||||
|
}
|
||||||
|
|
||||||
|
conta.setDocAssociado(radioDocAssociadoS.isChecked());
|
||||||
|
conta.setStatus(radioStatusA.isChecked());
|
||||||
|
|
||||||
|
if (radioOrigemIN.isChecked()) {
|
||||||
|
conta.setOrigem("IN");
|
||||||
|
conta.setReferencia(null);
|
||||||
|
} else {
|
||||||
|
if (radioOrigemEE.isChecked()) {
|
||||||
|
conta.setOrigem("EE");
|
||||||
|
} else if (radioOrigemFP.isChecked()) {
|
||||||
|
conta.setOrigem("FP");
|
||||||
|
}
|
||||||
|
|
||||||
|
conta.setReferencia(txtReferencia.getText());
|
||||||
|
}
|
||||||
|
|
||||||
|
conta.setActivo(Boolean.TRUE);
|
||||||
|
conta.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
conta.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
|
||||||
|
if (!contaMDService.existeConta(conta)) {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarContaMDController.MSG.DescricaoDuplicada"),
|
||||||
|
Labels.getLabel("editarContaMDController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (conta.getContaId() == null) {
|
||||||
|
contaMDService.suscribir(conta);
|
||||||
|
contaList.addItemNovo(conta);
|
||||||
|
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarContaMDController.MSG.suscribirOK"),
|
||||||
|
Labels.getLabel("editarContaMDController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
contaMDService.actualizacion(conta);
|
||||||
|
contaList.updateItem(conta);
|
||||||
|
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarContaMDController.MSG.actualizarOK"),
|
||||||
|
Labels.getLabel("editarContaMDController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
}
|
||||||
|
|
||||||
|
closeWindow();
|
||||||
|
|
||||||
|
} catch (Exception ex) {
|
||||||
|
log.error(ex.getMessage(), ex);
|
||||||
|
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("MSG.Error"),
|
||||||
|
Labels.getLabel("editarContaMDController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public ContaMD getConta() {
|
||||||
|
return conta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setConta(ContaMD conta) {
|
||||||
|
this.conta = conta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getContaList() {
|
||||||
|
return contaList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContaList(MyListbox contaList) {
|
||||||
|
this.contaList = contaList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyTextboxSimple getTxtNome() {
|
||||||
|
return txtNome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtNome(MyTextboxSimple txtNome) {
|
||||||
|
this.txtNome = txtNome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyTextboxDecimal getTxtCodigoContabil() {
|
||||||
|
return txtCodigoContabil;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtCodigoContabil(MyTextboxDecimal txtCodigoContabil) {
|
||||||
|
this.txtCodigoContabil = txtCodigoContabil;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Radio getRadioTipoC() {
|
||||||
|
return radioTipoC;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRadioTipoC(Radio radioTipoC) {
|
||||||
|
this.radioTipoC = radioTipoC;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Radio getRadioTipoD() {
|
||||||
|
return radioTipoD;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRadioTipoD(Radio radioTipoD) {
|
||||||
|
this.radioTipoD = radioTipoD;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Radio getRadioDocAssociadoS() {
|
||||||
|
return radioDocAssociadoS;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRadioDocAssociadoS(Radio radioDocAssociadoS) {
|
||||||
|
this.radioDocAssociadoS = radioDocAssociadoS;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Radio getRadioDocAssociadoN() {
|
||||||
|
return radioDocAssociadoN;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRadioDocAssociadoN(Radio radioDocAssociadoN) {
|
||||||
|
this.radioDocAssociadoN = radioDocAssociadoN;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Radio getRadioStatusA() {
|
||||||
|
return radioStatusA;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRadioStatusA(Radio radioStatusA) {
|
||||||
|
this.radioStatusA = radioStatusA;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Radio getRadioStatusI() {
|
||||||
|
return radioStatusI;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRadioStatusI(Radio radioStatusI) {
|
||||||
|
this.radioStatusI = radioStatusI;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Radio getRadioOrigemIN() {
|
||||||
|
return radioOrigemIN;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRadioOrigemIN(Radio radioOrigemIN) {
|
||||||
|
this.radioOrigemIN = radioOrigemIN;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Radio getRadioOrigemEE() {
|
||||||
|
return radioOrigemEE;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRadioOrigemEE(Radio radioOrigemEE) {
|
||||||
|
this.radioOrigemEE = radioOrigemEE;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Radio getRadioOrigemFP() {
|
||||||
|
return radioOrigemFP;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRadioOrigemFP(Radio radioOrigemFP) {
|
||||||
|
this.radioOrigemFP = radioOrigemFP;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyTextbox getTxtReferencia() {
|
||||||
|
return txtReferencia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtReferencia(MyTextbox txtReferencia) {
|
||||||
|
this.txtReferencia = txtReferencia;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,49 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias;
|
||||||
|
|
||||||
|
import org.zkoss.zk.ui.WrongValueException;
|
||||||
|
|
||||||
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Administrador
|
||||||
|
*/
|
||||||
|
public class MyTextboxSimple extends Textbox {
|
||||||
|
private static final long serialVersionUID = -4853700218322010782L;
|
||||||
|
|
||||||
|
public MyTextboxSimple() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getValue() throws WrongValueException {
|
||||||
|
return super.getValue().trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setValue(String value) throws WrongValueException {
|
||||||
|
if (value == null) {
|
||||||
|
super.setValue(value);
|
||||||
|
} else {
|
||||||
|
super.setValue(value.trim());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getText() throws WrongValueException {
|
||||||
|
return super.getText().trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setText(String value) throws WrongValueException {
|
||||||
|
if (value == null) {
|
||||||
|
super.setText(value);
|
||||||
|
} else {
|
||||||
|
super.setText(value.trim());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuBusquedaContasMD extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuBusquedaContasMD() {
|
||||||
|
super("indexController.mniContaMD.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.CATALOGOS.CONTASMD";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/catalogos/busquedaContasMD.zul",
|
||||||
|
Labels.getLabel("busquedaContasMDController.window.title"),
|
||||||
|
getArgs(), desktop);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -30,6 +30,7 @@ catalogos.confCodBarras=com.rjconsultores.ventaboletos.web.utilerias.menu.item.c
|
||||||
catalogos.tipoConfComissao=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuBusquedaTipoConfPendComissao
|
catalogos.tipoConfComissao=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuBusquedaTipoConfPendComissao
|
||||||
catalogos.tipoInformativoComissao=com.rjconsultores.ventaboletos.web.utilerias.menu.item.comissao.ItemMenuTipoInformativoComissao
|
catalogos.tipoInformativoComissao=com.rjconsultores.ventaboletos.web.utilerias.menu.item.comissao.ItemMenuTipoInformativoComissao
|
||||||
catalogos.regionMetropolitana=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuRegionMetropolitana
|
catalogos.regionMetropolitana=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuRegionMetropolitana
|
||||||
|
catalogos.contasMD=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuBusquedaContasMD
|
||||||
gr=com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr.MenuGr
|
gr=com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr.MenuGr
|
||||||
gr.aidf=com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr.ItemMenuAidf
|
gr.aidf=com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr.ItemMenuAidf
|
||||||
gr.movimentacionBilhetes=com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr.ItemMenuMovimentacionBilhetes
|
gr.movimentacionBilhetes=com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr.ItemMenuMovimentacionBilhetes
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ContaMD;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Shiro
|
||||||
|
*/
|
||||||
|
public class RenderContaMD implements ListitemRenderer {
|
||||||
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
|
ContaMD conta = (ContaMD) o;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(conta.getCodigoContabil().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(conta.getNome());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(conta.getTipoDesc());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(conta.getStatusDesc());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lstm.setAttribute("data", conta);
|
||||||
|
}
|
||||||
|
}
|
|
@ -452,6 +452,7 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtovtaEmpresaContaBancaria</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PtovtaEmpresaContaBancaria</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.RutaEmbarqueDesembarque</value>
|
<value>com.rjconsultores.ventaboletos.entidad.RutaEmbarqueDesembarque</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.EsquemaCorridaEmbarqueDesembarque</value>
|
<value>com.rjconsultores.ventaboletos.entidad.EsquemaCorridaEmbarqueDesembarque</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.ContaMD</value>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
|
|
|
@ -6799,6 +6799,38 @@ editarTipoInformativoComissaoController.MSG.suscribirOK = Tipo Informativo Comis
|
||||||
editarTipoInformativoComissaoController.MSG.BorrarPergunta = Deseja eliminar esse Tipo Informativo Comissão?
|
editarTipoInformativoComissaoController.MSG.BorrarPergunta = Deseja eliminar esse Tipo Informativo Comissão?
|
||||||
editarTipoInformativoComissaoController.MSG.BorrarOK = Tipo Informativo Comissão excluido com sucesso.
|
editarTipoInformativoComissaoController.MSG.BorrarOK = Tipo Informativo Comissão excluido com sucesso.
|
||||||
|
|
||||||
|
# Contas MD
|
||||||
|
indexController.mniContaMD.label = Contas MD
|
||||||
|
busquedaContasMDController.window.title=Contas MD
|
||||||
|
busquedaContasMDController.btnRefresh.tooltiptext=Actualizar
|
||||||
|
busquedaContasMDController.btnCerrar.tooltiptext=Cerrar
|
||||||
|
busquedaContasMDController.txtNombre.label = Nombre
|
||||||
|
busquedaContasMDController.btnPesquisa.label = Búsqueda
|
||||||
|
|
||||||
|
busquedaContasMDController.lhId.label = Cód
|
||||||
|
busquedaContasMDController.lhNome.label = Nome
|
||||||
|
busquedaContasMDController.lhTipo.label = Tipo
|
||||||
|
busquedaContasMDController.lhStatus.label = Status
|
||||||
|
|
||||||
|
editarContaMDController.window.title=Conta MD
|
||||||
|
editarContaMDController.btnSalvar.tooltiptext = Guardar
|
||||||
|
editarContaMDController.btnFechar.tooltiptext = Cerrar
|
||||||
|
|
||||||
|
editarContaMDController.lbCodigoContabil.value = Código Contábil
|
||||||
|
editarContaMDController.lbNome.value = Nome
|
||||||
|
editarContaMDController.lbTipo.value = Tipo
|
||||||
|
editarContaMDController.lbDocAssociado.value = Controla Documento
|
||||||
|
editarContaMDController.lbStatus.value = Status
|
||||||
|
editarContaMDController.lbOrigem.value = Origem
|
||||||
|
editarContaMDController.lbReferencia.value = Referência
|
||||||
|
|
||||||
|
editarContaMDController.MSG.DescricaoDuplicada = Já existe uma Conta com este nome.
|
||||||
|
editarContaMDController.MSG.suscribirOK = Conta cadastrada com sucesso.
|
||||||
|
editarContaMDController.MSG.actualizarOK = Conta atualizada com sucesso.
|
||||||
|
editarContaMDController.MSG.BorrarPergunta = Deseja eliminar essa Conta?
|
||||||
|
editarContaMDController.MSG.BorrarOK = Conta excluida com sucesso.
|
||||||
|
editarContaMDController.MSG.CodContabil.Invalido = Código Contábil inválido.
|
||||||
|
|
||||||
# Filtro Depósitos
|
# Filtro Depósitos
|
||||||
relatorioDepositosController.window.title=Cierre Cnt Contábil / Depósitos
|
relatorioDepositosController.window.title=Cierre Cnt Contábil / Depósitos
|
||||||
relatorioDepositosController.lbDatInicial.value=Fecha Inicial
|
relatorioDepositosController.lbDatInicial.value=Fecha Inicial
|
||||||
|
|
|
@ -6980,6 +6980,38 @@ editarTipoInformativoComissaoController.MSG.suscribirOK = Tipo Informativo Comis
|
||||||
editarTipoInformativoComissaoController.MSG.BorrarPergunta = Deseja eliminar esse Tipo Informativo Comissão?
|
editarTipoInformativoComissaoController.MSG.BorrarPergunta = Deseja eliminar esse Tipo Informativo Comissão?
|
||||||
editarTipoInformativoComissaoController.MSG.BorrarOK = Tipo Informativo Comissão excluido com sucesso.
|
editarTipoInformativoComissaoController.MSG.BorrarOK = Tipo Informativo Comissão excluido com sucesso.
|
||||||
|
|
||||||
|
# Contas MD
|
||||||
|
indexController.mniContaMD.label = Contas MD
|
||||||
|
busquedaContasMDController.window.title=Contas MD
|
||||||
|
busquedaContasMDController.btnRefresh.tooltiptext=Atualizar
|
||||||
|
busquedaContasMDController.btnCerrar.tooltiptext=Fechar
|
||||||
|
busquedaContasMDController.txtNombre.label = Nome
|
||||||
|
busquedaContasMDController.btnPesquisa.label = Buscar
|
||||||
|
|
||||||
|
busquedaContasMDController.lhId.label = Cód
|
||||||
|
busquedaContasMDController.lhNome.label = Nome
|
||||||
|
busquedaContasMDController.lhTipo.label = Tipo
|
||||||
|
busquedaContasMDController.lhStatus.label = Status
|
||||||
|
|
||||||
|
editarContaMDController.window.title=Conta MD
|
||||||
|
editarContaMDController.btnSalvar.tooltiptext = Salvar
|
||||||
|
editarContaMDController.btnFechar.tooltiptext = Fechar
|
||||||
|
|
||||||
|
editarContaMDController.lbCodigoContabil.value = Código Contábil
|
||||||
|
editarContaMDController.lbNome.value = Nome
|
||||||
|
editarContaMDController.lbTipo.value = Tipo
|
||||||
|
editarContaMDController.lbDocAssociado.value = Controla Documento
|
||||||
|
editarContaMDController.lbStatus.value = Status
|
||||||
|
editarContaMDController.lbOrigem.value = Origem
|
||||||
|
editarContaMDController.lbReferencia.value = Referência
|
||||||
|
|
||||||
|
editarContaMDController.MSG.DescricaoDuplicada = Já existe uma Conta com este nome.
|
||||||
|
editarContaMDController.MSG.suscribirOK = Conta cadastrada com sucesso.
|
||||||
|
editarContaMDController.MSG.actualizarOK = Conta atualizada com sucesso.
|
||||||
|
editarContaMDController.MSG.BorrarPergunta = Deseja eliminar essa Conta?
|
||||||
|
editarContaMDController.MSG.BorrarOK = Conta excluida com sucesso.
|
||||||
|
editarContaMDController.MSG.CodContabil.Invalido = Código Contábil inválido.
|
||||||
|
|
||||||
# Filtro Depósitos
|
# Filtro Depósitos
|
||||||
relatorioDepositosController.window.title=Fechamento Cnt Corrente / Depósitos
|
relatorioDepositosController.window.title=Fechamento Cnt Corrente / Depósitos
|
||||||
relatorioDepositosController.lbDatInicial.value=Data Inicial
|
relatorioDepositosController.lbDatInicial.value=Data Inicial
|
||||||
|
|
|
@ -0,0 +1,54 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaContasMD"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winBusquedaContasMD" title="${c:l('busquedaContasMDController.window.title')}"
|
||||||
|
apply="${busquedaContasMDController}" contentStyle="overflow:auto"
|
||||||
|
height="465px" width="600px" border="normal" >
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaContasMDController.btnRefresh.tooltiptext')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winBusquedaContasMD.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaContasMDController.btnCerrar.tooltiptext')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="10%" />
|
||||||
|
<column width="90%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaContasMDController.txtNombre.label')}"/>
|
||||||
|
<textbox id="txtNombre" width="505px" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxSimple"/>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||||
|
label="${c:l('busquedaContasMDController.btnPesquisa.label')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<paging id="pagingConta" pageSize="17"/>
|
||||||
|
<listbox id="contaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader id="lhId" width="10%" image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('busquedaContasMDController.lhId.label')}" sort="auto(codigoContabil)"/>
|
||||||
|
|
||||||
|
<listheader id="lhDesc" width="70%" image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('busquedaContasMDController.lhNome.label')}" sort="auto(nome)"/>
|
||||||
|
|
||||||
|
<listheader id="lhTipo" width="10%" image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('busquedaContasMDController.lhTipo.label')}"/>
|
||||||
|
|
||||||
|
<listheader id="lhStatus" width="10%" image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('busquedaContasMDController.lhStatus.label')}"/>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,77 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarContaMD"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winEditarContaMD" border="normal"
|
||||||
|
apply="${editarContaMDController}"
|
||||||
|
width="550px" height="457x" contentStyle="overflow:auto"
|
||||||
|
title="${c:l('editarContaMDController.window.title')}">
|
||||||
|
<toolbar>
|
||||||
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
|
<button id="btnSalvar" height="20"
|
||||||
|
image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarContaMDController.btnSalvar.tooltiptext')}"/>
|
||||||
|
<button id="btnFechar" height="20"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
onClick="winEditarContaMD.detach()"
|
||||||
|
tooltiptext="${c:l('editarContaMDController.btnFechar.tooltiptext')}"/>
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="40%" />
|
||||||
|
<column width="60%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label id="lbCodigoContabil" value="${c:l('editarContaMDController.lbCodigoContabil.value')}"/>
|
||||||
|
<textbox id="txtCodigoContabil" constraint="no empty" width="50px" maxlength="7"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" scale="0"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label id="lbNome" value="${c:l('editarContaMDController.lbNome.value')}"/>
|
||||||
|
<textbox id="txtNome" constraint="no empty" width="95%" maxlength="100"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxSimple"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label id="lbTipo" value="${c:l('editarContaMDController.lbTipo.value')}"/>
|
||||||
|
<radiogroup>
|
||||||
|
<radio id="radioTipoC" label="Credito" />
|
||||||
|
<radio id="radioTipoD" label="Debito" />
|
||||||
|
</radiogroup>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label id="lbDocAssociado" value="${c:l('editarContaMDController.lbDocAssociado.value')}"/>
|
||||||
|
<radiogroup>
|
||||||
|
<radio id="radioDocAssociadoS" label="Sim" />
|
||||||
|
<radio id="radioDocAssociadoN" label="Nao" />
|
||||||
|
</radiogroup>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label id="lbStatus" value="${c:l('editarContaMDController.lbStatus.value')}"/>
|
||||||
|
<radiogroup>
|
||||||
|
<radio id="radioStatusA" label="Ativo" />
|
||||||
|
<radio id="radioStatusI" label="Inativo" />
|
||||||
|
</radiogroup>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label id="lbOrigem" value="${c:l('editarContaMDController.lbOrigem.value')}"/>
|
||||||
|
<radiogroup>
|
||||||
|
<radio id="radioOrigemIN" label="Interno" />
|
||||||
|
<radio id="radioOrigemEE" label="Evento Extra" />
|
||||||
|
<radio id="radioOrigemFP" label="Forma de Pagamento" />
|
||||||
|
</radiogroup>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label id="lbReferencia" value="${c:l('editarContaMDController.lbReferencia.value')}"/>
|
||||||
|
<textbox id="txtReferencia" width="95%" maxlength="100"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
</window>
|
||||||
|
</zk>
|
Loading…
Reference in New Issue