OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 18 Rev 25
Line 58... Line 58...
58
 
58
 
59
    static {
59
    static {
60
        setSize(8, 65, 3);
60
        setSize(8, 65, 3);
61
    }
61
    }
62
 
62
 
63
    private static final Tuple2<String, String> tuple = Tuple2.create("LocationLivrePaye", "Livre de paye");
-
 
64
 
63
    @Override
65
    public static Tuple2<String, String> getTuple2Location() {
64
    protected String getYear() {
66
        return tuple;
65
        return "";
67
    }
66
    }
68
 
67
 
-
 
68
    public static final String TEMPLATE_ID = "Livre de paye";
-
 
69
    public static final String TEMPLATE_PROPERTY_NAME = "LocationLivrePaye";
-
 
70
 
69
    public LivrePayeSheet(int moisDu, int moisAu, String annee) {
71
    public LivrePayeSheet(int moisDu, int moisAu, String annee) {
70
        super();
72
        super();
71
        this.printer = PrinterNXProps.getInstance().getStringProperty("LivrePayePrinter");
73
        this.printer = PrinterNXProps.getInstance().getStringProperty("LivrePayePrinter");
72
        this.modele = "LivrePaye.ods";
74
        this.modele = "LivrePaye.ods";
73
        this.locationOO = SheetXml.getLocationForTuple(tuple, false) + File.separator + annee;
-
 
74
        this.locationPDF = SheetXml.getLocationForTuple(tuple, true) + File.separator + annee;
-
 
75
        this.moisAu = moisAu;
75
        this.moisAu = moisAu;
76
        this.moisDu = moisDu;
76
        this.moisDu = moisDu;
77
        this.annee = annee;
77
        this.annee = annee;
78
 
78
 
79
        this.nbRowsPerPage = 67;
79
        this.nbRowsPerPage = 67;
Line 94... Line 94...
94
        SQLRow rowMoisAu = tableMois.getRow(this.moisAu);
94
        SQLRow rowMoisAu = tableMois.getRow(this.moisAu);
95
 
95
 
96
        this.mCell.put("A" + row, "Période de " + rowMoisDu.getString("NOM") + " à " + rowMoisAu.getString("NOM") + " " + this.annee);
96
        this.mCell.put("A" + row, "Période de " + rowMoisDu.getString("NOM") + " à " + rowMoisAu.getString("NOM") + " " + this.annee);
97
    }
97
    }
98
 
98
 
-
 
99
    @Override
-
 
100
    public String getTemplateId() {
-
 
101
        return TEMPLATE_ID;
-
 
102
    }
-
 
103
 
99
    protected void createMap() {
104
    protected void createMap() {
100
 
105
 
101
        this.mapReplace = new HashMap();
106
        this.mapReplace = new HashMap();
102
        this.mCell = new HashMap();
107
        this.mCell = new HashMap();
103
        this.mapStyleRow = new HashMap();
108
        this.mapStyleRow = new HashMap();