public void UpdateInventoryLocationDB(InventoryLocationDataSet aInventoryLocationDataSet) { try { aInventoryLocationTableAdapter = new InventoryLocationDataSetTableAdapters.inventorylocationTableAdapter(); aInventoryLocationTableAdapter.Update(aInventoryLocationDataSet.inventorylocation); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Material Sheets Class // Update Inventory Location DB " + Ex.Message); } }
public InventoryLocationDataSet GetInventoryLocationInfo() { try { aInventoryLocationDataSet = new InventoryLocationDataSet(); aInventoryLocationTableAdapter = new InventoryLocationDataSetTableAdapters.inventorylocationTableAdapter(); aInventoryLocationTableAdapter.Fill(aInventoryLocationDataSet.inventorylocation); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Material Sheets Class // Get Inventory Location Info " + Ex.Message); } return(aInventoryLocationDataSet); }