예제 #1
0
 public void InsertCard(SheetCard newCard)
 {
     try
     {
         ConsultationAccessor.InsertCard(newCard);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #2
0
 public void RemoveCard(int sheetID, string cardName)
 {
     try
     {
         ConsultationAccessor.RemoveCard(sheetID, cardName);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #3
0
 public void CloseCardSheet(ConsultationSheet oldSheet, ConsultationSheet newSheet)
 {
     try
     {
         ConsultationAccessor.CloseCardSheet(oldSheet, newSheet);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #4
0
 public void UpdateConsultationEntries(ConsultationCard oldC, ConsultationCard newC)
 {
     try
     {
         ConsultationAccessor.UpdateConsultationEntries(oldC, newC);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #5
0
 public void CreateNewCardSheet(int EmployeeID)
 {
     try
     {
         ConsultationAccessor.CreateNewCardSheet(EmployeeID);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #6
0
 public void CreateConsultationCard(ConsultationCard newC)
 {
     try
     {
         ConsultationAccessor.CreateConsultationCard(newC);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #7
0
 public int SelectCountByMethod(int month, string method)
 {
     try
     {
         int currentMethodCount = ConsultationAccessor.SelectCountByMethod(month, method);
         return(currentMethodCount);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #8
0
 public int SelectTotalEntriesBySup(int month, Employee sup)
 {
     try
     {
         int SelectTotalEntriesBySup = ConsultationAccessor.SelectTotalEntriesBySup(month, sup);
         return(SelectTotalEntriesBySup);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #9
0
 public int SelectCurrentCardSheetCount(int sheetID)
 {
     try
     {
         int currentCardCount = ConsultationAccessor.SelectCurrentSheetCardCount(sheetID);
         return(currentCardCount);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #10
0
 public int SelectTotalEntriesByDepartment(int month, string department)
 {
     try
     {
         int SelectTotalEntriesByDepartment = ConsultationAccessor.SelectTotalEntriesByDepartment(month, department);
         return(SelectTotalEntriesByDepartment);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #11
0
 public List <CardMethod> SelectCardMethods()
 {
     try
     {
         List <CardMethod> currentMethods = ConsultationAccessor.SelectCardMethods();
         return(currentMethods);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #12
0
 public ConsultationSheet SelectCurrentConsultationSheet(int employeeID)
 {
     try
     {
         ConsultationSheet currentConsultationSheet = ConsultationAccessor.SelectCurrentConsultationSheet(employeeID);
         return(currentConsultationSheet);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #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);
     }
 }
예제 #14
0
        public NameValueCollection SelectTotalEntriesByDept(int month)
        {
            NameValueCollection sheetList = ConsultationAccessor.SelectTotalEntriesByDept(month);

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

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

            return(cardList);
        }
예제 #17
0
        public string SelectLeastAwardedCard(int month)
        {
            string cardName = ConsultationAccessor.SelectLeastAwardedCard(month);

            return(cardName);
        }