no message
This commit is contained in:
@@ -3,6 +3,7 @@ import Common.Current;
|
||||
import Common.Global;
|
||||
import Common.UI.UI;
|
||||
import Common.Utils.Files.VDirectoryChooser;
|
||||
import Common.Utils.Index;
|
||||
import Common.Utils.Utils;
|
||||
import GlobalData.Tasks.TaskState;
|
||||
import TestingSystem.DVM.Tasks.TestRunTask;
|
||||
@@ -163,13 +164,7 @@ public class ExportTasksPackageToExcel extends Pass_2021<TasksPackage> {
|
||||
}
|
||||
return res;
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
File file = Utils.getTempFileName("table");
|
||||
//--
|
||||
book = new HSSFWorkbook();
|
||||
sheet = book.createSheet("Результаты тестирования");
|
||||
//--
|
||||
void createStyles(){
|
||||
styles = new Vector<>();
|
||||
//0 - заголовок
|
||||
//1 - черный
|
||||
@@ -213,8 +208,9 @@ public class ExportTasksPackageToExcel extends Pass_2021<TasksPackage> {
|
||||
style.setFont(font);
|
||||
styles.add(style);
|
||||
}
|
||||
//--
|
||||
Row header = addRow(0, true,
|
||||
}
|
||||
void exportPackage(TasksPackage tasksPackage, Index offset){
|
||||
Row header = addRow(offset.getValue(), true,
|
||||
"Группа",
|
||||
"Тест",
|
||||
"Язык",
|
||||
@@ -232,7 +228,8 @@ public class ExportTasksPackageToExcel extends Pass_2021<TasksPackage> {
|
||||
"Чистое время (с)",
|
||||
"Прогресс (%)");
|
||||
//--
|
||||
int i = 1;
|
||||
offset.Inc();
|
||||
//--
|
||||
for (TestRunTask task : tasks) {
|
||||
ShowMessage2(task.test_description);
|
||||
//---
|
||||
@@ -245,7 +242,7 @@ public class ExportTasksPackageToExcel extends Pass_2021<TasksPackage> {
|
||||
Object num_cudas = (NUM_CUDAS != null) ? NUM_CUDAS : "undef";
|
||||
Object total_threads = (NUM_THREADS != null) ? NUM_THREADS * Utils.getMatrixProcessors(task.matrix) : "undef";
|
||||
//--
|
||||
Row row = addRow(i, false,
|
||||
Row row = addRow(offset.getValue(), false,
|
||||
task.group_description,
|
||||
task.test_description,
|
||||
task.language.getDescription(),
|
||||
@@ -263,10 +260,24 @@ public class ExportTasksPackageToExcel extends Pass_2021<TasksPackage> {
|
||||
task.CleanTime,
|
||||
task.progress
|
||||
);
|
||||
++i;
|
||||
offset.Inc();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
File file = Utils.getTempFileName("table");
|
||||
//--
|
||||
for (i = 0; i < max_columns; ++i)
|
||||
book = new HSSFWorkbook();
|
||||
sheet = book.createSheet("Результаты тестирования");
|
||||
//--
|
||||
createStyles();
|
||||
//--
|
||||
Index offset = new Index();
|
||||
exportPackage(target, offset);
|
||||
//--
|
||||
for (int i = 0; i < max_columns; ++i)
|
||||
sheet.autoSizeColumn(i);
|
||||
// Записываем всё в файл
|
||||
FileOutputStream stream = new FileOutputStream(file);
|
||||
|
||||
Reference in New Issue
Block a user