fixes bug 7048
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@52104 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
43daee615a
commit
e5275c1348
|
@ -389,10 +389,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
|
||||||
aplicarMascara();
|
|
||||||
|
|
||||||
lsCategoriaBloquear = categoriaService.obtenerTodasCategoriasVisibles();
|
lsCategoriaBloquear = categoriaService.obtenerTodasCategoriasVisibles();
|
||||||
lsEmpresasBloquear = empresaService.obtenerTodos();
|
lsEmpresasBloquear = empresaService.obtenerTodos();
|
||||||
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
|
@ -409,6 +405,17 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
lsTipoPuntoVenta = tipoPuntoVentaService.obtenerTodosExceto(TipoPuntoVenta.TODOS);
|
lsTipoPuntoVenta = tipoPuntoVentaService.obtenerTodosExceto(TipoPuntoVenta.TODOS);
|
||||||
lsUsuarioBancario = usuarioBancarioService.obtenerTodos();
|
lsUsuarioBancario = usuarioBancarioService.obtenerTodos();
|
||||||
lsLogFiles = getLogFiles();
|
lsLogFiles = getLogFiles();
|
||||||
|
puntoVenta = (PuntoVenta) Executions.getCurrent().getArg().get("puntoVenta");
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
cmbBanco.addEventListener("onAfterRender", new org.zkoss.zk.ui.event.EventListener(){
|
||||||
|
public void onEvent(Event event) throws Exception{
|
||||||
|
cmbBanco.setSelectedIndex(lsBanco.indexOf(puntoVenta.getAgenciaId().getInstiFinanceiraId()));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
aplicarMascara();
|
||||||
|
|
||||||
popularCombobox(cmbTipoConta, cmbPessoa, cmbForm, cmbLote, cmbPosicao, cmbReceita, cmbEmpresas, cmbCategorias);
|
popularCombobox(cmbTipoConta, cmbPessoa, cmbForm, cmbLote, cmbPosicao, cmbReceita, cmbEmpresas, cmbCategorias);
|
||||||
|
|
||||||
|
@ -428,7 +435,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// txtCP.setDisabled(true);
|
// txtCP.setDisabled(true);
|
||||||
puntoVenta = (PuntoVenta) Executions.getCurrent().getArg().get("puntoVenta");
|
|
||||||
|
|
||||||
fechamentoParamptovtaList.setItemRenderer(new FechamentoParamptovtaListItemRenderer());
|
fechamentoParamptovtaList.setItemRenderer(new FechamentoParamptovtaListItemRenderer());
|
||||||
if (puntoVenta.getPuntoventaId() != null) {
|
if (puntoVenta.getPuntoventaId() != null) {
|
||||||
|
@ -494,8 +501,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
if (puntoVenta.getAgenciaId() != null) {
|
if (puntoVenta.getAgenciaId() != null) {
|
||||||
|
|
||||||
if (puntoVenta.getAgenciaId().getInstiFinanceiraId() != null) {
|
if (puntoVenta.getAgenciaId().getInstiFinanceiraId() != null) {
|
||||||
cmbBanco.setText(puntoVenta.getAgenciaId().getInstiFinanceiraId().getCodigo());
|
txtNomeBanco.setText(puntoVenta.getAgenciaId().getInstiFinanceiraId().getCodigo());
|
||||||
txtNomeBanco.setText(puntoVenta.getAgenciaId().getInstiFinanceiraId().getNome());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (puntoVenta.getAgenciaId().getPessoa() != null) {
|
if (puntoVenta.getAgenciaId().getPessoa() != null) {
|
||||||
|
@ -840,7 +846,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
public void onSelect$cmbBanco() {
|
public void onSelect$cmbBanco() {
|
||||||
InstiFinanceira banco = (InstiFinanceira) cmbBanco.getSelectedItem().getValue();
|
InstiFinanceira banco = (InstiFinanceira) cmbBanco.getSelectedItem().getValue();
|
||||||
txtNomeBanco.setValue(banco.getNome());
|
txtNomeBanco.setValue(banco.getCodigo());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onSelect$cmbEmpresaPtoVta() {
|
public void onSelect$cmbEmpresaPtoVta() {
|
||||||
|
|
|
@ -457,15 +457,14 @@
|
||||||
<h:tr>
|
<h:tr>
|
||||||
|
|
||||||
<h:td>
|
<h:td>
|
||||||
<combobox id="cmbBanco"
|
<textbox id="txtNomeBanco" width="50px" disabled="true" />
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
||||||
width="60%" mold="rounded" buttonVisible="true"
|
|
||||||
model="@{winEditarPuntoVenta$composer.lsBanco}" />
|
|
||||||
</h:td>
|
</h:td>
|
||||||
<h:td>
|
<h:td>
|
||||||
<textbox id="txtNomeBanco"
|
<combobox id="cmbBanco"
|
||||||
width="215px" disabled="true" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="353px" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winEditarPuntoVenta$composer.lsBanco}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
|
|
||||||
</h:tr>
|
</h:tr>
|
||||||
|
|
Loading…
Reference in New Issue