OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 156 Rev 180
Line 218... Line 218...
218
        where = where.or(getAuthorizedTaskTypes(userID, tableTache));
218
        where = where.or(getAuthorizedTaskTypes(userID, tableTache));
219
 
219
 
220
        if (!isHistoryVisible()) {
220
        if (!isHistoryVisible()) {
221
            Where w3 = new Where(tableTache.getField("FAIT"), "=", Boolean.FALSE);
221
            Where w3 = new Where(tableTache.getField("FAIT"), "=", Boolean.FALSE);
222
            Calendar cal = Calendar.getInstance();
222
            Calendar cal = Calendar.getInstance();
223
            cal.set(Calendar.HOUR_OF_DAY, 0);
223
            // Voir les taches qui ont été faite les 15 dernières secondes
224
            cal.set(Calendar.MINUTE, 0);
224
            cal.add(Calendar.SECOND, -15);
225
            Where w4 = new Where(tableTache.getField("DATE_FAIT"), "<>", (Object) null);
225
            Where w4 = new Where(tableTache.getField("DATE_FAIT"), "<>", (Object) null);
226
            w4 = w4.and(new Where(tableTache.getField("DATE_FAIT"), ">", cal.getTime()));
226
            w4 = w4.and(new Where(tableTache.getField("DATE_FAIT"), ">", cal.getTime()));
227
            w3 = w3.or(w4);
227
            w3 = w3.or(w4);
228
            where = where.and(w3);
228
            where = where.and(w3);
229
        }
229
        }
Line 392... Line 392...
392
    public void removeRow(int row) {
392
    public void removeRow(int row) {
393
        elements.remove(row);
393
        elements.remove(row);
394
        fireTableRowsDeleted(row, row);
394
        fireTableRowsDeleted(row, row);
395
    }
395
    }
396
 
396
 
-
 
397
    public boolean isAutoRefreshing() {
-
 
398
        return !this.stop;
-
 
399
    }
-
 
400
 
-
 
401
    public void enableUpdate() {
-
 
402
        if (this.stop == true) {
-
 
403
            this.stop = false;
-
 
404
            launchUpdaterThread();
-
 
405
        }
-
 
406
    }
-
 
407
 
397
    @Override
408
    @Override
398
    public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
409
    public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
399
        synchronized (this.elements) {
410
        synchronized (this.elements) {
400
            if (rowIndex >= getRowCount()) {
411
            if (rowIndex >= getRowCount()) {
401
                // Cas de la perte de l'edition de la derniere ligne supprimee
412
                // Cas de la perte de l'edition de la derniere ligne supprimee