Package org.compiere.util

Examples of org.compiere.util.KeyNamePair


  protected void saveSelectionDetail()
  {
    //  publish for Callout to read
    Integer ID = getSelectedRowKey();
    Env.setContext(Env.getCtx(), p_WindowNo, Env.TAB_INFO, "M_Product_ID", ID == null ? "0" : ID.toString());
    KeyNamePair kn = (KeyNamePair)pickPriceList.getSelectedItem();
    Env.setContext(Env.getCtx(), p_WindowNo, Env.TAB_INFO, "M_PriceList_Version_ID", kn.getID());
    kn = (KeyNamePair)pickWarehouse.getSelectedItem();
    Env.setContext(Env.getCtx(), p_WindowNo, Env.TAB_INFO, "M_Warehouse_ID", kn.getID());
    //
    if (m_M_AttributeSetInstance_ID == -1//  not selected
    {
      Env.setContext(Env.getCtx(), p_WindowNo, Env.TAB_INFO, "M_AttributeSetInstance_ID", "0");
      Env.setContext(Env.getCtx(), p_WindowNo, Env.TAB_INFO, "M_Locator_ID", "0");
View Full Code Here


  /**
   * @return selected product category ID
   */
  public int getM_Product_Category_ID() {
    int M_Product_Category_ID = 0;
    KeyNamePair pc = (KeyNamePair)pickProductCategory.getSelectedItem();
    if (pc != null)
      M_Product_Category_ID = pc.getKey();
    return M_Product_Category_ID;
  }
View Full Code Here

TOP

Related Classes of org.compiere.util.KeyNamePair

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.