Package org.openbravo.erpCommon.utility

Examples of org.openbravo.erpCommon.utility.ComboTableData


    xmlDocument.setParameter("dateTo", strDateTo);
    xmlDocument.setParameter("dateTodisplayFormat", vars.getSessionValue("#AD_SqlDateFormat"));
    xmlDocument.setParameter("dateTosaveFormat", vars.getSessionValue("#AD_SqlDateFormat"));
    xmlDocument.setParameter("paramMessage", (strMessage.equals("") ? "" : "alert('" + strMessage+ "');"));
      try {
       ComboTableData comboTableData = new ComboTableData(vars, this, "TABLE", "M_Product_ID","Vehicle", "", Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportVehicleFine"), Utility.getContext(this, vars, "#User_Client", "ReportVehicleFine"), 0);
       Utility.fillSQLParameters(this, vars, null, comboTableData, "ReportVehicleFine", "");
    xmlDocument.setData("reportC_ACCOUNTNUMBER", "liststructure", comboTableData.select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
    }
    //xmlDocument.setData("reportC_ACCOUNTNUMBER", "liststructure", AccountNumberComboData.select(this, Utility.getContext(this, vars, "#User_Client","ReportVehicleFine"), Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportVehicleFine")));
View Full Code Here


      xmlDocument.setParameter("cBankAccount", strcbankaccount);
      xmlDocument.setParameter("dateFrom", strDateFrom);
      xmlDocument.setParameter("dateTo", strDateTo);
      xmlDocument.setParameter("paramMessage", (strMessage.equals("") ? "" : "alert('" + strMessage+ "');"));
    try {
       ComboTableData comboTableData = new ComboTableData(vars, this, "TABLED", "M_Product_ID","Vehicle", "", Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportVehicleFine"), Utility.getContext(this, vars, "#User_Client", "ReportVehicleFine"), 0);
       Utility.fillSQLParameters(this, vars, null, comboTableData, "ReportVehicleFine", "");
    xmlDocument.setData("reportC_ACCOUNTNUMBER", "liststructure", comboTableData.select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
   
    //  xmlDocument.setData("reportC_ACCOUNTNUMBER", "liststructure", AccountNumberComboData.select(this, Utility.getContext(this, vars, "#User_Client", "ReportVehicleFine"), Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportVehicleFine")));
View Full Code Here

    xmlDocument.setParameter("dateFromsaveFormat", vars.getSessionValue("#AD_SqlDateFormat"));
    xmlDocument.setParameter("dateTo", strDateTo);
    xmlDocument.setParameter("dateTodisplayFormat", vars.getSessionValue("#AD_SqlDateFormat"));
    xmlDocument.setParameter("dateTosaveFormat", vars.getSessionValue("#AD_SqlDateFormat"));
    try {
      ComboTableData comboTableData = new ComboTableData(vars, this, "TABLEDIR", "M_Warehouse_ID",
          "", "", Utility.getContext(this, vars, "#AccessibleOrgTree",
              "ReportWarehouseDetailInventoryJR"), Utility.getContext(this, vars, "#User_Client",
              "ReportWarehouseDetailInventoryJR"), 0);
      Utility.fillSQLParameters(this, vars, null, comboTableData,
          "ReportWarehouseDetailInventoryJR", strWarehouse);
      xmlDocument.setData("reportM_WAREHOUSEID", "liststructure", comboTableData.select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
    }
View Full Code Here

    if (strPUOM.startsWith("\""))
      strPUOM = strPUOM.substring(1, strPUOM.length() - 1);
    if (vars.getLanguage().equals("en_US")) {
      FieldProvider[] tld = null;
      try {
        ComboTableData comboTableData = new ComboTableData(vars, this, "TABLE", "",
            "M_Product_UOM", "", Utility.getContext(this, vars, "#AccessibleOrgTree",
                "SLMovementProduct"), Utility.getContext(this, vars, "#User_Client",
                "SLMovementProduct"), 0);
        Utility.fillSQLParameters(this, vars, null, comboTableData, "SLMovementProduct", "");
        tld = comboTableData.select(false);
        comboTableData = null;
      } catch (Exception ex) {
        throw new ServletException(ex);
      }

      if (tld != null && tld.length > 0) {
        resultado.append("new Array(");
        for (int i = 0; i < tld.length; i++) {
          resultado.append("new Array(\"" + tld[i].getField("id") + "\", \""
              + FormatUtilities.replaceJS(tld[i].getField("name")) + "\", \""
              + (tld[i].getField("id").equalsIgnoreCase(strPUOM) ? "true" : "false") + "\")");
          if (i < tld.length - 1)
            resultado.append(",\n");
        }
        resultado.append("\n)");
      } else
        resultado.append("null");
      resultado.append("\n),");
    } else {
      FieldProvider[] tld = null;
      try {
        ComboTableData comboTableData = new ComboTableData(vars, this, "TABLE", "",
            "M_Product_UOM", "", Utility.getContext(this, vars, "#AccessibleOrgTree",
                "SLMovementProduct"), Utility.getContext(this, vars, "#User_Client",
                "SLMovementProduct"), 0);
        Utility.fillSQLParameters(this, vars, null, comboTableData, "SLMovementProduct", "");
        tld = comboTableData.select(false);
        comboTableData = null;
      } catch (Exception ex) {
        throw new ServletException(ex);
      }
View Full Code Here

        xmlDocument.setParameter("messageMessage", myMessage.getMessage());
      }
    }

    try {
      ComboTableData comboTableData = new ComboTableData(vars, this, "TABLEDIR", "C_BP_Group_ID",
          "", "", Utility.getContext(this, vars, "#AccessibleOrgTree",
              "ReportPurchaseDimensionalAnalysesJR"), Utility.getContext(this, vars,
              "#User_Client", "ReportPurchaseDimensionalAnalysesJR"), 0);
      Utility.fillSQLParameters(this, vars, null, comboTableData,
          "ReportPurchaseDimensionalAnalysesJR", strPartnerGroup);
      xmlDocument.setData("reportC_BP_GROUPID", "liststructure", comboTableData.select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
    }

    try {
      ComboTableData comboTableData = new ComboTableData(vars, this, "TABLEDIR",
          "M_Product_Category_ID", "", "", Utility.getContext(this, vars, "#AccessibleOrgTree",
              "ReportPurchaseDimensionalAnalysesJR"), Utility.getContext(this, vars,
              "#User_Client", "ReportPurchaseDimensionalAnalysesJR"), 0);
      Utility.fillSQLParameters(this, vars, null, comboTableData,
          "ReportPurchaseDimensionalAnalysesJR", strProductCategory);
      xmlDocument.setData("reportM_PRODUCT_CATEGORYID", "liststructure", comboTableData
          .select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
    }

    xmlDocument.setParameter("ccurrencyid", strCurrencyId);
    try {
      ComboTableData comboTableData = new ComboTableData(vars, this, "TABLEDIR", "C_Currency_ID",
          "", "", Utility.getContext(this, vars, "#AccessibleOrgTree",
              "ReportPurchaseDimensionalAnalysesJR"), Utility.getContext(this, vars,
              "#User_Client", "ReportPurchaseDimensionalAnalysesJR"), 0);
      Utility.fillSQLParameters(this, vars, null, comboTableData,
          "ReportPurchaseDimensionalAnalysesJR", strCurrencyId);
      xmlDocument.setData("reportC_Currency_ID", "liststructure", comboTableData.select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
    }
View Full Code Here

    xmlDocument.setParameter("dateTo", strDateTo);
    xmlDocument.setParameter("dateTodisplayFormat", vars.getSessionValue("#AD_SqlDateFormat"));
    xmlDocument.setParameter("dateTosaveFormat", vars.getSessionValue("#AD_SqlDateFormat"));
    xmlDocument.setParameter("paramMessage", (strMessage.equals("") ? "" : "alert('" + strMessage+ "');"));
      try {
       ComboTableData comboTableData = new ComboTableData(vars, this, "TABLE", "M_Product_ID","Vehicle", "", Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportVehicleInsurance"), Utility.getContext(this, vars, "#User_Client", "ReportVehicleInsurance"), 0);
       Utility.fillSQLParameters(this, vars, null, comboTableData, "ReportVehicleInsurance", "");
    xmlDocument.setData("reportC_ACCOUNTNUMBER", "liststructure", comboTableData.select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
    }
    //xmlDocument.setData("reportC_ACCOUNTNUMBER", "liststructure", AccountNumberComboData.select(this, Utility.getContext(this, vars, "#User_Client","ReportVehicleInsurance"), Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportVehicleInsurance")));
View Full Code Here

      xmlDocument.setParameter("cBankAccount", strcbankaccount);
      xmlDocument.setParameter("dateFrom", strDateFrom);
      xmlDocument.setParameter("dateTo", strDateTo);
      xmlDocument.setParameter("paramMessage", (strMessage.equals("") ? "" : "alert('" + strMessage+ "');"));
    try {
       ComboTableData comboTableData = new ComboTableData(vars, this, "TABLED", "M_Product_ID","Vehicle", "", Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportVehicleInsurance"), Utility.getContext(this, vars, "#User_Client", "ReportVehicleInsurance"), 0);
       Utility.fillSQLParameters(this, vars, null, comboTableData, "ReportVehicleInsurance", "");
    xmlDocument.setData("reportC_ACCOUNTNUMBER", "liststructure", comboTableData.select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
   
    //  xmlDocument.setData("reportC_ACCOUNTNUMBER", "liststructure", AccountNumberComboData.select(this, Utility.getContext(this, vars, "#User_Client", "ReportVehicleInsurance"), Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportVehicleInsurance")));
View Full Code Here

    xmlDocument.setParameter("dateTosaveFormat", strDateFormat);
    xmlDocument.setParameter("paramBPartnerId", "");
    xmlDocument.setParameter("mWarehouseId", "");
    xmlDocument.setParameter("cProjectId", "");
    try {
      ComboTableData comboTableData = new ComboTableData(vars, this, "TABLEDIR", "M_Warehouse_ID",
          "", "", Utility.getContext(this, vars, "#AccessibleOrgTree", "MaterialReceiptFilter"),
          Utility.getContext(this, vars, "#User_Client", "MaterialReceiptFilter"), 0);
      Utility.fillSQLParameters(this, vars, null, comboTableData, "MaterialReceiptFilter", "");
      xmlDocument.setData("reportM_WAREHOUSEID", "liststructure", comboTableData.select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
    }

    try {
      ComboTableData comboTableData = new ComboTableData(vars, this, "TABLEDIR", "C_Project_ID",
          "", "", Utility.getContext(this, vars, "#AccessibleOrgTree", "MaterialReceiptFilter"),
          Utility.getContext(this, vars, "#User_Client", "MaterialReceiptFilter"), 0);
      Utility.fillSQLParameters(this, vars, null, comboTableData, "MaterialReceiptFilter", "");
      xmlDocument.setData("reportC_PROJECTID", "liststructure", comboTableData.select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
    }
View Full Code Here

    xmlDocument.setData("reportC_ACCTSCHEMA_ID", "liststructure", AccountingSchemaMiscData
        .selectC_ACCTSCHEMA_ID(this, Utility.getContext(this, vars, "#AccessibleOrgTree",
            "GeneralAccountingReports"), Utility.getContext(this, vars, "#User_Client",
            "GeneralAccountingReports"), strcAcctSchemaId));
    try {
      ComboTableData comboTableData = new ComboTableData(vars, this, "LIST", "",
          "C_ElementValue level", "", Utility.getContext(this, vars, "#AccessibleOrgTree",
              "GeneralAccountingReports"), Utility.getContext(this, vars, "#User_Client",
              "GeneralAccountingReports"), 0);
      Utility.fillSQLParameters(this, vars, null, comboTableData, "GeneralAccountingReports", "");
      xmlDocument.setData("reportLevel", "liststructure", comboTableData.select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
    }
    xmlDocument.setParameter("orgs", Utility.arrayDobleEntrada("arrOrgs",
View Full Code Here

        xmlDocument.setParameter("messageMessage", myMessage.getMessage());
      }
    }

    try {
      ComboTableData comboTableData = new ComboTableData(vars, this, "TABLE", "Account_ID",
          "C_ElementValue (Accounts)", "", Utility.getContext(this, vars, "#AccessibleOrgTree",
              "Account"), Utility.getContext(this, vars, "#User_Client", "Account"), 0);
      Utility.fillSQLParameters(this, vars, null, comboTableData, "Account", strAccountingCount);
      xmlDocument.setData("reportAccount_ID", "liststructure", comboTableData.select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
    }
View Full Code Here

TOP

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

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.