frepple::CommandMoveOperationPlan Class Reference
This class represents the command of moving an operationplan to a new date and/or resizing it.
More...
#include <model.h>
List of all members.
Detailed Description
This class represents the command of moving an operationplan to a new date and/or resizing it.
Definition at line 5347 of file model.h.
Constructor & Destructor Documentation
frepple::CommandMoveOperationPlan::CommandMoveOperationPlan |
( |
OperationPlan * |
opplanptr, |
|
|
Date |
newStart, |
|
|
Date |
newEnd, |
|
|
double |
newQty = -1.0 | |
|
) |
| | |
Constructor.
Unlike most other commands the constructor already executes the change.
- Parameters:
-
| 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 377 of file model/actions.cpp.
frepple::CommandMoveOperationPlan::CommandMoveOperationPlan |
( |
OperationPlan * |
o |
) |
|
frepple::CommandMoveOperationPlan::~CommandMoveOperationPlan |
( |
|
) |
[inline] |
Member Function Documentation
void frepple::CommandMoveOperationPlan::execute |
( |
|
) |
[inline, virtual] |
DateRange frepple::CommandMoveOperationPlan::getDates |
( |
|
) |
const [inline] |
Return the dates of the original operationplan.
Definition at line 5402 of file model.h.
OperationPlan* frepple::CommandMoveOperationPlan::getOperationPlan |
( |
|
) |
const [inline] |
Returns the operationplan being manipulated.
Definition at line 5379 of file model.h.
double frepple::CommandMoveOperationPlan::getQuantity |
( |
|
) |
const [inline] |
Return the quantity of the original operationplan.
Definition at line 5399 of file model.h.
void frepple::CommandMoveOperationPlan::restore |
( |
bool |
del = false |
) |
|
void frepple::CommandMoveOperationPlan::setEnd |
( |
Date |
d |
) |
[inline] |
Set another start date for the operationplan.
Definition at line 5393 of file model.h.
void frepple::CommandMoveOperationPlan::setParameters |
( |
Date |
s, |
|
|
Date |
e, |
|
|
double |
q, |
|
|
bool |
b | |
|
) |
| | [inline] |
Set another start date, end date and quantity for the operationplan.
Definition at line 5385 of file model.h.
void frepple::CommandMoveOperationPlan::setQuantity |
( |
double |
q |
) |
[inline] |
Set another quantity for the operationplan.
Definition at line 5396 of file model.h.
void frepple::CommandMoveOperationPlan::setStart |
( |
Date |
d |
) |
[inline] |
Set another start date for the operationplan.
Definition at line 5382 of file model.h.
void frepple::CommandMoveOperationPlan::undo |
( |
|
) |
[inline, virtual] |
bool frepple::CommandMoveOperationPlan::undoable |
( |
|
) |
const [inline, virtual] |
The documentation for this class was generated from the following files: