Package org.openbravo.erpCommon.utility

Examples of org.openbravo.erpCommon.utility.ToolBar


      data = SalikReportData.set();
      if (vars.commandIn("FIND")) {
        strMessage = Utility.messageBD(this, "BothDatesCannotBeBlank", vars.getLanguage());
        log4j.warn("Both dates are blank");
      }
      ToolBar toolbar = new ToolBar(this, vars.getLanguage(), "SalikReport", false, "", "", "",false, "ad_reports", strReplaceWith, false, true);
      toolbar.prepareSimpleToolBarTemplate();
      xmlDocument.setParameter("toolbar", toolbar.toString());

      xmlDocument.setParameter("calendar", vars.getLanguage().substring(0, 2));
      xmlDocument.setParameter("directory", "var baseDirectory = \"" + strReplaceWith + "/\";\n");
      xmlDocument.setParameter("paramLanguage", "defaultLang=\"" + vars.getLanguage() + "\";");
      xmlDocument.setParameter("cBankAccount", strcbankaccount);
View Full Code Here


    XmlDocument xmlDocument = null;
    xmlDocument = xmlEngine.readXmlTemplate("org/openbravo/erpCommon/ad_reports/ReportInvoicesJR")
        .createXmlDocument();

    ToolBar toolbar = new ToolBar(this, vars.getLanguage(), "ReportInvoicesJR", false, "", "", "",
        false, "ad_reports", strReplaceWith, false, true);
    toolbar.prepareSimpleToolBarTemplate();
    xmlDocument.setParameter("toolbar", toolbar.toString());
    try {
      WindowTabs tabs = new WindowTabs(this, vars,
          "org.openbravo.erpCommon.ad_reports.ReportInvoicesJR");
      xmlDocument.setParameter("parentTabContainer", tabs.parentTabs());
      xmlDocument.setParameter("mainTabContainer", tabs.mainTabs());
View Full Code Here

    response.setContentType("text/html; charset=UTF-8");
    PrintWriter out = response.getWriter();
    XmlDocument xmlDocument = xmlEngine.readXmlTemplate(
        "org/openbravo/erpCommon/ad_reports/ReportProduction").createXmlDocument();

    ToolBar toolbar = new ToolBar(this, vars.getLanguage(), "ReportProduction", false, "", "", "",
        false, "ad_reports", strReplaceWith, false, true);
    toolbar.prepareSimpleToolBarTemplate();
    xmlDocument.setParameter("toolbar", toolbar.toString());

    try {
      WindowTabs tabs = new WindowTabs(this, vars,
          "org.openbravo.erpCommon.ad_reports.ReportProduction");
      xmlDocument.setParameter("parentTabContainer", tabs.parentTabs());
View Full Code Here

    XmlDocument xmlDocument = null;
    xmlDocument = xmlEngine.readXmlTemplate(
        "org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerFilterJR").createXmlDocument();

    ToolBar toolbar = new ToolBar(this, vars.getLanguage(), "ReportInvoiceCustomerFilterJR", false,
        "", "", "", false, "ad_reports", strReplaceWith, false, true);
    toolbar.prepareSimpleToolBarTemplate();
    xmlDocument.setParameter("toolbar", toolbar.toString());
    try {
      WindowTabs tabs = new WindowTabs(this, vars,
          "org.openbravo.erpCommon.ad_reports.ReportInvoiceCustomerJR");
      xmlDocument.setParameter("parentTabContainer", tabs.parentTabs());
      xmlDocument.setParameter("mainTabContainer", tabs.mainTabs());
View Full Code Here

    response.setContentType("text/html; charset=UTF-8");
    PrintWriter out = response.getWriter();
    XmlDocument xmlDocument = xmlEngine.readXmlTemplate(
        "org/openbravo/erpCommon/ad_reports/ReportProductionJR").createXmlDocument();

    ToolBar toolbar = new ToolBar(this, vars.getLanguage(), "ReportProduction", false, "", "", "",
        false, "ad_reports", strReplaceWith, false, true);
    toolbar.prepareSimpleToolBarTemplate();
    xmlDocument.setParameter("toolbar", toolbar.toString());

    try {
      WindowTabs tabs = new WindowTabs(this, vars,
          "org.openbravo.erpCommon.ad_reports.ReportProductionJR");
      xmlDocument.setParameter("parentTabContainer", tabs.parentTabs());
View Full Code Here

        } // else dataLine[0] = ReportShipperData.set();
      }
    }

    if (strConvRateErrorMsg.equals("") || strConvRateErrorMsg == null) {
      ToolBar toolbar = new ToolBar(this, vars.getLanguage(), "ReportShipper", false, "", "", "",
          false, "ad_reports", strReplaceWith, false, true);
      toolbar.prepareSimpleToolBarTemplate();
      xmlDocument.setParameter("toolbar", toolbar.toString());

      try {
        WindowTabs tabs = new WindowTabs(this, vars,
            "org.openbravo.erpCommon.ad_reports.ReportShipper");
        xmlDocument.setParameter("parentTabContainer", tabs.parentTabs());
View Full Code Here

  private void printPageDataPdf(HttpServletResponse response, VariablesSecureApp vars,
      String strBankAccount, String strDateMax, String strBreakDate, boolean showDefault)
      throws IOException, ServletException {

    ToolBar toolbar = new ToolBar(this, vars.getLanguage(), "ReportCashflowForecast", false, "",
        "", "", false, "ad_reports", strReplaceWith, false, true);

    // ReportCashflowForecastData[] dataSummary =
    // ReportCashflowForecastData.select(this,Utility.getContext(this, vars, "#User_Client",
    // "ReportBank"), Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportBank"));
View Full Code Here

        discard[0] = "reportAccountDate";
      else
        discard[0] = "reportAccount";
    }

    ToolBar toolbar = new ToolBar(this, vars.getLanguage(), "ReportCashflowForecast", false, "",
        "", "", false, "ad_reports", strReplaceWith, false, true);

    // ReportCashflowForecastData[] dataSummary =
    // ReportCashflowForecastData.select(this,Utility.getContext(this, vars,
    // "#User_Client", "ReportBank"), Utility.getContext(this, vars,
    // "#AccessibleOrgTree", "ReportBank"));
    ReportCashflowForecastData[] dataSummary = ReportCashflowForecastData.select(this, strDateMax,
        "", Utility.getContext(this, vars, "#User_Client", "ReportBank"), Utility.getContext(this,
            vars, "#AccessibleOrgTree", "ReportBank"));

    if (!showDefault) {
      ReportCashflowForecastData[][] data = null;
      ReportCashflowForecastData[] dataAcct = null;
      ReportCashflowForecastData[] dataDetail = null;

      // dataAcct = ReportCashflowForecastData.select(this, strDateMax,
      // strBankAccount);
      dataAcct = ReportCashflowForecastData.select(this, strDateMax, strBankAccount, Utility
          .getContext(this, vars, "#User_Client", "ReportBank"), Utility.getContext(this, vars,
          "#AccessibleOrgTree", "ReportBank"));
      data = new ReportCashflowForecastData[dataAcct.length][];

      if (log4j.isDebugEnabled())
        log4j.debug("length: " + dataAcct.length + " - bankaccount:" + strBankAccount);
      if (dataAcct.length == 0) {
        discard[0] = "reportAccountDate";
        discard[1] = "reportAccount";
      } else {
        for (int i = 0; i < dataAcct.length; i++) {
          if (strBreakDate.equals(""))
            dataDetail = ReportCashflowForecastData.selectLines(this, vars.getSqlDateFormat(), vars
                .getLanguage(), dataAcct[i].cBankaccountId, strDateMax, "2 DESC, 1");
          else
            dataDetail = ReportCashflowForecastData.selectLines(this, vars.getSqlDateFormat(), vars
                .getLanguage(), dataAcct[i].cBankaccountId, strDateMax, "1,2 DESC");
          if (log4j.isDebugEnabled())
            log4j.debug("length: " + dataAcct.length + " bankacct:" + dataAcct[i].cBankaccountId
                + " lenght:" + dataDetail.length);
          data[i] = dataDetail;
        }
      }
      xmlDocument = xmlEngine.readXmlTemplate(
          "org/openbravo/erpCommon/ad_reports/ReportCashflowForecast", discard).createXmlDocument();

      xmlDocument.setData("structureDetail", dataAcct);
      if (strBreakDate.equals(""))
        xmlDocument.setDataArray("reportAcct", "structureAccount", data);
      else
        xmlDocument.setDataArray("reportAcctDate", "structureAccount", data);
    } else
      xmlDocument = xmlEngine.readXmlTemplate(
          "org/openbravo/erpCommon/ad_reports/ReportCashflowForecast", discard).createXmlDocument();

    // ReportCashflowForecastData.select(this,Utility.getContext(this, vars,
    // "#User_Client", "ReportBank"), Utility.getContext(this, vars,
    // "#AccessibleOrgTree", "ReportBank"));

    toolbar.prepareSimpleToolBarTemplate();
    xmlDocument.setParameter("toolbar", toolbar.toString());
    xmlDocument.setData("reportC_ACCOUNTNUMBER", "liststructure", AccountNumberComboData.select(
        this, Utility.getContext(this, vars, "#User_Client", "ReportCashflowForecast"), Utility
            .getContext(this, vars, "#AccessibleOrgTree", "ReportCashflowForecast")));
    xmlDocument.setParameter("cBankAccount", strBankAccount);
    xmlDocument.setParameter("dateFrom", strDateMax);
View Full Code Here

    String strMessage = "";

    XmlDocument xmlDocument = null;
    xmlDocument = xmlEngine.readXmlTemplate("org/openbravo/erpCommon/ad_reports/VehicleAvailabilityReport") .createXmlDocument();

    ToolBar toolbar = new ToolBar(this, vars.getLanguage(), "VehicleAvailabilityReport", false, "", "", "",false, "ad_reports", strReplaceWith, false, true);
    toolbar.prepareSimpleToolBarTemplate();
    xmlDocument.setParameter("toolbar", toolbar.toString());

    try {
      WindowTabs tabs = new WindowTabs(this, vars, "org.openbravo.erpCommon.ad_reports.VehicleAvailabilityReport");
      xmlDocument.setParameter("parentTabContainer", tabs.parentTabs());
      xmlDocument.setParameter("mainTabContainer", tabs.mainTabs());
View Full Code Here

      data = VehicleAvailabilityReportData.set();
      if (vars.commandIn("FIND")) {
        strMessage = Utility.messageBD(this, "BothDatesCannotBeBlank", vars.getLanguage());
        log4j.warn("Both dates are blank");
      }
      ToolBar toolbar = new ToolBar(this, vars.getLanguage(), "VehicleAvailabilityReport", false, "", "", "",false, "ad_reports", strReplaceWith, false, true);
      toolbar.prepareSimpleToolBarTemplate();
      xmlDocument.setParameter("toolbar", toolbar.toString());
      xmlDocument.setParameter("calendar", vars.getLanguage().substring(0, 2));
      xmlDocument.setParameter("directory", "var baseDirectory = \"" + strReplaceWith + "/\";\n");
      xmlDocument.setParameter("paramLanguage", "defaultLang=\"" + vars.getLanguage() + "\";");
      xmlDocument.setParameter("dateFrom", strDateFrom);
      xmlDocument.setParameter("dateTo", strDateTo);
View Full Code Here

TOP

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

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.