private boolean isEmergencyContactUsed() { boolean bContactUsed = false; SupportNetworkEmergencyContact contact = form.ctnFamilySupport().cmbEmergency().getValue(); SupportNetworkFamily voFamily = form.grdFamily().getValue(); if(contact == null) return false; GenForm.grdFamilyRow row = null; for(int i=0;i<form.grdFamily().getRows().size();i++) { row = form.grdFamily().getRows().get(i); if(row.getValue().getIsCurrentlyActiveFamilySupport().booleanValue()) { if(contact.equals(row.getValue().getEmergencyContactOrder()) && voFamily != row.getValue()) { bContactUsed = true; } } } return bContactUsed; }
private boolean isEmergencyContactUsed() { boolean bContactUsed = false; SupportNetworkEmergencyContact contact = form.lyrSupportServices().tabPageFamily().cmbEmergency().getValue(); SupportNetworkFamily voFamily = form.lyrSupportServices().tabPageFamily().grdFamily().getValue(); if(contact == null) return false; GenForm.lyrSupportServicesLayer.tabPageFamilyContainer.grdFamilyRow row = null; for(int i= 0 ; i < form.lyrSupportServices().tabPageFamily().grdFamily().getRows().size() ; i++) { row = form.lyrSupportServices().tabPageFamily().grdFamily().getRows().get(i); if(row.getValue().getIsCurrentlyActiveFamilySupport().booleanValue()) { if(contact.equals(row.getValue().getEmergencyContactOrder()) && voFamily != row.getValue()) { bContactUsed = true; } } } return bContactUsed; }