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

Quick Search    Search Deep

com.globalretailtech.pos.ej
Class EjHeader  view EjHeader download EjHeader.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.EjHeader
All Implemented Interfaces:
java.lang.Comparable

public class EjHeader
extends EjLine

Holds the base data for a transaction.


Field Summary
private static java.lang.String eventname
           
private  com.globalretailtech.data.Transaction transHeader
           
 
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
EjHeader()
          Simple constructor just sets line type.
EjHeader(com.globalretailtech.pos.context.PosContext c)
          Constructor just sets line type and context.
EjHeader(com.globalretailtech.data.Transaction t)
          Constructor sets transaction record
 
Method Summary
 double amount()
          Amount for this line, always 0
 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.
 int empNo()
          Employee number.
 void engage(int value)
          Does nothing.
static java.lang.String eventName()
          Return staic name.
 double extAmount()
          Extended amount for this line, always 0
 int lineNo()
          The line nubmer
 int posNo()
          POS number.
 java.lang.String prompt()
          Display prompt.
 int quantity()
          Quantitiy for this line.
 boolean save()
          Save the transaction record
 void setPosNo(int value)
          Set the POS number.
 void setTransHeader(com.globalretailtech.data.Transaction value)
          Sets the transaction header.
 void setTransNo(int value)
          Set the transaction number
 double taxAmount()
          Tax amount for this line, always 0
 java.lang.String toString()
          Return staic name.
 com.globalretailtech.data.Transaction transHeader()
          Database transactin record.
 int transID()
          Transaction ID.
 int transNo()
          Transactin Number.
 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

transHeader

private com.globalretailtech.data.Transaction transHeader

eventname

private static java.lang.String eventname
Constructor Detail

EjHeader

public EjHeader()
Simple constructor just sets line type.


EjHeader

public EjHeader(com.globalretailtech.pos.context.PosContext c)
Constructor just sets line type and context.


EjHeader

public EjHeader(com.globalretailtech.data.Transaction t)
Constructor sets transaction record

Method Detail

transID

public int transID()
Transaction ID.


transNo

public int transNo()
Transactin Number.


empNo

public int empNo()
Employee number.


posNo

public int posNo()
POS number.


transHeader

public com.globalretailtech.data.Transaction transHeader()
Database transactin record.


setTransHeader

public void setTransHeader(com.globalretailtech.data.Transaction value)
Sets the transaction header.


setTransNo

public void setTransNo(int value)
Set the transaction number


setPosNo

public void setPosNo(int value)
Set the POS number.


engage

public void engage(int value)
Does nothing.


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()
Amount for this line, always 0

Specified by:
amount in class EjLine

extAmount

public double extAmount()
Extended amount for this line, always 0

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()
Save the transaction record

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