Esempio n. 1
0
 public void InsertCard(SheetCard newCard)
 {
     try
     {
         ConsultationAccessor.InsertCard(newCard);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 2
0
 public void RemoveCard(int sheetID, string cardName)
 {
     try
     {
         ConsultationAccessor.RemoveCard(sheetID, cardName);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 3
0
 public void CloseCardSheet(ConsultationSheet oldSheet, ConsultationSheet newSheet)
 {
     try
     {
         ConsultationAccessor.CloseCardSheet(oldSheet, newSheet);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 4
0
 public void UpdateConsultationEntries(ConsultationCard oldC, ConsultationCard newC)
 {
     try
     {
         ConsultationAccessor.UpdateConsultationEntries(oldC, newC);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 5
0
 public void CreateNewCardSheet(int EmployeeID)
 {
     try
     {
         ConsultationAccessor.CreateNewCardSheet(EmployeeID);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 6
0
 public void CreateConsultationCard(ConsultationCard newC)
 {
     try
     {
         ConsultationAccessor.CreateConsultationCard(newC);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 7
0
 public int SelectCountByMethod(int month, string method)
 {
     try
     {
         int currentMethodCount = ConsultationAccessor.SelectCountByMethod(month, method);
         return(currentMethodCount);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 8
0
 public int SelectTotalEntriesBySup(int month, Employee sup)
 {
     try
     {
         int SelectTotalEntriesBySup = ConsultationAccessor.SelectTotalEntriesBySup(month, sup);
         return(SelectTotalEntriesBySup);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 9
0
 public int SelectCurrentCardSheetCount(int sheetID)
 {
     try
     {
         int currentCardCount = ConsultationAccessor.SelectCurrentSheetCardCount(sheetID);
         return(currentCardCount);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 10
0
 public int SelectTotalEntriesByDepartment(int month, string department)
 {
     try
     {
         int SelectTotalEntriesByDepartment = ConsultationAccessor.SelectTotalEntriesByDepartment(month, department);
         return(SelectTotalEntriesByDepartment);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 11
0
 public List <CardMethod> SelectCardMethods()
 {
     try
     {
         List <CardMethod> currentMethods = ConsultationAccessor.SelectCardMethods();
         return(currentMethods);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 12
0
 public ConsultationSheet SelectCurrentConsultationSheet(int employeeID)
 {
     try
     {
         ConsultationSheet currentConsultationSheet = ConsultationAccessor.SelectCurrentConsultationSheet(employeeID);
         return(currentConsultationSheet);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 13
0
 public ConsultationCard FindCard(int employeeID)
 {
     try
     {
         var cardToFind = ConsultationAccessor.SelectCard(employeeID);
         return(cardToFind);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         throw new ApplicationException("There was a problem accessing the database.", ex);
     }
 }
Esempio n. 14
0
        public NameValueCollection SelectTotalEntriesByDept(int month)
        {
            NameValueCollection sheetList = ConsultationAccessor.SelectTotalEntriesByDept(month);

            return(sheetList);
        }
Esempio n. 15
0
        public List <ConsultationSheet> SelectConsultationSheetDates(int month)
        {
            List <ConsultationSheet> sheetList = ConsultationAccessor.SelectConsultationSheetDates(month);

            return(sheetList);
        }
Esempio n. 16
0
        public List <string> SelectLeastTargetedCards(int month)
        {
            List <string> cardList = ConsultationAccessor.SelectLeastTargetedCards(month);

            return(cardList);
        }
Esempio n. 17
0
        public string SelectLeastAwardedCard(int month)
        {
            string cardName = ConsultationAccessor.SelectLeastAwardedCard(month);

            return(cardName);
        }