ItEr45S19CUTraspasoDeResponsabilidadesTraballoEntreUnidadesPlanificacion: Since reattachment can take potentially a long time, feedback is given using LongOperationFeedback
This commit is contained in:
parent
78381ef6aa
commit
691a844815
1 changed files with 16 additions and 3 deletions
|
|
@ -32,6 +32,8 @@ import org.springframework.context.annotation.Scope;
|
|||
import org.springframework.stereotype.Component;
|
||||
import org.zkoss.ganttz.timetracker.ICellForDetailItemRenderer;
|
||||
import org.zkoss.ganttz.timetracker.OnColumnsRowRenderer;
|
||||
import org.zkoss.ganttz.util.LongOperationFeedback;
|
||||
import org.zkoss.ganttz.util.LongOperationFeedback.ILongOperation;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.WrongValueException;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
|
|
@ -143,11 +145,22 @@ public class ReassignController extends GenericForwardComposer {
|
|||
}
|
||||
}
|
||||
window.setVisible(false);
|
||||
LocalDate associatedDate = this.associatedDate.getValue() != null ? LocalDate
|
||||
final LocalDate associatedDate = this.associatedDate.getValue() != null ? LocalDate
|
||||
.fromDateFields(this.associatedDate.getValue())
|
||||
: null;
|
||||
configurationResult.result(ReassignConfiguration
|
||||
.create(currentType, associatedDate));
|
||||
LongOperationFeedback.execute(window, new ILongOperation() {
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return _("Doing Reassignation");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAction() throws Exception {
|
||||
configurationResult.result(ReassignConfiguration.create(
|
||||
currentType, associatedDate));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void cancel() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue