OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 25 Rev 67
Line 31... Line 31...
31
    private static final DateFormat dateFormat = new SimpleDateFormat("dd/MM/yy");
31
    private static final DateFormat dateFormat = new SimpleDateFormat("dd/MM/yy");
32
    public static final String TEMPLATE_ID = "FicheRelance";
32
    public static final String TEMPLATE_ID = "FicheRelance";
33
    public static final String TEMPLATE_PROPERTY_NAME = DEFAULT_PROPERTY_NAME;
33
    public static final String TEMPLATE_PROPERTY_NAME = DEFAULT_PROPERTY_NAME;
34
 
34
 
35
    public FicheRelanceSheet(SQLRow row) {
35
    public FicheRelanceSheet(SQLRow row) {
-
 
36
        super(row);
36
        this.printer = PrinterNXProps.getInstance().getStringProperty("BonPrinter");
37
        this.printer = PrinterNXProps.getInstance().getStringProperty("BonPrinter");
-
 
38
    }
-
 
39
 
-
 
40
    @Override
-
 
41
    protected String getStoragePathP() {
37
        this.row = row;
42
        return "Relance";
38
    }
43
    }
39
 
44
 
40
    @Override
45
    @Override
41
    public String getDefaultTemplateId() {
46
    public String getDefaultTemplateId() {
42
        return TEMPLATE_ID;
47
        return TEMPLATE_ID;
Line 60... Line 65...
60
        this.listAllSheetValues.put(0, listValues);
65
        this.listAllSheetValues.put(0, listValues);
61
        this.mapAllSheetValues.put(0, values);
66
        this.mapAllSheetValues.put(0, values);
62
 
67
 
63
    }
68
    }
64
 
69
 
-
 
70
    Date d;
-
 
71
 
65
    @Override
72
    @Override
66
    public String getName() {
73
    public String getName() {
-
 
74
        if (d == null) {
-
 
75
            d = new Date();
-
 
76
        }
67
        return "FicheRelance" + new Date().getTime();
77
        return "FicheRelance" + d.getTime();
68
    }
78
    }
69
 
79
 
70
}
80
}