details: /erp/devel/pi/rev/d56c5c16cc8f
changeset: 10581:d56c5c16cc8f
user: Stefan Hühner <stefan.huehner <at> openbravo.com>
date: Fri Feb 11 17:19:04 2011 +0100
summary: Reformat
diffstat:
src/org/openbravo/erpCommon/info/Project.java | 31 +++++++++++++-------------
1 files changed, 16 insertions(+), 15 deletions(-)
diffs (55 lines):
diff -r 7ed5e8fa21e8 -r d56c5c16cc8f
src/org/openbravo/erpCommon/info/Project.java
--- a/src/org/openbravo/erpCommon/info/Project.java Fri Feb 11 17:13:25
2011 +0100
+++ b/src/org/openbravo/erpCommon/info/Project.java Fri Feb 11 17:19:04
2011 +0100
@@ -260,8 +260,8 @@
String strOrderBy = SelectorUtility.buildOrderByClause(strOrderCols,
strOrderDirs);
page = TableSQLData.calcAndGetBackendPage(vars, "Project.currentPage");
if (vars.getStringParameter("movePage", "").length() > 0) {
- // on movePage action force executing countRows again
- strNewFilter = "";
+ // on movePage action force executing countRows again
+ strNewFilter = "";
}
int oldOffset = offset;
offset = (page * TableSQLData.maxRowsPerGridPage) + offset;
@@ -271,18 +271,18 @@
// or
// first
// load
- String rownum = "0", oraLimit1 = null, oraLimit2 = null, pgLimit =
null;
- if (this.myPool.getRDBMS().equalsIgnoreCase("ORACLE")) {
- oraLimit1 = String.valueOf(offset +
TableSQLData.maxRowsPerGridPage);
- oraLimit2 = (offset + 1) + " AND " + oraLimit1;
- rownum = "ROWNUM";
- } else {
- pgLimit = TableSQLData.maxRowsPerGridPage + " OFFSET " + offset;
- }
- strNumRows = ProjectData.countRows(this, rownum, vars.getLanguage(),
Utility.getContext(this, vars,
- "#User_Client", "Project"), Utility.getSelectorOrgs(this, vars,
strOrg), strKey,
- strName, strBpartners, pgLimit, oraLimit1, oraLimit2);
- //strNumRows = String.valueOf(data.length);
+ String rownum = "0", oraLimit1 = null, oraLimit2 = null, pgLimit =
null;
+ if (this.myPool.getRDBMS().equalsIgnoreCase("ORACLE")) {
+ oraLimit1 = String.valueOf(offset +
TableSQLData.maxRowsPerGridPage);
+ oraLimit2 = (offset + 1) + " AND " + oraLimit1;
+ rownum = "ROWNUM";
+ } else {
+ pgLimit = TableSQLData.maxRowsPerGridPage + " OFFSET " + offset;
+ }
+ strNumRows = ProjectData.countRows(this, rownum, vars.getLanguage(),
Utility.getContext(
+ this, vars, "#User_Client", "Project"),
Utility.getSelectorOrgs(this, vars, strOrg),
+ strKey, strName, strBpartners, pgLimit, oraLimit1, oraLimit2);
+ // strNumRows = String.valueOf(data.length);
vars.setSessionValue("ProjectData.numrows", strNumRows);
} else {
strNumRows = vars.getSessionValue("ProjectData.numrows");
@@ -341,7 +341,8 @@
strRowsData.append(" <title>").append(title).append("</title>\n");
strRowsData.append("
<description>").append(description).append("</description>\n");
strRowsData.append(" </status>\n");
- strRowsData.append(" <rows numRows=\"").append(strNumRows).append("\"
backendPage=\"" + page + "\">\n");
+ strRowsData.append(" <rows numRows=\"").append(strNumRows).append(
+ "\" backendPage=\"" + page + "\">\n");
if (data != null && data.length > 0) {
for (int j = 0; j < data.length; j++) {
strRowsData.append(" <tr>\n");
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits