Package org.compiere.model

Examples of org.compiere.model.MRole


      log.log(Level.SEVERE, "", e);
    }
   
    createMenu();
   
    MRole role = MRole.getDefault();
    m_curGC.query (m_onlyCurrentRows, m_onlyCurrentDays, role.getMaxQueryRecords());
    m_curTab.navigateCurrent();     //  updates counter
    m_curGC.dynamicDisplay(0);
  }
View Full Code Here


   @param mTab tab
   *  @return query or null
   */
  private MQuery initialQuery (MQuery query, GridTab mTab)
  {
    MRole role = MRole.getDefault(m_ctx, false);
    //  We have a (Zoom) query
    if (query != null && query.isActive() && !role.isQueryMax(query.getRecordCount()))
      return query;
    //
    StringBuffer where = new StringBuffer(Env.parseContext(m_ctx, m_curWindowNo, mTab.getWhereExtended(), false));
    //  Query automatically if high volume and no query
    boolean require = mTab.isHighVolume();
View Full Code Here

      //  Refresh only current row when tab is current
      if (back && m_curTab.isCurrent())
        m_curTab.dataRefresh();
      else  //  Requery & autoSize
      {
        MRole role = MRole.getDefault();
        m_curGC.query (m_onlyCurrentRows, m_onlyCurrentDays, role.getMaxQueryRecords());
        /*
        if (m_curGC.isNeedToSaveParent())
        {
          // there is a problem, so we go back
          ADialog.error(m_curWindowNo, this, "SaveParentFirst");
View Full Code Here

        }
        else
          m_onlyCurrentRows = false;
        //
        m_curTab.setQuery(null)//  reset previous queries
        MRole role = MRole.getDefault();
        int maxRows = role.getMaxQueryRecords();
        //
        log.config("OnlyCurrent=" + m_onlyCurrentRows
          + ", Days=" + m_onlyCurrentDays
          + ", MaxRows=" + maxRows);
        m_curGC.query(m_onlyCurrentRows, m_onlyCurrentDays, maxRows );   //  autoSize
View Full Code Here

   *  Get Query - Retrieve result
   *  @return String representation of query
   */
  public MQuery getQuery()
  {
    MRole role = MRole.getDefault();
    if (role.isQueryMax(getTotalRecords()) && !m_isCancel)
    {
      m_query = MQuery.getNoRecordQuery (m_tableName, false);
      m_total = 0;
      log.warning("Query - over max");
    }
View Full Code Here

    }
    finally {
      DB.close(rs, stmt);
      rs = null; stmt = null;
    }
    MRole role = MRole.getDefault();
    //  No Records
    if (m_total == 0 && alertZeroRecords)
      ADialog.info(m_targetWindowNo, this, "FindZeroRecords");
    //  More then allowed
    else if (query != null && role.isQueryMax(m_total))
    {
      ADialog.error(m_targetWindowNo, this, "FindOverMax",
        m_total + " > " + role.getMaxQueryRecords());
      m_total = 0; // return 0 if more then allowed - teo_sarca [ 1708717 ]
    }
    else
      log.config("#" + m_total);
    //
View Full Code Here

TOP

Related Classes of org.compiere.model.MRole

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.