OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 151 | Rev 174 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 151 Rev 156
Line 22... Line 22...
22
import org.openconcerto.sql.view.list.IListeAction.IListeEvent;
22
import org.openconcerto.sql.view.list.IListeAction.IListeEvent;
23
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
23
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
24
import org.openconcerto.utils.ListMap;
24
import org.openconcerto.utils.ListMap;
25
 
25
 
26
import java.util.ArrayList;
26
import java.util.ArrayList;
-
 
27
import java.util.HashSet;
27
import java.util.List;
28
import java.util.List;
-
 
29
import java.util.Set;
28
 
30
 
29
public class FactureFournisseurSQLElement extends ComptaSQLConfElement {
31
public class FactureFournisseurSQLElement extends ComptaSQLConfElement {
30
 
32
 
31
    public FactureFournisseurSQLElement() {
33
    public FactureFournisseurSQLElement() {
32
        super("FACTURE_FOURNISSEUR", "une facture fournisseur", "factures fournisseur");
34
        super("FACTURE_FOURNISSEUR", "une facture fournisseur", "factures fournisseur");
Line 39... Line 41...
39
            actionAttachment.setPredicate(IListeEvent.getSingleSelectionPredicate());
41
            actionAttachment.setPredicate(IListeEvent.getSingleSelectionPredicate());
40
            getRowActions().add(actionAttachment);
42
            getRowActions().add(actionAttachment);
41
        }
43
        }
42
    }
44
    }
43
 
45
 
-
 
46
    @Override
-
 
47
    public Set<String> getReadOnlyFields() {
-
 
48
        Set<String> s = new HashSet<>();
-
 
49
        s.add("NET_A_PAYER");
-
 
50
        return s;
-
 
51
    }
-
 
52
 
44
    protected List<String> getListFields() {
53
    protected List<String> getListFields() {
45
        final List<String> l = new ArrayList<String>();
54
        final List<String> l = new ArrayList<String>();
46
        l.add("NUMERO");
55
        l.add("NUMERO");
47
        l.add("NOM");
56
        l.add("NOM");
48
        l.add("DATE");
57
        l.add("DATE");
Line 77... Line 86...
77
        return new FactureFournisseurSQLComponent();
86
        return new FactureFournisseurSQLComponent();
78
    }
87
    }
79
 
88
 
80
    @Override
89
    @Override
81
    protected String createCode() {
90
    protected String createCode() {
82
        return createCodeFromPackage() + ".invoice.purchase";
91
        return createCodeOfPackage() + ".invoice.purchase";
83
    }
92
    }
84
}
93
}