ItEr45S19CUTraspasoDeResponsabilidadesTraballoEntreUnidadesPlanificacion: Adding reassign command to order's planning

This commit is contained in:
Óscar González Fernández 2010-01-27 12:35:44 +01:00
parent 460a8cf5ad
commit baf90e7d03
4 changed files with 92 additions and 0 deletions

View file

@ -85,6 +85,7 @@ import org.navalplanner.web.planner.chart.EarnedValueChartFiller.EarnedValueType
import org.navalplanner.web.planner.milestone.IAddMilestoneCommand;
import org.navalplanner.web.planner.milestone.IDeleteMilestoneCommand;
import org.navalplanner.web.planner.order.ISaveCommand.IAfterSaveListener;
import org.navalplanner.web.planner.reassign.IReassignCommand;
import org.navalplanner.web.planner.taskedition.EditTaskController;
import org.navalplanner.web.planner.taskedition.ITaskPropertiesCommand;
import org.navalplanner.web.print.CutyPrint;
@ -639,6 +640,11 @@ public abstract class OrderPlanningModel implements IOrderPlanningModel {
return saveCommand;
}
private ICommand<TaskElement> buildReassigningCommand() {
IReassignCommand result = getReassignCommand();
return result;
}
private Chart setupChart(Order orderReloaded,
IChartFiller loadChartFiller, Timeplot chartComponent,
TimeTracker timeTracker) {
@ -806,6 +812,8 @@ public abstract class OrderPlanningModel implements IOrderPlanningModel {
protected abstract ISaveCommand getSaveCommand();
protected abstract IReassignCommand getReassignCommand();
protected abstract IResourceAllocationCommand getResourceAllocationCommand();
protected abstract IAddMilestoneCommand getAddMilestoneCommand();

View file

@ -0,0 +1,31 @@
/*
* This file is part of ###PROJECT_NAME###
*
* Copyright (C) 2009 Fundación para o Fomento da Calidade Industrial e
* Desenvolvemento Tecnolóxico de Galicia
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.navalplanner.web.planner.reassign;
import org.navalplanner.business.planner.entities.TaskElement;
import org.zkoss.ganttz.extensions.ICommand;
/**
* @author Óscar González Fernández <ogonzalez@igalia.com>
*
*/
public interface IReassignCommand extends ICommand<TaskElement> {
}

View file

@ -0,0 +1,52 @@
/*
* This file is part of ###PROJECT_NAME###
*
* Copyright (C) 2009 Fundación para o Fomento da Calidade Industrial e
* Desenvolvemento Tecnolóxico de Galicia
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.navalplanner.web.planner.reassign;
import static org.navalplanner.business.i18n.I18nHelper._;
import org.navalplanner.business.planner.entities.TaskElement;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.zkoss.ganttz.extensions.IContext;
/**
* @author Óscar González Fernández <ogonzalez@igalia.com>
*
*/
@Component
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class ReassignCommand implements IReassignCommand {
@Override
public void doAction(IContext<TaskElement> context) {
}
@Override
public String getName() {
return _("Reassign");
}
@Override
public String getImage() {
return null;
}
}

View file

@ -32,6 +32,7 @@
<lookup-method name="getAddMilestoneCommand" bean="addMilestoneCommand"/>
<lookup-method name="getDeleteMilestoneCommand" bean="deleteMilestoneCommand"/>
<lookup-method name="getSubcontractCommand" bean="subcontractCommand"/>
<lookup-method name="getReassignCommand" bean="reassignCommand"/>
</bean>
<bean class="org.navalplanner.web.planner.company.CompanyPlanningModel" scope="prototype">