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() {
|
|
|
21 |
|
|
|
22 |
super("3310_2.pdf", "result_3310_2.pdf", TemplateNXProps.getInstance().getStringProperty("Location3310PDF"));
|
|
|
23 |
setTemplateOffset(0, 0);
|
|
|
24 |
setOffset(0, 0);
|
|
|
25 |
setMargin(32, 32);
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
public void generate() {
|
|
|
29 |
setFontBold(14);
|
|
|
30 |
|
|
|
31 |
// Copyright
|
|
|
32 |
setFontRoman(9);
|
|
|
33 |
String cc = "Document généré par le logiciel Bloc, (c) Front Software 2006";
|
|
|
34 |
|
|
|
35 |
setFontRoman(10);
|
|
|
36 |
long t = 53L;
|
|
|
37 |
|
|
|
38 |
int y = 762;
|
|
|
39 |
addTextRight("A01", insertCurrencySpaces("" + t), 300, y);
|
|
|
40 |
y -= 23;
|
|
|
41 |
addTextRight("A02", insertCurrencySpaces("" + t), 300, y);
|
|
|
42 |
y -= 25;
|
|
|
43 |
addTextRight("A03", insertCurrencySpaces("" + t), 300, y);
|
|
|
44 |
|
|
|
45 |
y = 762;
|
|
|
46 |
addTextRight("A04", insertCurrencySpaces("" + t), 575, y);
|
|
|
47 |
y -= 23;
|
|
|
48 |
addTextRight("A05", insertCurrencySpaces("" + t), 575, y);
|
|
|
49 |
y -= 25;
|
|
|
50 |
addTextRight("A06", insertCurrencySpaces("" + t), 575, y);
|
|
|
51 |
y -= 23;
|
|
|
52 |
addTextRight("A07", insertCurrencySpaces("" + t), 575, y);
|
|
|
53 |
|
|
|
54 |
y = 623;
|
|
|
55 |
addTextRight("B08HT", insertCurrencySpaces("" + t), 490, y);
|
|
|
56 |
addTextRight("B08", insertCurrencySpaces("" + t), 575, y);
|
|
|
57 |
|
|
|
58 |
y -= 18;
|
|
|
59 |
addTextRight("B09", insertCurrencySpaces("" + t), 490, y);
|
|
|
60 |
addTextRight("B09HT", insertCurrencySpaces("" + t), 575, y);
|
|
|
61 |
|
|
|
62 |
y -= 18;
|
|
|
63 |
addTextRight("B09B", insertCurrencySpaces("" + t), 490, y);
|
|
|
64 |
addTextRight("B09BHT", insertCurrencySpaces("" + t), 575, y);
|
|
|
65 |
|
|
|
66 |
y -= 28;
|
|
|
67 |
addTextRight("B10", insertCurrencySpaces("" + t), 490, y);
|
|
|
68 |
addTextRight("B10HT", insertCurrencySpaces("" + t), 575, y);
|
|
|
69 |
|
|
|
70 |
y -= 18;
|
|
|
71 |
addTextRight("B11", insertCurrencySpaces("" + t), 490, y);
|
|
|
72 |
addTextRight("B11HT", insertCurrencySpaces("" + t), 575, y);
|
|
|
73 |
|
|
|
74 |
y -= 18;
|
|
|
75 |
addTextRight("B12", insertCurrencySpaces("" + t), 490, y);
|
|
|
76 |
addTextRight("B12HT", insertCurrencySpaces("" + t), 575, y);
|
|
|
77 |
|
|
|
78 |
y -= 41;
|
|
|
79 |
addTextRight("B13", insertCurrencySpaces("" + t), 490, y);
|
|
|
80 |
addTextRight("B13HT", insertCurrencySpaces("" + t), 575, y);
|
|
|
81 |
|
|
|
82 |
y -= 18;
|
|
|
83 |
addTextRight("B14", insertCurrencySpaces("" + t), 490, y);
|
|
|
84 |
addTextRight("B14HT", insertCurrencySpaces("" + t), 575, y);
|
|
|
85 |
|
|
|
86 |
y -= 18;
|
|
|
87 |
addTextRight("B15", insertCurrencySpaces("" + t), 575, y);
|
|
|
88 |
|
|
|
89 |
y -= 23;
|
|
|
90 |
addTextRight("B16", insertCurrencySpaces("" + t), 575, y);
|
|
|
91 |
y -= 22;
|
|
|
92 |
addTextRight("B17", insertCurrencySpaces("" + t), 575, y);
|
|
|
93 |
y -= 22;
|
|
|
94 |
addTextRight("B18", insertCurrencySpaces("" + t), 575, y);
|
|
|
95 |
y -= 40;
|
|
|
96 |
addTextRight("B19", insertCurrencySpaces("" + t), 575, y);
|
|
|
97 |
y -= 23;
|
|
|
98 |
addTextRight("B20", insertCurrencySpaces("" + t), 575, y);
|
|
|
99 |
y -= 23;
|
|
|
100 |
addTextRight("B21", insertCurrencySpaces("" + t), 575, y);
|
|
|
101 |
y -= 23;
|
|
|
102 |
addTextRight("B22", insertCurrencySpaces("" + t), 575, y);
|
|
|
103 |
|
|
|
104 |
y -= 46;
|
|
|
105 |
addTextRight("B24", insertCurrencySpaces("" + t), 565, y);
|
|
|
106 |
|
|
|
107 |
y -= 61;
|
|
|
108 |
addTextRight("C25", insertCurrencySpaces("" + t), 300, y);
|
|
|
109 |
addTextRight("C28", insertCurrencySpaces("" + t), 575, y);
|
|
|
110 |
y -= 31;
|
|
|
111 |
addTextRight("C26", insertCurrencySpaces("" + t), 300, y);
|
|
|
112 |
addTextRight("C29", insertCurrencySpaces("" + t), 575, y);
|
|
|
113 |
|
|
|
114 |
y -= 23;
|
|
|
115 |
addTextRight("C27", insertCurrencySpaces("" + t), 300, y);
|
|
|
116 |
addTextRight("C30", insertCurrencySpaces("" + t), 575, y);
|
|
|
117 |
|
|
|
118 |
y -= 23;
|
|
|
119 |
addTextRight("C31", insertCurrencySpaces("" + t), 575, y);
|
|
|
120 |
|
|
|
121 |
y -= 40;
|
|
|
122 |
addTextRight("C32", insertCurrencySpaces("" + t), 565, y);
|
|
|
123 |
}
|
|
|
124 |
}
|