выделение эталона если он есть

This commit is contained in:
2024-11-14 22:31:01 +03:00
parent cd0bae2620
commit 901eb0f623
4 changed files with 15 additions and 8 deletions

View File

@@ -7,6 +7,7 @@ import Common.Visual.Menus.DataMenuBar;
import Common.Visual.Tables.ColumnInfo;
import Common.Visual.Tables.RendererMultiline;
import Common.Visual.Windows.Dialog.DBObjectDialog;
import _VisualDVM.Global;
import _VisualDVM.Passes.PassCode;
import _VisualDVM.ServerObjectsCache.ConfigurationCache;
import _VisualDVM.ServerObjectsCache.VisualCaches;
@@ -118,4 +119,13 @@ public class SapforConfigurationsForm extends DataSetControlForm<SapforConfigura
protected DBObjectDialog getDialog() {
return new SapforConfigurationDialog();
}
@Override
protected void ShowCurrentObject() throws Exception {
super.ShowCurrentObject();
if (current.ethalon_id!=CommonConstants.Nan){
Global.testingServer.db.sapforPackages.getUI().SetCurrentByPK(current.ethalon_id);
}else {
Global.testingServer.db.sapforPackages.getUI().ClearSelection();
}
}
}

View File

@@ -276,6 +276,8 @@ public class SapforTestingPlanner extends TestingPlanner<SapforPackage> {
"Версия: " + version_s + "\n" + "Статус: " + status,
new Vector<>()
);
message.addAttachement(out);
message.addAttachement(err);
//-
ServerCommand(ServerCode.Email, "", message);
}