Class busCustomer

The customer business object contains all information about address and contact info as well as some minimal tracking information. This object is also used for the customer's profile information which is mapped directly via a cookie id or via custom logins.

Maps to the wws_customers table.

System.Object
  Westwind.BusinessObjects.wwBusiness
    Westwind.BusinessObjects.wwBusiness<wws_customersRow>
      Westwind.WebStore.busCustomer

public class busCustomer : wwBusiness<wws_customersRow>

Class Members

MemberDescription
Constructor
DeleteInvoices Deletes all related invoices
public bool DeleteInvoices();
GetAddress Returns address information as a single string
public string GetAddress();
GetCustomerList Returns a customer list.
public int GetCustomerList( string Fields,
string Order,
string CursorName );

public DataTable GetCustomerList();

GetInvoicePks Returns a count of invoices. Creates a table called InvoicePks that contains all the PKs for this Customer
public int GetInvoicePks();
GetTypedDataRow Returns a typed datarow of wws_customersRow which is a generated class in Westwind.WebStore. This wrapper provides a typed interface to the current DataRow member.
public wws_customersRow GetTypedDataRow( bool LoadColumns );

public wws_customersRow GetTypedDataRow();

Load Overridden to load the shi
public bool Load( int Pk,
bool LoadShippingAddress );
LoadByEmailAndPassword Returns a customer records based on a email and password
public bool LoadByEmailAndPassword( string Email,
string Password );
LoadByUserId Loads a customer by user id. This userid is a COokie in the Web application and stored in wwStoreUserId for the application.
public bool LoadByUserId( string lcUserId );
New Retrieves a new DataRow object and overrides several properties.
public virtual bool New();
Save Saves the current DataRow and updates several fields.
public virtual bool Save();
SplitAddressLines Splits an address line into the first line and the rest
public static int SplitAddressLines( string Address,
ref string Line1,
ref string Line2 );

public int SplitAddressLines( ref string Line1,
ref string Line2 );

UpdateUserId Updates a User for a specific customer record by PK
public bool UpdateUserId( int Pk,
string UserId );
Validate Validates the current Customer record
public virtual bool Validate();
ShippingAddress

Requirements

Namespace: Westwind.WebStore
Assembly: westwind.webstore.business.dll


 Last Updated: 3/7/2007 | Send topic feedback