OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 19 Rev 25
Line 19... Line 19...
19
import org.openconcerto.erp.core.common.ui.IListTotalPanel;
19
import org.openconcerto.erp.core.common.ui.IListTotalPanel;
20
import org.openconcerto.erp.core.common.ui.PanelFrame;
20
import org.openconcerto.erp.core.common.ui.PanelFrame;
21
import org.openconcerto.erp.core.sales.quote.element.DevisSQLElement;
21
import org.openconcerto.erp.core.sales.quote.element.DevisSQLElement;
22
import org.openconcerto.erp.core.sales.quote.report.DevisTextSheet;
22
import org.openconcerto.erp.core.sales.quote.report.DevisTextSheet;
23
import org.openconcerto.erp.core.sales.quote.ui.ListeDesDevisPanel;
23
import org.openconcerto.erp.core.sales.quote.ui.ListeDesDevisPanel;
-
 
24
import org.openconcerto.erp.generationDoc.DocumentLocalStorageManager;
24
import org.openconcerto.erp.generationDoc.SheetUtils;
25
import org.openconcerto.erp.generationDoc.SheetUtils;
25
import org.jopendocument.link.OOConnexion;
26
import org.jopendocument.link.OOConnexion;
26
import org.openconcerto.sql.Configuration;
27
import org.openconcerto.sql.Configuration;
27
import org.openconcerto.sql.model.SQLField;
28
import org.openconcerto.sql.model.SQLField;
28
import org.openconcerto.sql.model.SQLRow;
29
import org.openconcerto.sql.model.SQLRow;
Line 89... Line 90...
89
            };
90
            };
90
            JMenuItem openItem = new JMenuItem(actionOpen);
91
            JMenuItem openItem = new JMenuItem(actionOpen);
91
            openItem.setFont(openItem.getFont().deriveFont(Font.BOLD));
92
            openItem.setFont(openItem.getFont().deriveFont(Font.BOLD));
92
            menu.add(openItem);
93
            menu.add(openItem);
93
 
94
 
-
 
95
            final File outpuDirectory = DocumentLocalStorageManager.getInstance().getDocumentOutputDirectory(s.getTemplateId());
94
            List<File> files = SheetUtils.getInstance().getHistorique(s.getFileName(), new File(s.getLocationOO()));
96
            List<File> files = SheetUtils.getHistorique(s.getFileName(), outpuDirectory);
95
            if (files.size() > 0) {
97
            if (files.size() > 0) {
96
                JMenu item = new JMenu("Historique");
98
                JMenu item = new JMenu("Historique");
97
                int i = 0;
99
                int i = 0;
98
                for (final File file : files) {
100
                for (final File file : files) {
99
                    JMenuItem subItem = new JMenuItem("Version " + i + " du " + this.dateFormat.format(new Date(file.lastModified())));
101
                    JMenuItem subItem = new JMenuItem("Version " + i + " du " + this.dateFormat.format(new Date(file.lastModified())));