Exemplo n.º 1
0
 public void UpdateExEventToPending(ExEvent oldE, ExEvent newE)
 {
     try
     {
         ExEventAccessor.UpdateSubmissionToPending(oldE, newE);
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 2
0
 public List <ExEvent> FetchEventsByAgent(int employeeID, string statusName, DateTime startDate, DateTime endDate)
 {
     try
     {
         return(ExEventAccessor.SelectEventsByAgent(employeeID, statusName, startDate, endDate));
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 3
0
 public List <ManagerExEvent> FetchManagerEvent(string dept)
 {
     try
     {
         return(ExEventAccessor.SelectManagerEvents(dept));
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 4
0
 public List <Status> FetchStatusList()
 {
     try
     {
         return(ExEventAccessor.SelectStatusList());
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 5
0
 public List <ExEvent> FetchCompletedList()
 {
     try
     {
         return(ExEventAccessor.SelectCompletedEvents());
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 6
0
 public ExEvent FetchEvent(int eventID)
 {
     try
     {
         return(ExEventAccessor.SelectSingleEvent(eventID));
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 7
0
 public List <Activity> FetchActivityList()
 {
     try
     {
         return(ExEventAccessor.SelectActivityList());
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 8
0
 public bool DeleteExEvent(ExEvent oldE)
 {
     try
     {
         if (ExEventAccessor.DeleteExEvent(oldE) > 0)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch (Exception ex)
     {
         throw new ApplicationException("Update failed.", ex);
     }
 }
Exemplo n.º 9
0
        public bool AddExEvent(ExEvent newEvent)
        {
            int rows;

            try
            {
                rows = ExEventAccessor.InsertExEvent(newEvent);
            }
            catch (Exception)
            {
                throw;
            }

            if (rows == 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }