fixed bug #7907
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@61757 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
5ca0da43c5
commit
90f30e72d7
|
@ -92,7 +92,7 @@ public class RelatorioObservacaoBilhetes extends Relatorio {
|
|||
logConferencia.setObservacao(rset.getString("observacao"));
|
||||
logConferencia.setDesccategoria(rset.getString("desccategoria"));
|
||||
logConferencia.setFecmodif(rset.getDate("fecmodif"));
|
||||
logConferencia.setIndcredito(rset.getBoolean("indcredito"));
|
||||
logConferencia.setIndcredito(rset.getShort("indcredito"));
|
||||
logConferencia.setNombusuario(rset.getString("nombusuario"));
|
||||
logConferencia.setPreco(rset.getBigDecimal("preco"));
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ public class RelatorioObservacaoConferenciaMovimento extends Relatorio {
|
|||
logConferencia.setObservacao(rset.getString("observacao"));
|
||||
logConferencia.setDesccategoria(rset.getString("desccategoria"));
|
||||
logConferencia.setFecmodif(rset.getDate("fecmodif"));
|
||||
logConferencia.setIndcredito(rset.getBoolean("indcredito"));
|
||||
logConferencia.setIndcredito(rset.getShort("indcredito"));
|
||||
logConferencia.setNombusuario(rset.getString("nombusuario"));
|
||||
logConferencia.setPreco(rset.getBigDecimal("preco"));
|
||||
logConferencia.setTipo(rset.getInt("tipo"));
|
||||
|
|
|
@ -91,7 +91,7 @@ public class RelatorioObservacaoEventosFinanceiros extends Relatorio {
|
|||
logConferencia.setDesctipoevento(rset.getString("desctipoevento"));
|
||||
logConferencia.setObservacao(rset.getString("observacao"));
|
||||
logConferencia.setFecmodif(rset.getDate("fecmodif"));
|
||||
logConferencia.setIndcredito(rset.getBoolean("indcredito"));
|
||||
logConferencia.setIndcredito(rset.getShort("indcredito"));
|
||||
logConferencia.setNombusuario(rset.getString("nombusuario"));
|
||||
logConferencia.setPreco(rset.getBigDecimal("preco"));
|
||||
|
||||
|
|
|
@ -22,6 +22,6 @@ label.numfoliosistema=N
|
|||
label.desccategoria=Categoria
|
||||
label.observacao=Observação
|
||||
label.preco=Valor
|
||||
label.debitoCredito=D/C
|
||||
label.debitoCredito=D/C/I
|
||||
label.fecmodif=Dt. Alt.
|
||||
label.tipoventa=Tipo Venta
|
||||
|
|
|
@ -22,6 +22,6 @@ label.numfoliosistema=N
|
|||
label.desccategoria=Categoria
|
||||
label.observacao=Observação
|
||||
label.preco=Valor
|
||||
label.debitoCredito=D/C
|
||||
label.debitoCredito=D/C/I
|
||||
label.fecmodif=Dt. Alt.
|
||||
label.tipoventa=Tipo Venta
|
||||
|
|
|
@ -0,0 +1,153 @@
|
|||
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.Button;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoInformativoComissao;
|
||||
import com.rjconsultores.ventaboletos.service.TipoInformativoComissaoService;
|
||||
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;
|
||||
|
||||
@Controller("editarTipoInformativoComissaoController")
|
||||
@Scope("prototype")
|
||||
public class EditarTipoInformativoComissaoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Autowired
|
||||
private TipoInformativoComissaoService tipoInformativoComissaoService;
|
||||
|
||||
private TipoInformativoComissao tipoInformativoComissao;
|
||||
private MyListbox tipoInformativoComissaoList;
|
||||
private MyTextbox txtNome;
|
||||
|
||||
private Button btnApagar;
|
||||
|
||||
private static Logger log = Logger.getLogger(EditarTipoInformativoComissaoController.class);
|
||||
|
||||
public TipoInformativoComissao getTipoInformativoComissao() {
|
||||
return tipoInformativoComissao;
|
||||
}
|
||||
|
||||
public void setTipoInformativoComissao(TipoInformativoComissao tipoInformativoComissao) {
|
||||
this.tipoInformativoComissao = tipoInformativoComissao;
|
||||
}
|
||||
|
||||
public MyListbox getTipoInformativoComissaoList() {
|
||||
return tipoInformativoComissaoList;
|
||||
}
|
||||
|
||||
public void setTipoInformativoComissaoList(MyListbox tipoInformativoComissaoList) {
|
||||
this.tipoInformativoComissaoList = tipoInformativoComissaoList;
|
||||
}
|
||||
|
||||
public MyTextbox getTxtNome() {
|
||||
return txtNome;
|
||||
}
|
||||
|
||||
public void setTxtNome(MyTextbox txtNome) {
|
||||
this.txtNome = txtNome;
|
||||
}
|
||||
|
||||
public Button getBtnApagar() {
|
||||
return btnApagar;
|
||||
}
|
||||
|
||||
public void setBtnApagar(Button btnApagar) {
|
||||
this.btnApagar = btnApagar;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
tipoInformativoComissao = (TipoInformativoComissao) Executions.getCurrent().getArg().get("tipoInformativoComissao");
|
||||
tipoInformativoComissaoList = (MyListbox) Executions.getCurrent().getArg().get("tipoInformativoComissaoList");
|
||||
|
||||
if (tipoInformativoComissao != null && tipoInformativoComissao.getDesctipo() != null) {
|
||||
txtNome.setText(tipoInformativoComissao.getDesctipo());
|
||||
}
|
||||
if (tipoInformativoComissao.getTipoinformativoId() == null) {
|
||||
btnApagar.setVisible(false);
|
||||
}
|
||||
txtNome.focus();
|
||||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||
|
||||
txtNome.getValue();
|
||||
|
||||
try {
|
||||
tipoInformativoComissao.setActivo(Boolean.TRUE);
|
||||
tipoInformativoComissao.setFecmodif(Calendar.getInstance().getTime());
|
||||
tipoInformativoComissao.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
tipoInformativoComissao.setDesctipo(txtNome.getText());
|
||||
|
||||
if (!tipoInformativoComissaoService.existeTipoInformativo(tipoInformativoComissao)) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarTipoInformativoComissaoController.MSG.DescricaoDuplicada"),
|
||||
Labels.getLabel("busquedaTipoServicioController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
if (tipoInformativoComissao.getTipoinformativoId() == null) {
|
||||
tipoInformativoComissaoService.suscribir(tipoInformativoComissao);
|
||||
tipoInformativoComissaoList.addItemNovo(tipoInformativoComissao);
|
||||
} else {
|
||||
tipoInformativoComissaoService.actualizacion(tipoInformativoComissao);
|
||||
tipoInformativoComissaoList.updateItem(tipoInformativoComissao);
|
||||
}
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarTipoInformativoComissaoController.MSG.suscribirOK"),
|
||||
Labels.getLabel("busquedaTipoServicioController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
closeWindow();
|
||||
} catch (Exception ex) {
|
||||
log.error("busquedaTipoServicioController :" + ex);
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Error"),
|
||||
Labels.getLabel("busquedaTipoServicioController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnApagar(Event ev) {
|
||||
try {
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("editarTipoInformativoComissaoController.MSG.BorrarPergunta"),
|
||||
Labels.getLabel("busquedaTipoServicioController.window.title"),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
|
||||
tipoInformativoComissaoService.borrar(tipoInformativoComissao);
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarTipoInformativoComissaoController.MSG.BorrarOK"),
|
||||
Labels.getLabel("busquedaTipoServicioController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
tipoInformativoComissaoList.removeItem(tipoInformativoComissao);
|
||||
|
||||
closeWindow();
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
log.error(ex);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,124 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.comissao;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
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.TipoInformativoComissao;
|
||||
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.RenderTipoInformativoComissao;
|
||||
|
||||
@Scope("prototype")
|
||||
@Controller("busquedaTipoInformativoComissaoController")
|
||||
public class BusquedaTipoInformativoComissaoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final Logger log = LoggerFactory.getLogger(BusquedaTipoInformativoComissaoController.class);
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<TipoInformativoComissao> plwTipoInformativo;
|
||||
private MyListbox tipoInformativoList;
|
||||
private Paging pagingTipoInformativo;
|
||||
private Textbox txtNombre;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
tipoInformativoList.setItemRenderer(new RenderTipoInformativoComissao());
|
||||
tipoInformativoList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
TipoInformativoComissao tc = (TipoInformativoComissao) tipoInformativoList.getSelected();
|
||||
verTipoInformativo(tc);
|
||||
}
|
||||
});
|
||||
|
||||
refreshLista();
|
||||
|
||||
txtNombre.focus();
|
||||
}
|
||||
|
||||
public Paging getPagingTipoInformativo() {
|
||||
return pagingTipoInformativo;
|
||||
}
|
||||
|
||||
public void setPagingTipoInformativo(Paging pagingTipoInformativo) {
|
||||
this.pagingTipoInformativo = pagingTipoInformativo;
|
||||
}
|
||||
|
||||
public PagedListWrapper<TipoInformativoComissao> getPlwTipoInformativo() {
|
||||
return plwTipoInformativo;
|
||||
}
|
||||
|
||||
public void setPlwTipoInformativo(PagedListWrapper<TipoInformativoComissao> plwTipoInformativo) {
|
||||
this.plwTipoInformativo = plwTipoInformativo;
|
||||
}
|
||||
|
||||
public MyListbox getTipoInformativoList() {
|
||||
return tipoInformativoList;
|
||||
}
|
||||
|
||||
public void setTipoInformativoList(MyListbox tipoInformativoList) {
|
||||
this.tipoInformativoList = 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) {
|
||||
verTipoInformativo(new TipoInformativoComissao());
|
||||
}
|
||||
|
||||
private void verTipoInformativo(TipoInformativoComissao tipoInformativoComissao) {
|
||||
if (tipoInformativoComissao == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Map<String, Object> args = new HashMap<String, Object>();
|
||||
args.put("tipoInformativoComissao", tipoInformativoComissao);
|
||||
args.put("tipoInformativoComissaoList", tipoInformativoList);
|
||||
|
||||
openWindow("/gui/catalogos/editarTipoInformativoComissao.zul",
|
||||
Labels.getLabel("busquedaTipoServicioController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
private void refreshLista() {
|
||||
HibernateSearchObject<TipoInformativoComissao> claseServicioBusqueda = new HibernateSearchObject<TipoInformativoComissao>(TipoInformativoComissao.class, pagingTipoInformativo.getPageSize());
|
||||
|
||||
claseServicioBusqueda.addFilterLike("desctipo", "%" + txtNombre.getText().trim().concat("%"));
|
||||
claseServicioBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
claseServicioBusqueda.addSortAsc("desctipo");
|
||||
|
||||
plwTipoInformativo.init(claseServicioBusqueda, tipoInformativoList, pagingTipoInformativo);
|
||||
}
|
||||
|
||||
}
|
|
@ -21,7 +21,9 @@ import org.zkoss.zk.ui.event.CheckEvent;
|
|||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Label;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.Radio;
|
||||
|
@ -31,12 +33,14 @@ import com.rjconsultores.ventaboletos.entidad.Conferencia;
|
|||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.LogConferencia;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoInformativoComissao;
|
||||
import com.rjconsultores.ventaboletos.enums.IndStatusBoleto;
|
||||
import com.rjconsultores.ventaboletos.enums.comissao.BoletoStatusComissao;
|
||||
import com.rjconsultores.ventaboletos.enums.comissao.StatusLogConferencia;
|
||||
import com.rjconsultores.ventaboletos.enums.comissao.TipoLogConferencia;
|
||||
import com.rjconsultores.ventaboletos.exception.BusinessException;
|
||||
import com.rjconsultores.ventaboletos.service.ConferenciaComissaoService;
|
||||
import com.rjconsultores.ventaboletos.service.TipoInformativoComissaoService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.BigDecimalUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.LocaleUtil;
|
||||
|
@ -59,6 +63,8 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderFormapagoComiss
|
|||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderLogConferencia;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderOcd;
|
||||
|
||||
import oracle.net.aso.r;
|
||||
|
||||
@Scope("prototype")
|
||||
@Controller("conferenciaController")
|
||||
public class ConferenciaController extends MyGenericForwardComposer {
|
||||
|
@ -70,6 +76,9 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
@Autowired
|
||||
private ConferenciaComissaoService conferenciaComissaoService;
|
||||
|
||||
@Autowired
|
||||
private TipoInformativoComissaoService tipoInformativoComissaoService;
|
||||
|
||||
private String datamovimento;
|
||||
private Empresa empresa;
|
||||
private Integer puntoventaId;
|
||||
|
@ -141,6 +150,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
|
||||
private Radio rDebito;
|
||||
private Radio rCredito;
|
||||
private Radio rInformativo;
|
||||
|
||||
private ResumoComissao resumo;
|
||||
private BigDecimal totalBilhetesManual;
|
||||
|
@ -161,9 +171,14 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
|
||||
private ConferenciaComissaoVO conferenciaComissao;
|
||||
|
||||
private Label lblTipoInformativo;
|
||||
private Combobox cmbTipoInformativo;
|
||||
|
||||
private List<TipoInformativoComissao> lsTipoInformativo;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
||||
lsTipoInformativo = tipoInformativoComissaoService.obtenerTodos();
|
||||
conferenciaList = (MyListbox) Executions.getCurrent().getArg().get("conferenciaList");
|
||||
Long conferenciaId = (Long) Executions.getCurrent().getArg().get("conferenciaId");
|
||||
datamovimento = (String) Executions.getCurrent().getArg().get("datamovimento");
|
||||
|
@ -258,10 +273,12 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
txtPrecoLog.setDisabled(true);
|
||||
rDebito.setDisabled(true);
|
||||
rCredito.setDisabled(true);
|
||||
rInformativo.setDisabled(true);
|
||||
} else if (StatusLogConferencia.PENDENCIA.equals(status)) {
|
||||
txtPrecoLog.setDisabled(false);
|
||||
rDebito.setDisabled(false);
|
||||
rCredito.setDisabled(false);
|
||||
rInformativo.setDisabled(false);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -786,6 +803,17 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
private Short getDebitoCreditoInfo(){
|
||||
if(rCredito.isSelected()){
|
||||
return (short) 1;
|
||||
}else if(rDebito.isSelected()){
|
||||
return (short) 0;
|
||||
}else{
|
||||
return (short) 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void onClick$btnAdicionarObservacaoLog(Event event) throws InterruptedException {
|
||||
try {
|
||||
if (validarCamposObservacao()) {
|
||||
|
@ -796,7 +824,10 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
logConferencia.setConferencia(conferencia);
|
||||
logConferencia.setStatus(StatusLogConferencia.getStatusLogConferencia((Integer) cmbSituacaoLog.getSelectedItem().getValue()));
|
||||
logConferencia.setTipo(TipoLogConferencia.AVULSO);
|
||||
logConferencia.setIndcredito(!rDebito.isChecked());
|
||||
logConferencia.setIndcredito(getDebitoCreditoInfo());
|
||||
if(logConferencia.isIndcredito().equals((short) 2)){
|
||||
logConferencia.setTipoInformativoComissao((TipoInformativoComissao)cmbTipoInformativo.getSelectedItem().getValue());
|
||||
}
|
||||
conferenciaComissaoService.suscribirLogConferencia(logConferencia);
|
||||
|
||||
carregarLogsConferencia();
|
||||
|
@ -816,7 +847,20 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private boolean validarCamposObservacao() throws InterruptedException {
|
||||
|
||||
try{
|
||||
if(rInformativo.isSelected() && cmbTipoInformativo.getValue() == null){
|
||||
return false;
|
||||
}
|
||||
}catch(Exception e){
|
||||
Messagebox.show(Labels.getLabel("conferenciaController.MSG.tipoInfomativoObrigatorio"),
|
||||
Labels.getLabel("conferenciaController.window.title"),
|
||||
Messagebox.OK,Messagebox.ERROR);
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
if (StringUtils.isBlank(txtObservacaoLog.getValue())) {
|
||||
Messagebox.show(Labels.getLabel("conferenciaController.MSG.observacaoObrigatorio"),
|
||||
Labels.getLabel("conferenciaController.window.title"),
|
||||
|
@ -1077,7 +1121,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
logConferencia.setConferencia(conferencia);
|
||||
logConferencia.setStatus(StatusLogConferencia.CONFERIDO);
|
||||
logConferencia.setTipo(tipo);
|
||||
logConferencia.setIndcredito(Boolean.TRUE);
|
||||
logConferencia.setIndcredito((short) 1);
|
||||
|
||||
if (tipo.equals(TipoLogConferencia.BOLETO)) {
|
||||
logConferencia.setBoletoId(id);
|
||||
|
@ -1219,4 +1263,35 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
this.formapagosList = formapagosList;
|
||||
}
|
||||
|
||||
public void onClick$rInformativo(){
|
||||
hideShowTipoInformativo(false);
|
||||
}
|
||||
|
||||
public void onClick$rDebito(){
|
||||
hideShowTipoInformativo(true);
|
||||
}
|
||||
|
||||
public void onClick$rCredito(){
|
||||
hideShowTipoInformativo(true);
|
||||
}
|
||||
|
||||
private void hideShowTipoInformativo(Boolean disable){
|
||||
cmbTipoInformativo.setDisabled(disable);
|
||||
|
||||
if(!disable){
|
||||
cmbTipoInformativo.setConstraint("no empty");
|
||||
}else{
|
||||
cmbTipoInformativo.setConstraint("");
|
||||
cmbTipoInformativo.clearErrorMessage();
|
||||
cmbTipoInformativo.setValue(null);
|
||||
}
|
||||
}
|
||||
|
||||
public List<TipoInformativoComissao> getLsTipoInformativo() {
|
||||
return lsTipoInformativo;
|
||||
}
|
||||
|
||||
public void setLsTipoInformativo(List<TipoInformativoComissao> lsTipoInformativo) {
|
||||
this.lsTipoInformativo = lsTipoInformativo;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.comissao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -9,14 +11,17 @@ 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.Combobox;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Radio;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Conferencia;
|
||||
import com.rjconsultores.ventaboletos.entidad.LogConferencia;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoInformativoComissao;
|
||||
import com.rjconsultores.ventaboletos.enums.comissao.StatusLogConferencia;
|
||||
import com.rjconsultores.ventaboletos.enums.comissao.TipoLogConferencia;
|
||||
import com.rjconsultores.ventaboletos.service.ConferenciaComissaoService;
|
||||
import com.rjconsultores.ventaboletos.service.TipoInformativoComissaoService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.vo.comissao.BoletoComissao;
|
||||
import com.rjconsultores.ventaboletos.vo.comissao.EventosFinanceirosVO;
|
||||
|
@ -38,6 +43,9 @@ public class EditarLogConfenciaComissaoController extends MyGenericForwardCompos
|
|||
@Autowired
|
||||
private ConferenciaComissaoService conferenciaComissaoService;
|
||||
|
||||
@Autowired
|
||||
private TipoInformativoComissaoService tipoInformativoComissaoService;
|
||||
|
||||
private MyListbox logsConferenciaList;
|
||||
private MyListbox atualizarList;
|
||||
|
||||
|
@ -50,9 +58,15 @@ public class EditarLogConfenciaComissaoController extends MyGenericForwardCompos
|
|||
private OcdVO ocd;
|
||||
|
||||
private Radio rDebito;
|
||||
private Radio rCredito;
|
||||
private Radio rInformativo;
|
||||
|
||||
private Combobox cmbTipoInformativo;
|
||||
private List<TipoInformativoComissao> lsTipoInformativo;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsTipoInformativo = tipoInformativoComissaoService.obtenerTodos();
|
||||
boletoComissao = (BoletoComissao) Executions.getCurrent().getArg().get("boletoComissao");
|
||||
eventosFinanceiros = (EventosFinanceirosVO) Executions.getCurrent().getArg().get("eventosFinanceiros");
|
||||
ocd = (OcdVO) Executions.getCurrent().getArg().get("ocd");
|
||||
|
@ -73,6 +87,16 @@ public class EditarLogConfenciaComissaoController extends MyGenericForwardCompos
|
|||
|
||||
}
|
||||
|
||||
private Short getDebitoCreditoInfo(){
|
||||
if(rCredito.isSelected()){
|
||||
return (short) 1;
|
||||
}else if(rDebito.isSelected()){
|
||||
return (short) 0;
|
||||
}else{
|
||||
return (short) 2;
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||
try {
|
||||
|
||||
|
@ -84,7 +108,10 @@ public class EditarLogConfenciaComissaoController extends MyGenericForwardCompos
|
|||
logConferencia.setConferencia(conferencia);
|
||||
logConferencia.setStatus(StatusLogConferencia.PENDENCIA);
|
||||
logConferencia.setTipo(TipoLogConferencia.AVULSO);
|
||||
logConferencia.setIndcredito(!rDebito.isChecked());
|
||||
logConferencia.setIndcredito(getDebitoCreditoInfo());
|
||||
if(logConferencia.isIndcredito().equals((short) 2)){
|
||||
logConferencia.setTipoInformativoComissao((TipoInformativoComissao)cmbTipoInformativo.getSelectedItem().getValue());
|
||||
}
|
||||
|
||||
if(boletoComissao != null) {
|
||||
logConferencia.setBoletoId(boletoComissao.getBoletoId());
|
||||
|
@ -123,7 +150,6 @@ public class EditarLogConfenciaComissaoController extends MyGenericForwardCompos
|
|||
|
||||
atualizarLogConferenciaList(logConferencia);
|
||||
atualizarList();
|
||||
|
||||
Messagebox.show(Labels.getLabel("conferenciaController.msg.adicionarLogConferencia"),
|
||||
Labels.getLabel("conferenciaController.window.title"),
|
||||
Messagebox.OK,Messagebox.INFORMATION);
|
||||
|
@ -141,6 +167,18 @@ public class EditarLogConfenciaComissaoController extends MyGenericForwardCompos
|
|||
}
|
||||
|
||||
private boolean validarCamposObservacao() throws InterruptedException {
|
||||
try{
|
||||
if(rInformativo.isSelected() && cmbTipoInformativo.getValue() == null){
|
||||
cmbTipoInformativo.getValue();
|
||||
return false;
|
||||
}
|
||||
}catch(Exception e){
|
||||
Messagebox.show(Labels.getLabel("conferenciaController.MSG.tipoInfomativoObrigatorio"),
|
||||
Labels.getLabel("conferenciaController.window.title"),
|
||||
Messagebox.OK,Messagebox.ERROR);
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
if(StringUtils.isBlank(txtObservacaoLog.getValue())) {
|
||||
Messagebox.show(Labels.getLabel("conferenciaController.MSG.observacaoObrigatorio"),
|
||||
|
@ -178,6 +216,8 @@ public class EditarLogConfenciaComissaoController extends MyGenericForwardCompos
|
|||
if(boletoComissao != null) {
|
||||
logConferenciaVO.setNumfoliosistema(boletoComissao.getNumFolioSistema());
|
||||
}
|
||||
logConferenciaVO.setDesctipoinformativo(logConferencia.getTipoInformativoComissao() != null ?
|
||||
logConferencia.getTipoInformativoComissao().getDesctipo() : null);
|
||||
logConferenciaVO.setObservacao(logConferencia.getObservacao());
|
||||
logConferenciaVO.setPreco(logConferencia.getPreco());
|
||||
logConferenciaVO.setStatus(logConferencia.getStatus().getValue());
|
||||
|
@ -186,4 +226,37 @@ public class EditarLogConfenciaComissaoController extends MyGenericForwardCompos
|
|||
logsConferenciaList.updateItem(logConferenciaVO);
|
||||
}
|
||||
|
||||
public List<TipoInformativoComissao> getLsTipoInformativo() {
|
||||
return lsTipoInformativo;
|
||||
}
|
||||
|
||||
public void setLsTipoInformativo(List<TipoInformativoComissao> lsTipoInformativo) {
|
||||
this.lsTipoInformativo = lsTipoInformativo;
|
||||
}
|
||||
|
||||
public void onClick$rInformativo(){
|
||||
hideShowTipoInformativo(false);
|
||||
}
|
||||
|
||||
public void onClick$rDebito(){
|
||||
hideShowTipoInformativo(true);
|
||||
}
|
||||
|
||||
public void onClick$rCredito(){
|
||||
hideShowTipoInformativo(true);
|
||||
}
|
||||
|
||||
private void hideShowTipoInformativo(Boolean disable){
|
||||
cmbTipoInformativo.setDisabled(disable);
|
||||
|
||||
if(!disable){
|
||||
cmbTipoInformativo.setConstraint("no empty");
|
||||
}else{
|
||||
cmbTipoInformativo.setConstraint("");
|
||||
cmbTipoInformativo.clearErrorMessage();
|
||||
cmbTipoInformativo.setValue(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.comissao;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuTipoInformativoComissao extends DefaultItemMenuSistema {
|
||||
public ItemMenuTipoInformativoComissao() {
|
||||
super("indexController.mniTipoInformativoComissao.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.COMISSAO.MENU.TIPOINFORMATIVO";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/catalogos/busquedaTipoInformativoComissao.zul",
|
||||
Labels.getLabel("busquedaTipoInformativoComissao.window.title"), getArgs(), desktop);
|
||||
}
|
||||
}
|
|
@ -33,6 +33,9 @@ public class RenderLogConferencia implements ListitemRenderer {
|
|||
lc = new Listcell(logConferencia.getDescdebitocredito());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(logConferencia.getDesctipoinformativo());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(logConferencia.getPreco(), LocaleUtil.getLocale()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoConvenio;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoInformativoComissao;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Shiro
|
||||
*/
|
||||
public class RenderTipoInformativoComissao implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
TipoInformativoComissao tipoInformativo = (TipoInformativoComissao) o;
|
||||
|
||||
Listcell lc = new Listcell(tipoInformativo.getTipoinformativoId().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(tipoInformativo.getDesctipo());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", tipoInformativo);
|
||||
}
|
||||
}
|
|
@ -425,6 +425,7 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.MensajeUsuario</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Mensaje</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ClasseIndicePeaje</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TipoInformativoComissao</value>
|
||||
</list>
|
||||
</property>
|
||||
|
||||
|
|
|
@ -6430,6 +6430,7 @@ conferenciaController.lhTipoLog.value = Tipo
|
|||
conferenciaController.lhBoleto.value = Boleto
|
||||
conferenciaController.lhObservacao.value = Observación
|
||||
conferenciaController.lhValorLog.value = Valor Bilhete
|
||||
conferenciaController.lhTipoInformativo.value = Tipo Informativo
|
||||
conferenciaController.lhValorTabela.value = Valor Tabela
|
||||
conferenciaController.lhNombusuario.value = Usuário
|
||||
conferenciaController.lhFecmodif.value = Cambio de Fecha
|
||||
|
@ -6462,9 +6463,11 @@ conferenciaController.MSG.bilheteSemConferenciaFormapagoCategoria = Existen Pasa
|
|||
conferenciaController.MSG.eventosFinanceirosSemConferenciaFormapago = Existen Eventos Financieros Sin Conferencia
|
||||
conferenciaController.MSG.ocdSemConferencia = Existen Ocds sin conferencia
|
||||
conferenciaController.MSG.observacaoObrigatorio = El Campo Observación Debe de Ser Llenado.
|
||||
conferenciaController.MSG.tipoInfomativoObrigatorio = O campo Tipo Informativo deve ser preenchido.
|
||||
conferenciaController.lhDebitoCredito.value = D/C
|
||||
conferenciaController.lbDebito.value = Débito
|
||||
conferenciaController.lbCredito.value = Crédito
|
||||
conferenciaController.lbInformativo.value = Informativo
|
||||
conferenciaController.lbValorTotal.label = Total
|
||||
conferenciaController.lbValorTotalVendidos.label = Total Vendidos
|
||||
conferenciaController.lbValorTotalDevolvidos.label = Total Devueltos
|
||||
|
@ -6506,6 +6509,19 @@ editarLogConferenciaComissaoController.lhValorLog.value = Valor
|
|||
editarLogConferenciaComissaoController.btnCerrar.tooltiptext
|
||||
editarLogConferenciaComissaoController.btnAdicionarObservacaoLog.tooltiptext = Adicionar Observación
|
||||
|
||||
# Tipo Informativo Comissão
|
||||
indexController.mniTipoInformativoComissao.label = Tipo Informativo Comissão
|
||||
busquedaTipoInformativoComissao.window.title = Tipo Informativo Comissão
|
||||
busquedaTipoServicioController.window.title = Tipo Informativo Comissão
|
||||
busquedaTipoInformativoComissao.txtNombre.label = Nome
|
||||
busquedaTipoInformativoComissaoController.lhId.label = ID
|
||||
busquedaTipoInformativoComissaoController.lhDes.label = Descrição
|
||||
editarTipoInformativoComissaoController.lbNome.value = Descrição
|
||||
editarTipoInformativoComissaoController.MSG.DescricaoDuplicada = Já existe um Tipo Informativo Comissão com esta descrição.
|
||||
editarTipoInformativoComissaoController.MSG.suscribirOK = Tipo Informativo Comissão cadastrado com sucesso.
|
||||
editarTipoInformativoComissaoController.MSG.BorrarPergunta = Deseja eliminar esse Tipo Informativo Comissão?
|
||||
editarTipoInformativoComissaoController.MSG.BorrarOK = Tipo Informativo Comissão excluido com sucesso.
|
||||
|
||||
# Filtro Depósitos
|
||||
relatorioDepositosController.window.title=Cierre Cnt Contábil / Depósitos
|
||||
relatorioDepositosController.lbDatInicial.value=Fecha Inicial
|
||||
|
|
|
@ -6604,6 +6604,7 @@ conferenciaController.lhTipoLog.value = Tipo
|
|||
conferenciaController.lhBoleto.value = Boleto
|
||||
conferenciaController.lhObservacao.value = Observação
|
||||
conferenciaController.lhValorLog.value = Valor Bilhete
|
||||
conferenciaController.lhTipoInformativo.value = Tipo Informativo
|
||||
conferenciaController.lhValorTabela.value = Valor Tabela
|
||||
conferenciaController.lhNombusuario.value = Usuário
|
||||
conferenciaController.lhFecmodif.value = Data Alteração
|
||||
|
@ -6636,10 +6637,12 @@ conferenciaController.MSG.bilheteSemConferenciaFormapagoCategoria = Existem Bilh
|
|||
conferenciaController.MSG.eventosFinanceirosSemConferenciaFormapago = Existem Eventos Financeiros sem conferência
|
||||
conferenciaController.MSG.ocdSemConferencia = Existem Ocds sem conferência
|
||||
conferenciaController.MSG.observacaoObrigatorio = O campo observação deve ser preenchido.
|
||||
conferenciaController.MSG.tipoInfomativoObrigatorio = O campo Tipo Informativo deve ser preenchido.
|
||||
conferenciaController.lhDebitoCredito.value = D/C
|
||||
conferenciaController.lbDebitoCredito.value = Débito/Crédito
|
||||
conferenciaController.lbDebito.value = Débito
|
||||
conferenciaController.lbCredito.value = Crédito
|
||||
conferenciaController.lbInformativo.value = Informativo
|
||||
conferenciaController.lbValorTotal.label = Total
|
||||
conferenciaController.lbValorTotalVendidos.label = Total Vendidos
|
||||
conferenciaController.lbValorTotalDevolvidos.label = Total Devolvidos
|
||||
|
@ -6681,6 +6684,19 @@ editarLogConferenciaComissaoController.lhValorLog.value = Valor
|
|||
editarLogConferenciaComissaoController.btnCerrar.tooltiptext
|
||||
editarLogConferenciaComissaoController.btnAdicionarObservacaoLog.tooltiptext = Adicionar Observação
|
||||
|
||||
# Tipo Informativo Comissão
|
||||
indexController.mniTipoInformativoComissao.label = Tipo Informativo Comissão
|
||||
busquedaTipoInformativoComissao.window.title = Tipo Informativo Comissão
|
||||
busquedaTipoServicioController.window.title = Tipo Informativo Comissão
|
||||
busquedaTipoInformativoComissao.txtNombre.label = Nome
|
||||
busquedaTipoInformativoComissaoController.lhId.label = ID
|
||||
busquedaTipoInformativoComissaoController.lhDes.label = Descrição
|
||||
editarTipoInformativoComissaoController.lbNome.value = Descrição
|
||||
editarTipoInformativoComissaoController.MSG.DescricaoDuplicada = Já existe um Tipo Informativo Comissão com esta descrição.
|
||||
editarTipoInformativoComissaoController.MSG.suscribirOK = Tipo Informativo Comissão cadastrado com sucesso.
|
||||
editarTipoInformativoComissaoController.MSG.BorrarPergunta = Deseja eliminar esse Tipo Informativo Comissão?
|
||||
editarTipoInformativoComissaoController.MSG.BorrarOK = Tipo Informativo Comissão excluido com sucesso.
|
||||
|
||||
# Filtro Depósitos
|
||||
relatorioDepositosController.window.title=Fechamento Cnt Corrente / Depósitos
|
||||
relatorioDepositosController.lbDatInicial.value=Data Inicial
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
<?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="winBusquedaTipoInformativoComissao"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaTipoInformativoComissao" title="${c:l('busquedaTipoServicioController.window.title')}"
|
||||
apply="${busquedaTipoInformativoComissaoController}" contentStyle="overflow:auto"
|
||||
height="470px" width="600px" border="normal" >
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaTipoServicioController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaTipoServicioController.btnNovo.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnCerrar" onClick="winBusquedaTipoInformativoComissao.detach()" image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaTipoServicioController.btnCerrar.tooltiptext')}"/>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="30%" />
|
||||
<column width="70%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('busquedaTipoInformativoComissao.txtNombre.label')}"/>
|
||||
<textbox id="txtNombre" width="200px" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('busquedaTipoServicioController.btnPesquisa.label')}"/>
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingTipoInformativo" pageSize="15"/>
|
||||
<listbox id="tipoInformativoList" 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('busquedaTipoInformativoComissaoController.lhId.label')}" sort="auto(tipoinformativoId)"/>
|
||||
|
||||
<listheader id="lhDesc" width="90%" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaTipoInformativoComissaoController.lhDes.label')}" sort="auto(desctipo)"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
|
@ -0,0 +1,42 @@
|
|||
<?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="winEditarTipoInformativo"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarTipoInformativo" border="normal"
|
||||
apply="${editarTipoInformativoComissaoController}"
|
||||
width="400px" height="457x" contentStyle="overflow:auto"
|
||||
title="${c:l('editarTipoInformativoComissao.window.title')}">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagar" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarTipoConvenioController.btnApagar.tooltiptext')}"/>
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarTipoConvenioController.btnSalvar.tooltiptext')}"/>
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarTipoInformativo.detach()"
|
||||
tooltiptext="${c:l('editarTipoConvenioController.btnFechar.tooltiptext')}"/>
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="40%" />
|
||||
<column width="60%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lbNome" value="${c:l('editarTipoInformativoComissaoController.lbNome.value')}"/>
|
||||
<textbox id="txtNome" constraint="no empty" width="80%" maxlength="20"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
</row>
|
||||
|
||||
</rows>
|
||||
</grid>
|
||||
</window>
|
||||
</zk>
|
|
@ -863,7 +863,7 @@
|
|||
precision="7" scale="2" width="50%" />
|
||||
</row>
|
||||
|
||||
<row spans="1,3">
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('conferenciaController.lbDebitoCredito.value')}" />
|
||||
<radiogroup>
|
||||
|
@ -871,7 +871,16 @@
|
|||
label="${c:l('conferenciaController.lbDebito.value')}" />
|
||||
<radio id="rCredito"
|
||||
label="${c:l('conferenciaController.lbCredito.value')}" />
|
||||
<radio id="rInformativo"
|
||||
label="${c:l('conferenciaController.lbInformativo.value')}" />
|
||||
</radiogroup>
|
||||
|
||||
<label id="lblTipoInformativo" value="${c:l('conferenciaController.lhTipoInformativo.value')}" />
|
||||
|
||||
<combobox id="cmbTipoInformativo" disabled="true"
|
||||
width="50%" mold="rounded" buttonVisible="true"
|
||||
model="@{winConferencia$composer.lsTipoInformativo}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"/>
|
||||
</row>
|
||||
|
||||
<row spans="1,3">
|
||||
|
@ -914,6 +923,9 @@
|
|||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('conferenciaController.lhDebitoCredito.value')}"
|
||||
sort="auto(descdebitocredito)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('conferenciaController.lhTipoInformativo.value')}"
|
||||
sort="auto(desctipoinformativo)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('conferenciaController.lhValorLog.value')}"
|
||||
sort="auto(preco)" />
|
||||
|
|
|
@ -39,6 +39,8 @@
|
|||
label="${c:l('conferenciaController.lbDebito.value')}"/>
|
||||
<radio id="rCredito"
|
||||
label="${c:l('conferenciaController.lbCredito.value')}"/>
|
||||
<radio id="rInformativo"
|
||||
label="${c:l('conferenciaController.lbInformativo.value')}"/>
|
||||
</radiogroup>
|
||||
|
||||
<label value="${c:l('editarLogConferenciaComissaoController.lhValorLog.value')}" />
|
||||
|
@ -49,6 +51,17 @@
|
|||
width="50%" />
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label id="lblTipoInformativo" value="${c:l('conferenciaController.lhTipoInformativo.value')}" />
|
||||
|
||||
<combobox id="cmbTipoInformativo" disabled="true"
|
||||
mold="rounded" buttonVisible="true"
|
||||
model="@{winLogConferenciaComissao$composer.lsTipoInformativo}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"/>
|
||||
|
||||
|
||||
</row>
|
||||
|
||||
<row spans="1,3">
|
||||
<label value="${c:l('editarLogConferenciaComissaoController.lhObservacao.value')}" />
|
||||
<textbox id="txtObservacaoLog"
|
||||
|
|
Loading…
Reference in New Issue