постепенное выведение старой концепции текущих объектов, касаемо табличных лучше держать их в интерфейсе таблиц, чтобы не писать описание объекта дважды и не мучиться с типом. некоторые фиксы
This commit is contained in:
@@ -11,17 +11,19 @@ public class GetComponentsBackupsFromServer extends ComponentsRepositoryPass<Vec
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
target = new Vector<>();
|
||||
return (Global.mainModule.Check(Log, Current.Component));
|
||||
return Global.components.getUI().Check(Log);
|
||||
}
|
||||
@Override
|
||||
protected void ServerAction() throws Exception {
|
||||
Command(new ServerExchangeUnit_2021(ServerCode.GetComponentsBackups, Global.mainModule.getComponent().getComponentType().toString()));
|
||||
Command(new ServerExchangeUnit_2021(ServerCode.GetComponentsBackups,
|
||||
Global.components.getUI().getCurrent().getComponentType().toString()));
|
||||
target = (Vector<File>) response.object;
|
||||
}
|
||||
@Override
|
||||
protected boolean validate() {
|
||||
if (target.isEmpty()) {
|
||||
Log.Writeln_("Не найдено резервных копий на сервере для компонента " + Global.mainModule.getComponent().getComponentType().getDescription());
|
||||
Log.Writeln_("Не найдено резервных копий на сервере для компонента "
|
||||
+ Global.components.getUI().getCurrent().getComponentType().getDescription());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user