Examples of MLookup


Examples of org.compiere.model.MLookup

   *    Column_ID from C_Order
   *  @throws Exception if Lookups cannot be initialized
   */
  public void dynInit() throws Exception
  {
    MLookup orgL = MLookupFactory.get (Env.getCtx(), m_WindowNo, 0, 2163, DisplayType.TableDir);
    fOrg = new VLookup ("AD_Org_ID", false, false, true, orgL);
    //  lOrg.setText(Msg.translate(Env.getCtx(), "AD_Org_ID"));
    fOrg.addVetoableChangeListener(this);
   
    MLookup docActionL = MLookupFactory.get(Env.getCtx(), m_WindowNo, 3494 /* C_Invoice.DocStatus */,
        DisplayType.List, Env.getLanguage(Env.getCtx()), "DocAction", 135 /* _Document Action */,
        false, "AD_Ref_List.Value IN ('CO','PR')");
    docAction = new VLookup("DocAction", true, false, true,docActionL);
    //  lDcoACtion.setText((Msg.translate(Env.getCtx(), "DocAction")););
    docAction.addVetoableChangeListener(this);
   
    //
    MLookup bpL = MLookupFactory.get (Env.getCtx(), m_WindowNo, 0, 2762, DisplayType.Search);
    fBPartner = new VLookup ("C_BPartner_ID", false, false, true, bpL);
  //  lBPartner.setText(Msg.translate(Env.getCtx(), "C_BPartner_ID"));
    fBPartner.addVetoableChangeListener(this);
   
    //Document Type Sales Order/Vendor RMA
View Full Code Here

Examples of org.compiere.model.MLookup

   */
  private void preInit() throws Exception
  {
    Properties ctx = getCtx();
    Language language = Language.getLoginLanguage(); // Base Language
    MLookup m_fieldProduct = MLookupFactory.get(ctx, m_WindowNo,
        MColumn.getColumn_ID(MProduct.Table_Name, "M_Product_ID"),
        DisplayType.Search, language, MProduct.COLUMNNAME_M_Product_ID, 0, false,
        " M_Product.IsSummary = 'N'");
    fieldProduct = new VLookup ("M_Product_ID", false, false, true,  m_fieldProduct) {
      private static final long serialVersionUID = 1L;
View Full Code Here

Examples of org.compiere.model.MLookup

   */
  protected void initBPartner (boolean forInvoice) throws Exception
  {
    //  load BPartner
    int AD_Column_ID = 3499;        //  C_Invoice.C_BPartner_ID
    MLookup lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, AD_Column_ID, DisplayType.Search);
    bPartnerField = new VLookup ("C_BPartner_ID", true, false, true, lookup);
    //
    int C_BPartner_ID = Env.getContextAsInt(Env.getCtx(), p_WindowNo, "C_BPartner_ID");
    bPartnerField.setValue(new Integer(C_BPartner_ID));

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.