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 Stringprotected StringBufferprotected Object[]protected intprotected Stringprotected BigDecimalprotected booleanprotected Poidprotected Dateprotected Date -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDummy constructor.PSharingItemData(int index, FList sharing) Constructs aPSharingItemDatawith the specified data base indexindexand charge sharing FListsharing. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some otherPSharingItemDatais same as thisPSharingItemData?Returns the event description.intReturns the event count.Returns the event renderer string to display all the events in a cell as multi lines.intgetIndex()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.booleanReturns the sharing is included/excluded from the group.voidsetSelected(boolean b) This is used to select/unselect the sharing to include/exclude to/from a group.protected voidThis will set the usage map for the sharing from the passed flist'sSparseArray.voidThis 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 aPSharingItemDatawith the specified data base indexindexand 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 otherPSharingItemDatais 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
-