промежуточный. вариант с разбитием конфигурации сапфора и настройки как отдельный объект
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package TestingSystem.SAPFOR.SapforSettingsCommand;
|
||||
import Common.Constants;
|
||||
import Common.Current;
|
||||
import Common.Database.DBObject;
|
||||
import Common.Database.riDBObject;
|
||||
import TestingSystem.SAPFOR.SapforConfigurationCommand.SapforConfigurationCommand;
|
||||
import TestingSystem.SAPFOR.SapforSettings.SapforSettings;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
import com.sun.org.glassfish.gmbal.Description;
|
||||
public class SapforSettingsCommand extends riDBObject {
|
||||
@Description("DEFAULT -1")
|
||||
public int sapforsettings_id = Constants.Nan;
|
||||
public PassCode_2021 passCode = PassCode_2021.SPF_RemoveDvmDirectives;
|
||||
@Override
|
||||
public boolean isVisible() {
|
||||
return Current.HasSapforSettings() && (Current.getSapforSettings().id == sapforsettings_id);
|
||||
}
|
||||
@Override
|
||||
public void SynchronizeFields(DBObject src) {
|
||||
super.SynchronizeFields(src);
|
||||
SapforSettingsCommand c = (SapforSettingsCommand) src;
|
||||
sapforsettings_id = c.sapforsettings_id;
|
||||
passCode = c.passCode;
|
||||
}
|
||||
public SapforSettingsCommand() {
|
||||
}
|
||||
public SapforSettingsCommand(SapforSettingsCommand sapforSettingsCommand) {
|
||||
this.SynchronizeFields(sapforSettingsCommand);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user