gleimar 2012-11-26 17:40:12 +00:00
parent 2fe14d2766
commit ecea2ed6ab
2 changed files with 10 additions and 21 deletions

View File

@ -130,7 +130,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private List<TipoPuntoVenta> lsTipoPuntoVenta; private List<TipoPuntoVenta> lsTipoPuntoVenta;
private List<Moneda> lsMoneda; private List<Moneda> lsMoneda;
private List<Colonia> lsColonia; private List<Colonia> lsColonia;
private List<Ciudad> lsCiudad;
private List<Nodo> lsNodos; private List<Nodo> lsNodos;
private List<FormaPago> lsFormaPago; private List<FormaPago> lsFormaPago;
private List<FormaPagoDet> lsFormaPagoDet; private List<FormaPagoDet> lsFormaPagoDet;
@ -257,7 +256,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
lsEmpresas = empresaService.obtenerIndTipo1(); lsEmpresas = empresaService.obtenerIndTipo1();
lsMoneda = monedaService.obtenerTodos(); lsMoneda = monedaService.obtenerTodos();
lsBanco = ptovtaBancoService.obtenerTodos(); lsBanco = ptovtaBancoService.obtenerTodos();
lsCiudad = ciudadService.obtenerTodos();
lsColonia = new ArrayList<Colonia>(); lsColonia = new ArrayList<Colonia>();
lsNodos = nodoService.obtenerTodos(); lsNodos = nodoService.obtenerTodos();
lsFormaPago = formaPagoService.obtenerTodos(); lsFormaPago = formaPagoService.obtenerTodos();
@ -266,6 +264,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
try { try {
txtCP.setDisabled(true); txtCP.setDisabled(true);
puntoVenta = (PuntoVenta) Executions.getCurrent().getArg().get("puntoVenta"); puntoVenta = (PuntoVenta) Executions.getCurrent().getArg().get("puntoVenta");
@ -721,8 +720,13 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
puntoVenta.setAgenciaId(null); puntoVenta.setAgenciaId(null);
}else{ }else{
puntoVenta.getAgenciaId().setInstiFinanceiraId((InstiFinanceira) cmbBanco.getSelectedItem().getValue()); puntoVenta.getAgenciaId().setInstiFinanceiraId((InstiFinanceira) cmbBanco.getSelectedItem().getValue());
if (cmbPessoa.getSelectedItem() != null){
puntoVenta.getAgenciaId().setPessoa((String) cmbPessoa.getSelectedItem().getValue()); puntoVenta.getAgenciaId().setPessoa((String) cmbPessoa.getSelectedItem().getValue());
}
if (cmbTipoConta.getSelectedItem() != null){
puntoVenta.getAgenciaId().setTipo((String) cmbTipoConta.getSelectedItem().getValue()); puntoVenta.getAgenciaId().setTipo((String) cmbTipoConta.getSelectedItem().getValue());
}
puntoVenta.getAgenciaId().setActivo(Boolean.TRUE); puntoVenta.getAgenciaId().setActivo(Boolean.TRUE);
puntoVenta.getAgenciaId().setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); puntoVenta.getAgenciaId().setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
puntoVenta.getAgenciaId().setFecmodif(Calendar.getInstance().getTime()); puntoVenta.getAgenciaId().setFecmodif(Calendar.getInstance().getTime());
@ -824,7 +828,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
} }
} }
} catch (Exception ex) { } catch (Exception ex) {
log.error("editarPuntoVentaController: " + ex); log.error("editarPuntoVentaController: ", ex);
Messagebox.show( Messagebox.show(
Labels.getLabel("MSG.Error"), Labels.getLabel("MSG.Error"),
Labels.getLabel("editarPuntoVentaController.window.title"), Labels.getLabel("editarPuntoVentaController.window.title"),
@ -1655,21 +1659,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
this.lsColonia = lsColonia; this.lsColonia = lsColonia;
} }
/**
* @return the lsCiudad
*/
public List<Ciudad> getLsCiudad() {
return lsCiudad;
}
/**
* @param lsCiudad
* the lsCiudad to set
*/
public void setLsCiudad(List<Ciudad> lsCiudad) {
this.lsCiudad = lsCiudad;
}
/** /**
* @return the cmbColonia * @return the cmbColonia
*/ */

View File

@ -7,7 +7,7 @@
# <controler>. <id>. <propiedade> = XXX # <controler>. <id>. <propiedade> = XXX
#Versao do VentaBoleto: #Versao do VentaBoleto:
versao = ADM_20121123_1RC84 versao = ADM_20121126_1RC85
# MSG Defaut: # MSG Defaut:
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100 MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100