CustomSupplierInfoProvider

This class manages the supplier lookup table. It uses the SupplierInfo class.

 

object GetSupplierInfo(int supplierId) returns the SupplierInfo object with given ID.
object GetSupplierInfo(string supplierName) returns the SupplierInfo object with given name.
void SetSupplierInfo(object supplier) updates/inserts the supplier record from the given SupplierInfo object. If SupplierID is set, updates, else inserts a new record.
void DeleteSupplierInfo(int supplierId) deletes the supplier record.
DataSet GetAllSuppliers(object status) returns the DataSet of all the suppliers. See database reference for detailed column information.
bool CheckDependencies(int supplierId) returns true if some objects depend on given supplier ID.