Beispiel #1
0
 protected void btnCheckAuth_Click(object sender, EventArgs e)
 {
     ParticipantEnroller enroller = new ParticipantEnroller();
     enroller.UpdateAuthorizedParticipants();
     //if (included == "AllAuthorized") Success.Text = "All Patients Included";
     //else Success.Text = "Patients not Satisfying Criteria: "+included;
     setLastAuthUpdate(DateTime.Now);
     bindLstAuthorizedParticipants();
     lblLastUpdateDate.Text = getLastAuthUpdate().ToShortDateString();
 }
Beispiel #2
0
 protected void btnCheckEligibility_Click(object sender, EventArgs e)
 {
     ParticipantEnroller enroller = new ParticipantEnroller();
     enroller.UpdateEligbleParticipants();
     bindLstEligibleParticipants();
 }
Beispiel #3
0
    private void enrollNewParticipant(string firstName, string lastName, string email,
                                      string securityQuestion, string securityAnswer, string pcpUsername)
    {
        Participant participant = new Participant();
        participant.FirstName = firstName;
        participant.LastName = lastName;
        participant.Email = email;
        participant.SecurityQuestion = securityQuestion;
        participant.SecurityAnswer = securityAnswer;
        participant.PcpUsername = pcpUsername;

        ParticipantEnroller enroller = new ParticipantEnroller();
        enroller.EnrollNewParticipant(participant);
    }