Changeset 3058
- Timestamp:
- 02/02/12 09:28:11 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
his/trunk/frontend/internal/src/main/java/org/joiningtracks/his/frontend/employee/patient/pathway/PathwayParticipationPanel.java
r1797 r3058 51 51 /** 52 52 * Abstract Panel that holds the basis for creating and editing a pathway participation. 53 * 53 * 54 54 * @author Tim van Baarsen 55 55 */ … … 97 97 form.add(searchOrNewChoiceGroup); 98 98 99 Model searchModel =new Model("search");99 Model searchModel = new Model("search"); 100 100 newModel = new Model("new"); 101 101 … … 112 112 } 113 113 }); 114 114 115 115 Radio newReferrer = new Radio("new", newModel); 116 116 newReferrer.add(new AjaxEventBehavior("onchange") { … … 211 211 */ 212 212 protected final boolean creatingNewContactPerson() { 213 return searchOrNewChoiceGroup.getDefaultModelObject().equals(newModel.getObject()); 213 boolean bool; 214 try { 215 bool = searchOrNewChoiceGroup.getDefaultModelObject().equals(newModel.getObject()); 216 } catch (Exception ex) { 217 bool = false; 218 } 219 return bool; 214 220 } 215 221 … … 217 223 AddressableEntity payingParty = payment.getPayingParty(); 218 224 if (payingParty instanceof ContactCompany) { 219 ContactCompany contactCompany = (ContactCompany) payingParty;220 if (!contactCompany.isPersisted()){225 ContactCompany contactCompany = (ContactCompany) payingParty; 226 if (!contactCompany.isPersisted()) { 221 227 ContactCompany foundContact = contactCompanyService.findByName(contactCompany.getName()); 222 228 if (foundContact == null) { … … 248 254 * Handle to form submit for the given form. 249 255 * 250 * @param form the form to handle the form submitting for256 * @param form the form to handle the form submitting for 251 257 * @param cancelButtonPressed true if the cancel button is pressed otherwise false 252 258 */ … … 260 266 Collection<PathwayParticipationCustomValueProvider> customValueProviders = osgiUtils.getServices(PathwayParticipationCustomValueProvider.class); 261 267 for (PathwayParticipationCustomValueProvider customValueProvider : customValueProviders) { 262 if (customValueProvider.customValuePanelEnabled(processDefinition)){268 if (customValueProvider.customValuePanelEnabled(processDefinition)) { 263 269 Panel customValuePanel = customValueProvider.getCustomValueEditPanel(rv.newChildId(), processDefinition, Model.ofSet(pathwayParticipationCustomValues)); 264 270 rv.add(customValuePanel);
