2023-11-19 01:53:56 +03:00
|
|
|
package Common.Passes.All;
|
2023-09-17 22:13:42 +03:00
|
|
|
import Common.Current;
|
|
|
|
|
import Common.Database.Database;
|
|
|
|
|
import Common.Global;
|
2023-11-19 01:53:56 +03:00
|
|
|
import Repository.ComponentsServer.Subscribes.Subscriber;
|
|
|
|
|
import Common.Passes.EditObjectPass;
|
|
|
|
|
import Common.Passes.PassCode_2021;
|
2023-09-17 22:13:42 +03:00
|
|
|
public class EditSubscriber extends EditObjectPass<Subscriber> {
|
|
|
|
|
public EditSubscriber() {
|
|
|
|
|
super(Subscriber.class);
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected boolean canStart(Object... args) throws Exception {
|
|
|
|
|
if (Current.Check(Log, Current.Subscriber)){
|
|
|
|
|
target = Current.getSubscriber();
|
|
|
|
|
return getTable().ShowEditObjectDialog(target);
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected Database getDb() {
|
|
|
|
|
return Global.componentsServer.db;
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected void performDone() throws Exception {
|
|
|
|
|
super.performDone();
|
|
|
|
|
//отправка.
|
|
|
|
|
passes.get(PassCode_2021.EditSubscriberOnServer).Do(target);
|
|
|
|
|
}
|
|
|
|
|
}
|