| West Wind Web Store .NET 2.0 |
Class busLineItem
|
The bulk of this class' customizations deals with the operation of the list and recalculation.
System.Object
Westwind.BusinessObjects.wwBusiness
Westwind.BusinessObjects.wwBusiness<wws_lineitemsRow>
Westwind.WebStore.busLineItem
public class busLineItem : wwBusiness<wws_lineitemsRow>
| Member | Description | |
|---|---|---|
![]() |
Constructor | |
![]() |
AddItem | Adds an item generically to the lineitems DataTable (wws_lineitems_list). This method does not call Save() to write to the database. A separate call to LineItems.SaveLineItems() is required to save the full collection. public virtual bool AddItem( int InvPk, string Sku, int Qty ); public virtual bool AddItem( busLineItem LineItem ); |
![]() |
CalculateItemTotal | Calculates the item total based on qty price, discount and tax rate public decimal CalculateItemTotal(); public decimal CalculateItemTotal( DataRow LineItemRow ); |
![]() |
DeleteLineItems | Deletes the lineitems of the invoice. public virtual bool DeleteLineItems( int InvPk ); public virtual bool DeleteLineItems(); |
![]() |
LoadLineItems | Creates a DataSet with LineItems_List cursor. (or TLineItems_List) public virtual int LoadLineItems( int InvPk ); |
![]() |
New | Retrieves a new lineitem and sets the Item Total values to 0 to avoid null values. public virtual bool New(); public virtual bool New( int InvPk, |
![]() |
RemoveLineItem | Method used to delete a line item from the database. Requires a InvPk in order to allow only the 'current' user to remove items and not to delete other user's items. Deletes the items only from the database not from the LineItem collection busLineItem::RemoveLineItemFromCollection public bool RemoveLineItem( int Pk, int InvPk ); |
![]() |
RemoveLineItemFromCollection | Removes the Lineitem from the LineItems collection (wws_lineitems_list table). No items are removed from disk. Use LineItems.Save() to save the data. public bool RemoveLineItemFromCollection( int Pk, int InvPk ); |
![]() |
Save | Overridden to update inventory for the current item. public virtual bool Save(); |
![]() |
SaveFromTemporaryLineItems | Copies the temporary lineitems to the 'real' lineitems table and cleans out the tlineitems. public bool SaveFromTemporaryLineItems( int InvPk ); |
![]() |
SaveLineItems | Saves the lineitems currently loaded in the this.Tablename + "_List" data table public virtual bool SaveLineItems( bool UpdateInventory ); |
![]() |
UpdateInventoryFromLineItems | Goes through the list of lineitems in the 'List' table and updates the inventory based on whether the items have changed or been added. public bool UpdateInventoryFromLineItems(); |
![]() |
IsTemporaryLineItem | If true we're dealing with a temporary lineitem |
Last Updated: 3/7/2007 |
Send topic feedback