This class represents the command of moving an operationplan to a new date and/or resizing it. More...
#include <model.h>

Public Member Functions | |
| CommandMoveOperationPlan (OperationPlan *opplanptr, Date newStart, Date newEnd, double newQty=-1.0) | |
| CommandMoveOperationPlan (OperationPlan *) | |
| virtual void | commit () |
| DateRange | getDates () const |
| OperationPlan * | getOperationPlan () const |
| double | getQuantity () const |
| virtual void | redo () |
| void | restore (bool=false) |
| virtual void | rollback () |
| void | setEnd (Date d) |
| void | setParameters (Date s, Date e, double q, bool b) |
| void | setQuantity (double q) |
| void | setStart (Date d) |
| virtual void | undo () |
| virtual | ~CommandMoveOperationPlan () |
Public Member Functions inherited from frepple::utils::Command | |
| Command () | |
| virtual | ~Command () |
This class represents the command of moving an operationplan to a new date and/or resizing it.
| frepple::CommandMoveOperationPlan::CommandMoveOperationPlan | ( | OperationPlan * | opplanptr, |
| Date | newStart, | ||
| Date | newEnd, | ||
| double | newQty = -1.0 |
||
| ) |
Constructor.
Unlike most other commands the constructor already executes the change.
| opplanptr | Pointer to the operationplan being moved. |
| newStart | New start date of the operationplan. |
| newEnd | New end date of the operationplan. |
| newQty | New quantity of the operationplan.The default is -1, which indicates to leave the quantity unchanged. |
Definition at line 320 of file model/actions.cpp.
| frepple::CommandMoveOperationPlan::CommandMoveOperationPlan | ( | OperationPlan * | o | ) |
Default constructor.
Definition at line 293 of file model/actions.cpp.
|
inlinevirtual |
|
inlinevirtual |
Commit the changes.
Reimplemented from frepple::utils::Command.
|
inline |
|
inline |
|
inline |
|
virtual |
This method reproduces a previously undone change.
A couple of notes on how this method should be implemented by the subclasses:
Reimplemented from frepple::utils::Command.
Definition at line 352 of file model/actions.cpp.
| void frepple::CommandMoveOperationPlan::restore | ( | bool | del = false | ) |
Undo the changes.
When the argument is true, subcommands for suboperationplans are deleted.
Definition at line 357 of file model/actions.cpp.
|
inlinevirtual |
Undo the changes.
Reimplemented from frepple::utils::Command.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
This method temporarily undoes the change. The concrete subclasses most maintain information that enables redoing the changes efficiently.
A couple of notes on how this method should be implemented by the subclasses:
Reimplemented from frepple::utils::Command.