fixes bug #7529
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@56545 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
6a646cdb9c
commit
6217b72675
|
@ -76,7 +76,12 @@ public class BusquedaConferenciaComissaoController extends MyGenericForwardCompo
|
||||||
Messagebox.show(Labels.getLabel("MSG.Error.invalida.competencia"),
|
Messagebox.show(Labels.getLabel("MSG.Error.invalida.competencia"),
|
||||||
Labels.getLabel("conferenciaComissaoController.window.title"),
|
Labels.getLabel("conferenciaComissaoController.window.title"),
|
||||||
Messagebox.OK, Messagebox.ERROR);
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(cmbPuntoVenta.getSelectedItem().getValue() == null || ((PuntoVenta)cmbPuntoVenta.getSelectedItem().getValue()).getPuntoventaId() == -1) {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.Error.necessita.puntoVenta"),
|
||||||
|
Labels.getLabel("conferenciaComissaoController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -139,6 +139,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
private MyListbox conferenciaList;
|
private MyListbox conferenciaList;
|
||||||
|
|
||||||
private Radio rDebito;
|
private Radio rDebito;
|
||||||
|
private Radio rCredito;
|
||||||
|
|
||||||
private ResumoComissao resumo;
|
private ResumoComissao resumo;
|
||||||
private BigDecimal totalBilhetesManual;
|
private BigDecimal totalBilhetesManual;
|
||||||
|
@ -236,6 +237,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
eventosFinanceirosList.addEventListener("onDoubleClick", new EventListener() {
|
eventosFinanceirosList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onEvent(Event event) throws Exception {
|
public void onEvent(Event event) throws Exception {
|
||||||
|
@ -244,6 +246,22 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
cmbSituacaoLog.addEventListener("onSelect", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
StatusLogConferencia status = StatusLogConferencia.getStatusLogConferencia((Integer)cmbSituacaoLog.getSelectedItem().getValue());
|
||||||
|
if(StatusLogConferencia.CONFERIDO.equals(status)) {
|
||||||
|
txtPrecoLog.setDisabled(true);
|
||||||
|
rDebito.setDisabled(true);
|
||||||
|
rCredito.setDisabled(true);
|
||||||
|
} else if(StatusLogConferencia.PENDENCIA.equals(status)) {
|
||||||
|
txtPrecoLog.setDisabled(false);
|
||||||
|
rDebito.setDisabled(false);
|
||||||
|
rCredito.setDisabled(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
ajustarListsBilhetes();
|
ajustarListsBilhetes();
|
||||||
|
|
||||||
rDebito.setChecked(Boolean.TRUE);
|
rDebito.setChecked(Boolean.TRUE);
|
||||||
|
|
|
@ -89,25 +89,37 @@ public class EditarLogConfenciaComissaoController extends MyGenericForwardCompos
|
||||||
if(boletoComissao != null) {
|
if(boletoComissao != null) {
|
||||||
logConferencia.setBoletoId(boletoComissao.getBoletoId());
|
logConferencia.setBoletoId(boletoComissao.getBoletoId());
|
||||||
logConferencia.setTipo(TipoLogConferencia.BOLETO);
|
logConferencia.setTipo(TipoLogConferencia.BOLETO);
|
||||||
boletoComissao.setStatus(logConferencia.getStatus().getValue());
|
|
||||||
boletoComissao.setConferido(Boolean.TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(eventosFinanceiros != null) {
|
if(eventosFinanceiros != null) {
|
||||||
logConferencia.setEventoextraId(eventosFinanceiros.getEventoextraId());
|
logConferencia.setEventoextraId(eventosFinanceiros.getEventoextraId());
|
||||||
logConferencia.setTipo(TipoLogConferencia.EVENTO_FINANCEIRO);
|
logConferencia.setTipo(TipoLogConferencia.EVENTO_FINANCEIRO);
|
||||||
eventosFinanceiros.setStatus(logConferencia.getStatus().getValue());
|
|
||||||
eventosFinanceiros.setConferido(Boolean.TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ocd != null) {
|
if(ocd != null) {
|
||||||
logConferencia.setOcdId(ocd.getOcdId());
|
logConferencia.setOcdId(ocd.getOcdId());
|
||||||
logConferencia.setTipo(TipoLogConferencia.OCD);
|
logConferencia.setTipo(TipoLogConferencia.OCD);
|
||||||
ocd.setStatus(logConferencia.getStatus().getValue());
|
|
||||||
ocd.setConferido(Boolean.TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
conferenciaComissaoService.suscribirLogConferencia(logConferencia);
|
logConferencia = conferenciaComissaoService.suscribirLogConferencia(logConferencia);
|
||||||
|
|
||||||
|
if(boletoComissao != null) {
|
||||||
|
boletoComissao.setStatus(logConferencia.getStatus().getValue());
|
||||||
|
boletoComissao.setConferido(Boolean.TRUE);
|
||||||
|
boletoComissao.setLogconferenciaId(logConferencia.getLogconferenciaId());
|
||||||
|
}
|
||||||
|
|
||||||
|
if(eventosFinanceiros != null) {
|
||||||
|
eventosFinanceiros.setStatus(logConferencia.getStatus().getValue());
|
||||||
|
eventosFinanceiros.setConferido(Boolean.TRUE);
|
||||||
|
eventosFinanceiros.setLogconferenciaId(logConferencia.getLogconferenciaId());
|
||||||
|
}
|
||||||
|
|
||||||
|
if(ocd != null) {
|
||||||
|
ocd.setStatus(logConferencia.getStatus().getValue());
|
||||||
|
ocd.setConferido(Boolean.TRUE);
|
||||||
|
ocd.setLogconferenciaId(logConferencia.getLogconferenciaId());
|
||||||
|
}
|
||||||
|
|
||||||
atualizarLogConferenciaList(logConferencia);
|
atualizarLogConferenciaList(logConferencia);
|
||||||
atualizarList();
|
atualizarList();
|
||||||
|
|
|
@ -50,6 +50,7 @@ MSG.necesita.contaContable = Cuenta contable obligatória
|
||||||
MSG.necesita.tipoEvento = Tipo de evento obligatório
|
MSG.necesita.tipoEvento = Tipo de evento obligatório
|
||||||
MSG.necesita.formaPago = Forma de pago obligatória
|
MSG.necesita.formaPago = Forma de pago obligatória
|
||||||
MSG.Error.invalida.competencia = Competência inválida
|
MSG.Error.invalida.competencia = Competência inválida
|
||||||
|
MSG.Error.necessita.puntoVenta = Punto Venta obligatório
|
||||||
|
|
||||||
# Labels Defaul
|
# Labels Defaul
|
||||||
lb.id = ID
|
lb.id = ID
|
||||||
|
|
|
@ -52,6 +52,7 @@ MSG.necesita.contaContable = Conta Contábil Obrigatória
|
||||||
MSG.necesita.tipoEvento = Tipo de evento Obrigatório
|
MSG.necesita.tipoEvento = Tipo de evento Obrigatório
|
||||||
MSG.necesita.formaPago = Forma de Pagamento Obrigatória
|
MSG.necesita.formaPago = Forma de Pagamento Obrigatória
|
||||||
MSG.Error.invalida.competencia = Competência inválida
|
MSG.Error.invalida.competencia = Competência inválida
|
||||||
|
MSG.Error.necessita.puntoVenta = Ponto de Venda (Agência) Obrigatório
|
||||||
|
|
||||||
# Labels Defaul
|
# Labels Defaul
|
||||||
lb.id = ID
|
lb.id = ID
|
||||||
|
|
|
@ -48,7 +48,8 @@
|
||||||
<combobox id="cmbPuntoVenta"
|
<combobox id="cmbPuntoVenta"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
selectedItem="@{winBusquedaConferenciaComissao$composer.puntoVenta}" />
|
selectedItem="@{winBusquedaConferenciaComissao$composer.puntoVenta}"
|
||||||
|
constraint="no empty" />
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
|
|
Loading…
Reference in New Issue