Package org.openbravo.erpCommon.utility

Examples of org.openbravo.erpCommon.utility.OBError


        xmlDocument.setParameter("leftTabs", lBar.manualTemplate());
      } catch (Exception ex) {
        throw new ServletException(ex);
      }
      {
        OBError myMessage = vars.getMessage("ReportSalesOrderInvoicedJasper");
        vars.removeMessage("ReportSalesOrderInvoicedJasper");
        if (myMessage != null) {
          xmlDocument.setParameter("messageType", myMessage.getType());
          xmlDocument.setParameter("messageTitle", myMessage.getTitle());
          xmlDocument.setParameter("messageMessage", myMessage.getMessage());
        }
      }

      xmlDocument.setParameter("calendar", vars.getLanguage().substring(0, 2));
      xmlDocument.setParameter("dateFrom", strdateFrom);
View Full Code Here


    // Checks if there is a conversion rate for each of the transactions of
    // the report
    ReportSalesOrderInvoicedData[] data = null;
    String strConvRateErrorMsg = "";
    OBError myMessage = null;
    myMessage = new OBError();
    try {
      data = ReportSalesOrderInvoicedData.select(this, strCurrencyId, Utility.getContext(this,
          vars, "#User_Client", "ReportSalesOrderInvoiced"), Utility.getContext(this, vars,
          "#AccessibleOrgTree", "ReportSalesOrderInvoiced"), strdateFrom, DateTimeData.nDaysAfter(
          this, strdateTo, "1"), strcBpartnerId, strmWarehouseId, strcProjectId, strmCategoryId,
          strProjectkind, strcRegionId, strProjectpublic, strProduct);
    } catch (ServletException ex) {
      myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
    }
    strConvRateErrorMsg = myMessage.getMessage();
    // If a conversion rate is missing for a certain transaction, an error
    // message window pops-up.
    if (!strConvRateErrorMsg.equals("") && strConvRateErrorMsg != null) {
      advisePopUp(request, response, "ERROR", Utility.messageBD(this, "NoConversionRateHeader",
          vars.getLanguage()), strConvRateErrorMsg);
View Full Code Here

    } catch (Exception ex) {
      throw new ServletException(ex);
    }
    {
      vars.removeMessage("InitialClientSetup");
      OBError myMessage = vars.getMessage("InitialClientSetup");
      if (myMessage != null) {
        xmlDocument.setParameter("messageType", myMessage.getType());
        xmlDocument.setParameter("messageTitle", myMessage.getTitle());
        xmlDocument.setParameter("messageMessage", myMessage.getMessage());
      }
      xmlDocument.setParameter("moduleTree", tree.toHtml());
      xmlDocument.setParameter("moduleTreeDescription", tree.descriptionToHtml());

      xmlDocument.setData("reportCurrency", "liststructure", MonedaComboData.select(this));
View Full Code Here

          strReplaceWith);
      xmlDocument.setParameter("leftTabs", lBar.manualTemplate());
    } catch (Exception ex) {
      throw new ServletException(ex);
    }
    OBError myMessage = new OBError();
    myMessage.setTitle("");
    if (log4j.isDebugEnabled())
      log4j.debug("InitialClientSetup - before setMessage");
    if (strError != null && !strError.equals("")) {
      myMessage = Utility.translateError(this, vars, vars.getLanguage(), strError);
    }
    if (log4j.isDebugEnabled())
      log4j.debug("InitialClientSetup - isOK: " + isOK);
    if (isOK)
      myMessage.setType("Success");
    else
      myMessage.setType("Error");
    if (log4j.isDebugEnabled())
      log4j.debug("InitialClientSetup - Message Type: " + myMessage.getType());
    vars.setMessage("InitialClientSetup", myMessage);
    if (log4j.isDebugEnabled())
      log4j.debug("InitialClientSetup - after setMessage");
    if (myMessage != null) {
      xmlDocument.setParameter("messageType", myMessage.getType());
      xmlDocument.setParameter("messageTitle", myMessage.getTitle());
      xmlDocument.setParameter("messageMessage", myMessage.getMessage());
    }
    response.setContentType("text/html; charset=UTF-8");
    PrintWriter out = response.getWriter();
    out.println(xmlDocument.print());
    out.close();
