Großmarkt

market.swing
Class CCSStrategyMarket

java.lang.Object
  |
  +--sale.stdforms.FormSheetStrategy
        |
        +--data.stdforms.twotableformsheet.MoveStrategy
              |
              +--data.stdforms.twotableformsheet.CCSStrategy
                    |
                    +--market.swing.CCSStrategyMarket
All Implemented Interfaces:
ProcessErrorCodes, Serializable

public class CCSStrategyMarket
extends CCSStrategy

Defines the behaviour of the shifting buttons in the manager's Purchase-TwoTableFormSheet

See Also:
Serialized Form

Field Summary
 
Fields inherited from class sale.stdforms.FormSheetStrategy
DEFAULT_ERROR_HANDLER, m_ehErrHandler, MSG_POPUP_ERROR_HANDLER
 
Fields inherited from interface sale.ProcessErrorCodes
DATABASKET_CONFLICT_ERROR, DUPLICATE_KEY_EXCEPTION, ERR_INTERNAL, ERR_LOWERBOUND, ERR_NOERROR, ERR_UPPERBOUND, NOT_ENOUGH_ELEMENTS_ERROR, REMOVE_VETO_EXCEPTION
 
Constructor Summary
CCSStrategyMarket()
           
 
Method Summary
protected  void moveToSource(SaleProcess p, SalesPoint sp, Catalog cSource, CountingStock csDest, DataBasket db, CatalogItem ci, int nCount)
          Removes at most as much items as are left in the stock.
 
Methods inherited from class data.stdforms.twotableformsheet.CCSStrategy
checkMoveToDest, checkMoveToSource, getCheckMoveToDestGate, getCheckMoveToSourceGate, getMoveToDestProcess, getMoveToSourceProcess, moveToDest
 
Methods inherited from class data.stdforms.twotableformsheet.MoveStrategy
canMoveToDest, canMoveToSource
 
Methods inherited from class sale.stdforms.FormSheetStrategy
error, setErrorHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CCSStrategyMarket

public CCSStrategyMarket()
Method Detail

moveToSource

protected void moveToSource(SaleProcess p,
                            SalesPoint sp,
                            Catalog cSource,
                            CountingStock csDest,
                            DataBasket db,
                            CatalogItem ci,
                            int nCount)
Removes at most as much items as are left in the stock.

Overrides:
moveToSource in class CCSStrategy
Parameters:
p - the current SaleProcess.
sp - the SalesPoint on which the TTFS is displayed.
cSource - the source Catalog.
csDest - the destination CountingStock.
db - the transaction's DataBasket.
ci - the affected CatalogItem
nCount - the amount of Items to be shifted.

Großmarkt