예제 #1
0
 public void UpdateITAssetsDB(ITAssetsDataSet aITAssetsDataSet)
 {
     try
     {
         aITAssetsTableAdapter = new ITAssetsDataSetTableAdapters.itassetsTableAdapter();
         aITAssetsTableAdapter.Update(aITAssetsDataSet.itassets);
     }
     catch (Exception Ex)
     {
         TheEventLogClass.InsertEventLogEntry(DateTime.Now, "IT Assets Class // Update IT Assets DB " + Ex.Message);
     }
 }
예제 #2
0
        public ITAssetsDataSet GetITAssetsInfo()
        {
            try
            {
                aITAssetsDataSet      = new ITAssetsDataSet();
                aITAssetsTableAdapter = new ITAssetsDataSetTableAdapters.itassetsTableAdapter();
                aITAssetsTableAdapter.Fill(aITAssetsDataSet.itassets);
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "IT Assets Class // Get IT Assets Info " + Ex.Message);
            }

            return(aITAssetsDataSet);
        }