OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 142 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 142 Rev 156
Line 17... Line 17...
17
import org.openconcerto.erp.core.edm.AttachmentAction;
17
import org.openconcerto.erp.core.edm.AttachmentAction;
18
import org.openconcerto.erp.core.supplychain.supplier.component.FournisseurSQLComponent;
18
import org.openconcerto.erp.core.supplychain.supplier.component.FournisseurSQLComponent;
19
import org.openconcerto.sql.element.SQLComponent;
19
import org.openconcerto.sql.element.SQLComponent;
20
import org.openconcerto.sql.request.ComboSQLRequest;
20
import org.openconcerto.sql.request.ComboSQLRequest;
21
import org.openconcerto.sql.request.ComboSQLRequest.KeepMode;
21
import org.openconcerto.sql.request.ComboSQLRequest.KeepMode;
-
 
22
import org.openconcerto.sql.request.ListSQLRequest;
22
import org.openconcerto.sql.view.list.IListeAction.IListeEvent;
23
import org.openconcerto.sql.view.list.IListeAction.IListeEvent;
23
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
24
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
24
import org.openconcerto.sql.request.ListSQLRequest;
-
 
25
 
25
 
26
import java.util.ArrayList;
26
import java.util.ArrayList;
27
import java.util.Arrays;
27
import java.util.Arrays;
28
import java.util.List;
28
import java.util.List;
29
 
29
 
Line 35... Line 35...
35
        PredicateRowAction actionAttachment = new PredicateRowAction(new AttachmentAction().getAction(), true);
35
        PredicateRowAction actionAttachment = new PredicateRowAction(new AttachmentAction().getAction(), true);
36
        actionAttachment.setPredicate(IListeEvent.getSingleSelectionPredicate());
36
        actionAttachment.setPredicate(IListeEvent.getSingleSelectionPredicate());
37
        getRowActions().add(actionAttachment);
37
        getRowActions().add(actionAttachment);
38
    }
38
    }
39
 
39
 
-
 
40
    @Override
40
    protected List<String> getListFields() {
41
    protected List<String> getListFields() {
41
        final List<String> l = new ArrayList<String>();
42
        final List<String> l = new ArrayList<>(8);
42
        l.add("CODE");
43
        l.add("CODE");
43
        l.add("NOM");
44
        l.add("NOM");
44
        l.add("TYPE");
45
        l.add("TYPE");
45
        l.add("TEL");
46
        l.add("TEL");
46
        l.add("FAX");
47
        l.add("FAX");
Line 48... Line 49...
48
        l.add("ID_COMPTE_PCE");
49
        l.add("ID_COMPTE_PCE");
49
        l.add("ID_ADRESSE");
50
        l.add("ID_ADRESSE");
50
        return l;
51
        return l;
51
    }
52
    }
52
 
53
 
-
 
54
    @Override
53
    protected List<String> getComboFields() {
55
    protected List<String> getComboFields() {
54
        final List<String> l = new ArrayList<String>();
56
        final List<String> l = new ArrayList<>(2);
55
        l.add("NOM");
57
        l.add("NOM");
56
        l.add("CODE");
58
        l.add("CODE");
57
        return l;
59
        return l;
58
    }
60
    }
59
 
61
 
Line 78... Line 80...
78
     * @see org.openconcerto.devis.SQLElement#getComponent()
80
     * @see org.openconcerto.devis.SQLElement#getComponent()
79
     */
81
     */
80
    public SQLComponent createComponent() {
82
    public SQLComponent createComponent() {
81
        return new FournisseurSQLComponent(this);
83
        return new FournisseurSQLComponent(this);
82
    }
84
    }
-
 
85
 
-
 
86
    @Override
-
 
87
    protected String createCode() {
-
 
88
        return "supplychain.supplier";
-
 
89
    }
83
}
90
}