Bugs 3319 and 3323

This pull request addresses two bugs that are hindering current users from entering data.

The first commit for bug 3319 scopes scheduled activities for the participant to the event so that if the participant is scheduled for more than one event of the same type only the current event (matching event type and start date) will have activities.

The second commit replaces a case statement based on NcsCode display type with the local code.