class AfaDispensacaoMdtosRN extends BaseBusiness implements Serializable {

	public void rnDsmpVerUnfDisp(AghUnidadesFuncionais unidadeFuncional) throws ApplicationBusinessException {
		if(unidadeFuncional == null) {
			throw new ApplicationBusinessException(AfaDispensacaoMdtosRNExceptionCode.MPM_00938);
		} else if(!DominioSituacao.A.equals(unidadeFuncional.getIndSitUnidFunc())) {
			throw new ApplicationBusinessException(AfaDispensacaoMdtosRNExceptionCode.MPM_00778);
		}
		if(!unfEFarmacia(unidadeFuncional)){
			throw new ApplicationBusinessException(AfaDispensacaoMdtosRNExceptionCode.AFA_00286);
		}
	}

}