2024-09-27 22:50:47 +03:00
|
|
|
package TestingSystem.SAPFOR.SapforSettingsCommand;
|
2024-10-07 00:58:29 +03:00
|
|
|
import Common_old.Constants;
|
|
|
|
|
import Common_old.Current;
|
|
|
|
|
import Common.Database.Objects.DBObject;
|
|
|
|
|
import Common.Database.Objects.riDBObject;
|
2024-09-27 22:50:47 +03:00
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|