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 31... |
Line 31... |
31 |
import org.openconcerto.ui.JDate;
|
31 |
import org.openconcerto.ui.JDate;
|
32 |
|
32 |
|
33 |
import java.awt.GridBagConstraints;
|
33 |
import java.awt.GridBagConstraints;
|
34 |
import java.awt.GridBagLayout;
|
34 |
import java.awt.GridBagLayout;
|
35 |
import java.util.ArrayList;
|
35 |
import java.util.ArrayList;
|
- |
|
36 |
import java.util.Collections;
|
36 |
import java.util.Date;
|
37 |
import java.util.Date;
|
37 |
import java.util.List;
|
38 |
import java.util.List;
|
38 |
|
39 |
|
39 |
import javax.swing.JLabel;
|
40 |
import javax.swing.JLabel;
|
40 |
import javax.swing.SwingConstants;
|
41 |
import javax.swing.SwingConstants;
|
Line 79... |
Line 80... |
79 |
|
80 |
|
80 |
@Override
|
81 |
@Override
|
81 |
public void print(final List<Integer> listeCheque, final boolean preview, final Date d) {
|
82 |
public void print(final List<Integer> listeCheque, final boolean preview, final Date d) {
|
82 |
ReleveChequeSheet sheet = new ReleveChequeSheet(listeCheque, d, preview);
|
83 |
ReleveChequeSheet sheet = new ReleveChequeSheet(listeCheque, d, preview);
|
83 |
sheet.createDocumentAsynchronous();
|
84 |
sheet.createDocumentAsynchronous();
|
84 |
sheet.showPrintAndExportAsynchronous(true, false, true);
|
85 |
sheet.showPrintAndExportAsynchronous(true, false, true, Collections.emptyList());
|
85 |
}
|
86 |
}
|
86 |
|
87 |
|
87 |
@Override
|
88 |
@Override
|
88 |
public void handle(SQLRowAccessor rowBanque, SQLRowAccessor rowCheque, Date d, String label) throws Exception {
|
89 |
public void handle(SQLRowAccessor rowBanque, SQLRowAccessor rowCheque, Date d, String label) throws Exception {
|
89 |
GenerationMvtReglementChequeClient gen = new GenerationMvtReglementChequeClient(rowCheque.getForeignID("ID_MOUVEMENT"), rowCheque.getLong("MONTANT"), d, rowCheque.getID(), label, rowBanque);
|
90 |
GenerationMvtReglementChequeClient gen = new GenerationMvtReglementChequeClient(rowCheque.getForeignID("ID_MOUVEMENT"), rowCheque.getLong("MONTANT"), d, rowCheque.getID(), label, rowBanque);
|
Line 105... |
Line 106... |
105 |
l.add("ID_BANQUE");
|
106 |
l.add("ID_BANQUE");
|
106 |
showAs.show(getTable().getForeignTable("ID_BANQUE"), "NOM");
|
107 |
showAs.show(getTable().getForeignTable("ID_BANQUE"), "NOM");
|
107 |
}
|
108 |
}
|
108 |
l.add("MONTANT");
|
109 |
l.add("MONTANT");
|
109 |
|
110 |
|
110 |
|
- |
|
111 |
final SQLTable mvtT = getTable().getForeignTable("ID_MOUVEMENT");
|
111 |
final SQLTable mvtT = getTable().getForeignTable("ID_MOUVEMENT");
|
112 |
showAs.show(mvtT, "ID_PIECE");
|
112 |
showAs.show(mvtT, "ID_PIECE");
|
113 |
showAs.show(mvtT.getForeignTable("ID_PIECE"), "NOM");
|
113 |
showAs.show(mvtT.getForeignTable("ID_PIECE"), "NOM");
|
114 |
|
114 |
|
115 |
final SQLTable clientERP = getTable().getForeignTable("ID_CLIENT");
|
115 |
final SQLTable clientERP = getTable().getForeignTable("ID_CLIENT");
|