OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 18 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
18 ilm 1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
5
 *
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
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.
10
 *
11
 * When distributing the software, include this License Header Notice in each file.
12
 */
13
 
14
 package org.openconcerto.erp.core.finance.accounting.report;
15
 
16
import org.openconcerto.erp.preferences.TemplateNXProps;
17
 
18
public class PdfGenerator_3310 extends PdfGenerator {
19
 
20
    public PdfGenerator_3310() {
156 ilm 21
        super("3310_2.pdf", "3310_2.pdf", TemplateNXProps.getInstance().getStringProperty("Location3310PDF"));
18 ilm 22
        setTemplateOffset(0, 0);
23
        setOffset(0, 0);
24
    }
25
 
26
    public void generate() {
27
        setFontBold(14);
28
 
29
        setFontRoman(10);
30
        long t = 53L;
31
 
32
        int y = 762;
33
        addTextRight("A01", insertCurrencySpaces("" + t), 300, y);
34
        y -= 23;
35
        addTextRight("A02", insertCurrencySpaces("" + t), 300, y);
36
        y -= 25;
37
        addTextRight("A03", insertCurrencySpaces("" + t), 300, y);
38
 
39
        y = 762;
40
        addTextRight("A04", insertCurrencySpaces("" + t), 575, y);
41
        y -= 23;
42
        addTextRight("A05", insertCurrencySpaces("" + t), 575, y);
43
        y -= 25;
44
        addTextRight("A06", insertCurrencySpaces("" + t), 575, y);
45
        y -= 23;
46
        addTextRight("A07", insertCurrencySpaces("" + t), 575, y);
47
 
48
        y = 623;
49
        addTextRight("B08HT", insertCurrencySpaces("" + t), 490, y);
50
        addTextRight("B08", insertCurrencySpaces("" + t), 575, y);
51
 
52
        y -= 18;
53
        addTextRight("B09", insertCurrencySpaces("" + t), 490, y);
54
        addTextRight("B09HT", insertCurrencySpaces("" + t), 575, y);
55
 
56
        y -= 18;
57
        addTextRight("B09B", insertCurrencySpaces("" + t), 490, y);
58
        addTextRight("B09BHT", insertCurrencySpaces("" + t), 575, y);
59
 
60
        y -= 28;
61
        addTextRight("B10", insertCurrencySpaces("" + t), 490, y);
62
        addTextRight("B10HT", insertCurrencySpaces("" + t), 575, y);
63
 
64
        y -= 18;
65
        addTextRight("B11", insertCurrencySpaces("" + t), 490, y);
66
        addTextRight("B11HT", insertCurrencySpaces("" + t), 575, y);
67
 
68
        y -= 18;
69
        addTextRight("B12", insertCurrencySpaces("" + t), 490, y);
70
        addTextRight("B12HT", insertCurrencySpaces("" + t), 575, y);
71
 
72
        y -= 41;
73
        addTextRight("B13", insertCurrencySpaces("" + t), 490, y);
74
        addTextRight("B13HT", insertCurrencySpaces("" + t), 575, y);
75
 
76
        y -= 18;
77
        addTextRight("B14", insertCurrencySpaces("" + t), 490, y);
78
        addTextRight("B14HT", insertCurrencySpaces("" + t), 575, y);
79
 
80
        y -= 18;
81
        addTextRight("B15", insertCurrencySpaces("" + t), 575, y);
82
 
83
        y -= 23;
84
        addTextRight("B16", insertCurrencySpaces("" + t), 575, y);
85
        y -= 22;
86
        addTextRight("B17", insertCurrencySpaces("" + t), 575, y);
87
        y -= 22;
88
        addTextRight("B18", insertCurrencySpaces("" + t), 575, y);
89
        y -= 40;
90
        addTextRight("B19", insertCurrencySpaces("" + t), 575, y);
91
        y -= 23;
92
        addTextRight("B20", insertCurrencySpaces("" + t), 575, y);
93
        y -= 23;
94
        addTextRight("B21", insertCurrencySpaces("" + t), 575, y);
95
        y -= 23;
96
        addTextRight("B22", insertCurrencySpaces("" + t), 575, y);
97
 
98
        y -= 46;
99
        addTextRight("B24", insertCurrencySpaces("" + t), 565, y);
100
 
101
        y -= 61;
102
        addTextRight("C25", insertCurrencySpaces("" + t), 300, y);
103
        addTextRight("C28", insertCurrencySpaces("" + t), 575, y);
104
        y -= 31;
105
        addTextRight("C26", insertCurrencySpaces("" + t), 300, y);
106
        addTextRight("C29", insertCurrencySpaces("" + t), 575, y);
107
 
108
        y -= 23;
109
        addTextRight("C27", insertCurrencySpaces("" + t), 300, y);
110
        addTextRight("C30", insertCurrencySpaces("" + t), 575, y);
111
 
112
        y -= 23;
113
        addTextRight("C31", insertCurrencySpaces("" + t), 575, y);
114
 
115
        y -= 40;
116
        addTextRight("C32", insertCurrencySpaces("" + t), 565, y);
117
    }
118
}