コード例 #1
0
ファイル: Promotor.cs プロジェクト: Roy03/p2groep04.Net
        public void SuggestionDoesNotComply(Student student, Suggestion suggestion)
        {
            suggestion.ToNewState();

            //send for notivication
            UserHelper.NotifyStakeholderSuggestionDeclined(student);
        }
コード例 #2
0
        public ActionResult Index(Student student)
        {
            if (student != null)
            {
                return View(_suggestionRepository.FindByUser(student.Id));
            }

            return View(_suggestionRepository.FindAll());
        }
コード例 #3
0
ファイル: Promotor.cs プロジェクト: Roy03/p2groep04.Net
        public void AskAdviseBpc(Student student, Suggestion suggestion)
        {
            //Set state 
            suggestion.ToAdviceBpcState();
            var bpc = new BPCoordinator();
            //INSERT NOTIFY STAKEHOLDERS HERE
            UserHelper.NotifyStakeholderAdviceBpcNeeded(bpc);


        }
コード例 #4
0
ファイル: Promotor.cs プロジェクト: Roy03/p2groep04.Net
        public void GiveFeedback(String feedback, Student student, Suggestion suggestion, String state)
        {
            //Put all other feedbacks to not visable
            foreach (var f in suggestion.Feedbacks)
            {
                f.Visable = false;
            }
            //Add the new feedback
            suggestion.Feedbacks.Add(new Feedback(feedback));

            //Send notification
            UserHelper.NotifyStakeholderFeedbackGiven(student);

            //If state is approved the do this
            if (state == "Approve")
            {
                //To apprived state
                suggestion.ToApprovedWithRemarksState();
                //Send notification
                UserHelper.NotifyStakeholderSuggestionAcceptedWithRemarks(student);
            }

        }
コード例 #5
0
ファイル: Promotor.cs プロジェクト: Roy03/p2groep04.Net
 public void SuggestionAccepted(Student student, Suggestion suggestion)
 {
     suggestion.ToApprovedState();
     UserHelper.NotifyStakeholderSuggestionAccepted(student);
 }
コード例 #6
0
ファイル: Promotor.cs プロジェクト: Roy03/p2groep04.Net
 public List<String> GetFeedbackList(Student student)
 {
     return (from s in Students where s.FirstName == student.FirstName && s.LastName == student.LastName from suggestion in s.Suggestions from feedback in suggestion.Feedbacks select feedback.Inhoud).ToList();
 }
コード例 #7
0
ファイル: Student.cs プロジェクト: Roy03/p2groep04.Net
 public void GiveInSuggestion(Student student, Suggestion suggestion)
 {
     suggestion.ToSubmittedState();
     UserHelper.NotifyStudentGivenSuggestion(student.Promotor);
 }