OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 147 Rev 165
Line 10... Line 10...
10
 
10
 
11
import javax.swing.AbstractAction;
11
import javax.swing.AbstractAction;
12
 
12
 
13
import org.openconcerto.erp.core.common.ui.IListFilterDatePanel;
13
import org.openconcerto.erp.core.common.ui.IListFilterDatePanel;
14
import org.openconcerto.erp.core.common.ui.PanelFrame;
14
import org.openconcerto.erp.core.common.ui.PanelFrame;
-
 
15
import org.openconcerto.erp.model.MouseSheetXmlListeListener;
15
import org.openconcerto.erp.modules.AbstractModule;
16
import org.openconcerto.erp.modules.AbstractModule;
16
import org.openconcerto.erp.modules.ModuleElement;
17
import org.openconcerto.erp.modules.ModuleElement;
17
import org.openconcerto.sql.element.GlobalMapper;
18
import org.openconcerto.sql.element.GlobalMapper;
18
import org.openconcerto.sql.element.SQLComponent;
19
import org.openconcerto.sql.element.SQLComponent;
19
import org.openconcerto.sql.element.SQLElement;
20
import org.openconcerto.sql.element.SQLElement;
Line 32... Line 33...
32
 
33
 
33
public class CustomerSupportTicketSQLElement extends ModuleElement {
34
public class CustomerSupportTicketSQLElement extends ModuleElement {
34
 
35
 
35
    public CustomerSupportTicketSQLElement(final AbstractModule module) {
36
    public CustomerSupportTicketSQLElement(final AbstractModule module) {
36
        super(module, Module.TABLE_CUSTOMER_SUPPORT_TICKET);
37
        super(module, Module.TABLE_CUSTOMER_SUPPORT_TICKET);
37
        this.setL18nLocation(CustomerSupportTicketSQLElement.class);
-
 
38
 
38
 
39
        // Suivi
39
        // Suivi
40
        final RowAction.PredicateRowAction addSuiviAction = new RowAction.PredicateRowAction(new AbstractAction("Suivi du ticket") {
40
        final RowAction.PredicateRowAction addSuiviAction = new RowAction.PredicateRowAction(new AbstractAction("Suivi du ticket") {
41
 
41
 
42
            @Override
42
            @Override
Line 90... Line 90...
90
        }, true) {
90
        }, true) {
91
        };
91
        };
92
        addHistoriqueAction.setPredicate(IListeEvent.createSelectionCountPredicate(0, Integer.MAX_VALUE));
92
        addHistoriqueAction.setPredicate(IListeEvent.createSelectionCountPredicate(0, Integer.MAX_VALUE));
93
        getRowActions().add(addHistoriqueAction);
93
        getRowActions().add(addHistoriqueAction);
94
 
94
 
-
 
95
        MouseSheetXmlListeListener l = new MouseSheetXmlListeListener(CustomerSupportTicketSheetXML.class);
-
 
96
 
-
 
97
        getRowActions().addAll(l.getRowActions());
95
    }
98
    }
96
 
99
 
97
    @Override
100
    @Override
98
    public Set<String> getReadOnlyFields() {
101
    public Set<String> getReadOnlyFields() {
99
        Set<String> s = new HashSet<String>();
102
        Set<String> s = new HashSet<String>();