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 26... |
Line 26... |
26 |
import org.openconcerto.sql.model.Where;
|
26 |
import org.openconcerto.sql.model.Where;
|
27 |
import org.openconcerto.utils.ExceptionHandler;
|
27 |
import org.openconcerto.utils.ExceptionHandler;
|
28 |
|
28 |
|
29 |
import java.sql.Date;
|
29 |
import java.sql.Date;
|
30 |
import java.sql.SQLException;
|
30 |
import java.sql.SQLException;
|
- |
|
31 |
import java.util.Collections;
|
31 |
import java.util.HashMap;
|
32 |
import java.util.HashMap;
|
32 |
import java.util.List;
|
33 |
import java.util.List;
|
33 |
import java.util.Map;
|
34 |
import java.util.Map;
|
34 |
import java.util.Vector;
|
35 |
import java.util.Vector;
|
35 |
import java.util.concurrent.Semaphore;
|
36 |
import java.util.concurrent.Semaphore;
|
Line 338... |
Line 339... |
338 |
try {
|
339 |
try {
|
339 |
SQLRow rowFiche = eltFichePaye.getTable().getRow(idFiche);
|
340 |
SQLRow rowFiche = eltFichePaye.getTable().getRow(idFiche);
|
340 |
FichePayeSheetXML sheet = new FichePayeSheetXML(rowFiche);
|
341 |
FichePayeSheetXML sheet = new FichePayeSheetXML(rowFiche);
|
341 |
sheet.createDocumentAsynchronous();
|
342 |
sheet.createDocumentAsynchronous();
|
342 |
Boolean bPrint = (Boolean) m.get("IMPRESSION");
|
343 |
Boolean bPrint = (Boolean) m.get("IMPRESSION");
|
343 |
sheet.showPrintAndExportAsynchronous(false, bPrint.booleanValue(), true);
|
344 |
sheet.showPrintAndExportAsynchronous(false, bPrint.booleanValue(), true, Collections.emptyList());
|
344 |
} catch (Exception e) {
|
345 |
} catch (Exception e) {
|
345 |
ExceptionHandler.handle("Erreur lors de la création du document!", e);
|
346 |
ExceptionHandler.handle("Erreur lors de la création du document!", e);
|
346 |
}
|
347 |
}
|
347 |
EditionFichePayeModel.this.bar.setValue(tmp++);
|
348 |
EditionFichePayeModel.this.bar.setValue(tmp++);
|
348 |
|
349 |
|