OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 132 Rev 156
Line 19... Line 19...
19
import org.openconcerto.sql.model.SQLRow;
19
import org.openconcerto.sql.model.SQLRow;
20
 
20
 
21
public class PdfGenerator_2033A extends PdfGenerator {
21
public class PdfGenerator_2033A extends PdfGenerator {
22
 
22
 
23
    public PdfGenerator_2033A() {
23
    public PdfGenerator_2033A() {
24
 
-
 
25
        super("2033A.pdf", "result_2033A.pdf", TemplateNXProps.getInstance().getStringProperty("Location2033APDF"));
24
        super("2033A.pdf", "2033A.pdf", TemplateNXProps.getInstance().getStringProperty("Location2033APDF"));
26
        setTemplateOffset(0, 0);
25
        setTemplateOffset(0, 0);
27
        setOffset(0, 0);
26
        setOffset(0, 0);
28
        setMargin(32, 32);
-
 
29
 
-
 
30
    }
27
    }
31
 
28
 
32
    public void generate() {
29
    public void generate() {
33
        setFontBold(14);
30
        setFontBold(14);
34
 
31
 
Line 48... Line 45...
48
                ville += " " + cedex.toString().trim();
45
                ville += " " + cedex.toString().trim();
49
            }
46
            }
50
        }
47
        }
51
 
48
 
52
        final String adresse = rowAdresse.getString("RUE") + ", " + rowAdresse.getString("CODE_POSTAL") + " " + ville;
49
        final String adresse = rowAdresse.getString("RUE") + ", " + rowAdresse.getString("CODE_POSTAL") + " " + ville;
53
        System.err.println(adresse);
-
 
54
        addText("ADRESSE", adresse, 100, 759);
50
        addText("ADRESSE", adresse, 100, 759);
55
 
51
 
56
        addSplittedText("SIRET", rowSociete.getString("NUM_SIRET").replaceAll(" ", ""), 82, 735, 17);
52
        addSplittedText("SIRET", rowSociete.getString("NUM_SIRET").replaceAll(" ", ""), 82, 735, 17);
57
 
53
 
58
        // addSplittedText("APE", rowSociete.getString("NUM_APE"), 366, 794 - 18 - 18, 16);
-
 
59
 
-
 
60
         addSplittedText("CLOS1", "08202006", 502, 689, 9.7);
54
        addSplittedText("CLOS1", "08202006", 502, 689, 9.7);
61
        // addSplittedText("CLOS2", "08202006", 502, 707, 9.7);
-
 
62
 
55
 
63
        addSplittedText("DUREE1", "12", 211 - 28, 758, 14);
56
        addSplittedText("DUREE1", "12", 211 - 28, 758, 14);
64
        // addSplittedText("DUREE2", "88", 366, 741, 14);
-
 
65
 
57
 
66
        // Copyright
58
        // Copyright
67
        setFontRoman(9);
59
        setFontRoman(9);
68
        String cc = "Document généré par le logiciel Bloc, (c) Front Software 2006";
60
        addText("", "Document généré par le logiciel OpenConcerto", getWidth() - 2, 16, 90);
69
        addText("", cc, getWidth() - 2, 16, 90);
-
 
70
 
61
 
71
        setFontRoman(10);
62
        setFontRoman(10);
72
        long t = 53L;
63
        long t = 53L;
73
        int yy = 0;
64
        int yy = 0;
74
        int y = 652;
65
        int y = 652;