OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 142 Rev 151
Line 23... Line 23...
23
import org.openconcerto.erp.core.sales.invoice.report.VenteFactureXmlSheet;
23
import org.openconcerto.erp.core.sales.invoice.report.VenteFactureXmlSheet;
24
import org.openconcerto.erp.rights.ComptaUserRight;
24
import org.openconcerto.erp.rights.ComptaUserRight;
25
import org.openconcerto.sql.Configuration;
25
import org.openconcerto.sql.Configuration;
26
import org.openconcerto.sql.element.BaseSQLComponent;
26
import org.openconcerto.sql.element.BaseSQLComponent;
27
import org.openconcerto.sql.element.SQLComponent;
27
import org.openconcerto.sql.element.SQLComponent;
-
 
28
import org.openconcerto.sql.element.SQLElement;
28
import org.openconcerto.sql.model.FieldPath;
29
import org.openconcerto.sql.model.FieldPath;
29
import org.openconcerto.sql.model.SQLBase;
30
import org.openconcerto.sql.model.SQLBase;
30
import org.openconcerto.sql.model.SQLField;
31
import org.openconcerto.sql.model.SQLField;
31
import org.openconcerto.sql.model.SQLRow;
32
import org.openconcerto.sql.model.SQLRow;
32
import org.openconcerto.sql.model.SQLRowAccessor;
33
import org.openconcerto.sql.model.SQLRowAccessor;
Line 35... Line 36...
35
import org.openconcerto.sql.model.graph.Path;
36
import org.openconcerto.sql.model.graph.Path;
36
import org.openconcerto.sql.model.graph.PathBuilder;
37
import org.openconcerto.sql.model.graph.PathBuilder;
37
import org.openconcerto.sql.request.ListSQLRequest;
38
import org.openconcerto.sql.request.ListSQLRequest;
38
import org.openconcerto.sql.sqlobject.ElementComboBox;
39
import org.openconcerto.sql.sqlobject.ElementComboBox;
39
import org.openconcerto.sql.users.rights.UserRightsManager;
40
import org.openconcerto.sql.users.rights.UserRightsManager;
-
 
41
import org.openconcerto.sql.view.EditFrame;
-
 
42
import org.openconcerto.sql.view.EditPanel.EditMode;
40
import org.openconcerto.sql.view.list.BaseSQLTableModelColumn;
43
import org.openconcerto.sql.view.list.BaseSQLTableModelColumn;
41
import org.openconcerto.sql.view.list.IListe;
44
import org.openconcerto.sql.view.list.IListe;
42
import org.openconcerto.sql.view.list.IListeAction.IListeEvent;
45
import org.openconcerto.sql.view.list.IListeAction.IListeEvent;
43
import org.openconcerto.sql.view.list.RowAction;
46
import org.openconcerto.sql.view.list.RowAction;
44
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
47
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
Line 75... Line 78...
75
    SimpleDateFormat dateFormat = new SimpleDateFormat("dd MMMM yyyy", Locale.ENGLISH);
78
    SimpleDateFormat dateFormat = new SimpleDateFormat("dd MMMM yyyy", Locale.ENGLISH);
76
 
79
 
77
    public EcheanceClientSQLElement() {
80
    public EcheanceClientSQLElement() {
78
        super("ECHEANCE_CLIENT", "une échéance client", "échéances clients");
81
        super("ECHEANCE_CLIENT", "une échéance client", "échéances clients");
79
        {
82
        {
-
 
83
            PredicateRowAction action = new PredicateRowAction(new AbstractAction("Détails client") {
-
 
84
 
-
 
85
                @Override
-
 
86
                public void actionPerformed(ActionEvent arg0) {
-
 
87
 
-
 
88
                    SQLElement eltClient = Configuration.getInstance().getDirectory().getElement(((ComptaPropsConfiguration) Configuration.getInstance()).getRootSociete().getTable("CLIENT"));
-
 
89
 
-
 
90
                    EditFrame edit = new EditFrame(eltClient, EditMode.MODIFICATION);
-
 
91
 
-
 
92
                    edit.selectionId(IListe.get(arg0).getSelectedRow().asRow().getInt("ID_CLIENT"));
-
 
93
                    edit.setVisible(true);
-
 
94
                }
-
 
95
            }, false);
-
 
96
            action.setPredicate(IListeEvent.getSingleSelectionPredicate());
-
 
97
            getRowActions().add(action);
-
 
98
        }
-
 
99
        {
80
            PredicateRowAction action = new PredicateRowAction(new AbstractAction("Voir la source") {
100
            PredicateRowAction action = new PredicateRowAction(new AbstractAction("Voir la source") {
81
 
101
 
82
                @Override
102
                @Override
83
                public void actionPerformed(ActionEvent arg0) {
103
                public void actionPerformed(ActionEvent arg0) {
84
 
104