Запись дат начала и окончания задач.

This commit is contained in:
2023-11-14 17:35:59 +03:00
parent 21914e3ba1
commit dbd0fd0ef5
5 changed files with 26 additions and 15 deletions

View File

@@ -3,6 +3,7 @@ import Common.Current;
import Common.Database.DBTable;
import Common.UI.DataSetControlForm;
import static Common.UI.Tables.TableRenderers.RendererDate;
import static Common.UI.Tables.TableRenderers.RendererStatusEnum;
public class SapforTasksDBTable extends DBTable<Long, SapforTask> {
public SapforTasksDBTable() {
@@ -26,17 +27,9 @@ public class SapforTasksDBTable extends DBTable<Long, SapforTask> {
@Override
protected void AdditionalInitColumns() {
columns.get(4).setRenderer(RendererStatusEnum);
columns.get(5).setRenderer(RendererDate);
columns.get(6).setRenderer(RendererDate);
}
@Override
public void MouseAction2() throws Exception {
// Pass_2021.passes.get(PassCode_2021.OpenSapforTest).Do();
}
/*
@Override
public boolean hasCheckBox() {
return true;
}
*/
};
}
@Override
@@ -46,6 +39,8 @@ public class SapforTasksDBTable extends DBTable<Long, SapforTask> {
"Тест",
"Флаги",
"Статус",
"Начало",
"Окончание",
"Версии"
};
}
@@ -61,6 +56,10 @@ public class SapforTasksDBTable extends DBTable<Long, SapforTask> {
case 4:
return object.state;
case 5:
return object.getStartDate();
case 6:
return object.getChangeDate();
case 7:
return object.versionsDescription;
default:
return null;