public EduHabilitacaoFilialItem GetHabilitacaoFilial(int codColigada, int idHabilitacaoFilial)
{
EduHabilitacaoFilialItem habilitacaoFilial = new EduHabilitacaoFilialItem();
if (this.DBS == null)
this.InitServer();
DataTable dtHabFilial = this.DBS.QuerySelect(EduHabilitacaoFilialProps.SHabilitacaoFilial,
@"SELECT SHABILITACAOFILIAL.CODCURSO,
SHABILITACAOFILIAL.CODHABILITACAO,
SHABILITACAOFILIAL.CODGRADE
FROM SHABILITACAOFILIAL (NOLOCK)
WHERE SHABILITACAOFILIAL.CODCOLIGADA = :CODCOLIGADA_N
AND SHABILITACAOFILIAL.IDHABILITACAOFILIAL = :IDHABILITACAOFILIAL_N /*AND*/", codColigada, idHabilitacaoFilial);
SetHabilitacaoFilialItem(codColigada, idHabilitacaoFilial, habilitacaoFilial, dtHabFilial);
return habilitacaoFilial;
} |