no message

This commit is contained in:
2024-05-06 00:47:29 +03:00
parent 15a2f83275
commit b39de4ad14
7 changed files with 64 additions and 10 deletions

View File

@@ -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);
}

View File

@@ -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();
}
}
}

View File

@@ -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
);
}
}

View File

@@ -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 {