fixed bug #9045
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@70606 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
aa909e82d4
commit
176800a6fe
|
@ -452,7 +452,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private boolean validarEmail() {
|
||||
if(txtEmail.getText() == null){
|
||||
if(txtEmail.getText() == null || txtEmail.getText().isEmpty()){
|
||||
return true;
|
||||
}
|
||||
for(String email : txtEmail.getText().split(";")){
|
||||
|
|
|
@ -2,6 +2,7 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.comissao;
|
|||
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
@ -9,18 +10,26 @@ import java.util.Map;
|
|||
|
||||
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.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Radio;
|
||||
import org.zkoss.zul.Row;
|
||||
import org.zkoss.zul.Textbox;
|
||||
import org.zkoss.zul.api.Datebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.FechamentoParamptovta;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.service.ConferenciaComissaoService;
|
||||
import com.rjconsultores.ventaboletos.service.FechamentoParamptovtaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.vo.comissao.ConferenciaComissaoVO;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MaskUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -30,24 +39,33 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
|||
public class BusquedaConferenciaComissaoController extends MyGenericForwardComposer {
|
||||
|
||||
private static Logger log = Logger.getLogger(BusquedaConferenciaComissaoController.class);
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
// private static final Logger log = LoggerFactory.getLogger(BusquedaConferenciaComissaoController.class);
|
||||
|
||||
private Textbox txtCompetencia;
|
||||
private Datebox datInicial;
|
||||
private Datebox datFinal;
|
||||
private MyComboboxPuntoVenta cmbPuntoVenta;
|
||||
private PuntoVenta puntoVenta;
|
||||
private Empresa empresa;
|
||||
private List<Empresa> lsEmpresas;
|
||||
private Row rowCompetencia;
|
||||
private Row rowDataInicial;
|
||||
private Row rowDataFinal;
|
||||
private Radio rdTipoMesAno;
|
||||
private Radio rdTipoDataInicialFinal;
|
||||
private Integer intervalo = 0;
|
||||
|
||||
@Autowired
|
||||
private ConferenciaComissaoService conferenciaComissaoService;
|
||||
@Autowired
|
||||
private FechamentoParamptovtaService fechamentoParamptovtaService;
|
||||
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
aplicarMascara();
|
||||
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||
|
||||
initCompetencia();
|
||||
|
||||
}
|
||||
|
||||
private void initCompetencia() {
|
||||
|
@ -57,21 +75,77 @@ public class BusquedaConferenciaComissaoController extends MyGenericForwardCompo
|
|||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) {
|
||||
|
||||
if (rdTipoMesAno.isChecked()) {
|
||||
txtCompetencia.getValue();
|
||||
} else {
|
||||
datInicial.getValue();
|
||||
datFinal.getValue();
|
||||
}
|
||||
|
||||
cmbPuntoVenta.getValue();
|
||||
try {
|
||||
|
||||
Date dataInicial = null;
|
||||
Date dataFinal = null;
|
||||
|
||||
if (datInicial.getValue() != null) {
|
||||
Calendar cal = Calendar.getInstance();
|
||||
|
||||
cal.setTime(datInicial.getValue());
|
||||
cal.set(Calendar.HOUR, 0);
|
||||
cal.set(Calendar.MINUTE, 0);
|
||||
cal.set(Calendar.SECOND, 0);
|
||||
|
||||
dataInicial = cal.getTime();
|
||||
|
||||
cal.setTime(datFinal.getValue());
|
||||
cal.set(Calendar.HOUR, 23);
|
||||
cal.set(Calendar.MINUTE, 59);
|
||||
cal.set(Calendar.SECOND, 59);
|
||||
dataFinal = cal.getTime();
|
||||
}
|
||||
|
||||
if (verificarCampos()) {
|
||||
Map<String, Object> args = new HashMap<String, Object>();
|
||||
args.put("competencia", txtCompetencia.getValue());
|
||||
args.put("dataInicial", dataInicial);
|
||||
args.put("dataFinal", dataFinal);
|
||||
args.put("empresa", empresa);
|
||||
args.put("isPeriodo", rdTipoDataInicialFinal.isChecked());
|
||||
|
||||
if (StringUtils.isNotBlank(cmbPuntoVenta.getValue())) {
|
||||
args.put("puntoVenta", puntoVenta);
|
||||
}
|
||||
|
||||
if (rdTipoMesAno.isChecked()) {
|
||||
openWindow("/gui/comissao/conferenciaComissao.zul",
|
||||
Labels.getLabel("conferenciaComissaoController.window.title"), args, MODAL);
|
||||
} else {
|
||||
if (validarEmpresaPuntoVentaPeriodo()) {
|
||||
List<ConferenciaComissaoVO> lsConferenciaComissao = conferenciaComissaoService.carregarConferenciaComissao(dataInicial, dataFinal, empresa, puntoVenta, null);
|
||||
args.put("puntoventaId", puntoVenta.getPuntoventaId());
|
||||
args.put("nombpuntoventa", puntoVenta.getNombpuntoventa());
|
||||
args.put("numPuntoVenta", puntoVenta.getNumPuntoVenta());
|
||||
args.put("empresaId", empresa.getEmpresaId());
|
||||
args.put("nombempresa", empresa.getNombempresa());
|
||||
args.put("puntovendaFiltro", puntoVenta != null ? puntoVenta : null);
|
||||
args.put("conferenciaComissao", lsConferenciaComissao.get(0));
|
||||
|
||||
openWindow("/gui/comissao/conferencia.zul",
|
||||
Labels.getLabel("conferenciaController.window.title"), args, MODAL);
|
||||
} else {
|
||||
if (intervalo != null && intervalo != 0) {
|
||||
Messagebox.show(Labels.getLabel("MSG.Error.invalida.intervaloInvalido") + " " + intervalo + " " + Labels.getLabel("MSG.Error.invalida.intervaloInvalidoDias"),
|
||||
Labels.getLabel("conferenciaComissaoController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
} else {
|
||||
Messagebox.show(Labels.getLabel("MSG.Error.invalida.puntoVentaSemFechamentoParaEmpresa"),
|
||||
Labels.getLabel("conferenciaComissaoController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
|
@ -79,13 +153,65 @@ public class BusquedaConferenciaComissaoController extends MyGenericForwardCompo
|
|||
}
|
||||
}
|
||||
|
||||
private boolean validarEmpresaPuntoVentaPeriodo() {
|
||||
FechamentoParamptovta f = fechamentoParamptovtaService.buscaParametrosPorPuntoventaEmpresa(puntoVenta, empresa);
|
||||
int intervalo = DateUtil.getElapsedDias(datInicial.getValue(), datFinal.getValue());
|
||||
|
||||
if(f != null && f.getIntervalofechamento().equals(intervalo+1)){
|
||||
return true;
|
||||
}else if(f == null){
|
||||
this.intervalo = null;
|
||||
return false;
|
||||
}else{
|
||||
this.intervalo = f.getIntervalofechamento();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private boolean verificarCampos() throws Exception {
|
||||
if (!DateUtil.isCompetenciaValida(txtCompetencia.getValue())) {
|
||||
if (rdTipoMesAno.isChecked()
|
||||
&& !DateUtil.isCompetenciaValida(txtCompetencia.getValue())) {
|
||||
Messagebox.show(Labels.getLabel("MSG.Error.invalida.competencia"),
|
||||
Labels.getLabel("conferenciaComissaoController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(rdTipoDataInicialFinal.isChecked()){
|
||||
|
||||
if(datInicial.getValue().after(datFinal.getValue())){
|
||||
Messagebox.show(Labels.getLabel("MSG.Error.invalida.dataInicialDepoisDataFinal"),
|
||||
Labels.getLabel("conferenciaComissaoController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
return false;
|
||||
}
|
||||
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(datInicial.getValue());
|
||||
int monthInicial = cal.get(Calendar.MONTH);
|
||||
int yearInicial = cal.get(Calendar.YEAR);
|
||||
|
||||
cal.setTime(datFinal.getValue());
|
||||
int monthFinal = cal.get(Calendar.MONTH);
|
||||
int yearFinal = cal.get(Calendar.YEAR);
|
||||
|
||||
if(monthInicial != monthFinal
|
||||
|| yearFinal != yearInicial){
|
||||
Messagebox.show(Labels.getLabel("MSG.Error.invalida.dataInicialFinalMesDiferente"),
|
||||
Labels.getLabel("conferenciaComissaoController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(puntoVenta.getPuntoventaId().equals(new Integer(-1))){
|
||||
Messagebox.show(Labels.getLabel("MSG.Error.invalida.puntoVendaTodosNaoPermitido"),
|
||||
Labels.getLabel("conferenciaComissaoController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -117,4 +243,83 @@ public class BusquedaConferenciaComissaoController extends MyGenericForwardCompo
|
|||
this.lsEmpresas = lsEmpresas;
|
||||
}
|
||||
|
||||
public Textbox getTxtCompetencia() {
|
||||
return txtCompetencia;
|
||||
}
|
||||
|
||||
public void setTxtCompetencia(Textbox txtCompetencia) {
|
||||
this.txtCompetencia = txtCompetencia;
|
||||
}
|
||||
|
||||
public Datebox getDatInicial() {
|
||||
return datInicial;
|
||||
}
|
||||
|
||||
public void setDatInicial(Datebox datInicial) {
|
||||
this.datInicial = datInicial;
|
||||
}
|
||||
|
||||
public Datebox getDatFinal() {
|
||||
return datFinal;
|
||||
}
|
||||
|
||||
public void setDatFinal(Datebox datFinal) {
|
||||
this.datFinal = datFinal;
|
||||
}
|
||||
|
||||
public Row getRowCompetencia() {
|
||||
return rowCompetencia;
|
||||
}
|
||||
|
||||
public void setRowCompetencia(Row rowCompetencia) {
|
||||
this.rowCompetencia = rowCompetencia;
|
||||
}
|
||||
|
||||
public Row getRowDataInicial() {
|
||||
return rowDataInicial;
|
||||
}
|
||||
|
||||
public void setRowDataInicial(Row rowDataInicial) {
|
||||
this.rowDataInicial = rowDataInicial;
|
||||
}
|
||||
|
||||
public Row getRowDataFinal() {
|
||||
return rowDataFinal;
|
||||
}
|
||||
|
||||
public void setRowDataFinal(Row rowDataFinal) {
|
||||
this.rowDataFinal = rowDataFinal;
|
||||
}
|
||||
|
||||
public void onCheck$rdTipoMesAno() {
|
||||
if (rdTipoMesAno.isChecked()) {
|
||||
controlRowVisibility(false, true);
|
||||
}
|
||||
}
|
||||
|
||||
public void onCheck$rdTipoDataInicialFinal() {
|
||||
if (rdTipoDataInicialFinal.isChecked()) {
|
||||
controlRowVisibility(true, false);
|
||||
}
|
||||
}
|
||||
|
||||
private void controlRowVisibility(Boolean dataInicialFinal, Boolean mesAno) {
|
||||
rowDataInicial.setVisible(dataInicialFinal);
|
||||
rowDataFinal.setVisible(dataInicialFinal);
|
||||
rowCompetencia.setVisible(mesAno);
|
||||
|
||||
if (mesAno) {
|
||||
txtCompetencia.setConstraint("no empty");
|
||||
datInicial.setConstraint("");
|
||||
datFinal.setConstraint("");
|
||||
datInicial.setValue(null);
|
||||
datFinal.setValue(null);
|
||||
} else {
|
||||
txtCompetencia.setConstraint("");
|
||||
datInicial.setConstraint("no empty");
|
||||
datFinal.setConstraint("no empty");
|
||||
txtCompetencia.setValue(null);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2,12 +2,13 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.comissao;
|
|||
|
||||
import java.math.BigDecimal;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -26,6 +27,7 @@ import org.zkoss.zul.Comboitem;
|
|||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.Radio;
|
||||
import org.zkoss.zul.Row;
|
||||
import org.zkoss.zul.Tab;
|
||||
|
||||
import com.rjconsultores.ventaboletos.constantes.Constantes;
|
||||
|
@ -179,6 +181,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
private ConferenciaComissaoVO conferenciaComissao;
|
||||
|
||||
private Combobox cmbTipoInformativo;
|
||||
private Combobox cmbConferenciaDia;
|
||||
|
||||
private List<TipoInformativoComissao> lsTipoInformativo;
|
||||
|
||||
|
@ -195,26 +198,53 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
private Tab tabEventosFinanceiros;
|
||||
private Tab tabOcd;
|
||||
|
||||
private Date dataInicial;
|
||||
private Date dataFinal;
|
||||
private List<Conferencia> conferencias;
|
||||
Boolean isPeriodo;
|
||||
private Row rowDataMovimento;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
||||
isPeriodo = (Boolean) Executions.getCurrent().getArg().get("isPeriodo");
|
||||
|
||||
if(isPeriodo){
|
||||
dataInicial = (Date) Executions.getCurrent().getArg().get("dataInicial");
|
||||
dataFinal = (Date) Executions.getCurrent().getArg().get("dataFinal");
|
||||
|
||||
SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");
|
||||
datamovimento = formato.format(dataInicial) + " - " + formato.format(dataFinal);
|
||||
}else{
|
||||
datamovimento = (String) Executions.getCurrent().getArg().get("datamovimento");
|
||||
}
|
||||
|
||||
conferenciaComissao = (ConferenciaComissaoVO) Executions.getCurrent().getArg().get("conferenciaComissao");
|
||||
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");
|
||||
empresa = (Empresa) Executions.getCurrent().getArg().get("empresa");
|
||||
puntoventaId = (Integer) Executions.getCurrent().getArg().get("puntoventaId");
|
||||
puntoventaFiltro = Executions.getCurrent().getArg().get("puntovendaFiltro") != null && !Executions.getCurrent().getArg().get("puntovendaFiltro").toString().equals("null") ? (PuntoVenta) Executions.getCurrent().getArg().get("puntovendaFiltro") : null;
|
||||
String nombpuntoventa = (String) Executions.getCurrent().getArg().get("nombpuntoventa");
|
||||
String numPuntoVenta = (String) Executions.getCurrent().getArg().get("numPuntoVenta");
|
||||
puntoventa = numPuntoVenta.concat(" - ").concat(nombpuntoventa);
|
||||
conferenciaComissao = (ConferenciaComissaoVO) Executions.getCurrent().getArg().get("conferenciaComissao");
|
||||
recuperarConferencia(conferenciaId);
|
||||
|
||||
lsConferenciaPendencia = new ArrayList<ConferenciaPendencia>();
|
||||
lsConferenciaPendencia.add(new ConferenciaPendencia(-1, " "));
|
||||
lsConferenciaPendencia.addAll(conferenciaPendenciaService.obtenerTodos());
|
||||
|
||||
if(isPeriodo){
|
||||
dataInicial = (Date) Executions.getCurrent().getArg().get("dataInicial");
|
||||
dataFinal = (Date) Executions.getCurrent().getArg().get("dataFinal");
|
||||
recuperarConferencias(conferenciaComissao);
|
||||
}else{
|
||||
Long conferenciaId = (Long) Executions.getCurrent().getArg().get("conferenciaId");
|
||||
recuperarConferencia(conferenciaId);
|
||||
}
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
rowDataMovimento.setVisible(isPeriodo);
|
||||
|
||||
logsConferenciaList.setItemRenderer(new RenderLogConferencia());
|
||||
|
||||
ocdsList.setItemRenderer(new RenderOcd() {
|
||||
|
@ -228,7 +258,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
Listcell listCell = (Listcell) component;
|
||||
if (listCell.getFirstChild() instanceof Checkbox) {
|
||||
Checkbox chk = (Checkbox) component.getFirstChild();
|
||||
chk.setDisabled(isExibirBotaoReabrirMovimento() || (!isMaloteRecebido() && isNaopermiteconfsemmalote()));
|
||||
chk.setDisabled(getEnableDisableCheckBox(ocd.getConferencia()));
|
||||
chk.addEventListener("onCheck", new EventListener() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
|
@ -263,7 +293,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
Listcell listCell = (Listcell) component;
|
||||
if (listCell.getFirstChild() instanceof Checkbox) {
|
||||
Checkbox chk = (Checkbox) component.getFirstChild();
|
||||
chk.setDisabled(isExibirBotaoReabrirMovimento() || (!isMaloteRecebido() && isNaopermiteconfsemmalote()));
|
||||
chk.setDisabled(getEnableDisableCheckBox(eventoFinanceiro.getConferencia()));
|
||||
chk.addEventListener("onCheck", new EventListener() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
|
@ -329,6 +359,8 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
ecfListBox.setItemRenderer(new RenderEcfPontoVenda());
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void ajustarListsBilhetes() {
|
||||
bilhetesManualList.setItemRenderer(new RenderBoletoComissao() {
|
||||
@Override
|
||||
|
@ -341,7 +373,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
Listcell listCell = (Listcell) component;
|
||||
if (listCell.getFirstChild() instanceof Checkbox) {
|
||||
Checkbox chk = (Checkbox) component.getFirstChild();
|
||||
chk.setDisabled(isExibirBotaoReabrirMovimento() || (!isMaloteRecebido() && isNaopermiteconfsemmalote()));
|
||||
chk.setDisabled(getEnableDisableCheckBox(boletoComissao.getConferencia()));
|
||||
chk.addEventListener("onCheck", new EventListener() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
|
@ -376,7 +408,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
Listcell listCell = (Listcell) component;
|
||||
if (listCell.getFirstChild() instanceof Checkbox) {
|
||||
Checkbox chk = (Checkbox) component.getFirstChild();
|
||||
chk.setDisabled(isExibirBotaoReabrirMovimento() || (!isMaloteRecebido() && isNaopermiteconfsemmalote()));
|
||||
chk.setDisabled(getEnableDisableCheckBox(boletoComissao.getConferencia()));
|
||||
chk.addEventListener("onCheck", new EventListener() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
|
@ -391,6 +423,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
bilhetesList.addEventListener("onDoubleClick", new EventListener() {
|
||||
@Override
|
||||
|
@ -411,7 +444,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
Listcell listCell = (Listcell) component;
|
||||
if (listCell.getFirstChild() instanceof Checkbox) {
|
||||
Checkbox chk = (Checkbox) component.getFirstChild();
|
||||
chk.setDisabled(isExibirBotaoReabrirMovimento() || (!isMaloteRecebido() && isNaopermiteconfsemmalote()));
|
||||
chk.setDisabled(getEnableDisableCheckBox(boletoComissao.getConferencia()));
|
||||
chk.addEventListener("onCheck", new EventListener() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
|
@ -582,11 +615,37 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
comboItem.setValue(status.getValue());
|
||||
comboItem.setParent(cmbSituacaoLog);
|
||||
}
|
||||
|
||||
if (conferencias != null) {
|
||||
for (Conferencia c : conferencias) {
|
||||
if (!isMovimentoEncerrado(c) && (isMaloteRecebido(c) || !isNaopermiteconfsemmalote())) {
|
||||
SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");
|
||||
Comboitem comboItem = new Comboitem(formato.format(c.getDatamovimento()));
|
||||
comboItem.setValue(c);
|
||||
comboItem.setParent(cmbConferenciaDia);
|
||||
}
|
||||
}
|
||||
if (cmbConferenciaDia.getItems().size() == 1) {
|
||||
cmbConferenciaDia.setSelectedIndex(0);
|
||||
cmbConferenciaDia.setDisabled(true);
|
||||
} else if (cmbConferenciaDia.getItems().size() == 0) {
|
||||
exibirBtnLogPeriodo = false;
|
||||
cmbConferenciaDia.setDisabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void carregarDados() {
|
||||
try {
|
||||
List<BoletoComissao> boletosComissaos = conferenciaComissaoService.carregarBilhetesComissao(null, getConferencia(), null, false);
|
||||
|
||||
List<BoletoComissao> boletosComissaos = null;
|
||||
|
||||
if (isPeriodo) {
|
||||
boletosComissaos = conferenciaComissaoService.carregarBilhetesComissao(null, conferencias, null, false);
|
||||
} else {
|
||||
boletosComissaos = conferenciaComissaoService.carregarBilhetesComissao(null, getConferencia(), null, false);
|
||||
}
|
||||
|
||||
carregarBilhetesManual(boletosComissaos);
|
||||
carregarBilhetesVendidos(boletosComissaos, false);
|
||||
|
@ -663,13 +722,23 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private void carregarResumo(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
||||
if (isPeriodo) {
|
||||
//método apenas usa empresa e punto venda da conferencia, então pode ser passado o primeiro da lista
|
||||
resumo = conferenciaComissaoService.gerarResumo(conferencias.isEmpty() ? null : conferencias.get(0), boletosComissaos, lsEventosFinanceiros, totalBilhetesManual, totalBilhetesVendidos, totalBilhetesCancelados, totalBilhetesDevolvidos, totalBilhetesGap, totalBilhetesGapCancelados, totalBilhetesGapDevolvidos, totalCreditosEventoFinanceiros, totalDebitosEventoFinanceiros, ocdTotal, totalBilhetesDevolvidosTroca, totalBilhetesGapDevolvidosTroca);
|
||||
} else {
|
||||
resumo = conferenciaComissaoService.gerarResumo(conferencia, boletosComissaos, lsEventosFinanceiros, totalBilhetesManual, totalBilhetesVendidos, totalBilhetesCancelados, totalBilhetesDevolvidos, totalBilhetesGap, totalBilhetesGapCancelados, totalBilhetesGapDevolvidos, totalCreditosEventoFinanceiros, totalDebitosEventoFinanceiros, ocdTotal, totalBilhetesDevolvidosTroca, totalBilhetesGapDevolvidosTroca);
|
||||
}
|
||||
|
||||
formapagosList.setData(resumo.getTotalFormapago());
|
||||
ecfListBox.setData(resumo.getListNumSerieECF());
|
||||
}
|
||||
|
||||
private void carregarBilhetesManual(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
||||
if(isPeriodo){
|
||||
lsBilhetesManual = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencias, BoletoStatusComissao.BOLETO_MANUAL, false);
|
||||
}else{
|
||||
lsBilhetesManual = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.BOLETO_MANUAL, false);
|
||||
}
|
||||
totalBilhetesManual = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetesManual);
|
||||
txtTotalBilhetesManual.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(totalBilhetesManual, LocaleUtil.getLocale()));
|
||||
txtQtdeTotalBilhetesManual.setValue(String.valueOf(lsBilhetesManual.size()));
|
||||
|
@ -679,8 +748,11 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private void carregarBilhetesVendidos(List<BoletoComissao> boletosComissaos, boolean carregarDadosFaltantes) throws BusinessException {
|
||||
if(isPeriodo){
|
||||
lsBilhetes = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencias, BoletoStatusComissao.BOLETOS_VENDIDOS, carregarDadosFaltantes);
|
||||
}else{
|
||||
lsBilhetes = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.BOLETOS_VENDIDOS, carregarDadosFaltantes);
|
||||
|
||||
}
|
||||
totalBilhetesVendidos = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetes);
|
||||
txtTotalBilhetes.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(totalBilhetesVendidos, LocaleUtil.getLocale()));
|
||||
txtQtdeTotalBilhetes.setValue(String.valueOf(lsBilhetes.size()));
|
||||
|
@ -690,8 +762,11 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private void carregarBilhetesCancelados(List<BoletoComissao> boletosComissaos, boolean carregarDadosFaltantes) throws BusinessException {
|
||||
if(isPeriodo){
|
||||
lsBilhetesCancelados = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencias, BoletoStatusComissao.BOLETO_CANCELADO, carregarDadosFaltantes);
|
||||
}else{
|
||||
lsBilhetesCancelados = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.BOLETO_CANCELADO, carregarDadosFaltantes);
|
||||
|
||||
}
|
||||
totalBilhetesCancelados = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetesCancelados);
|
||||
txtTotalBilhetesCancelados.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(totalBilhetesCancelados, LocaleUtil.getLocale()));
|
||||
txtQtdeTotalBilhetesCancelados.setValue(String.valueOf(lsBilhetesCancelados.size()));
|
||||
|
@ -703,7 +778,11 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
private void carregarBilhetesDevolvidos(List<BoletoComissao> boletosComissaos, boolean carregarDadosFaltantes) throws BusinessException {
|
||||
totalBilhetesDevolvidos = BigDecimal.ZERO;
|
||||
|
||||
if(isPeriodo){
|
||||
lsBilhetesDevolvidos = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencias, BoletoStatusComissao.BOLETO_DEVOLVIDO, carregarDadosFaltantes);
|
||||
}else{
|
||||
lsBilhetesDevolvidos = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.BOLETO_DEVOLVIDO, carregarDadosFaltantes);
|
||||
}
|
||||
|
||||
Map<BoletoStatusComissao, BigDecimal> totais = conferenciaComissaoService.totalizarBoletoComissaoDevolvidosTrocaOcd(lsBilhetesDevolvidos);
|
||||
|
||||
|
@ -722,7 +801,12 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private void carregarBilhetesGap(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
||||
if(isPeriodo){
|
||||
lsBilhetesGap = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencias, BoletoStatusComissao.GAP_VENDIDOS, false);
|
||||
}else{
|
||||
lsBilhetesGap = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.GAP_VENDIDOS, false);
|
||||
}
|
||||
|
||||
totalBilhetesGap = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetesGap);
|
||||
txtTotalBilhetesGap.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(totalBilhetesGap, LocaleUtil.getLocale()));
|
||||
txtQtdeTotalBilhetesGap.setValue(String.valueOf(lsBilhetesGap.size()));
|
||||
|
@ -732,7 +816,11 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private void carregarBilhetesGapCancelados(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
||||
if(isPeriodo){
|
||||
lsBilhetesGapCancelados = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencias, BoletoStatusComissao.GAP_CANCELADO, false);
|
||||
}else{
|
||||
lsBilhetesGapCancelados = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.GAP_CANCELADO, false);
|
||||
}
|
||||
totalBilhetesGapCancelados = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetesGapCancelados);
|
||||
txtTotalBilhetesGapCancelados.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(totalBilhetesGapCancelados, LocaleUtil.getLocale()));
|
||||
txtQtdeTotalBilhetesGapCancelados.setValue(String.valueOf(lsBilhetesGapCancelados.size()));
|
||||
|
@ -742,7 +830,11 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private void carregarBilhetesGapDevolvidos(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
||||
if(isPeriodo){
|
||||
lsBilhetesGapDevolvidos = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencias, BoletoStatusComissao.GAP_DEVOLVIDO, false);
|
||||
}else {
|
||||
lsBilhetesGapDevolvidos = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.GAP_DEVOLVIDO, false);
|
||||
}
|
||||
|
||||
Map<BoletoStatusComissao, BigDecimal> totais = conferenciaComissaoService.totalizarBoletoComissaoDevolvidosTrocaOcd(lsBilhetesGapDevolvidos);
|
||||
|
||||
|
@ -761,12 +853,38 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private void carregarLogsConferencia() throws BusinessException {
|
||||
if (isPeriodo) {
|
||||
List<LogConferenciaVO> temp = new ArrayList<LogConferenciaVO>();
|
||||
lsLogsConferencia = new ArrayList<LogConferenciaVO>();
|
||||
|
||||
for (Conferencia c : conferencias) {
|
||||
temp = conferenciaComissaoService.carregarLogConferencia(c);
|
||||
lsLogsConferencia.addAll(temp);
|
||||
}
|
||||
|
||||
} else {
|
||||
lsLogsConferencia = conferenciaComissaoService.carregarLogConferencia(conferencia);
|
||||
}
|
||||
|
||||
logsConferenciaList.setData(lsLogsConferencia);
|
||||
}
|
||||
|
||||
private void carregarEventosFinanceiros(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
||||
|
||||
if(isPeriodo){
|
||||
List<EventosFinanceirosVO> temp = new ArrayList<EventosFinanceirosVO>();
|
||||
if(lsEventosFinanceiros == null){
|
||||
lsEventosFinanceiros = new ArrayList<EventosFinanceirosVO>();
|
||||
}
|
||||
|
||||
for(Conferencia c : conferencias){
|
||||
temp = conferenciaComissaoService.carregarEventosFinanceiros(c);
|
||||
lsEventosFinanceiros.addAll(temp);
|
||||
}
|
||||
}else{
|
||||
lsEventosFinanceiros = conferenciaComissaoService.carregarEventosFinanceiros(conferencia);
|
||||
}
|
||||
|
||||
eventosFinanceirosList.setData(lsEventosFinanceiros);
|
||||
|
||||
totalCreditosEventoFinanceiros = BigDecimal.ZERO;
|
||||
|
@ -788,7 +906,21 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private void carregarOcds() throws BusinessException {
|
||||
|
||||
if (isPeriodo) {
|
||||
List<OcdVO> temp = new ArrayList<OcdVO>();
|
||||
if(lsOcds == null){
|
||||
lsOcds = new ArrayList<OcdVO>();
|
||||
}
|
||||
|
||||
for (Conferencia c : conferencias) {
|
||||
temp = conferenciaComissaoService.carregarOcds(c);
|
||||
lsOcds.addAll(temp);
|
||||
}
|
||||
} else {
|
||||
lsOcds = conferenciaComissaoService.carregarOcds(conferencia);
|
||||
}
|
||||
|
||||
ocdTotal = conferenciaComissaoService.totalizarOcd(lsOcds);
|
||||
|
||||
if (ocdTotal != null) {
|
||||
|
@ -802,8 +934,15 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
|
||||
public void onClick$btnChegadaMalote(Event event) throws InterruptedException {
|
||||
try {
|
||||
if(isPeriodo){
|
||||
for(Conferencia c : conferencias){
|
||||
if (!isMaloteRecebido(c) && isMovimentoNaoEncerrado(c)) {
|
||||
conferenciaComissaoService.confirmarChegadaMalote(c);
|
||||
}
|
||||
}
|
||||
}else{
|
||||
conferencia = conferenciaComissaoService.confirmarChegadaMalote(conferencia);
|
||||
|
||||
}
|
||||
Messagebox.show(Labels.getLabel("conferenciaController.msg.confirmarChegadaMalote"),
|
||||
Labels.getLabel("conferenciaController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
@ -824,7 +963,15 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
return;
|
||||
}
|
||||
|
||||
if (isPeriodo) {
|
||||
for (Conferencia c : conferencias) {
|
||||
if ((isMaloteRecebido(c) || !isNaopermiteconfsemmalote()) && isMovimentoNaoEncerrado(c) && isPermissaoEncerrarMovimento()) {
|
||||
conferenciaComissaoService.encerrarMovimentoDiario(c);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
conferencia = conferenciaComissaoService.encerrarMovimentoDiario(conferencia);
|
||||
}
|
||||
|
||||
Messagebox.show(Labels.getLabel("conferenciaController.msg.encerrarMovimentoDiario"),
|
||||
Labels.getLabel("conferenciaController.window.title"),
|
||||
|
@ -839,7 +986,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public void onClick$btnInformarIrregularidade() throws InterruptedException {
|
||||
List listNumSerie = ecfListBox.getSelectedModelItems();
|
||||
|
||||
|
@ -894,7 +1041,15 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
|
||||
public void onClick$btnReabrirMovimentoDiario(Event event) throws InterruptedException {
|
||||
try {
|
||||
if (isPeriodo) {
|
||||
for (Conferencia c : conferencias) {
|
||||
if (isMovimentoEncerrado(c) && isPermissaoReabrirMovimento()) {
|
||||
conferenciaComissaoService.reabrirMovimentoDiario(c);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
conferencia = conferenciaComissaoService.reabrirMovimentoDiario(conferencia);
|
||||
}
|
||||
|
||||
Messagebox.show(Labels.getLabel("conferenciaController.msg.reabrirMovimentoDiario"),
|
||||
Labels.getLabel("conferenciaController.window.title"),
|
||||
|
@ -930,6 +1085,36 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
private void recuperarConferencias(ConferenciaComissaoVO conferenciaComissao) throws ParseException, BusinessException {
|
||||
|
||||
conferencias = new ArrayList<Conferencia>();
|
||||
|
||||
if(conferenciaComissao.getDiasOrdenado() != null){
|
||||
for (DiaConferenciaComissaoVO d : conferenciaComissao.getDiasOrdenado()) {
|
||||
Conferencia conf = null;
|
||||
|
||||
if (d.getConferenciaId() != null) {
|
||||
conf = conferenciaComissaoService.obtenerID(d.getConferenciaId());
|
||||
}
|
||||
|
||||
if (conf == null) {
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(dataInicial);
|
||||
cal.set(Calendar.DAY_OF_MONTH, d.getDia());
|
||||
|
||||
conf = new Conferencia();
|
||||
conf.setActivo(Boolean.TRUE);
|
||||
conf.setFecmodif(new Date());
|
||||
conf.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
conf.setEmpresa(empresa);
|
||||
conf.setPuntoVenta(new PuntoVenta(puntoventaId));
|
||||
conf.setDatamovimento(cal.getTime());
|
||||
}
|
||||
conferencias.add(conf);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private Short getDebitoCreditoInfo(){
|
||||
if(rCredito.isSelected()){
|
||||
return (short) 1;
|
||||
|
@ -947,7 +1132,11 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
LogConferencia logConferencia = new LogConferencia();
|
||||
logConferencia.setPreco(txtPrecoLog.getValueDecimal());
|
||||
logConferencia.setObservacao(txtObservacaoLog.getValue());
|
||||
if(isPeriodo){
|
||||
logConferencia.setConferencia((Conferencia) cmbConferenciaDia.getSelectedItem().getValue());
|
||||
}else{
|
||||
logConferencia.setConferencia(conferencia);
|
||||
}
|
||||
logConferencia.setStatus(StatusLogConferencia.getStatusLogConferencia((Integer) cmbSituacaoLog.getSelectedItem().getValue()));
|
||||
logConferencia.setTipo(TipoLogConferencia.AVULSO);
|
||||
logConferencia.setIndcredito(getDebitoCreditoInfo());
|
||||
|
@ -984,6 +1173,14 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private boolean validarCamposObservacao() throws InterruptedException {
|
||||
try{
|
||||
txtObservacaoLog.getValue();
|
||||
}catch(Exception e){
|
||||
Messagebox.show(Labels.getLabel("conferenciaController.MSG.observacaoObrigatorio"),
|
||||
Labels.getLabel("conferenciaController.window.title"),
|
||||
Messagebox.OK,Messagebox.ERROR);
|
||||
return false;
|
||||
}
|
||||
try{
|
||||
if(rInformativo.isSelected() && cmbTipoInformativo.getValue() == null){
|
||||
return false;
|
||||
|
@ -1009,6 +1206,14 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
return false;
|
||||
}
|
||||
|
||||
if(isPeriodo
|
||||
&& cmbConferenciaDia.getSelectedItem() == null){
|
||||
Messagebox.show(Labels.getLabel("conferenciaController.MSG.tipoInfomativoObrigatorio"),
|
||||
Labels.getLabel("conferenciaController.window.title"),
|
||||
Messagebox.OK,Messagebox.ERROR);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1040,7 +1245,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private void lancarLogConferenciaBilhete(BoletoComissao boletoComissao, MyListbox localBilhetesList, Tab tab) {
|
||||
if (boletoComissao == null || isObservacaoLancada(boletoComissao) || isMovimentoEncerrado() || (!isMaloteRecebido() && isNaopermiteconfsemmalote())) {
|
||||
if (boletoComissao == null || isObservacaoLancada(boletoComissao) || isMovimentoEncerrado(boletoComissao.getConferencia()) || (!isMaloteRecebido(boletoComissao.getConferencia()) && isNaopermiteconfsemmalote())) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1056,7 +1261,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private void lancarLogConferenciaEventosFinanceiros(EventosFinanceirosVO eventosFinanceiros, MyListbox eventosFinanceirosList) {
|
||||
if (eventosFinanceiros == null || isObservacaoLancada(eventosFinanceiros) || isMovimentoEncerrado() || (!isMaloteRecebido() && isNaopermiteconfsemmalote())) {
|
||||
if (eventosFinanceiros == null || isObservacaoLancada(eventosFinanceiros) || isMovimentoEncerrado(eventosFinanceiros.getConferencia()) || (!isMaloteRecebido(eventosFinanceiros.getConferencia()) && isNaopermiteconfsemmalote())) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1072,7 +1277,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private void lancarLogConferenciaOcd(OcdVO ocd, MyListbox ocdsList, Tab tabOcd) {
|
||||
if (ocd == null || isObservacaoLancada(ocd) || isMovimentoEncerrado() || (!isMaloteRecebido() && isNaopermiteconfsemmalote())) {
|
||||
if (ocd == null || isObservacaoLancada(ocd) || isMovimentoEncerrado(ocd.getConferencia()) || (!isMaloteRecebido(ocd.getConferencia()) && isNaopermiteconfsemmalote())) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1087,8 +1292,9 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
Labels.getLabel("editarLogConferenciaComissaoController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private boolean isObservacaoLancada(BoletoComissao boletoComissao) {
|
||||
for (LogConferenciaVO logConferencia : lsLogsConferencia) {
|
||||
for (LogConferenciaVO logConferencia : (List<LogConferenciaVO>)logsConferenciaList.getListData()) { ;
|
||||
if (boletoComissao.getCajaId().equals(logConferencia.getCajaId())) {
|
||||
return true;
|
||||
}
|
||||
|
@ -1127,8 +1333,10 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
diaConferenciaComissaoAux.setIndsemmovimento(diaConferenciaComissao.getIndsemmovimento());
|
||||
}
|
||||
}
|
||||
if(conferenciaList != null){
|
||||
conferenciaList.updateItem(conferenciaComissao);
|
||||
}
|
||||
}
|
||||
} catch (BusinessException e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
|
@ -1136,10 +1344,11 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
|
||||
public void onClick$btnPesquisaBoletoDevolvido(Event event) throws InterruptedException {
|
||||
try {
|
||||
/*
|
||||
* if((empresa.getIndcarboletosdevolvidosconf() == null || !empresa.getIndcarboletosdevolvidosconf()) && StringUtils.isBlank(conferencia.getNumfoliosistema())) { Messagebox.show(Labels.getLabel("conferenciaController.msg.numfoliosistemaNaoInformado"), Labels.getLabel("conferenciaController.window.title"), Messagebox.OK,Messagebox.INFORMATION); return; }
|
||||
*/
|
||||
if (isPeriodo) {
|
||||
lsBilhetesDevolvidos = conferenciaComissaoService.carregarBilhetesComissao(null, conferencias, BoletoStatusComissao.BOLETO_DEVOLVIDO, false);
|
||||
}else{
|
||||
lsBilhetesDevolvidos = conferenciaComissaoService.carregarBilhetesComissao(null, conferencia, BoletoStatusComissao.BOLETO_DEVOLVIDO, false);
|
||||
}
|
||||
|
||||
Map<BoletoStatusComissao, BigDecimal> totais = conferenciaComissaoService.totalizarBoletoComissaoDevolvidosTrocaOcd(lsBilhetesDevolvidos);
|
||||
totalBilhetesDevolvidos = totais.get(BoletoStatusComissao.BOLETO_DEVOLVIDO);
|
||||
|
@ -1188,10 +1397,18 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
return conferencia.getIndconferido() == null || !conferencia.getIndconferido();
|
||||
}
|
||||
|
||||
public Boolean isMovimentoNaoEncerrado(Conferencia c){
|
||||
return c.getIndconferido() == null || !c.getIndconferido();
|
||||
}
|
||||
|
||||
public Boolean isMovimentoEncerrado() {
|
||||
return conferencia.getIndconferido() != null && conferencia.getIndconferido();
|
||||
}
|
||||
|
||||
public Boolean isMovimentoEncerrado(Conferencia c) {
|
||||
return c.getIndconferido() != null && c.getIndconferido();
|
||||
}
|
||||
|
||||
public Boolean isPermissaoEncerrarMovimento() {
|
||||
return UsuarioLogado.getUsuarioLogado().isPermisoClave(Constantes.CLAVE_ENCERRAR_MOVIMENTODIARIO);
|
||||
}
|
||||
|
@ -1201,25 +1418,65 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
public Boolean isExibirBotaoReabrirMovimento() {
|
||||
if (isPeriodo) {
|
||||
for (Conferencia c : conferencias) {
|
||||
// caso exista pelo menos uma conferencia que seja possível reabrir o movimento, habilitar
|
||||
if (isMovimentoEncerrado(c) && isPermissaoReabrirMovimento()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return isMovimentoEncerrado() && isPermissaoReabrirMovimento();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
private Boolean exibirBtnLogPeriodo = true;
|
||||
|
||||
public Boolean isExibirBotaoLancamentoObservacao() {
|
||||
if(isPeriodo){
|
||||
//caso Periodo, a validação é feita no combo de dias de conferencia
|
||||
return exibirBtnLogPeriodo;
|
||||
}else{
|
||||
return !isMovimentoEncerrado() && (isMaloteRecebido() || !isNaopermiteconfsemmalote());
|
||||
}
|
||||
}
|
||||
|
||||
public Boolean isExibirBotaoEncerrarMovimento() {
|
||||
if (isPeriodo) {
|
||||
for (Conferencia c : conferencias) {
|
||||
// caso exista pelo menos uma conferencia que seja possível encerrar o movimento, habilitar
|
||||
if ((isMaloteRecebido(c) || !isNaopermiteconfsemmalote()) && isMovimentoNaoEncerrado(c) && isPermissaoEncerrarMovimento()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return (isMaloteRecebido() || !isNaopermiteconfsemmalote()) && isMovimentoNaoEncerrado() && isPermissaoEncerrarMovimento();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public Boolean isExibirBotaoChegadaMalote() {
|
||||
if (isPeriodo) {
|
||||
for (Conferencia c : conferencias) {
|
||||
// caso exista pelo menos uma conferencia que seja possível entregar malote, habilitar
|
||||
if (!isMaloteRecebido(c) && isMovimentoNaoEncerrado(c)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return !isMaloteRecebido() && isMovimentoNaoEncerrado();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private Boolean isMaloteRecebido() {
|
||||
return conferencia.getIndmaloterecebido() != null && conferencia.getIndmaloterecebido();
|
||||
}
|
||||
|
||||
private Boolean isMaloteRecebido(Conferencia c){
|
||||
return c.getIndmaloterecebido() != null && c.getIndmaloterecebido();
|
||||
}
|
||||
|
||||
public void onClick$btnCerrar() throws InterruptedException {
|
||||
validarConferencia();
|
||||
this.closeWindow();
|
||||
|
@ -1253,10 +1510,16 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
lsLogsConferencia.remove(log);
|
||||
}
|
||||
|
||||
private LogConferencia gravarLogConferencia(TipoLogConferencia tipo, Long id, String numfoliosistema) throws BusinessException {
|
||||
private LogConferencia gravarLogConferencia(Conferencia c, TipoLogConferencia tipo, Long id, String numfoliosistema) throws BusinessException {
|
||||
LogConferencia logConferencia = new LogConferencia();
|
||||
logConferencia.setObservacao("OK");
|
||||
|
||||
if(isPeriodo){
|
||||
logConferencia.setConferencia(c);
|
||||
}else{
|
||||
logConferencia.setConferencia(conferencia);
|
||||
}
|
||||
|
||||
logConferencia.setStatus(StatusLogConferencia.CONFERIDO);
|
||||
logConferencia.setTipo(tipo);
|
||||
logConferencia.setIndcredito((short) 1);
|
||||
|
@ -1272,14 +1535,15 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
logConferencia = conferenciaComissaoService.suscribirLogConferencia(logConferencia);
|
||||
atualizarLogConferenciaList(logConferencia, numfoliosistema);
|
||||
atualizarLogConferenciaList(c, logConferencia, numfoliosistema);
|
||||
|
||||
return logConferencia;
|
||||
}
|
||||
|
||||
private void atualizarLogConferenciaList(LogConferencia logConferencia, String numfoliosistema) {
|
||||
private void atualizarLogConferenciaList(Conferencia conferencia, LogConferencia logConferencia, String numfoliosistema) {
|
||||
LogConferenciaVO logConferenciaVO = new LogConferenciaVO();
|
||||
logConferenciaVO.setLogconferenciaId(logConferencia.getLogconferenciaId());
|
||||
logConferenciaVO.setConferencia(conferencia);
|
||||
logConferenciaVO.setCajaId(logConferencia.getCajaId());
|
||||
logConferenciaVO.setEventoextraId(logConferencia.getEventoextraId());
|
||||
logConferenciaVO.setOcdId(logConferencia.getOcdId());
|
||||
|
@ -1299,7 +1563,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
@SuppressWarnings("unchecked")
|
||||
private void gravarLogConferenciaBilhete(MyListbox bilhetes, BoletoComissao boletoComissao, Tab tab, String label) {
|
||||
try {
|
||||
LogConferencia logConferencia = gravarLogConferencia(TipoLogConferencia.BOLETO, boletoComissao.getCajaId(), boletoComissao.getNumFolioSistema());
|
||||
LogConferencia logConferencia = gravarLogConferencia(boletoComissao.getConferencia(),TipoLogConferencia.BOLETO, boletoComissao.getCajaId(), boletoComissao.getNumFolioSistema());
|
||||
boletoComissao.setLogconferenciaId(logConferencia.getLogconferenciaId());
|
||||
boletoComissao.setStatus(logConferencia.getStatus().getValue());
|
||||
boletoComissao.setConferido(Boolean.TRUE);
|
||||
|
@ -1331,7 +1595,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
@SuppressWarnings("unchecked")
|
||||
private void gravarLogConferenciaEventoFinanceiro(EventosFinanceirosVO eventoFinanceiro) {
|
||||
try {
|
||||
LogConferencia logConferencia = gravarLogConferencia(TipoLogConferencia.EVENTO_FINANCEIRO, eventoFinanceiro.getEventoextraId(), null);
|
||||
LogConferencia logConferencia = gravarLogConferencia(eventoFinanceiro.getConferencia(), TipoLogConferencia.EVENTO_FINANCEIRO, eventoFinanceiro.getEventoextraId(), null);
|
||||
eventoFinanceiro.setLogconferenciaId(logConferencia.getLogconferenciaId());
|
||||
eventoFinanceiro.setStatus(logConferencia.getStatus().getValue());
|
||||
eventoFinanceiro.setConferido(Boolean.TRUE);
|
||||
|
@ -1363,7 +1627,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
@SuppressWarnings("unchecked")
|
||||
private void gravarLogConferenciaOcd(OcdVO ocd) {
|
||||
try {
|
||||
LogConferencia logConferencia = gravarLogConferencia(TipoLogConferencia.OCD, ocd.getOcdId(), null);
|
||||
LogConferencia logConferencia = gravarLogConferencia(ocd.getConferencia(), TipoLogConferencia.OCD, ocd.getOcdId(), null);
|
||||
ocd.setLogconferenciaId(logConferencia.getLogconferenciaId());
|
||||
ocd.setStatus(logConferencia.getStatus().getValue());
|
||||
ocd.setConferido(Boolean.TRUE);
|
||||
|
@ -1394,7 +1658,9 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
|
||||
@Override
|
||||
public void closeWindow() {
|
||||
if(!isPeriodo){
|
||||
carregarDadosConferencia();
|
||||
}
|
||||
super.closeWindow();
|
||||
}
|
||||
|
||||
|
@ -1492,4 +1758,20 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
tab.invalidate();
|
||||
}
|
||||
|
||||
public Row getRowDataMovimento() {
|
||||
return rowDataMovimento;
|
||||
}
|
||||
|
||||
public void setRowDataMovimento(Row rowDataMovimento) {
|
||||
this.rowDataMovimento = rowDataMovimento;
|
||||
}
|
||||
|
||||
private boolean getEnableDisableCheckBox(Conferencia conferencia) {
|
||||
if(isPeriodo){
|
||||
return (isMovimentoEncerrado(conferencia) && isPermissaoReabrirMovimento() || !isMaloteRecebido(conferencia) && isNaopermiteconfsemmalote());
|
||||
}
|
||||
return isExibirBotaoReabrirMovimento() || (!isMaloteRecebido() && isNaopermiteconfsemmalote());
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -87,7 +87,7 @@ public class EditarLogConfenciaComissaoController extends MyGenericForwardCompos
|
|||
boletoComissao = (BoletoComissao) Executions.getCurrent().getArg().get("boletoComissao");
|
||||
eventosFinanceiros = (EventosFinanceirosVO) Executions.getCurrent().getArg().get("eventosFinanceiros");
|
||||
ocd = (OcdVO) Executions.getCurrent().getArg().get("ocd");
|
||||
conferencia = (Conferencia) Executions.getCurrent().getArg().get("conferencia");
|
||||
conferencia = getConferencia(comp);
|
||||
logsConferenciaList = (MyListbox) Executions.getCurrent().getArg().get("logsConferenciaList");
|
||||
tab = (Tab) Executions.getCurrent().getArg().get("tab");
|
||||
|
||||
|
@ -111,6 +111,21 @@ public class EditarLogConfenciaComissaoController extends MyGenericForwardCompos
|
|||
|
||||
}
|
||||
|
||||
private Conferencia getConferencia(Component comp) {
|
||||
Conferencia c = (Conferencia) Executions.getCurrent().getArg().get("conferencia");
|
||||
|
||||
if (c == null) {
|
||||
if (boletoComissao != null && boletoComissao.getConferencia() != null) {
|
||||
c = boletoComissao.getConferencia();
|
||||
} else if (ocd != null && ocd.getConferencia() != null) {
|
||||
c = ocd.getConferencia();
|
||||
} else if (eventosFinanceiros != null && eventosFinanceiros.getConferencia() != null) {
|
||||
c = eventosFinanceiros.getConferencia();
|
||||
}
|
||||
}
|
||||
return c;
|
||||
}
|
||||
|
||||
private Short getDebitoCreditoInfo(){
|
||||
if(rCredito.isSelected()){
|
||||
return (short) 1;
|
||||
|
@ -245,6 +260,7 @@ public class EditarLogConfenciaComissaoController extends MyGenericForwardCompos
|
|||
private void atualizarLogConferenciaList(LogConferencia logConferencia) {
|
||||
LogConferenciaVO logConferenciaVO = new LogConferenciaVO();
|
||||
logConferenciaVO.setLogconferenciaId(logConferencia.getLogconferenciaId());
|
||||
logConferenciaVO.setConferencia(conferencia);
|
||||
logConferenciaVO.setCajaId(logConferencia.getCajaId());
|
||||
logConferenciaVO.setEventoextraId(logConferencia.getEventoextraId());
|
||||
logConferenciaVO.setOcdId(logConferencia.getOcdId());
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
|
@ -30,6 +32,10 @@ public class RenderBoletoComissao implements ListitemRenderer {
|
|||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");
|
||||
lc = new Listcell(formato.format(boletoComissao.getConferencia().getDatamovimento()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(boletoComissao.getNombpasajero());
|
||||
lc.setParent(lstm);
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Listcell;
|
||||
|
@ -26,6 +28,10 @@ public class RenderEventosFinanceiros implements ListitemRenderer {
|
|||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");
|
||||
lc = new Listcell(formato.format(eventosFinanceiros.getConferencia().getDatamovimento()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(eventosFinanceiros.getNumFolioSistema());
|
||||
lc.setParent(lstm);
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
@ -18,6 +20,10 @@ public class RenderLogConferencia implements ListitemRenderer {
|
|||
Listcell lc = new Listcell(logConferencia.getStatusDescricao());
|
||||
lc.setParent(lstm);
|
||||
|
||||
SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");
|
||||
lc = new Listcell(formato.format(logConferencia.getConferencia().getDatamovimento()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(logConferencia.getNumfoliosistema());
|
||||
lc.setParent(lstm);
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
|
@ -26,6 +28,10 @@ public class RenderOcd implements ListitemRenderer {
|
|||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");
|
||||
lc = new Listcell(formato.format(ocd.getConferencia().getDatamovimento()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(ocd.getNumoperacion());
|
||||
lc.setParent(lstm);
|
||||
|
||||
|
|
|
@ -51,7 +51,13 @@ MSG.necesita.contaContable = Cuenta contable obligatória
|
|||
MSG.necesita.tipoEvento = Tipo de evento obligatório
|
||||
MSG.necesita.formaPago = Forma de pago obligatória
|
||||
MSG.Error.invalida.competencia = Competência inválida
|
||||
MSG.Error.invalida.dataInicialDepoisDataFinal = Data Inicial maior do que Data Final
|
||||
MSG.Error.invalida.dataInicialFinalMesDiferente = Data Inicial e Final são de meses diferentes
|
||||
MSG.Error.invalida.puntoVendaTodosNaoPermitido = Quando é informado Data Inicial e Final não é possível pesquisar por todos os pontos de venda.
|
||||
MSG.Error.necessita.puntoVenta = Punto Venta obligatório
|
||||
MSG.Error.invalida.intervaloInvalido = Intervalo inválido, o período de pesquisa deve ser de
|
||||
MSG.Error.invalida.intervaloInvalidoDias = dia(s).
|
||||
MSG.Error.invalida.puntoVentaSemFechamentoParaEmpresa = Esta agência não possui fechamento para esta empresa.
|
||||
|
||||
# Labels Default
|
||||
lb.id = ID
|
||||
|
@ -6624,6 +6630,9 @@ busquedaConferenciaComissaoController.lbCompetencia.label = Competencia
|
|||
busquedaConferenciaComissaoController.lbCompetenciaLayout.label = (MM/YYYY)
|
||||
busquedaConferenciaComissaoController.lbEmpresa.value = Empresa
|
||||
busquedaConferenciaComissaoController.lbPuntoVenta.value = Punto venta
|
||||
busquedaConferenciaComissaoController.lbTipoData.value = Tipo Data
|
||||
busquedaConferenciaComissaoController.lbTipoDataMesAno.value = Mês/Ano
|
||||
busquedaConferenciaComissaoController.lbTipoDataDataInicialFinal.value = Data Inicial/Final
|
||||
|
||||
# Conferencia Comissao
|
||||
conferenciaComissaoController.window.title = Conferencia de los Movimientos
|
||||
|
@ -6651,6 +6660,7 @@ conferenciaController.btnReabrirMovimentoDiario.tooltiptext = Reabrir Movimiento
|
|||
conferenciaController.btnPesquisa.label = Búsqueda
|
||||
conferenciaController.btnAlterarBilheteManual.label = Alterar Boleto
|
||||
conferenciaController.lbDatamovimento.label = Fecha Movimiento:
|
||||
conferenciaController.lbDatamovimento2.label = Fecha Movimiento
|
||||
conferenciaController.lbEmpresa.value = Empresa:
|
||||
conferenciaController.lbPuntoVenta.value = Punto Venta:
|
||||
conferenciaController.msg.confirmarChegadaMalote = Llegada Malote Confirmada Exitosamente
|
||||
|
@ -6718,6 +6728,7 @@ conferenciaController.MSG.eventosFinanceirosSemConferenciaFormapago = Existen Ev
|
|||
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.MSG.conferenciaObrigatoria = O campo Data de Movimento deve ser preenchido.
|
||||
conferenciaController.lhDebitoCredito.value = D/C
|
||||
conferenciaController.lbDebito.value = Débito
|
||||
conferenciaController.lbComportamentoData.value = Comportamento Data
|
||||
|
|
|
@ -53,7 +53,13 @@ MSG.necesita.contaContable = Conta Contábil Obrigatória
|
|||
MSG.necesita.tipoEvento = Tipo de evento Obrigatório
|
||||
MSG.necesita.formaPago = Forma de Pagamento Obrigatória
|
||||
MSG.Error.invalida.competencia = Competência inválida
|
||||
MSG.Error.invalida.dataInicialDepoisDataFinal = Data Inicial maior do que Data Final
|
||||
MSG.Error.invalida.dataInicialFinalMesDiferente = Data Inicial e Final são de meses diferentes
|
||||
MSG.Error.invalida.puntoVendaTodosNaoPermitido = Quando é informado Data Inicial e Final não é possível pesquisar por todos os pontos de venda.
|
||||
MSG.Error.necessita.puntoVenta = Ponto de Venda (Agência) Obrigatório
|
||||
MSG.Error.invalida.intervaloInvalido = Intervalo inválido, o período de pesquisa deve ser de
|
||||
MSG.Error.invalida.intervaloInvalidoDias = dia(s).
|
||||
MSG.Error.invalida.puntoVentaSemFechamentoParaEmpresa = Esta agência não possui fechamento para esta empresa.
|
||||
|
||||
# Labels Default
|
||||
lb.id = ID
|
||||
|
@ -6805,6 +6811,9 @@ busquedaConferenciaComissaoController.lbCompetencia.label = Competência
|
|||
busquedaConferenciaComissaoController.lbCompetenciaLayout.label = (MM/YYYY)
|
||||
busquedaConferenciaComissaoController.lbEmpresa.value = Empresa
|
||||
busquedaConferenciaComissaoController.lbPuntoVenta.value = Ponto de Venda (Agência)
|
||||
busquedaConferenciaComissaoController.lbTipoData.value = Tipo Data
|
||||
busquedaConferenciaComissaoController.lbTipoDataMesAno.value = Mês/Ano
|
||||
busquedaConferenciaComissaoController.lbTipoDataDataInicialFinal.value = Data Inicial/Final
|
||||
|
||||
# Conferencia Comissao
|
||||
conferenciaComissaoController.window.title = Conferência de Movimento
|
||||
|
@ -6832,6 +6841,7 @@ conferenciaController.btnReabrirMovimentoDiario.tooltiptext = Reabrir Movimento
|
|||
conferenciaController.btnPesquisa.label = Pesquisa
|
||||
conferenciaController.btnAlterarBilheteManual.label = Alterar Bilhete
|
||||
conferenciaController.lbDatamovimento.label = Data Movimento:
|
||||
conferenciaController.lbDatamovimento2.label = Data Movimento
|
||||
conferenciaController.lbEmpresa.value = Empresa:
|
||||
conferenciaController.lbPuntoVenta.value = Ponto de Venda (Agência):
|
||||
conferenciaController.msg.confirmarChegadaMalote = Chegada Malote confirmado com sucesso
|
||||
|
@ -6899,6 +6909,7 @@ conferenciaController.MSG.eventosFinanceirosSemConferenciaFormapago = Existem Ev
|
|||
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.MSG.conferenciaObrigatoria = O campo Data de Movimento deve ser preenchido.
|
||||
conferenciaController.lhDebitoCredito.value = D/C
|
||||
conferenciaController.lbDebitoCredito.value = Débito/Crédito
|
||||
conferenciaController.lbComportamentoData.value = Comportamento Data
|
||||
|
@ -6957,7 +6968,7 @@ editarLogConferenciaComissaoController.btnAdicionarObservacaoLog.tooltiptext = A
|
|||
# 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.window.title = Tipo Informativo Comissão
|
||||
busquedaTipoInformativoComissao.txtNombre.label = Nome
|
||||
busquedaTipoInformativoComissaoController.lhId.label = ID
|
||||
busquedaTipoInformativoComissaoController.lhDes.label = Descrição
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<window id="winBusquedaConferenciaComissao"
|
||||
title="${c:l('busquedaConferenciaComissaoController.window.title')}"
|
||||
apply="${busquedaConferenciaComissaoController}"
|
||||
contentStyle="overflow:auto" height="190px" width="380px"
|
||||
contentStyle="overflow:auto" height="242px" width="380px"
|
||||
border="normal">
|
||||
<toolbar>
|
||||
<button id="btnCerrar"
|
||||
|
@ -24,6 +24,19 @@
|
|||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaConferenciaComissaoController.lbTipoData.value')}" />
|
||||
<radiogroup Id="rdTipoData">
|
||||
<hbox align="center">
|
||||
<radio Id="rdTipoMesAno" value="1" selected="true"
|
||||
label="${c:l('busquedaConferenciaComissaoController.lbTipoDataMesAno.value')}" />
|
||||
<radio Id="rdTipoDataInicialFinal" value="2"
|
||||
label="${c:l('busquedaConferenciaComissaoController.lbTipoDataDataInicialFinal.value')}" />
|
||||
</hbox>
|
||||
</radiogroup>
|
||||
</row>
|
||||
|
||||
<row id="rowCompetencia">
|
||||
<label
|
||||
value="${c:l('busquedaConferenciaComissaoController.lbCompetencia.label')}" />
|
||||
<hbox>
|
||||
|
@ -33,6 +46,20 @@
|
|||
value="${c:l('busquedaConferenciaComissaoController.lbCompetenciaLayout.label')}" />
|
||||
</hbox>
|
||||
</row>
|
||||
|
||||
<row visible="false" id="rowDataInicial">
|
||||
<label
|
||||
value="${c:l('relatorioLinhasHorarioController.lbDataIni.value')}" />
|
||||
<datebox id="datInicial" width="40%"
|
||||
format="dd/MM/yyyy" maxlength="10" />
|
||||
</row>
|
||||
<row visible="false" id="rowDataFinal">
|
||||
<label
|
||||
value="${c:l('relatorioLinhasHorarioController.lbDataFin.value')}" />
|
||||
<datebox id="datFinal" width="40%"
|
||||
format="dd/MM/yyyy" maxlength="10" />
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaConferenciaComissaoController.lbEmpresa.value')}" />
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<window id="winConferencia"
|
||||
title="${c:l('conferenciaController.window.title')}"
|
||||
apply="${conferenciaController}" contentStyle="overflow:auto"
|
||||
height="630px" width="1175px" border="normal">
|
||||
height="630px" width="1275px" border="normal">
|
||||
|
||||
<style>
|
||||
.existeConferencia .z-tab-text { color: #FF0000; }
|
||||
|
@ -229,6 +229,9 @@
|
|||
<listheader
|
||||
label="${c:l('conferenciaController.lhConferido.value')}"
|
||||
width="70px" align="center" sort="auto(orderExigeConferencia)" />
|
||||
<listheader
|
||||
label="${c:l('conferenciaController.lbDatamovimento2.label')}"
|
||||
width="70px" align="center" sort="auto(orderDataMovimento)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('conferenciaController.lhNombpasajero.value')}"
|
||||
sort="auto(nombpasajero)" />
|
||||
|
@ -304,6 +307,9 @@
|
|||
<listheader
|
||||
label="${c:l('conferenciaController.lhConferido.value')}"
|
||||
width="70px" align="center" sort="auto(orderExigeConferencia)" />
|
||||
<listheader
|
||||
label="${c:l('conferenciaController.lbDatamovimento2.label')}"
|
||||
width="70px" align="center" sort="auto(orderDataMovimento)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('conferenciaController.lhNombpasajero.value')}"
|
||||
sort="auto(nombpasajero)" />
|
||||
|
@ -378,6 +384,9 @@
|
|||
<listheader
|
||||
label="${c:l('conferenciaController.lhConferido.value')}"
|
||||
width="70px" align="center" sort="auto(orderExigeConferencia)" />
|
||||
<listheader
|
||||
label="${c:l('conferenciaController.lbDatamovimento2.label')}"
|
||||
width="70px" align="center" sort="auto(orderDataMovimento)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('conferenciaController.lhNombpasajero.value')}"
|
||||
sort="auto(nombpasajero)" />
|
||||
|
@ -474,6 +483,9 @@
|
|||
<listheader
|
||||
label="${c:l('conferenciaController.lhConferido.value')}"
|
||||
width="70px" align="center" sort="auto(orderExigeConferencia)" />
|
||||
<listheader
|
||||
label="${c:l('conferenciaController.lbDatamovimento2.label')}"
|
||||
width="70px" align="center" sort="auto(orderDataMovimento)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('conferenciaController.lhNombpasajero.value')}"
|
||||
sort="auto(nombpasajero)" />
|
||||
|
@ -570,6 +582,9 @@
|
|||
<listheader
|
||||
label="${c:l('conferenciaController.lhConferido.value')}"
|
||||
width="70px" align="center" sort="auto(orderExigeConferencia)" />
|
||||
<listheader
|
||||
label="${c:l('conferenciaController.lbDatamovimento2.label')}"
|
||||
width="70px" align="center" sort="auto(orderDataMovimento)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('conferenciaController.lhNombpasajero.value')}"
|
||||
sort="auto(nombpasajero)" />
|
||||
|
@ -651,6 +666,9 @@
|
|||
<listheader
|
||||
label="${c:l('conferenciaController.lhConferido.value')}"
|
||||
width="70px" align="center" sort="auto(orderExigeConferencia)" />
|
||||
<listheader
|
||||
label="${c:l('conferenciaController.lbDatamovimento2.label')}"
|
||||
width="70px" align="center" sort="auto(orderDataMovimento)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('conferenciaController.lhNombpasajero.value')}"
|
||||
sort="auto(nombpasajero)" />
|
||||
|
@ -733,6 +751,9 @@
|
|||
<listheader
|
||||
label="${c:l('conferenciaController.lhConferido.value')}"
|
||||
width="70px" align="center" sort="auto(orderExigeConferencia)" />
|
||||
<listheader
|
||||
label="${c:l('conferenciaController.lbDatamovimento2.label')}"
|
||||
width="70px" align="center" sort="auto(orderDataMovimento)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('conferenciaController.lhNombpasajero.value')}"
|
||||
sort="auto(nombpasajero)" />
|
||||
|
@ -835,6 +856,9 @@
|
|||
<listheader
|
||||
label="${c:l('conferenciaController.lhConferido.value')}"
|
||||
width="70px" align="center" sort="auto(orderExigeConferencia)" />
|
||||
<listheader
|
||||
label="${c:l('conferenciaController.lbDatamovimento2.label')}"
|
||||
width="70px" align="center" sort="auto(orderDataMovimento)" />
|
||||
<listheader
|
||||
label="${c:l('conferenciaController.lhNumFolioSistema.value')}"
|
||||
align="center" sort="auto(numFolioSistema)" />
|
||||
|
@ -920,6 +944,9 @@
|
|||
<listheader
|
||||
label="${c:l('conferenciaController.lhConferido.value')}"
|
||||
width="70px" align="center" sort="auto(orderExigeConferencia)" />
|
||||
<listheader
|
||||
label="${c:l('conferenciaController.lbDatamovimento2.label')}"
|
||||
width="70px" align="center" sort="auto(orderDataMovimento)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('conferenciaController.lhNumoperacion.value')}"
|
||||
sort="auto(numoperacion)" />
|
||||
|
@ -984,6 +1011,13 @@
|
|||
<column width="40%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row visible="false" id="rowDataMovimento">
|
||||
<label value="${c:l('conferenciaController.lbDatamovimento2.label')}" />
|
||||
<combobox id="cmbConferenciaDia"
|
||||
width="70%" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"/>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('conferenciaController.lhSituacaoLog.value')}" />
|
||||
|
@ -1070,6 +1104,9 @@
|
|||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('conferenciaController.lhSituacaoLog.value')}"
|
||||
sort="auto(statusDescricao)" />
|
||||
<listheader
|
||||
label="${c:l('conferenciaController.lbDatamovimento2.label')}"
|
||||
width="70px" align="center" sort="auto(orderDataMovimento)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('conferenciaController.lhBoleto.value')}"
|
||||
sort="auto(numfoliosistema)" />
|
||||
|
|
Loading…
Reference in New Issue