Esempio n. 1
0
 public void UpdateDailyVehicleInspectionDB(DailyVehicleInspectionsDataSet aDailyVehicleInspectionDataSet)
 {
     try
     {
         aDailyVehicleInspectionTableAdapter = new DailyVehicleInspectionsDataSetTableAdapters.dailyvehicleinspectionTableAdapter();
         aDailyVehicleInspectionTableAdapter.Update(aDailyVehicleInspectionDataSet.dailyvehicleinspection);
     }
     catch (Exception Ex)
     {
         TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Inspections Class // Update Daily Vehicle Inspections DB " + Ex.Message);
     }
 }
Esempio n. 2
0
        public DailyVehicleInspectionsDataSet GetDailyVehicleInspectionsInfo()
        {
            try
            {
                aDailyVehicleInspectionDataSet      = new DailyVehicleInspectionsDataSet();
                aDailyVehicleInspectionTableAdapter = new DailyVehicleInspectionsDataSetTableAdapters.dailyvehicleinspectionTableAdapter();
                aDailyVehicleInspectionTableAdapter.Fill(aDailyVehicleInspectionDataSet.dailyvehicleinspection);
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Inspections Class // Get Daily Vehicle Inspections Info " + Ex.Message);
            }

            return(aDailyVehicleInspectionDataSet);
        }