Exemplo n.º 1
0
 public void AddEmployee(BOEmployee boEmployee)
 {
     try
     {
         Employee employee = BusinessLayerHelper.ConvertBOEmployeeToEmployee(boEmployee);
         dataLayer.AddEmployee(employee);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 2
0
 public void AddProject(BOProject boProject)
 {
     try
     {
         Project project = BusinessLayerHelper.ConvertBOProjectToProject(boProject);
         dataLayer.AddProject(project);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 3
0
 public void AddTechnology(BOTechnology boTechnology)
 {
     try
     {
         TechnologyMaster technology = BusinessLayerHelper.ConvertBOTechnologyToTechnology(boTechnology);
         dataLayer.AddTechnology(technology);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 4
0
 public List <BOProject> GetAllProjectsForEmployees(int employeeID)
 {
     try
     {
         List <Project>   projects = dataLayer.GetAllProjectsForEmployees(employeeID);
         List <BOProject> businessProjectsForEmployee = BusinessLayerHelper.ConvertProjectListToBOProjectList(projects);
         return(businessProjectsForEmployee);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 5
0
 public List <BOEmployee> GetAllEmployeesForProjects(int projectID)
 {
     try
     {
         List <Employee>   employees         = dataLayer.GetAllEmployeesForProjects(projectID);
         List <BOEmployee> businessEmployees = BusinessLayerHelper.ConvertEmployeeListToBOEmployeeList(employees);
         return(businessEmployees);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 6
0
 public List <BOTechnology> GetAllTechnologies()
 {
     try
     {
         List <TechnologyMaster> technologies         = dataLayer.GetAllTechnologies();
         List <BOTechnology>     businessTechnologies = BusinessLayerHelper.ConvertTechnologyListToBOTechnologyList(technologies);
         return(businessTechnologies);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 7
0
 public List <BOProject> GetAllProjects()
 {
     try
     {
         List <Project>   projects         = dataLayer.GetAllProjects();
         List <BOProject> businessProjects = BusinessLayerHelper.ConvertProjectListToBOProjectList(projects);
         return(businessProjects);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 8
0
 public List <BOTechnology> GetAllTechnologiesForEmployee(int employeeID)
 {
     try
     {
         List <TechnologyMaster> technologies            = dataLayer.GetAllTechnologiesForEmployee(employeeID);
         List <BOTechnology>     businessTaskForProjects = BusinessLayerHelper.ConvertTechnologyListToBOTechnologyList(technologies);
         return(businessTaskForProjects);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 9
0
 public List <BOProject> GetAllTechnologyProjects(int technologyID)
 {
     try
     {
         List <Project>   projects = dataLayer.GetAllTechnologyProjects(technologyID);
         List <BOProject> businessTechnologyProjects = BusinessLayerHelper.ConvertProjectListToBOProjectList(projects);
         return(businessTechnologyProjects);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 10
0
 public List <BOTask> GetAllTechnologyTasksForEmployee(int technologyID, int employeeID)
 {
     try
     {
         List <CompanyManagementDataLayer.Task> tasks     = dataLayer.GetAllTechnologyTasksForEmployee(technologyID, employeeID);
         List <BOTask> businessTechnologyTasksForEmployee = BusinessLayerHelper.ConvertTaskListToBOTaskList(tasks);
         return(businessTechnologyTasksForEmployee);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 11
0
 public List <BOProject> GetAllDelayedProjects()
 {
     try
     {
         int              delayedStatus           = Convert.ToInt32(CMEnum.Status.Delayed);
         List <Project>   projects                = dataLayer.GetAllDelayedProjects(delayedStatus);
         List <BOProject> businessProjectsDelayed = BusinessLayerHelper.ConvertProjectListToBOProjectList(projects);
         return(businessProjectsDelayed);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 12
0
 public List <BOTask> GetAllDelayedTasksForEmployee(int employeeID)
 {
     try
     {
         int delayedStatus = Convert.ToInt32(CMEnum.Status.Delayed);
         List <CompanyManagementDataLayer.Task> tasks = dataLayer.GetAllDelayedTasksForEmployee(employeeID, delayedStatus);
         List <BOTask> businessDelayedTaskForemployee = BusinessLayerHelper.ConvertTaskListToBOTaskList(tasks);
         return(businessDelayedTaskForemployee);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 13
0
 public List <BOTask> GetAllActiveTasksForProject(int projectID)
 {
     try
     {
         int status = Convert.ToInt32(CMEnum.Status.Active);
         List <CompanyManagementDataLayer.Task> tasks = dataLayer.GetAllTasksForProject(projectID, status);
         List <BOTask> businessTaskForProjects        = BusinessLayerHelper.ConvertTaskListToBOTaskList(tasks);
         return(businessTaskForProjects);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 14
0
 public List <BOProject> GetAllActiveProjectsManagedByEmployee(int employeeID)
 {
     try
     {
         int              activeStatus  = Convert.ToInt32(CMEnum.Status.Active);
         int              designationID = Convert.ToInt32(CMEnum.Designation.Manager);
         List <Project>   projects      = dataLayer.GetAllProjectsOfEmployee(employeeID, activeStatus, designationID);
         List <BOProject> businessActiveProjectsForEmployee = BusinessLayerHelper.ConvertProjectListToBOProjectList(projects);
         return(businessActiveProjectsForEmployee);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 15
0
 public void CreateTaskInProject(BOTask boTask, int projectID)
 {
     try
     {
         int status        = Convert.ToInt32(CMEnum.Status.Completed);
         int projectStatus = dataLayer.GetProjectStatus(projectID);
         if (projectStatus == status)
         {
             throw new Exception(CMBusinessResources.TaskNotCreatedCompletedProject);
         }
         CompanyManagementDataLayer.Task task = BusinessLayerHelper.ConvertBOTaskToTask(boTask);
         dataLayer.CreateTaskInProject(task, projectID);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }