Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.globalretailtech.pos.ej
Class EjPromotion  view EjPromotion download EjPromotion.java

java.lang.Object
  extended bycom.globalretailtech.pos.events.PosEvent
      extended bycom.globalretailtech.pos.events.PosDialogEvent
          extended bycom.globalretailtech.pos.events.PosNumberDialog
              extended bycom.globalretailtech.pos.ej.EjLine
                  extended bycom.globalretailtech.pos.ej.EjPromotion
All Implemented Interfaces:
java.lang.Comparable

public class EjPromotion
extends EjLine

EjPromotion


Field Summary
private static java.lang.String eventname
           
private  com.globalretailtech.pos.operators.PosItemModifier modifier
           
private  com.globalretailtech.data.Promotion promotion
           
private  com.globalretailtech.data.TransPromotion transpromotion
           
 
Fields inherited from class com.globalretailtech.pos.ej.EjLine
ACCOUNT, ALT_CURRENCY_TENDER, AMOUNT, BANK, CC_TENDER, CHECK_TENDER, COUPON, DEBIT_TENDER, GIFT_CERT_TENDER, ITEM, ITEM_LINK, NUMBER, numbertype, PROMOTION, SPLIT, TAX, TENDER, TOTAL, TRANS_HEADER
 
Fields inherited from class com.globalretailtech.pos.events.PosNumberDialog
CLEAR, CURRENCY, DECIMAL, MASK
 
Fields inherited from class com.globalretailtech.pos.events.PosDialogEvent
 
Fields inherited from class com.globalretailtech.pos.events.PosEvent
CUST_HIST, CUST_MAIN, FUNCTION, HOME, ITEM_MODIFIER, NAVIGATE, NEXT, PREV
 
Constructor Summary
EjPromotion()
          Default constructor
EjPromotion(com.globalretailtech.pos.context.PosContext c, com.globalretailtech.data.Promotion promotion)
          Constructor used when an item mod is linked to an item when the item is looked up and added to the ej.
EjPromotion(com.globalretailtech.pos.context.PosContext c, com.globalretailtech.data.TransPromotion t)
          Constructor used for reprint.
EjPromotion(com.globalretailtech.data.TransPromotion t)
           
 
Method Summary
 double amount()
          Quantitiy for this line.
 boolean applied()
           
 void apply()
           
 double change()
          Chage for this transaction.
 void clear()
          Clear key implementation for this class
 java.lang.String cust()
          Display customer.
 com.globalretailtech.data.DBRecord dataRecord()
          The data record
 java.lang.String desc()
          Display description.
 void engage(int value)
          Event logic is implemented here
static java.lang.String eventName()
          Return staic name.
 double extAmount()
          Amount for this line, = amount ()
 int lineNo()
          The line nubmer
 com.globalretailtech.pos.operators.PosItemModifier posItemModifier()
           
 com.globalretailtech.data.Promotion promotion()
           
 java.lang.String prompt()
          Display prompt.
 int quantity()
          Quantitiy for this line.
 boolean save()
          Database save function.
 void setPosItemModifier(com.globalretailtech.pos.operators.PosItemModifier value)
           
 void setPromotion(com.globalretailtech.data.Promotion value)
           
 void setTransPromotion(com.globalretailtech.data.TransPromotion value)
           
 double taxAmount()
          Tax amount for this line, always 0
 java.lang.String toString()
          Return staic name.
 com.globalretailtech.data.TransPromotion transPromotion()
           
 void updateTotals()
          No total updates for this record.
 boolean validTransition(java.lang.String event)
          Validate transistions state.
 
Methods inherited from class com.globalretailtech.pos.ej.EjLine
compareTo, lineType, numberType, promptText, setLineType, type
 
Methods inherited from class com.globalretailtech.pos.events.PosDialogEvent
isDialog, nextDialogEvent, popState, pushState, pushUserEvent, state, states
 
Methods inherited from class com.globalretailtech.pos.events.PosEvent
blocked, checkProfile, context, employeeHasProfile, isValidEvent, setBlocked, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

modifier

private com.globalretailtech.pos.operators.PosItemModifier modifier

transpromotion

private com.globalretailtech.data.TransPromotion transpromotion

promotion

private com.globalretailtech.data.Promotion promotion

eventname

private static java.lang.String eventname
Constructor Detail

EjPromotion

public EjPromotion()
Default constructor


EjPromotion

public EjPromotion(com.globalretailtech.pos.context.PosContext c,
                   com.globalretailtech.data.Promotion promotion)
Constructor used when an item mod is linked to an item when the item is looked up and added to the ej.


EjPromotion

public EjPromotion(com.globalretailtech.pos.context.PosContext c,
                   com.globalretailtech.data.TransPromotion t)
Constructor used for reprint.


EjPromotion

public EjPromotion(com.globalretailtech.data.TransPromotion t)
Method Detail

posItemModifier

public com.globalretailtech.pos.operators.PosItemModifier posItemModifier()

transPromotion

public com.globalretailtech.data.TransPromotion transPromotion()

promotion

public com.globalretailtech.data.Promotion promotion()

setPosItemModifier

public void setPosItemModifier(com.globalretailtech.pos.operators.PosItemModifier value)

setTransPromotion

public void setTransPromotion(com.globalretailtech.data.TransPromotion value)

setPromotion

public void setPromotion(com.globalretailtech.data.Promotion value)

engage

public void engage(int value)
Description copied from class: com.globalretailtech.pos.events.PosEvent
Event logic is implemented here


apply

public void apply()

applied

public boolean applied()

validTransition

public boolean validTransition(java.lang.String event)
Validate transistions state.


clear

public void clear()
Clear key implementation for this class


toString

public java.lang.String toString()
Return staic name.


eventName

public static java.lang.String eventName()
Return staic name.


quantity

public int quantity()
Quantitiy for this line.

Specified by:
quantity in class EjLine

amount

public double amount()
Quantitiy for this line.

Specified by:
amount in class EjLine

extAmount

public double extAmount()
Amount for this line, = amount ()

Specified by:
extAmount in class EjLine

taxAmount

public double taxAmount()
Tax amount for this line, always 0

Specified by:
taxAmount in class EjLine

change

public double change()
Chage for this transaction.

Specified by:
change in class EjLine

save

public boolean save()
Description copied from class: EjLine
Database save function.

Specified by:
save in class EjLine

prompt

public java.lang.String prompt()
Display prompt.

Specified by:
prompt in class EjLine

cust

public java.lang.String cust()
Display customer.

Specified by:
cust in class EjLine

desc

public java.lang.String desc()
Display description.

Specified by:
desc in class EjLine

lineNo

public int lineNo()
The line nubmer

Specified by:
lineNo in class EjLine

dataRecord

public com.globalretailtech.data.DBRecord dataRecord()
The data record

Specified by:
dataRecord in class EjLine

updateTotals

public void updateTotals()
No total updates for this record.

Specified by:
updateTotals in class EjLine