private int CantidadHijos(long lngPlanPadreId) { clsPlan oPlan = new clsPlan(clsAppInfo.Connection); int returnValue = 0; try { oPlan.SelectFilter = clsPlan.SelectFilters.All; oPlan.WhereFilter = clsPlan.WhereFilters.PlanPadreId; oPlan.VM.PlanPadreId = lngPlanPadreId; if (oPlan.FindOnly()) { returnValue = oPlan.getMintRowsCount(); } } catch (Exception exp) { throw (exp); } finally { oPlan.Dispose(); } return(returnValue); }
private bool TieneHijos(long lngPlanPadreId) { clsPlan oPlan = new clsPlan(clsAppInfo.Connection); bool returnValue = false; try { oPlan.SelectFilter = clsPlan.SelectFilters.All; oPlan.WhereFilter = clsPlan.WhereFilters.PlanPadreId; oPlan.VM.PlanPadreId = lngPlanPadreId; if (oPlan.FindOnly()) { returnValue = true; } } catch (Exception exp) { throw (exp); } finally { oPlan.Dispose(); } return(returnValue); }