no message

This commit is contained in:
2023-11-23 01:17:36 +03:00
parent e852443100
commit 1bb97187fe
3 changed files with 11 additions and 11 deletions

View File

@@ -36,6 +36,8 @@ public class TestDBTable extends iDBTable<Test> {
return object.description;
case 3:
return object.dim;
case 4:
return object.files;
default:
return null;
}
@@ -43,7 +45,7 @@ public class TestDBTable extends iDBTable<Test> {
@Override
public String[] getUIColumnNames() {
return new String[]{
"имя", "размерность"};
"имя", "размерность", "файлы"};
}
@Override
public Current CurrentName() {

View File

@@ -4,10 +4,13 @@ import Common.Current;
import Common.Global;
import Common.UI.UI;
import Common.Utils.Utils;
import ProjectData.Files.DBProjectFile;
import ProjectData.Project.db_project_info;
import TestingSystem.Common.Test.Test;
import TestingSystem.Common.TestingServer;
import Visual_DVM_2021.Passes.Server.PublishServerObject;
import java.util.Vector;
public class PublishTest extends PublishServerObject<TestingServer, Test> {
boolean from_current_project;
protected int group_id;
@@ -23,6 +26,11 @@ public class PublishTest extends PublishServerObject<TestingServer, Test> {
target.description = Utils.ReplaceForbiddenSymbols(target.description);
}
target.group_id = group_id;
//подпапок нет. имена совпадают с относительными.
Vector<String> filesNames = new Vector<>();
for (String file: project.db.files.Data.keySet())
filesNames.add(file);
target.files = String.join(";", filesNames);
//--
if (from_current_project) {
target.dim = project.testMaxDim;