private void populateScreenFromActivityVo(ActivityVo localActivity) { if (localActivity == null) return; if (localActivity instanceof ActivitySchedVo) { if (localActivity.getActivityTypeIsNotNull()) form.lyrActivity().tabSchedulling().txtActType().setValue(localActivity.getActivityType().getText()); if (localActivity.getName() != null) form.lyrActivity().tabSchedulling().txtActName().setValue(localActivity.getName()); if (((ActivitySchedVo) localActivity).getTmReq() != null) form.lyrActivity().tabSchedulling().intTimeRequired().setValue(((ActivitySchedVo) localActivity).getTmReq()); if (((ActivitySchedVo) localActivity).getIntReq() != null) form.lyrActivity().tabSchedulling().intIntervalRequired().setValue(((ActivitySchedVo) localActivity).getIntReq()); if (((ActivitySchedVo) localActivity).getActivityImage() != null) form.lyrActivity().tabSchedulling().txtActImage().setValue(((ActivitySchedVo) localActivity).getActivityImage().getImagePath()); form.getGlobalContext().Admin.setSelectedImage(((ActivitySchedVo) localActivity).getActivityImage()); if (((ActivitySchedVo) localActivity).getIsPatReq() != null) form.lyrActivity().tabSchedulling().chkPatientRequired().setValue(((ActivitySchedVo) localActivity).getIsPatReq().booleanValue()); if (((ActivitySchedVo) localActivity).getIsScheduled() != null) form.lyrActivity().tabSchedulling().chkScheduled().setValue(((ActivitySchedVo) localActivity).getIsScheduled().booleanValue()); if (((ActivitySchedVo) localActivity).getIsActive() != null) form.lyrActivity().tabSchedulling().chkActActive().setValue(localActivity.getIsActive().booleanValue()); form.lyrActivity().tabSchedulling().chkFirstAppointment().setValue(((ActivitySchedVo) localActivity).getFirstAppointment()); form.lyrActivity().tabSchedulling().chkDiagnosticActivity().setValue(((ActivitySchedVo) localActivity).getDiagnostic()); if(((ActivitySchedVo) localActivity).getSpecialRequirementsIsNotNull()) { GenForm.lyrActivityLayer.tabSchedullingContainer.grdActSpecialRequirementsRow row; ActivitySpecRequirementsCollection requirements = ((ActivitySchedVo) localActivity).getSpecialRequirements(); for (int i=0; i<requirements.size(); i++) { ActivitySpecRequirements requirement = requirements.get(i); row = form.lyrActivity().tabSchedulling().grdActSpecialRequirements().getRowByValue(requirement); if (row != null) row.setcolSelected(true); else { row = form.lyrActivity().tabSchedulling().grdActSpecialRequirements().getRows().newRow(); row.setValue(requirement); row.setcolRequirement(requirement.getText()); row.setcolSelected(true); } } } // Populate the taxonomy mappings (WDEV-6108) form.lyrActivity().tabSchedulling().ccTaxonomyTab2().setValue(localActivity.getCodeMappings()); } else { if (localActivity.getActivityTypeIsNotNull()) form.lyrActivity().tabNtpf().txtActivity().setValue(localActivity.getActivityType().getText()); if (localActivity.getName() != null) form.lyrActivity().tabNtpf().txtName().setValue(localActivity.getName()); form.lyrActivity().tabNtpf().chkActive().setValue(localActivity.getIsActive().booleanValue()); form.lyrActivity().tabNtpf().chkItem().setValue(localActivity.getIsWorkQueue().booleanValue()); // Populate the taxonomy mappings (WDEV-6108) form.lyrActivity().tabNtpf().ccTaxonomyTab1().setValue(localActivity.getCodeMappings()); } }