public class PSharingItemData extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
description |
protected StringBuffer |
eventRenderer |
protected Object[] |
events |
protected int |
index |
protected String |
name |
protected BigDecimal |
qty |
protected boolean |
selected |
protected Poid |
sharingPoid |
protected Date |
validfrom |
protected Date |
validto |
Modifier | Constructor and Description |
---|---|
protected |
PSharingItemData()
Dummy constructor.
|
|
PSharingItemData(int index,
FList sharing)
Constructs a
PSharingItemData with the
specified data base index index and
charge sharing FListsharing . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether some other
PSharingItemData
is same as this PSharingItemData ? |
String |
getDescription()
Returns the event description.
|
int |
getEventCount()
Returns the event count.
|
String |
getEventRenderer()
Returns the event renderer string to display
all the events in a cell as multi lines.
|
int |
getIndex()
Returns the index of sharing in data base with
in a group.
|
String |
getName()
Returns the name of the sharing(discount/sponsor).
|
BigDecimal |
getQty()
Returns the discount quantity.
|
Poid |
getSharingPoid()
Returns the sharing poid.
|
Date |
getValidFrom()
Returns the sharing's(discount/sponsor)
with effect date.
|
Date |
getValidTo()
Returns the sharing's(discount/sponsor)
max.
|
boolean |
isSelected()
Returns the sharing is included/excluded
from the group.
|
void |
setSelected(boolean b)
This is used to select/unselect the sharing
to include/exclude to/from a group.
|
protected void |
setUsageMap(SparseArray sa)
This will set the usage map for the sharing from the passed
flist's
SparseArray . |
void |
sortEvents()
This will sort the events associated with sharing.
|
protected boolean selected
protected int index
protected Poid sharingPoid
protected String name
protected BigDecimal qty
protected String description
protected Date validfrom
protected Date validto
protected Object[] events
protected StringBuffer eventRenderer
protected PSharingItemData()
public PSharingItemData(int index, FList sharing) throws EBufException
PSharingItemData
with the
specified data base index index
and
charge sharing FListsharing
.index
- int the index at databasesharing
- FList the charge sharing flistEBufException
protected void setUsageMap(SparseArray sa) throws EBufException
SparseArray
.sa
- SparseArray the array of usage event typesEBufException
public boolean equals(Object obj)
PSharingItemData
is same as this PSharingItemData
?public void sortEvents()
public void setSelected(boolean b)
PSharingAvailableDialog
.b
- booleanpublic int getEventCount()
public int getIndex()
public boolean isSelected()
public Poid getSharingPoid()
public String getName()
public String getDescription()
public String getEventRenderer()
public Date getValidFrom()
public Date getValidTo()
public BigDecimal getQty()
Copyright © 2003, 2023, Oracle and/or its affiliates.