Package org.openbravo.erpCommon.utility

Examples of org.openbravo.erpCommon.utility.ComboTableData


      throw new ServletException(ex);
    }

    xmlDocument.setParameter("ccurrencyid", strCurrencyId);
    try {
      ComboTableData comboTableData = new ComboTableData(vars, this, "TABLEDIR", "C_Currency_ID",
          "", "", Utility.getContext(this, vars, "#AccessibleOrgTree",
              "ReportSalesDimensionalAnalyzeJR"), Utility.getContext(this, vars, "#User_Client",
              "ReportSalesDimensionalAnalyzeJR"), 0);
      Utility.fillSQLParameters(this, vars, null, comboTableData,
          "ReportSalesDimensionalAnalyzeJR", 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("mWarehouseId", strmWarehouseId);
    xmlDocument.setParameter("directory", "var baseDirectory = \"" + strReplaceWith + "/\";\n");
    xmlDocument.setParameter("paramLanguage", "defaultLang=\"" + vars.getLanguage() + "\";");
    xmlDocument.setParameter("Detalle", strDetalle);
    try {
      ComboTableData comboTableData = new ComboTableData(vars, this, "TABLEDIR", "M_Warehouse_ID",
          "", "", Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportInventory"), Utility
              .getContext(this, vars, "#User_Client", "ReportInventory"), 0);
      Utility.fillSQLParameters(this, vars, null, comboTableData, "ReportInventory",
          strmWarehouseId);
      xmlDocument.setData("reportM_WAREHOUSEID", "liststructure", comboTableData.select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
    }
    out.println(xmlDocument.print());
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", "GroupedOrderReport"), Utility.getContext(this, vars, "#User_Client", "GroupedOrderReport"), 0);
       Utility.fillSQLParameters(this, vars, null, comboTableData, "GroupedOrderReport", "");
    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","GroupedOrderReport"), Utility.getContext(this, vars, "#AccessibleOrgTree", "GroupedOrderReport")));
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", "GroupedOrderReport"), Utility.getContext(this, vars, "#User_Client", "GroupedOrderReport"), 0);
       Utility.fillSQLParameters(this, vars, null, comboTableData, "GroupedOrderReport", "");
    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", "GroupedOrderReport"), Utility.getContext(this, vars, "#AccessibleOrgTree", "GroupedOrderReport")));
View Full Code Here

    xmlDocument.setParameter("time", strExpense);
    xmlDocument.setParameter("expense", strExpense);
    xmlDocument.setParameter("all", strExpense);

    try {
      ComboTableData comboTableData = new ComboTableData(vars, this, "TABLE", "C_BPartner_ID",
          "C_BPartner Employee w Address", "", Utility.getContext(this, vars, "#AccessibleOrgTree",
              "ReportExpense"), Utility.getContext(this, vars, "#User_Client", "ReportExpense"), 0);
      Utility.fillSQLParameters(this, vars, null, comboTableData, "ReportExpense", "");

      ComboTableData comboTableDataProject = new ComboTableData(this, "TABLE", "C_Project_ID",
          "C_Project", "", Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportExpense"),
          Utility.getContext(this, vars, "#User_Client", "ReportExpense"), 0);
      Utility.fillSQLParameters(this, vars, null, comboTableDataProject, "ReportExpense", "");

      xmlDocument.setData("reportC_BPartner_ID", "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", "ReportExpense"), Utility
              .getContext(this, vars, "#User_Client", "ReportExpense"), 0);
      Utility.fillSQLParameters(this, vars, null, comboTableData, "ReportExpense", 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, "TABLEDIR","hrm_hr_employee_id", "", "", Utility.getContext(this, vars, "#AccessibleOrgTree",""), Utility.getContext(this, vars, "#User_Client", ""), 0);
            xmlDocument.setData("reportC_NAME", "liststructure", comboTableData.select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
    }
    //xmlDocument.setData("reportC_NAME", "liststructure", AccountNumberComboData.select(this, Utility.getContext(this, vars, "#User_Client","PayrollReport"), Utility.getContext(this, vars, "#AccessibleOrgTree", "PayrollReport")));
View Full Code Here

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

    String strmProductUOMId = SLWRPhaseProductProductData.strMProductUOMID(this, strMProductID,
        strProductUom);
    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",
                "SLOrderProduct"),
            Utility.getContext(this, vars, "#User_Client", "SLOrderProduct"), 0);
        Utility.fillSQLParameters(this, vars, null, comboTableData, "SLOrderProduct", "");
        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") + "\", \""
              + tld[i].getField("name") + "\", \""
              + (tld[i].getField("id").equalsIgnoreCase(strmProductUOMId) ? "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",
                "SLOrderProduct"),
            Utility.getContext(this, vars, "#User_Client", "SLOrderProduct"), 0);
        Utility.fillSQLParameters(this, vars, null, comboTableData, "SLOrderProduct", "");
        tld = 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, "TABLEDIR", "c_bpartner_id","", "", Utility.getContext(this, vars, "#AccessibleOrgTree", "RentalOrder"), Utility.getContext(this, vars, "#User_Client", "RentalOrder"), 0);
       Utility.fillSQLParameters(this, vars, null, comboTableData, "RentalOrder", "");
    xmlDocument.setData("reportC_NAME", "liststructure", comboTableData.select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
    }
    //xmlDocument.setData("reportC_NAME", "liststructure", AccountNumberComboData.select(this, Utility.getContext(this, vars, "#User_Client","RentalOrder"), Utility.getContext(this, vars, "#AccessibleOrgTree", "RentalOrder")));
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, "TABLEDIR", "c_bpartner_id","", "", Utility.getContext(this, vars, "#AccessibleOrgTree", "RentalOrder"), Utility.getContext(this, vars, "#User_Client", "RentalOrder"), 0);
       Utility.fillSQLParameters(this, vars, null, comboTableData, "RentalOrder", "");
    xmlDocument.setData("reportC_NAME", "liststructure", comboTableData.select(false));
      comboTableData = null;
    } catch (Exception ex) {
      throw new ServletException(ex);
   
    //  xmlDocument.setData("reportC_NAME", "liststructure", AccountNumberComboData.select(this, Utility.getContext(this, vars, "#User_Client", "RentalOrder"), Utility.getContext(this, vars, "#AccessibleOrgTree", "RentalOrder")));
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.