Package org.openbravo.model.ad.ui

Examples of org.openbravo.model.ad.ui.Window


      }
      if (context.equalsIgnoreCase("#User_Org")) {
        if (accessLevel == 4 || accessLevel == 6)
          return "'0'"; // force to be org *

        Window window;
        final boolean prevMode = OBContext.getOBContext().setInAdministratorMode(true);
        try {
          window = org.openbravo.dal.service.OBDal.getInstance().get(Window.class, strWindow);
          if (window.getWindowType().equals("T")) {
            String transactionalOrgs = OrgTree.getTransactionAllowedOrgs(retValue);
            if (transactionalOrgs.equals(""))
              // Will show no organizations into the organization's field of the transactional
              // windows
              return "'-1'";
View Full Code Here


        + getRoleId() + "'";
    final Query qry = SessionHandler.getInstance().createQuery(qryStr);
    @SuppressWarnings("unchecked")
    final List<WindowAccess> was = qry.list();
    for (final WindowAccess wa : was) {
      final Window w = wa.getWindow();
      final boolean writeAccess = wa.isEditableField();
      // get the ttabs
      final String tfQryStr = "select t from " + Tab.class.getName() + " t where window.id='"
          + w.getId() + "'";
      @SuppressWarnings("unchecked")
      final List<Tab> ts = SessionHandler.getInstance().createQuery(tfQryStr).list();
      for (final Tab t : ts) {
        final String tableName = t.getTable().getDBTableName();
        final Entity e = mp.getEntityByTableName(tableName);
View Full Code Here

TOP

Related Classes of org.openbravo.model.ad.ui.Window

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.