Справа добавлена галочка фильтрации пакетов тестирования, позволяющая показать только свои пакеты.
v++
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package TestingSystem.SAPFOR.SapforPackage;
|
||||
import Common.Constants;
|
||||
import Common.Current;
|
||||
import Common.Database.DBObject;
|
||||
import Common.Global;
|
||||
import Common.Utils.Utils;
|
||||
import TestingSystem.Common.Group.GroupsDBTable;
|
||||
import TestingSystem.Common.TestingPackage.TestingPackage;
|
||||
import TestingSystem.SAPFOR.Json.SapforPackage_json;
|
||||
import TestingSystem.SAPFOR.Json.SapforTestingSet_json;
|
||||
@@ -61,4 +63,8 @@ public class SapforPackage extends TestingPackage<SapforPackage_json> {
|
||||
}
|
||||
return new_tasks;
|
||||
}
|
||||
@Override
|
||||
public boolean isVisible() {
|
||||
return !SapforPackageDBTable.filterMyOnly || Current.getAccount().email.equals(sender_address);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import java.util.Date;
|
||||
|
||||
import static Common.UI.Tables.TableRenderers.*;
|
||||
public class SapforPackageDBTable extends iDBTable<SapforPackage> {
|
||||
public static boolean filterMyOnly = false;
|
||||
@Override
|
||||
public Current CurrentName() {
|
||||
return Current.SapforPackage;
|
||||
|
||||
Reference in New Issue
Block a user