OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 25 Rev 67
Line 34... Line 34...
34
 
34
 
35
    private Date deb, fin;
35
    private Date deb, fin;
36
    public static String TEMPLATE_ID = "Balance agée";
36
    public static String TEMPLATE_ID = "Balance agée";
37
 
37
 
38
    public BalanceAgeeListeSheetXML(Date deb, Date fin) {
38
    public BalanceAgeeListeSheetXML(Date deb, Date fin) {
-
 
39
        super();
39
        this.printer = PrinterNXProps.getInstance().getStringProperty("BonPrinter");
40
        this.printer = PrinterNXProps.getInstance().getStringProperty("BonPrinter");
40
        this.deb = deb;
41
        this.deb = deb;
41
        this.fin = fin;
42
        this.fin = fin;
42
    }
43
    }
43
 
44
 
44
    @Override
45
    @Override
45
    public String getDefaultTemplateId() {
46
    public String getDefaultTemplateId() {
46
        return "BalanceAgee";
47
        return "BalanceAgee";
47
    }
48
    }
48
 
49
 
-
 
50
    Date d;
-
 
51
 
49
    @Override
52
    @Override
50
    public String getName() {
53
    public String getName() {
-
 
54
        if (d == null) {
-
 
55
            d = new Date();
-
 
56
        }
51
        return "BalanceAgee" + new Date().getTime();
57
        return "BalanceAgee" + d.getTime();
-
 
58
    }
-
 
59
 
-
 
60
    @Override
-
 
61
    protected String getStoragePathP() {
-
 
62
        return "Balance";
52
    }
63
    }
53
 
64
 
54
    protected void createListeValues() {
65
    protected void createListeValues() {
55
        SQLElement ecr = Configuration.getInstance().getDirectory().getElement("ECRITURE");
66
        SQLElement ecr = Configuration.getInstance().getDirectory().getElement("ECRITURE");
56
        SQLElement cpt = Configuration.getInstance().getDirectory().getElement("COMPTE_PCE");
67
        SQLElement cpt = Configuration.getInstance().getDirectory().getElement("COMPTE_PCE");