Fixes issue 36932: ReportWorkRequirementDailyEnv removed as isn't referenced
authorMark <markmm82@gmail.com>
Thu, 07 Feb 2019 00:36:12 -0300
changeset 35444 9feac3af1d2f
parent 35443 f4bdb985e356
child 35445 3358f7883c08
Fixes issue 36932: ReportWorkRequirementDailyEnv removed as isn't referenced

The ReportWorkRequirementDailyEnv was not referenced at all in AD so it was removed
src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv.html
src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv.java
src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv.xml
src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnvEdit.html
src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnvEdit.xml
src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv_data.xsql
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv.html	Wed Feb 13 16:38:42 2019 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,384 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
-<!--
- *************************************************************************
- * The contents of this file are subject to the Openbravo  Public  License
- * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
- * Version 1.1  with a permitted attribution clause; you may not  use this
- * file except in compliance with the License. You  may  obtain  a copy of
- * the License at http://www.openbravo.com/legal/license.html
- * Software distributed under the License  is  distributed  on  an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific  language  governing  rights  and  limitations
- * under the License.
- * The Original Code is Openbravo ERP.
- * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2001-2010 Openbravo SLU
- * All Rights Reserved.
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>Report Work Requirement Daily</title>
-    <link rel="shortcut icon" href="../../../../../web/images/favicon.ico" type="image/x-icon" />
-    <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Openbravo_ERP_250.css" id="paramCSS" />
-     
-    <script language="JavaScript" type="text/javascript" id="paramDirectory">
-      var baseDirectory = "../../../../../web/";
-      </script>
-      <script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
-      <script language="JavaScript" type="text/javascript" id="paramLanguage">
-        var defaultLang = "en_US";
-      </script>
-      <script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></script>
-      <script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
-      <script type="text/javascript">
-        dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
-      </script>
-<script language="JavaScript" type="text/javascript">
-function validate()
-{
-	var frm = document.frmMain;
-	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		setWindowElementFocus(frm.inpDateFrom);
-		showJSMessage(7);
-		return false;
-	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		setWindowElementFocus(frm.inpDateTo);
-		showJSMessage(7);
-		return false;
-	}
-	return true;
-}
-</script>
-  	<script language="JavaScript" type="text/javascript">
-	function onLoadDo(){
-		this.windowTables = new Array(
-		  new windowTableId('client', 'buttonHTML')
-		);
-		setWindowTableParentElement();
-		this.tabsTables = new Array(
-		  new tabTableId('tdtopTabs')
-		);
-		setTabTableParentElement();
-		enableShortcuts('edition');
-		setBrowserAutoComplete(false);
-		
-		xx();
-		resizeArea();
-		updateMenuIcon('buttonMenu');
-
-		setWindowElementFocus('firstElement');
-	}
-
-	function onResizeDo(){
-		resizeArea();
-	}
-	</script>
-</head>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
-    <form method="post" action="ReportWorkRequirementDailyEnv.html" name="frmMain" id="form">
-      <input type="hidden" name="Command"></input>
-  <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
-    <tr>
-      <td valign="top" id="tdleftTabs"></td>
-      <td valign="top">
-        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Left">
-          <tr><td class="Main_NavBar_bg_left" id="tdleftSeparator"></td></tr>
-          <tr><td class="Main_ToolBar_bg_left" valign="top"></td></tr>
-          <tr><td class="Main_Client_bg_left"></td></tr>
-          <tr><td class="Main_Bottom_bg_left"></td></tr>
-        </table>
-      </td>
-      <td valign="top">
-        <div class="Main_ContentPane_NavBar" id="tdtopButtons"></div>
-        <div class="Main_ContentPane_ToolBar" id="paramToolBar"></div>
-        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_TabPane" id="tdtopTabs">
-          <tr id="paramParentTabContainer"></tr>
-          <tr id="paramMainTabContainer"></tr>
-          <tr id="paramChildTabContainer"></tr>
-        </table>
-        <div class="Main_ContentPane_Client" style="overflow: auto; display: none;" id="client">
-                <table class="dojoTabContainer" border="0" cellpadding="0" cellspacing="0" width="100%" summary="">
-                  <tr>
-                    <td>
-                      <table class="dojoTabPaneWrapper" border="0" cellpadding="0" cellspacing="0" width="100%" summary="">
-                        <tr>
-                          <td>
-                            <!-- MessageBox -->
-
-                            <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
-                              <tbody>
-                              <tr class="MessageBox_TopMargin">
-                                <td class="MessageBox_LeftMargin"></td>
-                                <td></td>
-                                <td class="MessageBox_RightMargin"></td>
-                              </tr>
-                              <tr>
-                                <td class="MessageBox_LeftMargin"></td>
-                                <td>
-
-                                  <table cellpadding="0" cellspacing="0" class="MessageBox_Container">
-                                    <tbody>
-                                    <tr>
-                                      <td class="MessageBox_LeftTrans">
-                                        <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
-                                          <tbody>
-                                          <tr>
-                                            <td class="MessageBox_TopLeft"></td>
-                                          </tr>
-                                          <tr>
-                                            <td class="MessageBox_Left"></td>
-                                          </tr>
-                                          </tbody>
-                                        </table>
-                                      </td>
-                                      <td class="MessageBox_bg">
-
-                                        <table class="MessageBox_Top">
-                                        <tbody>
-                                          <tr>
-                                            <td>
-                                              <span>
-                                              <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
-                                                <tbody>
-                                                <tr>
-                                                  <td class="MessageBox_Icon_ContentCell">
-                                                    <div class="MessageBox_Icon"></div>
-                                                  </td>
-                                                  <td style="vertical-align: top;" id="messageBoxIDContent">
-                                                    <span>
-                                                      <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
-                                                        xxInfo: AccessTableWithNoView
-                                                      </div>
-                                                      <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
-                                                        xxThe current information is empty.
-                                                      </div>
-                                                      <div class="MessageBox_TextSeparator"></div>
-                                                    </span>
-                                                  </td>
-                                                </tr>
-                                                </tbody>
-                                              </table>
-                                              </span>
-                                            </td>
-                                          </tr>
-                                          </tbody>
-                                        </table>
-
-                                      </td>
-                                      <td class="MessageBox_RightTrans">
-                                        <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
-                                          <tbody>
-                                          <tr>
-                                            <td class="MessageBox_TopRight"></td>
-                                          </tr>
-                                          <tr>
-                                            <td class="MessageBox_Right"></td>
-                                          </tr>
-                                          </tbody>
-                                        </table>
-                                      </td>
-                                    </tr>
-                                    <tr>
-                                      <td rowspan="2" class="MessageBox_BottomLeft">
-                                      </td>
-                                      <td class="MessageBox_BottomTrans MessageBox_bg">
-                                      </td>
-                                      <td rowspan="2" class="MessageBox_BottomRight">
-                                      </td>
-                                    </tr>
-                                    <tr>
-                                      <td class="MessageBox_Bottom">
-                                      </td>
-                                    </tr>
-                                    </tbody>
-                                  </table>
-
-                                </td>
-                                <td class="MessageBox_RightMargin"></td>
-                              </tr>
-                              <tr class="MessageBox_BottomMargin">
-                                <td class="MessageBox_LeftMargin"></td>
-                                <td></td>
-                                <td class="MessageBox_RightMargin"></td>
-                              </tr>
-                              </tbody>
-                            </table>
-                            <!-- USER CONTROLS -->
-              <table class="Main_Client_TableEdition">
-                <tr>
-                  <td class="TableEdition_OneCell_width"></td>
-                  <td class="TableEdition_OneCell_width"></td>
-                  <td class="TableEdition_OneCell_width"></td>
-                  <td class="TableEdition_OneCell_width"></td>
-                  <td class="TableEdition_OneCell_width"></td>
-                  <td class="TableEdition_OneCell_width"></td>
-                </tr>
-                <tr>
-                <td colspan="6">
-                  <table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
-                  <tbody>
-                    <tr class="FieldGroup_TopMargin"/>
-                    <tr>
-                      <td class="FieldGroupTitle_Left"><img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
-                      <td class="FieldGroupTitle">Primary Filters</td>
-                      <td class="FieldGroupTitle_Right"><img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
-                      <td class="FieldGroupContent"/>
-                    </tr>
-                    <tr class="FieldGroup_BottomMargin"/>
-                  </tbody>
-                  </table>
-                </td>
-                </tr>
-                <tr>
-                  <td class="TitleCell"><span class="LabelText">Start From Date</span></td>
-                  <td class="TextBox_btn_ContentCell">
-                    <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                      <tr>
-                        <td class="TextBox_ContentCell">
-                          <input dojoType="openbravo:DateTextbox" lowerThan="paramDateTo" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpDateFrom" id="paramDateFrom" size="10" maxlength="10" value="" onkeyup="autoCompleteDate(this.textbox, this.displayFormat);return true;"></input><script>djConfig.searchIds.push("paramDateFrom");</script>
-                        </td>
-                        <td class="FieldButton_bg">
-                          <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calendar'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onclick="showCalendar('frmMain.inpDateFrom', document.frmMain.inpDateFrom.value, false);return false;" >
-                          <table class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                            <tr>
-                              <td class="FieldButton_bg">
-                                <img alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></img>
-                              </td>
-                            </tr>
-                          </table>
-                          </a>
-                        </td>
-                      </tr>
-                    </table>
-                 </td>
-                  <td class="TitleCell"></td>
-                  <td class="TitleCell"><span class="LabelText">To Date</span></td>
-                  <td class="TextBox_btn_ContentCell">
-                    <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                      <tr>
-                        <td class="TextBox_ContentCell">
-                          <input dojoType="openbravo:DateTextbox" greaterThan="paramDateFrom" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpDateTo" id="paramDateTo" size="10" maxlength="10" value="" onkeyup="autoCompleteDate(this.textbox, this.displayFormat);return true;"></input><script>djConfig.searchIds.push("paramDateTo");</script>
-                        </td>
-                        <td class="FieldButton_bg">
-                          <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calendar'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="showCalendar('frmMain.inpDateTo', document.frmMain.inpDateTo.value, false);return false;">
-                          <table class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                            <tr>
-                              <td class="FieldButton_bg">
-                                <img alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></img>
-                              </td>
-                            </tr>
-                          </table>
-                          </a>
-                        </td>
-                      </tr>
-                    </table>
-                  </td>
-                  <td class="ContentCell"> </td>
-                </tr>
-                <tr>
-                  <td class="TitleCell"><span class="LabelText">Production Plan</span></td>
-                  <td class="Combo_ContentCell" colspan="2"> <select  name="inpmaProcessPlanId" id="inpmaProcessPlanId" class="Combo Combo_TwoCells_width">
-                      <option value=""> <div id="reportMA_PROCESSPLAN"></div></option>
-                    </select></td>
-                  <td class="ContentCell"></td>
-                  <td class="TitleCell"></td>
-                  <td class="ContentCell"></td>
-                </tr>
-                  <tr>
-                    <td colspan="6">
-                      <table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
-                      <tbody>
-                        <tr class="FieldGroup_TopMargin"/>
-                        <tr>
-                          <td class="FieldGroupTitle_Left"><img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
-                          <td class="FieldGroupTitle">View Results</td>
-                          <td class="FieldGroupTitle_Right"><img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
-                          <td class="FieldGroupContent"/>
-                        </tr>
-                        <tr class="FieldGroup_BottomMargin"/>
-                      </tbody>
-                      </table>
-                    </td>
-                  </tr>
-
-                  <tr>
-                    <td class="TitleCell"></td>
-                    <td class="Button_CenterAlign_ContentCell">
-                      <div>
-                        <button type="button" 
-                          id="buttonHTML" 
-                          class="ButtonLink" 
-                          onclick="openServletNewWindow('FIND', false, 'ReportWorkRequirementDailyEnv.html', 'ReportWorkRequirementDailyEnv', null, false, '700', '1000', true);return false;" 
-                          onfocus="buttonEvent('onfocus', this); window.status='View Results in a New Window'; return true;" 
-                          onblur="buttonEvent('onblur', this);" 
-                          onkeyup="buttonEvent('onkeyup', this);" 
-                          onkeydown="buttonEvent('onkeydown', this);" 
-                          onkeypress="buttonEvent('onkeypress', this);" 
-                          onmouseup="buttonEvent('onmouseup', this);" 
-                          onmousedown="buttonEvent('onmousedown', this);" 
-                          onmouseover="buttonEvent('onmouseover', this); window.status='View Results in a New Window'; return true;" 
-                          onmouseout="buttonEvent('onmouseout', this);">
-                          <table class="Button">
-                            <tr>
-                              <td class="Button_left"><img class="Button_Icon Button_Icon_html" alt="View Results in a New Window" title="View Results in a New Window" src="../../../../../web/images/blank.gif" border="0" /></td>
-                              <td class="Button_text">HTML Format</td>
-                              <td class="Button_right"></td>
-                            </tr>
-                          </table>
-                        </button>
-                      </div>
-                    </td>
-                    <td class="ContentCell"></input>
-                    </td>
-                    <td class="TitleCell"></td>
-                    <td class="ContentCell"></td>
-                  </tr>
-		</table>
-                      <!-- START Debug Console -->
-
-                      <!--div dojotype="FloatingPane" title="Debug Console" constraintocontainer="1" style="width: 100%; height: 100px; left: 0px; bottom: 20px;">
-                        <div id="_dojoDebugConsole">
-                        </div>
-                      </div-->
-                      <!-- END Debug Console -->
-                      <!-- USER CONTROLS -->
-                </td>
-              </tr>
-              </table>
-              </td>
-            </tr>
-          </table>
-        </div>
-        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Menu_ContentPane_Bottom" id="tdbottomSeparator">
-          <tr>
-            <td class="Main_Bottom_bg"><img src="../../../../../web/images/blank.gif" border="0"></td>
-          </tr>
-        </table></td>
-      <td valign="top">
-        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Right" id="tdrightSeparator">
-          <tr><td class="Main_NavBar_bg_right"></td></tr>
-          <tr><td class="Main_ToolBar_bg_right" valign="top"></td></tr>
-          <tr><td class="Main_Client_bg_right"></td></tr>
-          <tr><td class="Main_Bottom_bg_right"></td></tr>
-        </table>
-      </td>
-    </tr>
-  </table>
-</form>
-</body>
-</html>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv.java	Wed Feb 13 16:38:42 2019 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,208 +0,0 @@
-/*
- *************************************************************************
- * The contents of this file are subject to the Openbravo  Public  License
- * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
- * Version 1.1  with a permitted attribution clause; you may not  use this
- * file except in compliance with the License. You  may  obtain  a copy of
- * the License at http://www.openbravo.com/legal/license.html 
- * Software distributed under the License  is  distributed  on  an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific  language  governing  rights  and  limitations
- * under the License. 
- * The Original Code is Openbravo ERP. 
- * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2001-2010 Openbravo SLU 
- * All Rights Reserved.
- * Contributor(s):  ______________________________________.
- ************************************************************************
- */
-package org.openbravo.erpCommon.ad_reports;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.openbravo.base.secureApp.HttpSecureAppServlet;
-import org.openbravo.base.secureApp.VariablesSecureApp;
-import org.openbravo.erpCommon.businessUtility.WindowTabs;
-import org.openbravo.erpCommon.utility.DateTimeData;
-import org.openbravo.erpCommon.utility.LeftTabsBar;
-import org.openbravo.erpCommon.utility.NavigationBar;
-import org.openbravo.erpCommon.utility.OBError;
-import org.openbravo.erpCommon.utility.ToolBar;
-import org.openbravo.erpCommon.utility.Utility;
-import org.openbravo.xmlEngine.XmlDocument;
-
-public class ReportWorkRequirementDailyEnv extends HttpSecureAppServlet {
-  private static final long serialVersionUID = 1L;
-
-  @Override
-  public void doPost(HttpServletRequest request, HttpServletResponse response)
-      throws IOException, ServletException {
-    VariablesSecureApp vars = new VariablesSecureApp(request);
-
-    if (vars.commandIn("DEFAULT")) {
-      String strStartDateFrom = vars.getGlobalVariable("inpStartDateFrom",
-          "ReportWorkRequirementDailyEnv|StartDateFrom", "");
-      String strStartDateTo = vars.getGlobalVariable("inpStartDateTo",
-          "ReportWorkRequirementDailyEnv|StartDateTo", "");
-      String strmaProcessPlan = vars.getGlobalVariable("inpmaProcessPlanId",
-          "ReportWorkRequirementDailyEnv|MA_ProcessPlan_ID", "");
-      strStartDateTo = DateTimeData.today(this);
-      strStartDateFrom = DateTimeData.today(this);
-      printPageDataSheet(response, vars, strStartDateFrom, strStartDateTo, strmaProcessPlan);
-    } else if (vars.commandIn("FIND")) {
-      String strStartDateFrom = vars.getRequestGlobalVariable("inpStartDateFrom",
-          "ReportWorkRequirementDailyEnv|StartDateFrom");
-      String strStartDateTo = vars.getRequestGlobalVariable("inpStartDateTo",
-          "ReportWorkRequirementDailyEnv|StartDateTo");
-      String strmaProcessPlan = vars.getRequestGlobalVariable("inpmaProcessPlanId",
-          "ReportWorkRequirementDailyEnv|MA_ProcessPlan_ID");
-      printPageDataHtml(response, vars, strStartDateFrom, strStartDateTo, strmaProcessPlan);
-    } else {
-      pageError(response);
-    }
-  }
-
-  private void printPageDataHtml(HttpServletResponse response, VariablesSecureApp vars,
-      String strStartDateFrom, String strStartDateTo, String strmaProcessPlan)
-      throws IOException, ServletException {
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("Output: dataSheet");
-    }
-    response.setContentType("text/html; charset=UTF-8");
-    PrintWriter out = response.getWriter();
-    XmlDocument xmlDocument = null;
-    ReportWorkRequirementDailyEnvData[] data = null;
-    xmlDocument = xmlEngine
-        .readXmlTemplate("org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnvEdit")
-        .createXmlDocument();
-    data = ReportWorkRequirementDailyEnvData.select(this, vars.getLanguage(),
-        Utility.getContext(this, vars, "#User_Client", "ReportWorkRequirementDailyEnv"),
-        Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportWorkRequirementDailyEnv"),
-        strStartDateFrom, strStartDateTo, strmaProcessPlan);
-
-    xmlDocument.setParameter("directory", "var baseDirectory = \"" + strReplaceWith + "/\";\n");
-    xmlDocument.setParameter("paramLanguage", "defaultLang=\"" + vars.getLanguage() + "\";");
-    xmlDocument.setParameter("theme", vars.getTheme());
-    xmlDocument.setData("structure1", data);
-    out.println(xmlDocument.print());
-    out.close();
-  }
-
-  private void printPageDataSheet(HttpServletResponse response, VariablesSecureApp vars,
-      String strStartDateFrom, String strStartDateTo, String strmaProcessPlan)
-      throws IOException, ServletException {
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("Output: dataSheet");
-    }
-    response.setContentType("text/html; charset=UTF-8");
-    PrintWriter out = response.getWriter();
-    XmlDocument xmlDocument = null;
-    xmlDocument = xmlEngine
-        .readXmlTemplate("org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv")
-        .createXmlDocument();
-
-    ToolBar toolbar = new ToolBar(this, vars.getLanguage(), "ReportWorkRequirementDailyEnv", 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.ReportWorkRequirementDailyEnv");
-      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(),
-          "ReportWorkRequirementDailyEnv.html", classInfo.id, classInfo.type, strReplaceWith,
-          tabs.breadcrumb());
-      xmlDocument.setParameter("navigationBar", nav.toString());
-      LeftTabsBar lBar = new LeftTabsBar(this, vars.getLanguage(),
-          "ReportWorkRequirementDailyEnv.html", strReplaceWith);
-      xmlDocument.setParameter("leftTabs", lBar.manualTemplate());
-    } catch (Exception ex) {
-      throw new ServletException(ex);
-    }
-    {
-      OBError myMessage = vars.getMessage("ReportWorkRequirementDailyEnv");
-      vars.removeMessage("ReportWorkRequirementDailyEnv");
-      if (myMessage != null) {
-        xmlDocument.setParameter("messageType", myMessage.getType());
-        xmlDocument.setParameter("messageTitle", myMessage.getTitle());
-        xmlDocument.setParameter("messageMessage", myMessage.getMessage());
-      }
-    }
-
-    xmlDocument.setParameter("directory", "var baseDirectory = \"" + strReplaceWith + "/\";\n");
-    xmlDocument.setParameter("paramLanguage", "defaultLang=\"" + vars.getLanguage() + "\";");
-    xmlDocument.setParameter("maProcessPlan", strmaProcessPlan);
-    xmlDocument.setParameter("dateFrom", strStartDateFrom);
-    xmlDocument.setParameter("dateFromdisplayFormat", vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setParameter("dateFromsaveFormat", vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setParameter("dateTo", strStartDateTo);
-    xmlDocument.setParameter("dateTodisplayFormat", vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setParameter("dateTosaveFormat", vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setData("reportMA_PROCESSPLAN", "liststructure",
-        ProcessPlanComboData.select(this,
-            Utility.getContext(this, vars, "#User_Client", "ReportWorkRequirementDailyEnv"),
-            Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportWorkRequirementDailyEnv")));
-
-    out.println(xmlDocument.print());
-    out.close();
-  }
-
-  /*
-   * void printPageDataSheet(HttpServletResponse response, VariablesSecureApp vars, String
-   * strStartDateFrom, String strStartDateTo, String strmaProcessPlan) throws IOException,
-   * ServletException { if (log4j.isDebugEnabled()) log4j.debug("Output: dataSheet");
-   * response.setContentType("text/html; charset=UTF-8"); PrintWriter out = response.getWriter();
-   * XmlDocument xmlDocument=null; ReportWorkRequirementDailyEnvData[] data=null; xmlDocument =
-   * xmlEngine.readXmlTemplate ("org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv"
-   * ).createXmlDocument(); data = ReportWorkRequirementDailyEnvData.select(this,
-   * vars.getLanguage(), Utility.getContext(this, vars, "#User_Client",
-   * "ReportWorkRequirementDailyEnv"), Utility.getContext(this, vars, "#AccessibleOrgTree",
-   * "ReportWorkRequirementDailyEnv"), strStartDateFrom, strStartDateTo, strmaProcessPlan);
-   * 
-   * ToolBar toolbar = new ToolBar(this, vars.getLanguage(), "ReportWorkRequirementDailyEnv", 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.ReportWorkRequirementDailyEnv");
-   * 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(), "ReportWorkRequirementDailyEnv.html", classInfo.id, classInfo.type,
-   * strReplaceWith, tabs.breadcrumb()); xmlDocument.setParameter("navigationBar", nav.toString());
-   * LeftTabsBar lBar = new LeftTabsBar(this, vars.getLanguage(),
-   * "ReportWorkRequirementDailyEnv.html", strReplaceWith); xmlDocument.setParameter("leftTabs",
-   * lBar.manualTemplate()); } catch (Exception ex) { throw new ServletException(ex); } { OBError
-   * myMessage = vars.getMessage("ReportWorkRequirementDailyEnv");
-   * vars.removeMessage("ReportWorkRequirementDailyEnv"); if (myMessage!=null) {
-   * xmlDocument.setParameter("messageType", myMessage.getType());
-   * xmlDocument.setParameter("messageTitle", myMessage.getTitle());
-   * xmlDocument.setParameter("messageMessage", myMessage.getMessage()); } }
-   * 
-   * xmlDocument.setParameter("directory", "var baseDirectory = \"" + strReplaceWith + "/\";\n");
-   * xmlDocument.setParameter("paramLanguage", "defaultLang=\"" + vars.getLanguage() + "\";");
-   * xmlDocument.setParameter("maProcessPlan", strmaProcessPlan);
-   * xmlDocument.setParameter("startDateFrom", strStartDateFrom);
-   * xmlDocument.setParameter("startDateTo", strStartDateTo);
-   * xmlDocument.setData("reportMA_PROCESSPLAN", "liststructure", ProcessPlanComboData.select(this,
-   * Utility.getContext(this, vars, "#User_Client", "ReportWorkRequirementDailyEnv"),
-   * Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportWorkRequirementDailyEnv")));
-   * xmlDocument.setData("structure1", data); out.println(xmlDocument.print()); out.close(); }
-   */
-
-  @Override
-  public String getServletInfo() {
-    return "Servlet ReportWorkRequirementDailyEnv.";
-  } // end of getServletInfo() method
-}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv.xml	Wed Feb 13 16:38:42 2019 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-*************************************************************************
-* The contents of this file are subject to the Openbravo  Public  License
-* Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
-* Version 1.1  with a permitted attribution clause; you may not  use this
-* file except in compliance with the License. You  may  obtain  a copy of
-* the License at http://www.openbravo.com/legal/license.html 
-* Software distributed under the License  is  distributed  on  an "AS IS"
-* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
-* License for the specific  language  governing  rights  and  limitations
-* under the License. 
-* The Original Code is Openbravo ERP. 
-* The Initial Developer of the Original Code is Openbravo SLU 
-* All portions are Copyright (C) 2001-2006 Openbravo SLU 
-* All Rights Reserved. 
-* Contributor(s):  ______________________________________.
-************************************************************************
--->
-<REPORT>
-  <template file="ReportWorkRequirementDailyEnv.html"/>
-  <PARAMETER id="paramToolBar" name="toolbar" default=""/>
-  <PARAMETER id="paramDirectory" name="directory" default=""/>
-  <PARAMETER id="paramLanguage" name="paramLanguage" default=""/>
-  <PARAMETER id="paramDateFrom" name="dateFrom" attribute="value"/>
-	<PARAMETER id="paramDateFrom" name="dateFromdisplayFormat" attribute="displayformat" replace="xx"/>
-	<PARAMETER id="paramDateFrom" name="dateFromsaveFormat" attribute="saveformat" replace="yy"/>
-  <PARAMETER id="paramDateTo" name="dateTo" attribute="value"/>
-	<PARAMETER id="paramDateTo" name="dateTodisplayFormat" attribute="displayformat" replace="xx"/>
-	<PARAMETER id="paramDateTo" name="dateTosaveFormat" attribute="saveformat" replace="yy"/>
-  <PARAMETER id="paramMA_PROCESSPLAN_ID" name="maProcessPlan" default=""/>
-  <PARAMETER id="paramCSS" name="theme" attribute="href" replace="Default"/>
-  <PARAMETER id="tdleftTabs" name="leftTabs" default=""/>
-  <PARAMETER id="paramParentTabContainer" name="parentTabContainer" default=" "/>
-  <PARAMETER id="paramMainTabContainer" name="mainTabContainer" default=" "/>
-  <PARAMETER id="paramChildTabContainer" name="childTabContainer" default=" "/>
-  <PARAMETER id="tdtopButtons" name="navigationBar" default=""/>
-  <PARAMETER id="messageBoxID" name="messageType" attribute="class" replace="yy" default="HIDDEN"/>
-  <PARAMETER id="messageBoxIDTitle" name="messageTitle" default=""/>
-  <PARAMETER id="messageBoxIDMessage" name="messageMessage" default=""/>
-  <structure name="structure1">
-    <FIELD id="wrdocno">wrdocno</FIELD>
-    <FIELD id="fieldProdName">prodname</FIELD>
-    <FIELD id="quantity" format="integerEdition">quantity</FIELD>
-    <FIELD id="fieldDayWord">dayword</FIELD>
-    <FIELD id="fieldDay">day</FIELD>
-    <SUBREPORT id="reportMA_PROCESSPLAN" name="reportMA_PROCESSPLAN" report="org/openbravo/erpCommon/reference/List">
-      <ARGUMENT name="parameterListSelected" withId="paramMA_PROCESSPLAN_ID"/>
-    </SUBREPORT>
-    <SECTION id="sectionWorkRequirementDay" field="day"/>"
-    <SECTION id="sectionDetail"/>
-  </structure>
-</REPORT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnvEdit.html	Wed Feb 13 16:38:42 2019 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
-<!--
- *************************************************************************
- * The contents of this file are subject to the Openbravo  Public  License
- * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
- * Version 1.1  with a permitted attribution clause; you may not  use this
- * file except in compliance with the License. You  may  obtain  a copy of
- * the License at http://www.openbravo.com/legal/license.html
- * Software distributed under the License  is  distributed  on  an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific  language  governing  rights  and  limitations
- * under the License.
- * The Original Code is Openbravo ERP.
- * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2001-2011 Openbravo SLU
- * All Rights Reserved.
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>Report Work Requirement Daily</title>
-    <link rel="shortcut icon" href="../../../../../web/images/favicon.ico" type="image/x-icon" />
-    <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Openbravo_ERP_250.css" id="paramCSS" />
-    <script language="JavaScript" type="text/javascript" id="paramDirectory">
-      var baseDirectory = "../../../../../web/";
-      </script>
-      <script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
-      <script language="JavaScript" type="text/javascript" id="paramLanguage">
-        var defaultLang = "en_US";
-      </script>
-      <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></script>
-      <script language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></script>
-      
-  </head>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();">
-    <form method="post" action="ReportWorkRequirementDailyEnv.html" name="frmMain" id="form">
-      <input type="hidden" name="Command"></input>
-      
-      <div id="sectionWRType"> 
-        <div id="sectionWorkRequirementDay"> 
-          <div class="ReportTitle"> <span id="fieldDayWord">Tuesday</span>&nbsp;&nbsp;<span id="fieldWRType">Ramp</span>&nbsp;&nbsp;(<span id="fieldDay">21/02/2006</span>)</div>
-          <br></br>
-          <div id="sectionDetail"> 
-            <table width="80%" border="0">
-              <tr class="TableDetailRowEven"> 
-                <td id="wrdocno" width="10%" >xxwrdocno</td>
-                <td id="fieldProdName" width="73%" >xxsequencename</td>
-                <td id="quantity" width="10%" align="right" >30</td>
-                <td width="7%" >Palets</td>
-              </tr>
-            </table>
-          </div>
-        </div>
-      </div>
-      
-</form>
-</body>
-</html>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnvEdit.xml	Wed Feb 13 16:38:42 2019 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-*************************************************************************
-* The contents of this file are subject to the Openbravo  Public  License
-* Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
-* Version 1.1  with a permitted attribution clause; you may not  use this
-* file except in compliance with the License. You  may  obtain  a copy of
-* the License at http://www.openbravo.com/legal/license.html 
-* Software distributed under the License  is  distributed  on  an "AS IS"
-* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
-* License for the specific  language  governing  rights  and  limitations
-* under the License. 
-* The Original Code is Openbravo ERP. 
-* The Initial Developer of the Original Code is Openbravo SLU 
-* All portions are Copyright (C) 2001-2006 Openbravo SLU 
-* All Rights Reserved. 
-* Contributor(s):  ______________________________________.
-************************************************************************
--->
-<REPORT>
-  <template file="ReportWorkRequirementDailyEnvEdit.html"/>
-
-  <PARAMETER id="paramDirectory" name="directory" default=""/>
-  <PARAMETER id="paramLanguage" name="paramLanguage" default=""/>
-	<PARAMETER id="paramCSS" name="theme" attribute="href" replace="Default"/>
-   <structure name="structure1">
-    <FIELD id="wrdocno">wrdocno</FIELD>
-    <FIELD id="fieldProdName">prodname</FIELD>
-    <FIELD id="quantity" format="integerEdition">quantity</FIELD>
-    <FIELD id="fieldDayWord">dayword</FIELD>
-    <FIELD id="fieldDay">day</FIELD>
-    <SECTION id="sectionWorkRequirementDay" field="day"/>"
-    <SECTION id="sectionDetail"/>
-  </structure>
-</REPORT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv_data.xsql	Wed Feb 13 16:38:42 2019 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- *************************************************************************
- * The contents of this file are subject to the Openbravo  Public  License
- * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
- * Version 1.1  with a permitted attribution clause; you may not  use this
- * file except in compliance with the License. You  may  obtain  a copy of
- * the License at http://www.openbravo.com/legal/license.html 
- * Software distributed under the License  is  distributed  on  an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific  language  governing  rights  and  limitations
- * under the License. 
- * The Original Code is Openbravo ERP. 
- * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2001-2011 Openbravo SLU 
- * All Rights Reserved. 
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-
-
-
-
-
-<SqlClass name="ReportWorkRequirementDailyEnvData" package="org.openbravo.erpCommon.ad_reports">
-  <SqlClassComment></SqlClassComment>
-  <SqlMethod name="select" type="preparedStatement" return="multiple">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-    <![CDATA[
-      SELECT pd.Name as prodname, wr.startdate as day, wrp.quantity*wrpp.movementqty/pd.unitsperpallet as quantity, 
-      AD_REF_LIST_V.NAME as dayword, wr.documentno as wrdocno
-      FROM MA_WorkRequirement wr, MA_WRPhase wrp, MA_WRPhaseProduct wrpp, M_Product pd, AD_REF_LIST_V
-      WHERE wr.MA_WORKREQUIREMENT_ID = wrp.MA_WORKREQUIREMENT_ID
-        AND wrp.MA_WRPHASE_ID = wrpp.MA_WRPHASE_ID
-        AND wrpp.M_PRODUCT_ID = pd.M_PRODUCT_ID
-	AND TO_CHAR(WR.STARTDATE, 'D') = AD_REF_LIST_V.VALUE
-	AND AD_REF_LIST_V.AD_REFERENCE_ID = '167'
-	AND AD_REF_LIST_V.AD_LANGUAGE = ?
-        AND wrp.CLOSED = 'N'
-        AND wrpp.PRODUCTIONTYPE = '+'
-        AND wr.AD_CLIENT_ID IN ('1')
-        AND wr.AD_ORG_ID IN ('1')
-        AND 1=1
-      ORDER BY wr.enddate, wrp.SeqNo
-     ]]></Sql>
-    <Parameter name="adLanguageId"/>
-    <Parameter name="adUserClient" type="replace" optional="true" after="AND wr.AD_CLIENT_ID IN (" text="'1'"/>
-    <Parameter name="adUserOrg" type="replace" optional="true" after="AND wr.AD_ORG_ID IN (" text="'1'"/>
-    <Parameter name="parStartDateFrom" optional="true" after="AND 1=1"><![CDATA[AND wr.STARTDATE >= TO_DATE(?)]]></Parameter>
-    <Parameter name="parStartDateTo" optional="true" after="AND 1=1"><![CDATA[AND wr.STARTDATE <= TO_DATE(?)]]></Parameter>
-    <Parameter name="parProcessPlan" optional="true" after="AND 1=1"><![CDATA[AND wr.MA_ProcessPlan_id = ?]]></Parameter>
-  </SqlMethod>
-</SqlClass>