OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 141 Rev 145
Line 13... Line 13...
13
import java.util.List;
13
import java.util.List;
14
import java.util.Map;
14
import java.util.Map;
15
 
15
 
16
import javax.swing.AbstractAction;
16
import javax.swing.AbstractAction;
17
import javax.swing.JPanel;
17
import javax.swing.JPanel;
-
 
18
import javax.swing.SwingWorker;
18
 
19
 
19
import org.openconcerto.modules.subscription.SubscriptionChecker;
20
import org.openconcerto.modules.subscription.SubscriptionChecker;
20
import org.openconcerto.sql.Configuration;
21
import org.openconcerto.sql.Configuration;
21
import org.openconcerto.sql.element.SQLElement;
22
import org.openconcerto.sql.element.SQLElement;
22
import org.openconcerto.sql.model.SQLRow;
23
import org.openconcerto.sql.model.SQLRow;
Line 32... Line 33...
32
import org.openconcerto.sql.view.list.RowAction;
33
import org.openconcerto.sql.view.list.RowAction;
33
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
34
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
34
import org.openconcerto.sql.view.list.SQLTableModelSourceOnline;
35
import org.openconcerto.sql.view.list.SQLTableModelSourceOnline;
35
import org.openconcerto.ui.DefaultGridBagConstraints;
36
import org.openconcerto.ui.DefaultGridBagConstraints;
36
import org.openconcerto.utils.ExceptionHandler;
37
import org.openconcerto.utils.ExceptionHandler;
37
import org.openconcerto.utils.SwingWorker2;
-
 
38
 
38
 
39
/**
39
/**
40
 * Base pour les panels de gestion des renouvellements d'abonnements
40
 * Base pour les panels de gestion des renouvellements d'abonnements
41
 * 
41
 * 
42
 * @author Utilisateur
42
 * @author Utilisateur
Line 117... Line 117...
117
     * @param elt
117
     * @param elt
118
     * @param itemsElement
118
     * @param itemsElement
119
     * @param type
119
     * @param type
120
     */
120
     */
121
    private void createUI(final SQLElement elt, final SQLElement itemsElement, final String type) {
121
    private void createUI(final SQLElement elt, final SQLElement itemsElement, final String type) {
122
        final SwingWorker2<SQLTableModelSourceOnline, Object> worker = new SwingWorker2<SQLTableModelSourceOnline, Object>() {
122
        final SwingWorker<SQLTableModelSourceOnline, Object> worker = new SwingWorker<SQLTableModelSourceOnline, Object>() {
123
 
123
 
124
            @Override
124
            @Override
125
            protected SQLTableModelSourceOnline doInBackground() throws Exception {
125
            protected SQLTableModelSourceOnline doInBackground() throws Exception {
126
                final SQLTableModelSourceOnline tableCmd = elt.getTableSource(true);
126
                final SQLTableModelSourceOnline tableCmd = elt.getTableSource(true);
127
                Where wD = new Where(elt.getTable().getField("CREATION_AUTO_VALIDER"), "=", Boolean.FALSE);
127
                Where wD = new Where(elt.getTable().getField("CREATION_AUTO_VALIDER"), "=", Boolean.FALSE);