public Hashtable<Integer, String> getTipoAlmacenHashTable() { if (tipoAlmacenHashTable == null) { tipoAlmacenHashTable = new Hashtable<Integer, String>(); tipoAlmacenHashTable.put( Constants.ALMACEN_LINEA, Messages.getLocalizedString("COMMON_ALMACEN_LINEA")); tipoAlmacenHashTable.put( Constants.ALMACEN_OPORTUNIDAD, Messages.getLocalizedString("COMMON_ALMACEN_OPORTUNIDAD")); tipoAlmacenHashTable.put( Constants.ALMACEN_REGALIAS, Messages.getLocalizedString("COMMON_ALMACEN_REGALIAS")); } return tipoAlmacenHashTable; }
public List<SelectItem> getClienteList() { List<Cliente> clienteList = clienteJPAController.findAllEntities(); List<SelectItem> resultList = new ArrayList<SelectItem>(); resultList.add(new SelectItem(null, Messages.getLocalizedString("COMMON_SELECTONEITEM"))); for (Cliente cliente : clienteList) { resultList.add(new SelectItem(cliente.getId(), cliente.getRazonSocial())); } return resultList; }
public List<SelectItem> getMetodoDePagoList() { List<MetodoDePago> metodoDePagoList = metodoDePagoJPAController.findAllEntities(); List<SelectItem> resultList = new ArrayList<SelectItem>(); resultList.add(new SelectItem(null, Messages.getLocalizedString("COMMON_SELECTONEITEM"))); for (MetodoDePago metodoDePago : metodoDePagoList) { resultList.add(new SelectItem(metodoDePago.getId(), metodoDePago.getDescripcion())); } return resultList; }
public List<SelectItem> getFormaDePagoList() { List<FormaDePago> formaDePagoList = formaDePagoJpaController.findFormaDePagoEntities(); List<SelectItem> resultList = new ArrayList<SelectItem>(); resultList.add(new SelectItem(null, Messages.getLocalizedString("COMMON_SELECTONEITEM"))); for (FormaDePago formaDePago : formaDePagoList) { resultList.add(new SelectItem(formaDePago.getId(), formaDePago.getDescripcion())); } return resultList; }
public List<SelectItem> getEntidadFederativaList() { if (entidadFederativaList == null) { entidadFederativaList = ((PoblacionJPAController) entityJPAController).findAllEntidadFederativa(); } List<SelectItem> resultList = new ArrayList<SelectItem>(); resultList.add(new SelectItem(null, Messages.getLocalizedString("COMMON_SELECTONEITEM"))); for (String ef : entidadFederativaList) { resultList.add(new SelectItem(ef, ef.toUpperCase())); } return resultList; }
public List<SelectItem> getCodigoPostalList() { List<String> codigoPostalList = null; List<SelectItem> resultList = new ArrayList<SelectItem>(); if (municipioODelegacion != null && municipioODelegacion.length() > 1) { codigoPostalList = ((PoblacionJPAController) entityJPAController).findAllCodigoPostal(municipioODelegacion); resultList.add(new SelectItem(null, Messages.getLocalizedString("COMMON_SELECTONEITEM"))); for (String cp : codigoPostalList) { resultList.add(new SelectItem(cp, cp.toUpperCase())); } } return resultList; }
public List<SelectItem> getMunicipioODelegacionList() { List<String> municipioODelegacionList = null; List<SelectItem> resultList = new ArrayList<SelectItem>(); if (entidadFederativa != null && entidadFederativa.length() > 1) { municipioODelegacionList = ((PoblacionJPAController) entityJPAController) .findAllMunicipioODelegacion(entidadFederativa); resultList.add(new SelectItem(null, Messages.getLocalizedString("COMMON_SELECTONEITEM"))); for (String mod : municipioODelegacionList) { resultList.add(new SelectItem(mod, mod.toUpperCase())); } } return resultList; }
public List<SelectItem> getPoblacionByMunicipioODelegacion() { List<SelectItem> resultList = new ArrayList<SelectItem>(); if (municipioODelegacion != null && municipioODelegacion.length() > 1) { poblacionByMunicipioODelegacionList = ((PoblacionJPAController) entityJPAController) .findAllPoblacionByMunicipioODelegacion(municipioODelegacion); resultList.add(new SelectItem(null, Messages.getLocalizedString("COMMON_SELECTONEITEM"))); for (Poblacion p : poblacionByMunicipioODelegacionList) { resultList.add( new SelectItem( p.getId(), "[" + p.getCodigoPostal() + "] " + p.getNombre().toUpperCase())); } } return resultList; }