прерывание пакета. первый вариант.
This commit is contained in:
28
src/Visual_DVM_2021/Passes/All/AbortSapforTaskPackage.java
Normal file
28
src/Visual_DVM_2021/Passes/All/AbortSapforTaskPackage.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current;
|
||||
import Repository.Server.ServerCode;
|
||||
import Repository.Server.ServerExchangeUnit_2021;
|
||||
import SapforTestingSystem.SapforTasksPackage.SapforTasksPackage;
|
||||
import Visual_DVM_2021.Passes.TestingSystemPass;
|
||||
public class AbortSapforTaskPackage extends TestingSystemPass<SapforTasksPackage> {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Ban.PNG";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
return "";
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (Current.Check(Log, Current.SapforTasksPackage)){
|
||||
target = Current.getSapforTasksPackage();
|
||||
return true;
|
||||
};
|
||||
return false;
|
||||
}
|
||||
@Override
|
||||
protected void ServerAction() throws Exception {
|
||||
Command(new ServerExchangeUnit_2021(ServerCode.AbortSapforTasksPackage, Current.getAccount().email, target.id));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user