|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.salespointframework.desktop.strategies.FormSheetStrategy
org.salespointframework.desktop.strategies.dataexchangeformsheet.MoveStrategy
org.salespointframework.desktop.strategies.dataexchangeformsheet.CCSStrategy
public class CCSStrategy
MoveStrategy for a Catalog source and a CountingStock destination.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.salespointframework.desktop.strategies.FormSheetStrategy |
---|
FormSheetStrategy.ErrorHandler |
Field Summary |
---|
Fields inherited from class org.salespointframework.desktop.strategies.FormSheetStrategy |
---|
DEFAULT_ERROR_HANDLER, m_ehErrHandler, MSG_POPUP_ERROR_HANDLER |
Fields inherited from interface org.salespointframework.core.exceptions.ProcessErrorCodes |
---|
DATABASKET_CONFLICT_ERROR, DUPLICATE_KEY_EXCEPTION, ERR_FORCED_SHUTDOWN, ERR_INTERNAL, ERR_LOWERBOUND, ERR_NOERROR, ERR_UPPERBOUND, NOT_ENOUGH_ELEMENTS_ERROR, REMOVE_VETO_EXCEPTION |
Constructor Summary | |
---|---|
CCSStrategy()
|
Method Summary | |
---|---|
protected int |
checkMoveToDest(SaleProcess p,
SalesPoint sp,
Catalog cSource,
CountingStock csDest,
DataBasket db,
CatalogItem ci,
int nCount)
Check whether the indicated move is allowable. |
protected int |
checkMoveToSource(SaleProcess p,
SalesPoint sp,
Catalog cSource,
CountingStock csDest,
DataBasket db,
CatalogItem ci,
int nCount)
Check whether the indicated move is allowable. |
protected Gate |
getCheckMoveToDestGate(SaleProcess p,
SalesPoint sp,
Catalog cSource,
CountingStock csDest,
DataBasket db,
CatalogItem ci,
int nCount,
DataExchangeFormSheet ttfs)
Get the first gate of the sub-process that will move items from the source to the destination. |
protected Gate |
getCheckMoveToSourceGate(SaleProcess p,
SalesPoint sp,
Catalog cSource,
CountingStock csDest,
DataBasket db,
CatalogItem ci,
int nCount,
DataExchangeFormSheet ttfs)
Get the first gate of the sub-process that will move items from the destination to the source. |
Transition |
getMoveToDestProcess(SaleProcess p,
SalesPoint sp,
Catalog cSource,
CountingStock csDest,
DataBasket db,
CatalogItem ci,
int nCount,
DataExchangeFormSheet ttfs)
Get the sub-process that will move items from the source to the destination. |
Transition |
getMoveToSourceProcess(SaleProcess p,
SalesPoint sp,
Catalog cSource,
CountingStock csDest,
DataBasket db,
CatalogItem ci,
int nCount,
DataExchangeFormSheet ttfs)
Get the sub-process that will move items from the destination to the source. |
protected void |
moveToDest(SaleProcess p,
SalesPoint sp,
Catalog cSource,
CountingStock csDest,
DataBasket db,
CatalogItem ci,
int nCount)
Move the indicated number of items as indicated into the destination Stock. |
protected void |
moveToSource(SaleProcess p,
SalesPoint sp,
Catalog cSource,
CountingStock csDest,
DataBasket db,
CatalogItem ci,
int nCount)
Move the indicated number of items as indicated from the destination Stock. |
Methods inherited from class org.salespointframework.desktop.strategies.dataexchangeformsheet.MoveStrategy |
---|
canMoveToDest, canMoveToSource |
Methods inherited from class org.salespointframework.desktop.strategies.FormSheetStrategy |
---|
error, setErrorHandler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CCSStrategy()
Method Detail |
---|
public Transition getMoveToDestProcess(SaleProcess p, SalesPoint sp, Catalog cSource, CountingStock csDest, DataBasket db, CatalogItem ci, int nCount, DataExchangeFormSheet ttfs)
p
- the process into which the sub-process wil be embedded.sp
- the SalesPoint, if any, at which the FormSheet is being displayed.cSource
- the source Catalog.csDest
- the destination CountingStock.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is selected in the source.nCount
- the number of items to be moved.ttfs
- the FormSheet that triggers the process.protected Gate getCheckMoveToDestGate(SaleProcess p, SalesPoint sp, Catalog cSource, CountingStock csDest, DataBasket db, CatalogItem ci, int nCount, DataExchangeFormSheet ttfs)
This Gate will check whether the move is allowable, and if so, will trigger a Transition that performs it.
p
- the process into which the sub-process wil be embedded.sp
- the SalesPoint, if any, at which the FormSheet is being displayed.cSource
- the source Catalog.csDest
- the destination CountingStock.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is selected in the source.nCount
- the number of items to be moved.ttfs
- the FormSheet that triggers the process.protected void moveToDest(SaleProcess p, SalesPoint sp, Catalog cSource, CountingStock csDest, DataBasket db, CatalogItem ci, int nCount)
Transition
.
p
- the process into which the sub-process wil be embedded.sp
- the SalesPoint, if any, at which the FormSheet is being displayed.cSource
- the source Catalog.csDest
- the destination CountingStock.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is selected in the source.nCount
- the number of items to be moved.protected int checkMoveToDest(SaleProcess p, SalesPoint sp, Catalog cSource, CountingStock csDest, DataBasket db, CatalogItem ci, int nCount) throws java.lang.InterruptedException
FormSheetStrategy.error(org.salespointframework.core.SaleProcess, int)
. You can assume that you are at a Gate
.
p
- the process into which the sub-process wil be embedded.sp
- the SalesPoint, if any, at which the FormSheet is being displayed.cSource
- the source Catalog.csDest
- the destination CountingStock.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is selected in the source.nCount
- the number of items to be moved.
java.lang.InterruptedException
public Transition getMoveToSourceProcess(SaleProcess p, SalesPoint sp, Catalog cSource, CountingStock csDest, DataBasket db, CatalogItem ci, int nCount, DataExchangeFormSheet ttfs)
p
- the process into which the sub-process wil be embedded.sp
- the SalesPoint, if any, at which the FormSheet is being displayed.cSource
- the source Catalog.csDest
- the destination CountingStock.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is selected in the destination.nCount
- the number of items to be moved.ttfs
- the FormSheet that triggers the process.protected Gate getCheckMoveToSourceGate(SaleProcess p, SalesPoint sp, Catalog cSource, CountingStock csDest, DataBasket db, CatalogItem ci, int nCount, DataExchangeFormSheet ttfs)
This Gate will check whether the move is allowable, and if so, will trigger a Transition that performs it.
p
- the process into which the sub-process wil be embedded.sp
- the SalesPoint, if any, at which the FormSheet is being displayed.cSource
- the source Catalog.csDest
- the destination CountingStock.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is selected in the destination.nCount
- the number of items to be moved.ttfs
- the FormSheet that triggers the process.protected void moveToSource(SaleProcess p, SalesPoint sp, Catalog cSource, CountingStock csDest, DataBasket db, CatalogItem ci, int nCount)
Transition
.
p
- the process into which the sub-process wil be embedded.sp
- the SalesPoint, if any, at which the FormSheet is being displayed.cSource
- the source Catalog.csDest
- the destination CountingStock.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is selected in the destination.nCount
- the number of items to be moved.protected int checkMoveToSource(SaleProcess p, SalesPoint sp, Catalog cSource, CountingStock csDest, DataBasket db, CatalogItem ci, int nCount) throws java.lang.InterruptedException
FormSheetStrategy.error(org.salespointframework.core.SaleProcess, int)
. You can assume that you are at a Gate
.
p
- the process into which the sub-process wil be embedded.sp
- the SalesPoint, if any, at which the FormSheet is being displayed.cSource
- the source Catalog.csDest
- the destination CountingStock.db
- the DataBasket relative to which to perform the operation.ci
- the CatalogItem that is selected in the destination.nCount
- the number of items to be moved.
java.lang.InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |