예제 #1
0
 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);
     }
 }
예제 #2
0
        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);
        }