예제 #1
0
        public static bool CanAdd()
        {
            bool IsEnabled = false;

            if (License.PortfolioCount >= 0)
            {
                DataTable dt = DBProjectGroup.GetProjectGroupsDT(Security.CurrentUser.TimeZoneId);
                IsEnabled = (dt.Rows.Count < License.PortfolioCount);
            }
            else
            {
                IsEnabled = true;
            }

            return(CanUpdate() && IsEnabled);
        }
예제 #2
0
 public static DataTable GetProjectGroupsDT()
 {
     return(DBProjectGroup.GetProjectGroupsDT(User.DefaultTimeZoneId));
 }