Package com.portal.app.cc.sharing
Class PSharingItemData
java.lang.Object
com.portal.app.cc.sharing.PSharingItemData
- Direct Known Subclasses:
PDiscountSharingItemData
This class stores all the data related to the Sharing(s),ie charge/discount.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected StringBuffer
protected Object[]
protected int
protected String
protected BigDecimal
protected boolean
protected Poid
protected Date
protected Date
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Dummy constructor.PSharingItemData
(int index, FList sharing) Constructs aPSharingItemData
with the specified data base indexindex
and charge sharing FListsharing
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some otherPSharingItemData
is same as thisPSharingItemData
?Returns the event description.int
Returns the event count.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.getName()
Returns the name of the sharing(discount/sponsor).getQty()
Returns the discount quantity.Returns the sharing poid.Returns the sharing's(discount/sponsor) with effect date.Returns the sharing's(discount/sponsor) max.boolean
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
This will set the usage map for the sharing from the passed flist'sSparseArray
.void
This will sort the events associated with sharing.
-
Field Details
-
selected
protected boolean selected -
index
protected int index -
sharingPoid
-
name
-
qty
-
description
-
validfrom
-
validto
-
events
-
eventRenderer
-
-
Constructor Details
-
PSharingItemData
protected PSharingItemData()Dummy constructor. -
PSharingItemData
Constructs aPSharingItemData
with the specified data base indexindex
and charge sharing FListsharing
.- Parameters:
index
- int the index at databasesharing
- FList the charge sharing flist- Throws:
EBufException
-
-
Method Details
-
setUsageMap
This will set the usage map for the sharing from the passed flist'sSparseArray
.- Parameters:
sa
- SparseArray the array of usage event types- Throws:
EBufException
-
equals
Indicates whether some otherPSharingItemData
is same as thisPSharingItemData
? -
sortEvents
public void sortEvents()This will sort the events associated with sharing. Also it will render the events to show as multi line in a cell. -
setSelected
public void setSelected(boolean b) This is used to select/unselect the sharing to include/exclude to/from a group. And this is used inPSharingAvailableDialog
.- Parameters:
b
- boolean
-
getEventCount
public int getEventCount()Returns the event count.- Returns:
- int the event count.
-
getIndex
public int getIndex()Returns the index of sharing in data base with in a group.- Returns:
- int the data base index
-
isSelected
public boolean isSelected()Returns the sharing is included/excluded from the group.- Returns:
- boolean
-
getSharingPoid
Returns the sharing poid.- Returns:
- Poid
-
getName
Returns the name of the sharing(discount/sponsor).- Returns:
- String
-
getDescription
Returns the event description.- Returns:
- String
-
getEventRenderer
Returns the event renderer string to display all the events in a cell as multi lines.- Returns:
- String
-
getValidFrom
Returns the sharing's(discount/sponsor) with effect date.- Returns:
- Date
-
getValidTo
Returns the sharing's(discount/sponsor) max. valid date.- Returns:
- Date
-
getQty
Returns the discount quantity. This will be used only for discount sharings.- Returns:
- BigDecimal the discount quantity
-