/// <summary> /// Constructor for new supplier purchase /// </summary> public PurchaseClass() { loadDataSet(); addNewRecord(); _PurchaseLine = new PurchaseLineClass(_dst, _lngPKID); createRelationship(); }
/// <summary> /// Constructor for existing supplier purchase /// </summary> /// <param name="pLongID">The record ID of the order that will be used in this class</param> public PurchaseClass(long pLongID) { _lngPKID = pLongID; loadDataSet(); _PurchaseLine = new PurchaseLineClass(_dst, _lngPKID); createRelationship(); assignFields(); }