/** * Set Warehouse * * @param M_Warehouse_ID warehouse */ private void setWarehouse(int M_Warehouse_ID) { for (int i = 0; i < pickWarehouse.getItemCount(); i++) { KeyNamePair kn = (KeyNamePair) pickWarehouse.getItemAt(i); if (kn.getKey() == M_Warehouse_ID) { pickWarehouse.setSelectedIndex(i); return; } } } // setWarehouse
/** * Set PriceList * * @param M_PriceList_Version_ID price list */ private void setPriceListVersion(int M_PriceList_Version_ID) { log.config("M_PriceList_Version_ID=" + M_PriceList_Version_ID); for (int i = 0; i < pickPriceList.getItemCount(); i++) { KeyNamePair kn = (KeyNamePair) pickPriceList.getItemAt(i); if (kn.getKey() == M_PriceList_Version_ID) { pickPriceList.setSelectedIndex(i); return; } } log.fine("NOT found"); } // setPriceList