details:   /erp/devel/pi/rev/e639a15706f5
changeset: 12504:e639a15706f5
user:      Stefan Hühner <stefan.huehner <at> openbravo.com>
date:      Thu May 26 19:19:10 2011 +0200
summary:   Reformat

details:   /erp/devel/pi/rev/2fedd965199c
changeset: 12505:2fedd965199c
user:      Stefan Hühner <stefan.huehner <at> openbravo.com>
date:      Thu May 26 19:21:39 2011 +0200
summary:   [cleanup] Remove some code which wasn't used or is commented for 
ages.

diffstat:

 src/org/openbravo/erpCommon/ad_reports/ReportTaxInvoiceJR.java |  321 
+---------
 1 files changed, 32 insertions(+), 289 deletions(-)

diffs (truncated from 391 to 300 lines):

diff -r b306a39bc658 -r 2fedd965199c 
src/org/openbravo/erpCommon/ad_reports/ReportTaxInvoiceJR.java
--- a/src/org/openbravo/erpCommon/ad_reports/ReportTaxInvoiceJR.java    Thu May 
26 17:13:43 2011 +0100
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportTaxInvoiceJR.java    Thu May 
26 19:21:39 2011 +0200
@@ -52,24 +52,29 @@
     VariablesSecureApp vars = new VariablesSecureApp(request);
     String strUserCurrencyId = Utility.stringBaseCurrencyId(this, 
vars.getClient());
     if (vars.commandIn("DEFAULT")) {
-      String strCurrencyId = 
vars.getGlobalVariable("inpCurrencyId","ReportTaxInvoiceJR|currency", 
strUserCurrencyId);
+      String strCurrencyId = vars.getGlobalVariable("inpCurrencyId", 
"ReportTaxInvoiceJR|currency",
+          strUserCurrencyId);
       String strDateFrom = vars.getGlobalVariable("inpDateFrom", 
"ReportTaxInvoiceJR|DateFrom", "");
       String strDateTo = vars.getGlobalVariable("inpDateTo", 
"ReportTaxInvoiceJR|DateTo", "");
       String strOrg = vars.getGlobalVariable("inpOrg", 
"ReportTaxInvoiceJR|Org", "");
       String strDetail = vars.getStringParameter("inpDetalle", "-1");
       String strSales = vars.getStringParameter("inpSales", "S");
-      printPageDataSheet(response, vars, strDateFrom, strDateTo, strOrg, 
strDetail, strSales,strCurrencyId);
+      printPageDataSheet(response, vars, strDateFrom, strDateTo, strOrg, 
strDetail, strSales,
+          strCurrencyId);
     } else if (vars.commandIn("PRINT_HTML")) {
-      String strCurrencyId = 
vars.getRequestGlobalVariable("inpCurrencyId","ReportTaxInvoiceJR|currency");
+      String strCurrencyId = vars.getRequestGlobalVariable("inpCurrencyId",
+          "ReportTaxInvoiceJR|currency");
       String strDateFrom = vars.getRequestGlobalVariable("inpDateFrom",
           "ReportTaxInvoiceJR|DateFrom");
       String strDateTo = vars.getRequestGlobalVariable("inpDateTo", 
"ReportTaxInvoiceJR|DateTo");
       String strOrg = vars.getRequestGlobalVariable("inpOrg", 
"ReportTaxInvoiceJR|Org");
       String strDetail = vars.getStringParameter("inpDetalle");
       String strSales = vars.getStringParameter("inpSales");
-      printPageDataHtml(response, vars, strDateFrom, strDateTo, strOrg, 
strDetail, strSales, "html",strCurrencyId);
+      printPageDataHtml(response, vars, strDateFrom, strDateTo, strOrg, 
strDetail, strSales,
+          "html", strCurrencyId);
     } else if (vars.commandIn("PRINT_PDF")) {
-      String strCurrencyId = 
vars.getRequestGlobalVariable("inpCurrencyId","ReportTaxInvoiceJR|currency");
+      String strCurrencyId = vars.getRequestGlobalVariable("inpCurrencyId",
+          "ReportTaxInvoiceJR|currency");
       String strDateFrom = vars.getRequestGlobalVariable("inpDateFrom",
           "ReportTaxInvoiceJR|DateFrom");
       String strDateTo = vars.getRequestGlobalVariable("inpDateTo", 
"ReportTaxInvoiceJR|DateTo");
@@ -78,23 +83,26 @@
         strOrg = "0";
       String strDetail = vars.getStringParameter("inpDetalle");
       String strSales = vars.getStringParameter("inpSales");
-      printPageDataHtml(response, vars, strDateFrom, strDateTo, strOrg, 
strDetail, strSales, "pdf",strCurrencyId);
+      printPageDataHtml(response, vars, strDateFrom, strDateTo, strOrg, 
strDetail, strSales, "pdf",
+          strCurrencyId);
     } else if (vars.commandIn("RELATION_XLS")) {
-      String strCurrencyId = 
vars.getRequestGlobalVariable("inpCurrencyId","ReportTaxInvoiceJR|currency");
+      String strCurrencyId = vars.getRequestGlobalVariable("inpCurrencyId",
+          "ReportTaxInvoiceJR|currency");
       String strDateFrom = vars.getRequestGlobalVariable("inpDateFrom",
           "ReportTaxInvoiceJR|DateFrom");
       String strDateTo = vars.getRequestGlobalVariable("inpDateTo", 
"ReportTaxInvoiceJR|DateTo");
       String strOrg = vars.getRequestGlobalVariable("inpOrg", 
"ReportTaxInvoiceJR|Org");
       String strDetail = vars.getStringParameter("inpDetalle");
       String strSales = vars.getStringParameter("inpSales");
-      printPageDataHtml(response, vars, strDateFrom, strDateTo, strOrg, 
strDetail, strSales, "xls",strCurrencyId);
+      printPageDataHtml(response, vars, strDateFrom, strDateTo, strOrg, 
strDetail, strSales, "xls",
+          strCurrencyId);
     } else
       pageError(response);
   }
 
   private void printPageDataHtml(HttpServletResponse response, 
VariablesSecureApp vars,
       String strDateFrom, String strDateTo, String strOrg, String strDetail, 
String strSales,
-      String strOutput,String strCurrencyId) throws IOException, 
ServletException {
+      String strOutput, String strCurrencyId) throws IOException, 
ServletException {
     if (log4j.isDebugEnabled())
       log4j.debug("Output: dataSheet");
     response.setContentType("text/html; charset=UTF-8");
@@ -109,7 +117,8 @@
      * if (strSales.equals("S")) strSalesAux = "Y"; else strSalesAux = "N";
      */
     if (strDateFrom.equals("") && strDateTo.equals("") && 
strDetail.equals("-1")) {
-      printPageDataSheet(response, vars, strDateFrom, strDateTo, strOrg, 
strDetail, strSales,strCurrencyId);
+      printPageDataSheet(response, vars, strDateFrom, strDateTo, strOrg, 
strDetail, strSales,
+          strCurrencyId);
     } else if (!strDetail.equals("-1")) {
       if (log4j.isDebugEnabled())
         log4j.debug("****** not datailed");
@@ -190,8 +199,8 @@
   }
 
   private void printPageDataSheet(HttpServletResponse response, 
VariablesSecureApp vars,
-      String strDateFrom, String strDateTo, String strOrg, String strDetail, 
String strSales,String strCurrencyId)
-      throws IOException, ServletException {
+      String strDateFrom, String strDateTo, String strOrg, String strDetail, 
String strSales,
+      String strCurrencyId) throws IOException, ServletException {
     if (log4j.isDebugEnabled())
       log4j.debug("Output: dataSheet");
     response.setContentType("text/html; charset=UTF-8");
@@ -274,289 +283,23 @@
     xmlDocument.setParameter("purchase", strPurchase);
     if (log4j.isDebugEnabled())
       log4j.debug("****** setData reportAD_ORGID");
-    /*
-     * String strTreeNode = ReportTaxInvoiceData.selectTreeNode(this, 
Utility.getContext(this, vars,
-     * "#User_Client", "ReportTaxInvoice")); xmlDocument
-     * .setData("reportAD_ORGID","liststructure",AdOrgTreeComboData 
.select(this, strTreeNode,
-     * vars.getOrg()));
-     */
-    try{
-        ComboTableData comboTableData = new ComboTableData(vars, this, 
"TABLEDIR", "AD_Org_ID", "",
-                 "", Utility.getContext(this, vars, "#AccessibleOrgTree", 
"ReportTaxInvoiceJR"), Utility
-                     .getContext(this, vars, "#User_Client", 
"ReportTaxInvoiceJR"), 0);
-             Utility.fillSQLParameters(this, vars, null, comboTableData, 
"ReportTaxInvoiceJR", strOrg);
-             xmlDocument.setData("reportAD_ORGID", "liststructure", 
comboTableData.select(false));
-             comboTableData = null;
+    try {
+      ComboTableData comboTableData = new ComboTableData(vars, this, 
"TABLEDIR", "AD_Org_ID", "",
+          "", Utility.getContext(this, vars, "#AccessibleOrgTree", 
"ReportTaxInvoiceJR"), Utility
+              .getContext(this, vars, "#User_Client", "ReportTaxInvoiceJR"), 
0);
+      Utility.fillSQLParameters(this, vars, null, comboTableData, 
"ReportTaxInvoiceJR", strOrg);
+      xmlDocument.setData("reportAD_ORGID", "liststructure", 
comboTableData.select(false));
+      comboTableData = null;
 
-   }catch (Exception ex) {
-        throw new ServletException(ex);
-       }
+    } catch (Exception ex) {
+      throw new ServletException(ex);
+    }
 
     out.println(xmlDocument.print());
     out.close();
   }
 
-  /*
-   * void printPageDataSheet(HttpServletResponse response, VariablesSecureApp 
vars, String
-   * strDateFrom, String strDateTo, String strOrg, String strDetail, String 
strSales) throws
-   * IOException, ServletException { if (log4j.isDebugEnabled()) 
log4j.debug("Output: dataSheet");
-   * response.setContentType("text/html; charset=UTF-8"); PrintWriter out = 
response.getWriter();
-   * XmlDocument xmlDocument=null; ReportTaxInvoiceData[] dataSale=null; 
ReportTaxInvoiceData[]
-   * data2Sale=null; ReportTaxInvoiceData[] dataPurchase=null; 
ReportTaxInvoiceData[]
-   * data2Purchase=null; String strSalesAux; String strTitle = "FACTURAS CON 
EL EXTRANJERO"; String
-   * strSale = ""; String strPurchase = ""; String discard[] = {"discard", 
"discard", "discard",
-   * "discard"}; if (log4j.isDebugEnabled()) log4j.debug("****** strSales: " + 
strSales +
-   * " fecha desde: " + strDateFrom + " fecha hasta: " + strDateTo + " 
detalle: " + strDetail);
-   * 
-   * if (strDateFrom.equals("") && strDateTo.equals("") && 
strDetail.equals("-1")) { if
-   * (log4j.isDebugEnabled()) log4j.debug("****** all null"); discard[0] = 
"sectionTaxSale";
-   * discard[1] = "sectionTaxForeignSale"; discard[2] = "sectionTaxPurchase"; 
discard[3] =
-   * "sectionTaxForeignPurchase"; strTitle = ""; dataSale = 
ReportTaxInvoiceData.set(); data2Sale =
-   * ReportTaxInvoiceData.set(); dataPurchase = ReportTaxInvoiceData.set(); 
data2Purchase =
-   * ReportTaxInvoiceData.set(); } else if (!strDetail.equals("-1")){ if 
(log4j.isDebugEnabled())
-   * log4j.debug("****** not datailed"); discard[0] = "selEliminarSale"; 
discard[1] =
-   * "selEliminar1Sale"; discard[2] = "selEliminarPurchase"; discard[3] = 
"selEliminar1Purchase"; if
-   * (strSales.equals("S")) { dataSale = ReportTaxInvoiceData.select(this, 
Utility.getContext(this,
-   * vars, "C_Country_Id", "ReportTaxInvoice"), Utility.getContext(this, vars, 
"#User_Client",
-   * "ReportTaxInvoice"), strDateFrom, DateTimeData.nDaysAfter(this, 
strDateTo,"1"), "Y",
-   * Tree.getMembers(this, TreeData.getTreeOrg(this, vars.getClient()), 
strOrg)); data2Sale =
-   * ReportTaxInvoiceData.selectForeign(this, Utility.getContext(this, vars, 
"C_Country_Id",
-   * "ReportTaxInvoice"), Utility.getContext(this, vars, "#User_Client", 
"ReportTaxInvoice"),
-   * strDateFrom, DateTimeData.nDaysAfter(this, strDateTo,"1"), "Y", 
Tree.getMembers(this,
-   * TreeData.getTreeOrg(this, vars.getClient()), strOrg)); strSale = 
Utility.messageBD(this,
-   * "Sale", vars.getLanguage()); } else if (strSales.equals("P")) { 
dataPurchase =
-   * ReportTaxInvoiceData.select(this, Utility.getContext(this, vars, 
"C_Country_Id",
-   * "ReportTaxInvoice"), Utility.getContext(this, vars, "#User_Client", 
"ReportTaxInvoice"),
-   * strDateFrom, DateTimeData.nDaysAfter(this, strDateTo,"1"), "N", 
Tree.getMembers(this,
-   * TreeData.getTreeOrg(this, vars.getClient()), strOrg)); data2Purchase =
-   * ReportTaxInvoiceData.selectForeign(this, Utility.getContext(this, vars, 
"C_Country_Id",
-   * "ReportTaxInvoice"), Utility.getContext(this, vars, "#User_Client", 
"ReportTaxInvoice"),
-   * strDateFrom, DateTimeData.nDaysAfter(this, strDateTo,"1"), "N", 
Tree.getMembers(this,
-   * TreeData.getTreeOrg(this, vars.getClient()), strOrg)); strPurchase = 
Utility.messageBD(this,
-   * "Purchase", vars.getLanguage()); } else { dataSale = 
ReportTaxInvoiceData.select(this,
-   * Utility.getContext(this, vars, "C_Country_Id", "ReportTaxInvoice"), 
Utility.getContext(this,
-   * vars, "#User_Client", "ReportTaxInvoice"), strDateFrom, 
DateTimeData.nDaysAfter(this,
-   * strDateTo,"1"), "Y", Tree.getMembers(this, TreeData.getTreeOrg(this, 
vars.getClient()),
-   * strOrg)); data2Sale = ReportTaxInvoiceData.selectForeign(this, 
Utility.getContext(this, vars,
-   * "C_Country_Id", "ReportTaxInvoice"), Utility.getContext(this, vars, 
"#User_Client",
-   * "ReportTaxInvoice"), strDateFrom, DateTimeData.nDaysAfter(this, 
strDateTo,"1"), "Y",
-   * Tree.getMembers(this, TreeData.getTreeOrg(this, vars.getClient()), 
strOrg)); dataPurchase =
-   * ReportTaxInvoiceData.select(this, Utility.getContext(this, vars, 
"C_Country_Id",
-   * "ReportTaxInvoice"), Utility.getContext(this, vars, "#User_Client", 
"ReportTaxInvoice"),
-   * strDateFrom, DateTimeData.nDaysAfter(this, strDateTo,"1"), "N", 
Tree.getMembers(this,
-   * TreeData.getTreeOrg(this, vars.getClient()), strOrg)); data2Purchase =
-   * ReportTaxInvoiceData.selectForeign(this, Utility.getContext(this, vars, 
"C_Country_Id",
-   * "ReportTaxInvoice"), Utility.getContext(this, vars, "#User_Client", 
"ReportTaxInvoice"),
-   * strDateFrom, DateTimeData.nDaysAfter(this, strDateTo,"1"), "N", 
Tree.getMembers(this,
-   * TreeData.getTreeOrg(this, vars.getClient()), strOrg)); strSale = 
Utility.messageBD(this,
-   * "Sale", vars.getLanguage()); strPurchase = Utility.messageBD(this, 
"Purchase",
-   * vars.getLanguage()); } } else { if (log4j.isDebugEnabled()) 
log4j.debug("****** detailed"); if
-   * (strSales.equals("S")) { dataSale = ReportTaxInvoiceData.select(this, 
Utility.getContext(this,
-   * vars, "C_Country_Id", "ReportTaxInvoice"), Utility.getContext(this, vars, 
"#User_Client",
-   * "ReportTaxInvoice"), strDateFrom, DateTimeData.nDaysAfter(this, 
strDateTo,"1"), "Y",
-   * Tree.getMembers(this, TreeData.getTreeOrg(this, vars.getClient()), 
strOrg)); data2Sale =
-   * ReportTaxInvoiceData.selectForeign(this, Utility.getContext(this, vars, 
"C_Country_Id",
-   * "ReportTaxInvoice"), Utility.getContext(this, vars, "#User_Client", 
"ReportTaxInvoice"),
-   * strDateFrom, DateTimeData.nDaysAfter(this, strDateTo,"1"), "Y", 
Tree.getMembers(this,
-   * TreeData.getTreeOrg(this, vars.getClient()), strOrg)); strSale = 
Utility.messageBD(this,
-   * "Sale", vars.getLanguage()); } else if (strSales.equals("P")) { 
dataPurchase =
-   * ReportTaxInvoiceData.select(this, Utility.getContext(this, vars, 
"C_Country_Id",
-   * "ReportTaxInvoice"), Utility.getContext(this, vars, "#User_Client", 
"ReportTaxInvoice"),
-   * strDateFrom, DateTimeData.nDaysAfter(this, strDateTo,"1"), "N", 
Tree.getMembers(this,
-   * TreeData.getTreeOrg(this, vars.getClient()), strOrg)); data2Purchase =
-   * ReportTaxInvoiceData.selectForeign(this, Utility.getContext(this, vars, 
"C_Country_Id",
-   * "ReportTaxInvoice"), Utility.getContext(this, vars, "#User_Client", 
"ReportTaxInvoice"),
-   * strDateFrom, DateTimeData.nDaysAfter(this, strDateTo,"1"), "N", 
Tree.getMembers(this,
-   * TreeData.getTreeOrg(this, vars.getClient()), strOrg)); strPurchase = 
Utility.messageBD(this,
-   * "Purchase", vars.getLanguage()); } else { dataSale = 
ReportTaxInvoiceData.select(this,
-   * Utility.getContext(this, vars, "C_Country_Id", "ReportTaxInvoice"), 
Utility.getContext(this,
-   * vars, "#User_Client", "ReportTaxInvoice"), strDateFrom, 
DateTimeData.nDaysAfter(this,
-   * strDateTo,"1"), "Y", Tree.getMembers(this, TreeData.getTreeOrg(this, 
vars.getClient()),
-   * strOrg)); data2Sale = ReportTaxInvoiceData.selectForeign(this, 
Utility.getContext(this, vars,
-   * "C_Country_Id", "ReportTaxInvoice"), Utility.getContext(this, vars, 
"#User_Client",
-   * "ReportTaxInvoice"), strDateFrom, DateTimeData.nDaysAfter(this, 
strDateTo,"1"), "Y",
-   * Tree.getMembers(this, TreeData.getTreeOrg(this, vars.getClient()), 
strOrg)); dataPurchase =
-   * ReportTaxInvoiceData.select(this, Utility.getContext(this, vars, 
"C_Country_Id",
-   * "ReportTaxInvoice"), Utility.getContext(this, vars, "#User_Client", 
"ReportTaxInvoice"),
-   * strDateFrom, DateTimeData.nDaysAfter(this, strDateTo,"1"), "N", 
Tree.getMembers(this,
-   * TreeData.getTreeOrg(this, vars.getClient()), strOrg)); data2Purchase =
-   * ReportTaxInvoiceData.selectForeign(this, Utility.getContext(this, vars, 
"C_Country_Id",
-   * "ReportTaxInvoice"), Utility.getContext(this, vars, "#User_Client", 
"ReportTaxInvoice"),
-   * strDateFrom, DateTimeData.nDaysAfter(this, strDateTo,"1"), "N", 
Tree.getMembers(this,
-   * TreeData.getTreeOrg(this, vars.getClient()), strOrg)); strSale = 
Utility.messageBD(this,
-   * "Sale", vars.getLanguage()); strPurchase = Utility.messageBD(this, 
"Purchase",
-   * vars.getLanguage()); } } if (log4j.isDebugEnabled()) log4j.debug("****** 
strSale: " + strSale +
-   * " strPurchase: " + strPurchase); if (log4j.isDebugEnabled()) 
log4j.debug("****** check nulls");
-   * if (dataSale == null || dataSale.length == 0){ discard [0] = 
"sectionTaxSale"; dataSale =
-   * ReportTaxInvoiceData.set(); } if (data2Sale == null || data2Sale.length 
== 0){ discard [1] =
-   * "sectionTaxForeignSale"; strTitle = ""; data2Sale = 
ReportTaxInvoiceData.set(); } if
-   * (dataPurchase == null || dataPurchase.length == 0){ discard [2] = 
"sectionTaxPurchase";
-   * dataPurchase = ReportTaxInvoiceData.set(); } if (data2Purchase == null || 
data2Purchase.length
-   * == 0){ discard [3] = "sectionTaxForeignPurchase"; strTitle = ""; 
data2Purchase =
-   * ReportTaxInvoiceData.set(); } if (log4j.isDebugEnabled()) 
log4j.debug("****** xmlDocument");
-   * xmlDocument = xmlEngine 
.readXmlTemplate("org/openbravo/erpCommon/ad_reports/ReportTaxInvoice",
-   * discard).createXmlDocument();
-   * 
-   * ToolBar toolbar = new ToolBar(this, vars.getLanguage(), 
"ReportTaxInvoice", false, "", "",
-   * "",false, "ad_reports", strReplaceWith, false, 
true);toolbar.prepareSimpleExcelToolBarTemplate(
-   * "submitCommandForm('RELATION_XLS', false, null, 
'ReportTaxInvoice_Excel.xls', 'EXCEL');return false;"
-   * ); xmlDocument.setParameter("toolbar", toolbar.toString());
-   * 
-   * try { WindowTabs tabs = new WindowTabs(this, vars,
-   * "org.openbravo.erpCommon.ad_reports.ReportTaxInvoice");
-   * xmlDocument.setParameter("parentTabContainer", tabs.parentTabs());
-   * xmlDocument.setParameter("mainTabContainer", tabs.mainTabs());
-   * xmlDocument.setParameter("childTabContainer", tabs.childTabs());
-   * xmlDocument.setParameter("theme", vars.getTheme()); NavigationBar nav = 
new NavigationBar(this,
-   * vars.getLanguage(), "ReportTaxInvoice.html", classInfo.id, 
classInfo.type, strReplaceWith,
-   * tabs.breadcrumb()); xmlDocument.setParameter("navigationBar", 
nav.toString()); LeftTabsBar lBar
-   * = new LeftTabsBar(this, vars.getLanguage(), "ReportTaxInvoice.html", 
strReplaceWith);
-   * xmlDocument.setParameter("leftTabs", lBar.manualTemplate()); } catch 
(Exception ex) { throw new
-   * ServletException(ex); } { OBError myMessage = 
vars.getMessage("ReportTaxInvoice");
-   * vars.removeMessage("ReportTaxInvoice"); 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("directory", "var baseDirectory = \"" + 
strReplaceWith + "/\";\n");
-   * xmlDocument.setParameter("paramLanguage", "defaultLang=\"" + 
vars.getLanguage() + "\";");
-   * xmlDocument.setParameter("dateFrom", strDateFrom);
-   * xmlDocument.setParameter("dateFromdisplayFormat", 
vars.getSessionValue("#AD_SqlDateFormat"));
-   * 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")); 
xmlDocument.setParameter("detalle", strDetail);
-   * xmlDocument.setParameter("psale", strSales); 
xmlDocument.setParameter("ppurchase", strSales);
-   * xmlDocument.setParameter("pboth", strSales); 
xmlDocument.setParameter("adOrgId", strOrg);
-   * xmlDocument.setParameter("titleSale", strTitle); 
xmlDocument.setParameter("titlePurchase",
-   * strTitle); xmlDocument.setParameter("sale", strSale); 
xmlDocument.setParameter("purchase",
-   * strPurchase); if (log4j.isDebugEnabled()) log4j.debug("****** setData 
reportAD_ORGID");
-   * 
-   * xmlDocument.setData("reportAD_ORGID", "liststructure", 
OrganizationComboData.selectCombo(this,
-   * vars.getRole()));
-   * 
-   * if (log4j.isDebugEnabled()) log4j.debug("****** setData dataSale");
-   * xmlDocument.setData("structure1Sale", dataSale); if 
(log4j.isDebugEnabled())
-   * log4j.debug("****** setData data2Sale"); 
xmlDocument.setData("structure2Sale", data2Sale); if
-   * (log4j.isDebugEnabled()) log4j.debug("****** setData dataPurchase");
-   * xmlDocument.setData("structure1Purchase", dataPurchase); if 
(log4j.isDebugEnabled())
-   * log4j.debug("****** setData data2Purchase"); 
xmlDocument.setData("structure2Purchase",
-   * data2Purchase); out.println(xmlDocument.print()); out.close(); }
-   */
-
-  private void printPageDataExcel(HttpServletResponse response, 
VariablesSecureApp vars,
-      String strDateFrom, String strDateTo, String strOrg, String strDetail, 
String strSales,String strCurrencyId)
-      throws IOException, ServletException {
-    if (log4j.isDebugEnabled())
-      log4j.debug("Output: dataSheet");
-    response.setContentType("application/xls");
-    PrintWriter out = response.getWriter();
-    XmlDocument xmlDocument = null;
-    ReportTaxInvoiceData[] dataSale = null;
-    ReportTaxInvoiceData[] data2Sale = null;
-    ReportTaxInvoiceData[] dataPurchase = null;
-    ReportTaxInvoiceData[] data2Purchase = null;
-    String strSale = "";
-    String strPurchase = "";
-    String discard[] = { "discard", "discard", "discard", "discard" };
-    if (log4j.isDebugEnabled())
-      log4j.debug("****** strSales: " + strSales + " fecha desde: " + 
strDateFrom
-          + " fecha hasta: " + strDateTo + " detalle: " + strDetail);
-    /*
-     * if (strSales.equals("S")) strSalesAux = "Y"; else strSalesAux = "N";
-     */
-    if (strDateFrom.equals("") && strDateTo.equals("")) {
-      if (log4j.isDebugEnabled())
-        log4j.debug("****** all null");
-      discard[0] = "sectionDetailSale";

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to