public PurchaseRegHeaderRowChangeEvent(PurchaseRegHeaderRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void AddPurchaseRegHeaderRow(PurchaseRegHeaderRow row) { this.Rows.Add(row); }
public void RemovePurchaseRegHeaderRow(PurchaseRegHeaderRow row) { this.Rows.Remove(row); }
public PurchaseRegDetailRow AddPurchaseRegDetailRow(System.Guid DetailID, PurchaseRegHeaderRow parentPurchaseRegHeaderRowByFK_PurchaseRegDetail_PurchaseRegHeader, ItemMasterRow parentItemMasterRowByFK_PurchaseRegDetail_ItemMaster, string PackType, decimal Quantity, decimal Price, decimal Value, string CreatedBy, System.DateTime CreatedAt, string ModifiedBy, System.DateTime ModifiedAt, string ItemName) { PurchaseRegDetailRow rowPurchaseRegDetailRow = ((PurchaseRegDetailRow)(this.NewRow())); object[] columnValuesArray = new object[] { DetailID, null, null, PackType, Quantity, Price, Value, CreatedBy, CreatedAt, ModifiedBy, ModifiedAt, ItemName}; if ((parentPurchaseRegHeaderRowByFK_PurchaseRegDetail_PurchaseRegHeader != null)) { columnValuesArray[1] = parentPurchaseRegHeaderRowByFK_PurchaseRegDetail_PurchaseRegHeader[0]; } if ((parentItemMasterRowByFK_PurchaseRegDetail_ItemMaster != null)) { columnValuesArray[2] = parentItemMasterRowByFK_PurchaseRegDetail_ItemMaster[0]; } rowPurchaseRegDetailRow.ItemArray = columnValuesArray; this.Rows.Add(rowPurchaseRegDetailRow); return rowPurchaseRegDetailRow; }