class MbcAgendaOrtProteseON extends BaseBusiness {

	public void validarAgendaOrteseproteseAdicionadoExistente(List<MbcAgendaOrtProtese> agendaOrteseProteseList,MbcAgendaOrtProtese agendaOrteseProtese)throws ApplicationBusinessException {
		for (MbcAgendaOrtProtese mbcAgendaOrteseProtese : agendaOrteseProteseList) {
			if(agendaOrteseProtese.getScoMaterial().getCodigo().equals(mbcAgendaOrteseProtese.getScoMaterial().getCodigo())){
				throw new ApplicationBusinessException(MbcAgendaOrteseproteseONExceptionCode.MBC_00809_1);
			}
		}
	}

}