ItEr45S19CUTraspasoDeResponsabilidadesTraballoEntreUnidadesPlanificacion: Since reattachment can take potentially a long time, feedback is given using LongOperationFeedback

This commit is contained in:
Óscar González Fernández 2010-01-29 12:23:44 +01:00
parent 78381ef6aa
commit 691a844815

View file

@ -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() {