Ejemplo n.º 1
0
 public void UpdateWorkTaskDepartmentDB(WorkTaskDepartmentDataSet aWorkTaskDepartmentDataSet)
 {
     try
     {
         aWorkTaskDepartmentTableAdapter = new WorkTaskDepartmentDataSetTableAdapters.worktaskdepartmentTableAdapter();
         aWorkTaskDepartmentTableAdapter.Update(aWorkTaskDepartmentDataSet.worktaskdepartment);
     }
     catch (Exception Ex)
     {
         TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Work Task Class // Update Work Task Department DB " + Ex.Message);
     }
 }
Ejemplo n.º 2
0
        public WorkTaskDepartmentDataSet GetWorkTaskDepartmentInfo()
        {
            try
            {
                aWorkTaskDepartmentDataSet      = new WorkTaskDepartmentDataSet();
                aWorkTaskDepartmentTableAdapter = new WorkTaskDepartmentDataSetTableAdapters.worktaskdepartmentTableAdapter();
                aWorkTaskDepartmentTableAdapter.Fill(aWorkTaskDepartmentDataSet.worktaskdepartment);
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Work Task Class // Get Work Task Department Info " + Ex.Message);
            }

            return(aWorkTaskDepartmentDataSet);
        }