OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 156 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 156 Rev 182
Line 1... Line 1...
1
/*
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 * 
3
 * 
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
4
 * Copyright 2011-2019 OpenConcerto, by ILM Informatique. All rights reserved.
5
 * 
5
 * 
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
9
 * language governing permissions and limitations under the License.
9
 * language governing permissions and limitations under the License.
Line 150... Line 150...
150
        if (oLastColTmp != null) {
150
        if (oLastColTmp != null) {
151
            lastColumn = sheet.resolveHint(oLastColTmp.toString() + 1).x + 1;
151
            lastColumn = sheet.resolveHint(oLastColTmp.toString() + 1).x + 1;
152
        }
152
        }
153
        Map<String, Map<Integer, String>> mapStyle = searchStyle(sheet, lastColumn, endPageLine);
153
        Map<String, Map<Integer, String>> mapStyle = searchStyle(sheet, lastColumn, endPageLine);
154
 
154
 
155
        // int nbPage = fillTable(tableau, liste, sheet, mapStyle, true, style);
-
 
156
        // int firstLine = Integer.valueOf(tableau.getAttributeValue("firstLine"));
-
 
157
        // int endLine = Integer.valueOf(tableau.getAttributeValue("endLine"));
-
 
158
        // Object printRangeObj = sheet.getPrintRanges();
-
 
159
        //
-
 
160
        // System.err.println("Nombre de page == " + nbPage);
-
 
161
        // if (nbPage == 1) {
-
 
162
        // fillTable(tableau, liste, sheet, mapStyle, false, style);
-
 
163
        // } else {
-
 
164
        //
-
 
165
        // if (printRangeObj != null) {
-
 
166
        // String s = printRangeObj.toString();
-
 
167
        // String[] range = s.split(":");
-
 
168
        //
-
 
169
        // for (int i = 0; i < range.length; i++) {
-
 
170
        // String string = range[i];
-
 
171
        // range[i] = string.subSequence(string.indexOf('.') + 1, string.length()).toString();
-
 
172
        // }
-
 
173
        //
-
 
174
        // int rowEnd = -1;
-
 
175
        // if (range.length > 1) {
-
 
176
        // rowEnd = sheet.resolveHint(range[1]).y + 1;
-
 
177
        // int rowEndNew = rowEnd * (nbPage + 1);
-
 
178
        // String sNew = s.replaceAll(String.valueOf(rowEnd), String.valueOf(rowEndNew));
-
 
179
        // sheet.setPrintRanges(sNew);
-
 
180
        // System.err.println(" ****** Replace print ranges; Old:" + rowEnd + "--" + s + " New:" +
-
 
181
        // rowEndNew + "--" + sNew);
-
 
182
        // }
-
 
183
        // }
-
 
184
        //
-
 
185
        // // le nombre d'éléments ne tient pas dans le tableau du modéle
-
 
186
        // sheet.duplicateFirstRows(endLine, 1);
-
 
187
        //
-
 
188
        // int lineToAdd = endPageLine - endLine;
-
 
189
        // sheet.insertDuplicatedRows(firstLine, lineToAdd);
-
 
190
        //
-
 
191
        // // On duplique la premiere page si on a besoin de plus de deux pages
-
 
192
        // System.err.println("nbPage == " + nbPage);
-
 
193
        // if (nbPage > 2) {
-
 
194
        // sheet.duplicateFirstRows(endPageLine, nbPage - 2);
-
 
195
        // }
-
 
196
        fillTable(tableau, liste, sheet, mapStyle, false, style);
155
        fillTable(tableau, liste, sheet, mapStyle, false, style);
197
        // }
156
         
198
    }
157
    }
199
 
158
 
200
    /**
159
    /**
201
     * Remplit le tableau d'éléments avec les données
160
     * Remplit le tableau d'éléments avec les données
202
     * 
161
     *