no message
This commit is contained in:
@@ -17,6 +17,8 @@ public class ServerSapfor extends riDBObject {
|
||||
public String call_command = ""; //полная команда вызова.
|
||||
public String version = "?";
|
||||
public long buildDate = 0;
|
||||
@Description("DEFAULT 'Done'")
|
||||
public ServerSapforState state = ServerSapforState.Done;
|
||||
public Date getBuildDate() {
|
||||
return new Date(buildDate);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,26 @@
|
||||
package TestingSystem.SAPFOR.ServerSapfor;
|
||||
public enum ServerSapforState {
|
||||
import Common.UI.StatusEnum;
|
||||
public enum ServerSapforState implements StatusEnum {
|
||||
Queued,
|
||||
RepositorySynchronization,
|
||||
Compilation,
|
||||
Done,
|
||||
DoneWithErrors
|
||||
DoneWithErrors;
|
||||
@Override
|
||||
public String getDescription() {
|
||||
switch (this) {
|
||||
case Queued:
|
||||
return "в очереди";
|
||||
case RepositorySynchronization:
|
||||
return "синхронизация репозитория";
|
||||
case Compilation:
|
||||
return "сборка";
|
||||
case Done:
|
||||
return "сборка успешно";
|
||||
case DoneWithErrors:
|
||||
return "сборка с ошибками";
|
||||
default:
|
||||
return StatusEnum.super.getDescription();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,9 @@ import Common.UI.Menus_2023.DataMenuBar;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
public class ServerSapforsBar extends DataMenuBar {
|
||||
public ServerSapforsBar() {
|
||||
super("версии SAPFOR", PassCode_2021.InstallServerSapfor, PassCode_2021.DeleteServerSapfor);
|
||||
super("версии SAPFOR",
|
||||
PassCode_2021.CompileServerSapfor
|
||||
// PassCode_2021.InstallServerSapfor, PassCode_2021.DeleteServerSapfor
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ public class ServerSapforsDBTable extends iDBTable<ServerSapfor> {
|
||||
}
|
||||
@Override
|
||||
public String[] getUIColumnNames() {
|
||||
return new String[]{"версия", "дата сборки"};
|
||||
return new String[]{"версия", "дата сборки", "статус"};
|
||||
}
|
||||
@Override
|
||||
public Object getFieldAt(ServerSapfor object, int columnIndex) {
|
||||
@@ -31,6 +31,8 @@ public class ServerSapforsDBTable extends iDBTable<ServerSapfor> {
|
||||
return object.version;
|
||||
case 2:
|
||||
return object.getBuildDate();
|
||||
case 3:
|
||||
return object.state;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -41,6 +43,7 @@ public class ServerSapforsDBTable extends iDBTable<ServerSapfor> {
|
||||
protected void AdditionalInitColumns() {
|
||||
// columns.get(0).setVisible(false);
|
||||
columns.get(2).setRenderer(TableRenderers.RendererDate);
|
||||
columns.get(3).setRenderer(TableRenderers.RendererStatusEnum);
|
||||
}
|
||||
@Override
|
||||
public void ShowCurrentObject() throws Exception {
|
||||
|
||||
23
src/Visual_DVM_2021/Passes/All/CompileServerSapfor.java
Normal file
23
src/Visual_DVM_2021/Passes/All/CompileServerSapfor.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Global;
|
||||
import ProjectData.LanguageName;
|
||||
import Repository.Server.ServerCode;
|
||||
import Repository.Server.ServerExchangeUnit_2021;
|
||||
import TestingSystem.Common.Group.Group;
|
||||
import TestingSystem.Common.TestingServer;
|
||||
import TestingSystem.SAPFOR.ServerSapfor.ServerSapfor;
|
||||
import TestingSystem.SAPFOR.ServerSapfor.ServerSapforState;
|
||||
import Visual_DVM_2021.Passes.Server.PublishServerObject;
|
||||
import Visual_DVM_2021.Passes.Server.TestingSystemPass;
|
||||
|
||||
import java.util.Date;
|
||||
public class CompileServerSapfor extends PublishServerObject<TestingServer, ServerSapfor> {
|
||||
public CompileServerSapfor() {
|
||||
super(Global.testingServer, ServerSapfor.class);
|
||||
}
|
||||
@Override
|
||||
public boolean fillObjectFields() throws Exception {
|
||||
target.state= ServerSapforState.Queued;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -334,12 +334,15 @@ public enum PassCode_2021 {
|
||||
PublishComponentsServer,
|
||||
//---
|
||||
SPF_InsertImplicitNone,
|
||||
CompileServerSapfor,
|
||||
;
|
||||
public String getDescription() {
|
||||
switch (this) {
|
||||
case Undefined:
|
||||
return "?";
|
||||
//--
|
||||
case CompileServerSapfor:
|
||||
return "Собрать версию Sapfor";
|
||||
case PublishComponentsServer:
|
||||
return "Опубликовать сервер компонент и отчётов об ошибках";
|
||||
case PingComponentsServer:
|
||||
|
||||
Reference in New Issue
Block a user