Esempio n. 1
0
 public PurchaseRegHeaderRowChangeEvent(PurchaseRegHeaderRow row, global::System.Data.DataRowAction action) {
     this.eventRow = row;
     this.eventAction = action;
 }
Esempio n. 2
0
 public void AddPurchaseRegHeaderRow(PurchaseRegHeaderRow row) {
     this.Rows.Add(row);
 }
Esempio n. 3
0
 public void RemovePurchaseRegHeaderRow(PurchaseRegHeaderRow row) {
     this.Rows.Remove(row);
 }
Esempio n. 4
0
 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;
 }