OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 80 | Rev 93 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 80 Rev 83
Line 15... Line 15...
15
 
15
 
16
import org.openconcerto.erp.config.ComptaPropsConfiguration;
16
import org.openconcerto.erp.config.ComptaPropsConfiguration;
17
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
17
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
18
import org.openconcerto.erp.core.customerrelationship.customer.report.FicheClientXmlSheet;
18
import org.openconcerto.erp.core.customerrelationship.customer.report.FicheClientXmlSheet;
19
import org.openconcerto.erp.preferences.PrinterNXProps;
19
import org.openconcerto.erp.preferences.PrinterNXProps;
20
import org.openconcerto.map.model.Ville;
-
 
21
import org.openconcerto.ql.LabelCreator;
20
import org.openconcerto.ql.LabelCreator;
22
import org.openconcerto.ql.QLPrinter;
21
import org.openconcerto.ql.QLPrinter;
23
import org.openconcerto.sql.Configuration;
22
import org.openconcerto.sql.Configuration;
24
import org.openconcerto.sql.element.SQLComponent;
23
import org.openconcerto.sql.element.SQLComponent;
25
import org.openconcerto.sql.model.SQLRowAccessor;
24
import org.openconcerto.sql.model.SQLRowAccessor;
Line 58... Line 57...
58
                        final String string = foreignRow.getString("RUE");
57
                        final String string = foreignRow.getString("RUE");
59
                        String[] s = string.split("\n");
58
                        String[] s = string.split("\n");
60
                        for (String string2 : s) {
59
                        for (String string2 : s) {
61
                            c.addLineNormal(string2);
60
                            c.addLineNormal(string2);
62
                        }
61
                        }
63
 
-
 
64
                        Ville v = Ville.getVilleFromVilleEtCode(foreignRow.getString("VILLE"));
62
                        c.addLineNormal(foreignRow.getString("CODE_POSTAL") + " " + foreignRow.getString("VILLE"));
65
                        c.addLineNormal(v.getCodepostal() + " " + v.getName());
-
 
66
 
-
 
67
                        final QLPrinter prt = new QLPrinter(property);
63
                        final QLPrinter prt = new QLPrinter(property);
68
                        try {
64
                        try {
69
                            prt.print(c.getImage());
65
                            prt.print(c.getImage());
70
                        } catch (Exception ex) {
66
                        } catch (Exception ex) {
71
                            ex.printStackTrace();
67
                            ex.printStackTrace();