OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 151 Rev 156
Line 55... Line 55...
55
import java.util.regex.Pattern;
55
import java.util.regex.Pattern;
56
 
56
 
57
import javax.swing.AbstractAction;
57
import javax.swing.AbstractAction;
58
import javax.swing.JCheckBox;
58
import javax.swing.JCheckBox;
59
import javax.swing.JLabel;
59
import javax.swing.JLabel;
-
 
60
import javax.swing.JOptionPane;
60
import javax.swing.JTextField;
61
import javax.swing.JTextField;
61
import javax.swing.event.DocumentEvent;
62
import javax.swing.event.DocumentEvent;
62
 
63
 
63
import org.apache.commons.dbutils.handlers.ArrayListHandler;
64
import org.apache.commons.dbutils.handlers.ArrayListHandler;
64
 
65
 
Line 311... Line 312...
311
            String reqEcriture = selEcr.asString();
312
            String reqEcriture = selEcr.asString();
312
 
313
 
313
            Object obEcriture = base.getDataSource().execute(reqEcriture, new ArrayListHandler());
314
            Object obEcriture = base.getDataSource().execute(reqEcriture, new ArrayListHandler());
314
 
315
 
315
            List myListEcriture = (List) obEcriture;
316
            List myListEcriture = (List) obEcriture;
316
 
-
 
317
            if (myListEcriture.size() != 0) {
317
            if (myListEcriture.size() != 0) {
318
 
-
 
319
                System.err.println("Impossible de supprimer un compte mouvementé!");
-
 
320
                ExceptionHandler.handle("", new Exception("Impossible de supprimer un compte mouvementé!"));
318
                JOptionPane.showMessageDialog(null, "Impossible de supprimer un compte mouvementé!");
321
            } else {
319
            } else {
322
                super.archive(new TreesOfSQLRows(this, row), cutLinks);
320
                super.archive(new TreesOfSQLRows(this, row), cutLinks);
323
            }
321
            }
324
        }
322
        }
325
    }
323
    }
Line 435... Line 433...
435
        return getRow(numeroDefault, "création automatique");
433
        return getRow(numeroDefault, "création automatique");
436
    }
434
    }
437
 
435
 
438
    @Override
436
    @Override
439
    protected String createCode() {
437
    protected String createCode() {
440
        return createCodeFromPackage() + ".code.enterprise";
438
        return createCodeOfPackage() + ".code.enterprise";
441
    }
439
    }
442
 
440
 
443
}
441
}