View Full Code Here

                  "#User_Org", "AccountElementValue"), strOrderBy, "", pgLimit);
        }
      } catch (ServletException e) {
        log4j.error("Error in print page data: " + e);
        e.printStackTrace();
        OBError myError = Utility.translateError(this, vars, vars.getLanguage(), e.getMessage());
        if (!myError.isConnectionAvailable()) {
          bdErrorAjax(response, "Error", "Connection Error", "No database connection");
          return;
        } else {
          type = myError.getType();
          title = myError.getTitle();
          if (!myError.getMessage().startsWith("<![CDATA["))
            description = "<![CDATA[" + myError.getMessage() + "]]>";
          else
            description = myError.getMessage();
        }
      } catch (Exception e) {
        if (log4j.isDebugEnabled())
          log4j.debug("Error obtaining rows data");
        type = "Error";
View Full Code Here

  protected OBError doIt(VariablesSecureApp vars) throws ServletException {
    int no = 0;
    ConnectionProvider conn = null;
    Connection con = null;
    OBError myError = new OBError();

    try {
      conn = getConnection();
      con = conn.getTransactionConnection();
      if (m_deleteOldImported) {
        no = ImportTaxData.deleteOld(con, conn, getAD_Client_ID());
        if (log4j.isDebugEnabled())
          log4j.debug("Delete Old Imported = " + no);
      }
      // Set Client, Org, IaActive, Created/Updated
      no = ImportTaxData.updateRecords(con, conn, getAD_Client_ID());
      if (log4j.isDebugEnabled())
        log4j.debug("Reset = " + no);

      /*
       * This cannot be done like this, because it can be referred by data inside the file, it has
       * to be done line per line // Tax Category ID no = ImportTaxData.updateTaxCategoryId(con,
       * conn, getAD_Client_ID()); if (log4j.isDebugEnabled()) log4j.debug("Tax Category Id = " +
       * no);
       *
       * // BP Tax Category ID no = ImportTaxData.updateBPTaxCategoryId(con, conn,
       * getAD_Client_ID()); if (log4j.isDebugEnabled()) log4j.debug("BP Tax Category Id = " + no);
       *
       * // Tax ID no = ImportTaxData.updateTaxId(con, conn, getAD_Client_ID()); if
       * (log4j.isDebugEnabled()) log4j.debug("BP Tax Category Id = " + no);
       */

      // Set Country From
      no = ImportTaxData.updateCountryFromId(con, conn, getAD_Client_ID());
      if (log4j.isDebugEnabled())
        log4j.debug("Set Country From =" + no);

      no = ImportTaxData.updateCountryFromError(con, conn, getAD_Client_ID());
      if (log4j.isDebugEnabled())
        log4j.debug("Invalid Country From =" + no);

      // Set Country To
      no = ImportTaxData.updateCountryToId(con, conn, getAD_Client_ID());
      if (log4j.isDebugEnabled())
        log4j.debug("Set Country to =" + no);

      no = ImportTaxData.updateCountryToError(con, conn, getAD_Client_ID());
      if (log4j.isDebugEnabled())
        log4j.debug("Invalid Country to =" + no);

      // Set Region From
      no = ImportTaxData.updateRegionFromId(con, conn, getAD_Client_ID());
      if (log4j.isDebugEnabled())
        log4j.debug("Set Region From =" + no);

      no = ImportTaxData.updateRegionFromError(con, conn, getAD_Client_ID());
      if (log4j.isDebugEnabled())
        log4j.debug("Invalid Region From =" + no);

      // Set Region From
      no = ImportTaxData.updateRegionToId(con, conn, getAD_Client_ID());
      if (log4j.isDebugEnabled())
        log4j.debug("Set Region To =" + no);

      no = ImportTaxData.updateRegionToError(con, conn, getAD_Client_ID());
      if (log4j.isDebugEnabled())
        log4j.debug("Invalid Region To =" + no);

      //

      conn.releaseCommitConnection(con);
    } catch (Exception se) {
      try {
        conn.releaseRollbackConnection(con);
      } catch (Exception ignored) {
      }
      se.printStackTrace();
      addLog(Utility.messageBD(conn, "ProcessRunError", vars.getLanguage()));
      myError.setType("Error");
      myError.setTitle(Utility.messageBD(conn, "Error", vars.getLanguage()));
      myError.setMessage(Utility.messageBD(conn, "ProcessRunError", vars.getLanguage()));
      return myError;
    }

    // till here, the edition of the I_ImportBPartner table
    // now, the insertion from I_ImportBPartner table in C_BPartner...

    int noTaxInsert = 0;
    int noTaxUpdate = 0;
    int noTCInsert = 0;
    int noTCUpdate = 0;
    int noBPTCInsert = 0;
    int noBPTCUpdate = 0;
    int noTaxError = 0;

    try {
      // Go through Records
      ImportTaxData[] data = ImportTaxData.select(conn, getAD_Client_ID());
      if (log4j.isDebugEnabled())
        log4j.debug("Going through " + data.length + " records");
      for (int i = 0; i < data.length; i++) {
        String I_Tax_ID = data[i].iTaxId;
        String C_TaxCategory_ID = data[i].cTaxcategoryId;
        String C_BPTaxCategory_ID = data[i].cBpTaxcategoryId;
        String C_Tax_ID = data[i].cTaxId;
        String ParentTax_ID = data[i].parentTaxId;
        boolean newTaxCategory = (C_TaxCategory_ID == null || C_TaxCategory_ID.equals(""));
        boolean newBPTaxCategory = (C_BPTaxCategory_ID == null || C_BPTaxCategory_ID.equals(""));
        boolean newTax = (C_Tax_ID == null || C_Tax_ID.equals(""));
        con = conn.getTransactionConnection();

        // create/update TaxCategory
        if (!data[i].tcName.equals("") || !newTaxCategory) { // Inserting
          // taxes
          // this
          // shouldn't
          // be null,
          // but it
          // can be
          // if
          // inserting
          // only BP
          // Tax Cat
          if (newTaxCategory)
            C_TaxCategory_ID = ImportTaxData.selectTaxCategoryId(conn, data[i].tcName,
                getAD_Client_ID());
          newTaxCategory = (C_TaxCategory_ID == null || C_TaxCategory_ID.equals(""));
          if (log4j.isDebugEnabled())
            log4j.debug("TCId: " + C_TaxCategory_ID);
          if (newTaxCategory) { // Insert new TaxCategory
            C_TaxCategory_ID = SequenceIdData.getUUID();
            try {
              no = ImportTaxData.insertTaxCategory(con, conn, C_TaxCategory_ID, I_Tax_ID);
              if (log4j.isDebugEnabled())
                log4j.debug("Insert TaxCategory = " + no);
              noTCInsert++;
            } catch (ServletException ex) {
              String err = "Insert TaxCategory - " + ex.toString();
              if (log4j.isDebugEnabled())
                log4j.debug(err);
              no = ImportTaxData.taxError(conn, err, I_Tax_ID);
              try {
                conn.releaseRollbackConnection(con);
              } catch (Exception ignored) {
              }
              continue;
            }
          } else { // Update existing TaxCategory
            try {
              no = ImportTaxData.updateTaxCategory(con, conn, I_Tax_ID, C_TaxCategory_ID);
              if (log4j.isDebugEnabled())
                log4j.debug("Update TaxCategory = " + no);
              noTCUpdate++;
            } catch (ServletException ex) {
              String err = "Update TaxCategory - " + ex.toString();
              if (log4j.isDebugEnabled())
                log4j.debug(err);
              no = ImportTaxData.taxError(conn, err, I_Tax_ID);
              try {
                conn.releaseRollbackConnection(con);
              } catch (Exception ignored) {
              }
              continue;
            }
          }
        }

        // create/update BPTaxCategory
        if (!data[i].bptcName.equals("") || !newBPTaxCategory) {
          if (newBPTaxCategory)
            C_BPTaxCategory_ID = ImportTaxData.selectBPTaxCategoryId(conn, data[i].bptcName,
                getAD_Client_ID());
          newBPTaxCategory = (C_BPTaxCategory_ID == null || C_BPTaxCategory_ID.equals(""));
          if (newBPTaxCategory) { // Insert new BPTaxCategory
            C_BPTaxCategory_ID = SequenceIdData.getUUID();
            try {
              no = ImportTaxData.insertBPTaxCategory(con, conn, C_BPTaxCategory_ID, I_Tax_ID);
              if (log4j.isDebugEnabled())
                log4j.debug("Insert BPTaxCategory = " + no);
              noBPTCInsert++;
            } catch (ServletException ex) {
              String err = "Insert BPTaxCategory - " + ex.toString();
              if (log4j.isDebugEnabled())
                log4j.debug(err);
              no = ImportTaxData.taxError(conn, err, I_Tax_ID);
              try {
                conn.releaseRollbackConnection(con);
              } catch (Exception ignored) {
              }
              continue;
            }
          } else { // Update existing BPTaxCategory
            try {
              no = ImportTaxData.updateBPTaxCategory(con, conn, I_Tax_ID, C_BPTaxCategory_ID);
              if (log4j.isDebugEnabled())
                log4j.debug("Update BPTaxCategory = " + no);
              noBPTCUpdate++;
            } catch (ServletException ex) {
              String err = "Update BPTaxCategory - " + ex.toString();
              if (log4j.isDebugEnabled())
                log4j.debug(err);
              no = ImportTaxData.taxError(conn, err, I_Tax_ID);
              try {
                conn.releaseRollbackConnection(con);
              } catch (Exception ignored) {
              }
              continue;
            }
          }
        }

        if (!data[i].tName.equals("") || !newTax) { // Update Create Tax
          if (log4j.isDebugEnabled())
            log4j.debug("Tax:" + data[i].tName);

          if (!data[i].parentName.equals("")) { // Parent tax
            ParentTax_ID = ImportTaxData.selectTaxId(conn, "", data[i].parentName,
                getAD_Client_ID()); // Check
            // if
            // parent
            // tax
            // is
            // created,
            // if
            // not
            // create
            // with
            // default
            // values
            if (ParentTax_ID == null || ParentTax_ID.equals("")) { // Insert
              // parent
              // tax
              try {
                ParentTax_ID = SequenceIdData.getUUID();
                if (log4j.isDebugEnabled())
                  log4j.debug("Insert Parent Tax = " + no);
                no = ImportTaxData.insertDefaultTax(con, conn, ParentTax_ID, C_TaxCategory_ID,
                    I_Tax_ID);
                noTaxInsert++;
              } catch (ServletException ex) {
                String err = "Insert Parent Tax - " + ex.toString();
                if (log4j.isDebugEnabled())
                  log4j.debug(err);
                no = ImportTaxData.taxError(conn, err, I_Tax_ID);
                try {
                  conn.releaseRollbackConnection(con);
                } catch (Exception ignored) {
                }
                continue;
              }
            }
          }

          if (newTax)
            C_Tax_ID = ImportTaxData.selectTaxId(conn, data[i].parentName, data[i].tName,
                getAD_Client_ID()); // look for existing taxes
          // (a tax is unique by name
          // and parent)
          newTax = (C_Tax_ID == null || C_Tax_ID.equals(""));
          if (log4j.isDebugEnabled())
            log4j.debug("Tax:" + data[i].tName + " - new:" + newTax);
          if (newTax) { // Insert new Tax
            C_Tax_ID = SequenceIdData.getUUID();
            try {
              no = ImportTaxData.insertTax(con, conn, C_Tax_ID, C_TaxCategory_ID,
                  C_BPTaxCategory_ID, ParentTax_ID, I_Tax_ID);
              if (log4j.isDebugEnabled())
                log4j.debug("Insert Tax = " + no);
              noTaxInsert++;
            } catch (ServletException ex) {
              String err = "Insert Tax - " + ex.toString();
              if (log4j.isDebugEnabled())
                log4j.debug(err);
              no = ImportTaxData.taxError(conn, err, I_Tax_ID);
              try {
                conn.releaseRollbackConnection(con);
              } catch (Exception ignored) {
              }
              continue;
            }
          } else { // Update existing Tax
            try {
              no = ImportTaxData.updateTax(con, conn, I_Tax_ID, C_TaxCategory_ID,
                  C_BPTaxCategory_ID, ParentTax_ID, C_Tax_ID);
              if (log4j.isDebugEnabled())
                log4j.debug("Update Tax = " + no);
              noTaxUpdate++;
            } catch (ServletException ex) {
              String err = "Update Tax - " + ex.toString();
              if (log4j.isDebugEnabled())
                log4j.debug(err);
              no = ImportTaxData.taxError(conn, err, I_Tax_ID);
              try {
                conn.releaseRollbackConnection(con);
              } catch (Exception ignored) {
              }
              continue;
            }
          }

          // Coutry-Region
          if ((!data[i].cCountryId.equals("") || !data[i].cRegionId.equals("")
              || !data[i].toCountryId.equals("0") || !data[i].toRegionId.equals("0"))
              && ImportTaxData.existsLocation(con, conn, I_Tax_ID, C_Tax_ID).equals("0")) {
            if (ImportTaxData.hasLocation(con, conn, C_Tax_ID).equals("0")) { // Update Location in
              // c_tax
              try {
                no = ImportTaxData.updateTaxRegion(con, conn, I_Tax_ID, C_Tax_ID);
                if (log4j.isDebugEnabled())
                  log4j.debug("Update Tax Location (in c_tax) = " + no);
              } catch (ServletException ex) {
                String err = "Update Tax Location (in c_tax)- " + ex.toString();
                if (log4j.isDebugEnabled())
                  log4j.debug(err);
                no = ImportTaxData.taxError(conn, err, I_Tax_ID);
                try {
                  conn.releaseRollbackConnection(con);
                } catch (Exception ignored) {
                }
                continue;
              }
            } else { // create Location in c_tax_zone
              try {
                String C_Tax_Zone_ID = SequenceIdData.getUUID();
                no = ImportTaxData.insertTaxZone(con, conn, C_Tax_Zone_ID, C_Tax_ID, I_Tax_ID);
                if (log4j.isDebugEnabled())
                  log4j.debug("Insert tax Location (in c_tax_zone) = " + no);
              } catch (ServletException ex) {
                String err = "Insert tax Location (in c_tax_zone)- " + ex.toString();
                if (log4j.isDebugEnabled())
                  log4j.debug(err);
                no = ImportTaxData.taxError(conn, err, I_Tax_ID);
                try {
                  conn.releaseRollbackConnection(con);
                } catch (Exception ignored) {
                }
                continue;
              }
            }
          }
        } // tax

        // Update I_Tax
        try {
          no = ImportTaxData.setImported(con, conn, C_TaxCategory_ID, I_Tax_ID);
          conn.releaseCommitConnection(con);
        } catch (Exception ex) {
          if (log4j.isDebugEnabled())
            log4j.debug("Update Imported - " + ex.toString());
          noTCInsert--;
          no = ImportTaxData.updateSetImportedError(conn, I_Tax_ID);
          try {
            conn.releaseRollbackConnection(con);
          } catch (Exception ignored) {
          }
          continue;
        }
      }

      // Set Error to indicator to not imported
      noTaxError = ImportTaxData.updateNotImported(conn, getAD_Client_ID());
    } catch (Exception se) {
      se.printStackTrace();
      addLog(Utility.messageBD(conn, "ProcessRunError", vars.getLanguage()));
      myError.setType("Error");
      myError.setTitle(Utility.messageBD(conn, "Error", vars.getLanguage()));
      myError.setMessage(Utility.messageBD(conn, "ProcessRunError", vars.getLanguage()));
      return myError;
    }
    addLog(Utility.messageBD(conn, "Taxes not imported", vars.getLanguage()) + ": " + noTaxError
        + "; ");
    addLog("Tax inserted: " + noTaxInsert + "; ");
    addLog("Tax updated: " + noTaxUpdate + "; ");
    addLog("Tax Category inserted: " + noTCInsert + "; ");
    addLog("Tax Category updated: " + noTCUpdate + "; ");
    addLog("BPartner Tax Category inserted: " + noBPTCInsert + "; ");
    addLog("BPartner Tax Category updated: " + noBPTCUpdate);

    if (noTaxError == 0) {
      myError.setType("Success");
      myError.setTitle(Utility.messageBD(conn, "Success", vars.getLanguage()));
    } else if (noTaxInsert > 0 || noTaxUpdate > 0 || noTCInsert > 0 || noTCUpdate > 0
        || noBPTCInsert > 0 || noBPTCUpdate > 0) {
      myError.setType("Warning");
      myError.setTitle(Utility.messageBD(conn, "Some taxes could not be imported", vars
          .getLanguage()));
    } else {
      myError.setType("Error");
      myError.setTitle(Utility.messageBD(conn, " No taxes could be imported", vars.getLanguage()));
    }
    myError.setMessage(Utility.messageBD(conn, getLog(), vars.getLanguage()));
    return myError;
  } // doIt
View Full Code Here

      xmlDocument.setParameter("leftTabs", lBar.manualTemplate());
    } catch (Exception ex) {
      throw new ServletException(ex);
    }
    {
      OBError myMessage = vars.getMessage("ReportShipmentDimensionalAnalyzeJR");
      vars.removeMessage("ReportShipmentDimensionalAnalyzeJR");
      if (myMessage != null) {
        xmlDocument.setParameter("messageType", myMessage.getType());
        xmlDocument.setParameter("messageTitle", myMessage.getTitle());
        xmlDocument.setParameter("messageMessage", myMessage.getMessage());
      }
    }

    xmlDocument.setParameter("calendar", vars.getLanguage().substring(0, 2));
    xmlDocument.setParameter("language", "defaultLang=\"" + vars.getLanguage() + "\";");
