The CProduct type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| AddKitItem(CStandardProduct) |
Adds quantity 1 of the provided product to the kit that comprises this CProduct.
| |
| AddKitItem(CStandardProduct, Double, String) |
Adds the specified quantity of the provided product to the kit that comprises this CProduct.
| |
| CheckAndModifyEditStatus |
Sets the EditStatus to Modified if it is Unchanged
(Inherited from iboBase.) | |
| Delete |
Marks this object to be deleted when the save is done
(Inherited from iboBase.) | |
| Equals | (Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetKitItem |
Gets the CKitItem object corresponding to the given ProductCode in the
kit. If this CProduct is not a kit, or if the given ProductCode is not
present in the kit, returns null.
| |
| GetProducts(IiMISUser, String, String, array<SqlParameter>[]()[][]) |
Retrieves a collection of Products from the database using the supplied SQL FROM and WHERE criteria and parameters.
The starting SQL is: SELECT Product.* FROM Product {0} WHERE 1 = 1 {1}. So any additional FROM criteria should look something like:
", Product_Function" or "INNER JOIN Product_Function ON Product.Product_Code = Product_Function.Product_Code" etc. Any additional
WHERE criteria should start with AND, like: "AND Product.Product_Code = Product_Function.Product_Code" etc.
| |
| GetProducts(DataServer, IiMISUser, String, String, array<SqlParameter>[]()[][]) |
Retrieves a collection of Products from the database using the supplied SQL FROM and WHERE criteria and parameters.
The starting SQL is: SELECT Product.* FROM Product {0} WHERE 1 = 1 {1}. So any additional FROM criteria should look something like:
", Product_Function" or "INNER JOIN Product_Function ON Product.Product_Code = Product_Function.Product_Code" etc. Any additional
WHERE criteria should start with AND, like: "AND Product.Product_Code = Product_Function.Product_Code" etc.
| |
| GetProductsByType |
Retrieves all of the Products from the database that have the given product type
| |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| RemoveKitItem(String) |
Remove the CProduct specified by the supplied product code from this kit. If this product is not a kit or the
specified product is not part of the kit, this method does nothing.
| |
| RemoveKitItem(CProduct) | ||
| Save()()()() |
Saves the Product along with all of its child records to the database using a new DataServer object.
| |
| Save(DataServer) |
Saves the Product along with all of its child records to the database.
| |
| Save(DataServer, Boolean) |
Saves the Product along with all of its child records to the database.
| |
| ToString | (Inherited from Object.) | |
| Validate |
Validates the data set in the product's properties against cross-property business rules. If any errors are found Validate
will return false and the Asi.iBO.Errors property should be checked for details. Validate can be called at any
time to check for errors but it will automatically be called at save time.
(Overrides iboBase..::..Validate()()()().) |