class MbcAgendaDiagnosticoRN extends BaseBusiness {

	public void validarAgendaComControleEscalaCirurgicaDefinitiva(final Integer agdSeq) throws ApplicationBusinessException {
		final MbcAgendas result = getMbcAgendasDAO().pesquisarAgendaComControleEscalaCirurgicaDefinitiva(agdSeq);
		if (result != null && result.getIndGeradoSistema() != null && !result.getIndGeradoSistema()) {
			throw new ApplicationBusinessException(MbcAgendaDiagnosticoRNExceptionCode.MBC_01130);
		}
	}

}