sessionForm.setActivityRelatedTypeID(previousForm.getActivityRelatedTypeID());
sessionForm.setActivityRelatedTypeValue(previousForm.getActivityRelatedTypeValue());
} else if (ConstantKeys.ATTENDEE.equals(previousSubActivity)) {
String[] attendee = previousForm.getActivityAttendeesRequired();
Vector attendeeRequired = new Vector();
DDNameValue attendeeListBox = null;
String displayName = "";
if (previousForm.getActivityAttendeesRequired() != null) {
int sizeOfListBox = attendee.length;
for (int i = 0; i < sizeOfListBox; i++) {
int indexOfHash = attendee[i].indexOf("#");
displayName = attendee[i].substring(indexOfHash + 1, attendee[i].length());
attendeeListBox = new DDNameValue(attendee[i], displayName);
attendeeRequired.add(attendeeListBox);
}
previousForm.setActivityAttendeeRequiredVector(attendeeRequired);
}
String[] optional = previousForm.getActivityAttendeesOptional();
Vector attendeeOptional = new Vector();
attendeeListBox = null;
displayName = "";
if (previousForm.getActivityAttendeesOptional() != null) {
int sizeOfListBox = optional.length;
for (int i = 0; i < sizeOfListBox; i++) {
int indexOfHash = optional[i].indexOf("#");
displayName = optional[i].substring(indexOfHash + 1, optional[i].length());
attendeeListBox = new DDNameValue(optional[i], displayName);
attendeeOptional.add(attendeeListBox);
}
previousForm.setActivityAttendeeOptionalVector(attendeeOptional);
}
sessionForm.setActivityAttendeeSearch(previousForm.getActivityAttendeeSearch());
sessionForm.setActivityAttendeesAll(previousForm.getActivityAttendeesAll());
sessionForm.setActivityAttendeesRequired(previousForm.getActivityAttendeesRequired());
sessionForm.setActivityAttendeesOptional(previousForm.getActivityAttendeesOptional());
sessionForm.setActivityAttendeesType(previousForm.getActivityAttendeesType());
sessionForm.setActivityAttendeeOptionalVector(previousForm
.getActivityAttendeeOptionalVector());
sessionForm.setActivityAttendeeRequiredVector(previousForm
.getActivityAttendeeRequiredVector());
} else if (ConstantKeys.RESOURCE.equals(previousSubActivity)) {
String[] resource = previousForm.getActivityResourceSelected();
Vector resourceSelected = new Vector();
DDNameValue resourceListBox = null;
String displayName = "";
if (previousForm.getActivityResourceSelected() != null) {
int sizeOfListBox = resource.length;
for (int i = 0; i < sizeOfListBox; i++) {
int indexOfHash = resource[i].indexOf("#");
displayName = resource[i].substring(indexOfHash + 1, resource[i].length());
resourceListBox = new DDNameValue(resource[i], displayName);
resourceSelected.add(resourceListBox);
}
previousForm.setActivityResourcevector(resourceSelected);
}
sessionForm.setActivityResourceAll(previousForm.getActivityResourceAll());
sessionForm.setActivityResourceSelected(previousForm.getActivityResourceSelected());
sessionForm.setActivityResourcevector(previousForm.getActivityResourcevector());
} else if (ConstantKeys.AVAILABILITY.equals(previousSubActivity)) {
sessionForm.setActivityStartDate(previousForm.getActivityStartDate());
sessionForm.setActivityStartTime(previousForm.getActivityStartTime());
sessionForm.setActivityEndDate(previousForm.getActivityEndDate());
sessionForm.setActivityEndTime(previousForm.getActivityEndTime());
} else if (ConstantKeys.RECURRING.equals(previousSubActivity)) {
sessionForm.setActivityRecurStartDate(previousForm.getActivityRecurStartDate());
sessionForm.setActivityRecurEndDate(previousForm.getActivityRecurEndDate());
sessionForm.setActivityRecurringFrequency(previousForm.getActivityRecurringFrequency());
sessionForm.setActivityRecurringDailyEvery(previousForm.getActivityRecurringDailyEvery());
sessionForm.setActivityRecurringDailyDays(previousForm.getActivityRecurringDailyDays());
sessionForm.setActivityRecurringDailyWeekdays(previousForm
.getActivityRecurringDailyWeekdays());
sessionForm.setActivityRecurringWeeklyEvery(previousForm.getActivityRecurringWeeklyEvery());
sessionForm.setActivityRecurringWeeklyOn(previousForm.getActivityRecurringWeeklyOn());
sessionForm.setActivityFindWeek(previousForm.getActivityFindWeek());
sessionForm.setActivitySelectedWeek(previousForm.getActivitySelectedWeek());
sessionForm.setActivityRecurringMonthlyEvery(previousForm
.getActivityRecurringMonthlyEvery());
sessionForm.setActivityRecurringMonthlyEveryDay(previousForm
.getActivityRecurringMonthlyEveryDay());
sessionForm.setActivityRecurringMonthlyOnDay(previousForm
.getActivityRecurringMonthlyOnDay());
sessionForm.setActivityRecurringMonthlyOnWeek(previousForm
.getActivityRecurringMonthlyOnWeek());
sessionForm.setActivityRecurringYearlyEvery(previousForm.getActivityRecurringYearlyEvery());
sessionForm.setActivityRecurringYearlyEveryMonth(previousForm
.getActivityRecurringYearlyEveryMonth());
sessionForm.setActivityRecurringYearlyEveryDay(previousForm
.getActivityRecurringYearlyEveryDay());
sessionForm.setActivityRecurringYearlyOnDay(previousForm.getActivityRecurringYearlyOnDay());
sessionForm.setActivityRecurringYearlyOnWeek(previousForm
.getActivityRecurringYearlyOnWeek());
sessionForm.setActivityRecurringYearlyOnMonth(previousForm
.getActivityRecurringYearlyOnMonth());
} else if (ConstantKeys.ATTACHMENT.equals(previousSubActivity)) {
Vector fileListVector = new Vector();
if (previousForm.getActivityFilesList() != null) {
String[] fileList = previousForm.getActivityFilesList();
int sizeOfListBox = fileList.length;
for (int i = 0; i < sizeOfListBox; i++) {
int indexOfHash = fileList[i].indexOf("#");
String displayName = fileList[i].substring(indexOfHash + 1, fileList[i].length());
DDNameValue fileListBox = new DDNameValue(fileList[i], displayName);
fileListVector.add(fileListBox);
}
previousForm.setActivityFilesListVec(fileListVector);
}
sessionForm.setActivityAttachedCentraviewFile(previousForm