Esempio n. 1
0
 public void UpdateEmployeesDB(EmployeesDataSet aEmployeesDataSet)
 {
     try
     {
         aEmployeesTableAdapter = new EmployeesDataSetTableAdapters.employeesTableAdapter();
         aEmployeesTableAdapter.Update(aEmployeesDataSet.employees);
     }
     catch (Exception Ex)
     {
         TheEventLogClass.InsertEventLogEntry(DateTime.Now, "New Employee DLL // Update Employees DB // " + Ex.Message);
     }
 }
Esempio n. 2
0
        public EmployeesDataSet GetEmployeesInfo()
        {
            try
            {
                aEmployeesDataSet      = new EmployeesDataSet();
                aEmployeesTableAdapter = new EmployeesDataSetTableAdapters.employeesTableAdapter();
                aEmployeesTableAdapter.Fill(aEmployeesDataSet.employees);
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "New Employee DLL // Get Employees Info // " + Ex.Message);
            }

            return(aEmployeesDataSet);
        }