Exemple #1
0
 public void SetData(ItemMasterRow row)
 {
     this.Name        = row._Name;
     this.Price       = row._Price;
     this.Type        = row._Type;
     this.Value       = row._Value;
     this.Description = row._Description;
 }
 public bool GetItem(ref ItemMasterRow item, int itemID)
 {
     foreach (ItemMasterRow curritem in itemList)
     {
         if (curritem.ItemID == itemID)
         {
             item = curritem;
             return true;
         }
     }
     return false;
 }
 public void AddItemMasterRow(ItemMasterRow row) {
     this.Rows.Add(row);
 }
 public ItemMasterRowChangeEvent(ItemMasterRow row, global::System.Data.DataRowAction action) {
     this.eventRow = row;
     this.eventAction = action;
 }
 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;
 }
 public void RemoveItemMasterRow(ItemMasterRow row) {
     this.Rows.Remove(row);
 }