View Full Code Here

    strOrderby = strHaving + strOrderby;

    // Checks if there is a conversion rate for each of the transactions of
    // the report
    String strConvRateErrorMsg = "";
    OBError myMessage = null;
    myMessage = new OBError();
    if (strComparative.equals("Y")) {
      try {
        data = ReportShipmentDimensionalAnalyzeJRData.select(this, strCurrencyId, strTextShow[0],
            strTextShow[1], strTextShow[2], strTextShow[3], strTextShow[4], strTextShow[5],
            strTextShow[6], strTextShow[7], strTextShow[8], Tree.getMembers(this, TreeData
                .getTreeOrg(this, vars.getClient()), strOrg), Utility.getContext(this, vars,
                "#User_Client", "ReportShipmentDimensionalAnalyzeJR"), strDateFrom, DateTimeData
                .nDaysAfter(this, strDateTo, "1"), strPartnerGroup, strcBpartnerId,
            strProductCategory, strmProductId, strmWarehouseId, strsalesrepId,
            strPartnerSalesrepId, strDateFromRef, DateTimeData.nDaysAfter(this, strDateToRef, "1"),
            strOrderby);
      } catch (ServletException ex) {
        myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
      }
    } else {
      try {
        data = ReportShipmentDimensionalAnalyzeJRData.selectNoComparative(this, strCurrencyId,
            strTextShow[0], strTextShow[1], strTextShow[2], strTextShow[3], strTextShow[4],
            strTextShow[5], strTextShow[6], strTextShow[7], strTextShow[8], Tree.getMembers(this,
                TreeData.getTreeOrg(this, vars.getClient()), strOrg), Utility.getContext(this,
                vars, "#User_Client", "ReportShipmentDimensionalAnalyzeJR"), strDateFrom,
            DateTimeData.nDaysAfter(this, strDateTo, "1"), strPartnerGroup, strcBpartnerId,
            strProductCategory, strmProductId, strmWarehouseId, strsalesrepId,
            strPartnerSalesrepId, strOrderby);
      } catch (ServletException ex) {
        myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
      }
    }
    strConvRateErrorMsg = myMessage.getMessage();
    // If a conversion rate is missing for a certain transaction, an error
    // message window pops-up.
    if (!strConvRateErrorMsg.equals("") && strConvRateErrorMsg != null) {
      advisePopUp(request, response, "ERROR", Utility.messageBD(this, "NoConversionRateHeader",
          vars.getLanguage()), strConvRateErrorMsg);
View Full Code Here

      String strWindowPath = Utility.getTabURL(this, strTab, "R");
      if (strWindowPath.equals(""))
        strWindowPath = strDefaultServlet;

      OBError myMessage = processButton(vars, strKey, strProject, strWindow);
      vars.setMessage(strTab, extracted(myMessage));
      printPageClosePopUp(response, vars, strWindowPath);
    } else
      pageErrorPopUp(response);
  }
View Full Code Here

      String strWindowId = vars.getStringParameter("inpwindowId");
      String strTabId = vars.getStringParameter("inpTabId");
      String strProduct = vars.getRequestGlobalVariable("inpProduct",
          "AttributeSetInstance.product");
      String strIsSOTrx = Utility.getContext(this, vars, "isSOTrx", strWindowId);
      OBError myMessage = writeFields(this, vars, AttributeSetInstanceData.select(this,
          strAttributeSet), strAttributeSet, strInstance, strWindowId, strIsSOTrx, strProduct);
      vars.setSessionValue("AttributeSetInstance.attribute", strAttributeSet);
      vars.setSessionValue("AttributeSetInstance.close", "Y");
      vars.setMessage(strTabId, myMessage);
      // vars.setSessionValue("AttributeSetInstance.message", strMessage);
View Full Code Here

TOP

Related Classes of org.openbravo.erpCommon.utility.OBError

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.