Beispiel #1
0
 public void SetReportCategory(ReportInfo report, ReportCategoryInfo category)
 {
     SetReportCategory(report.Id, category==null?-1:category.Id);
 }
Beispiel #2
0
 public bool CanUserRunAction(int UserId, ReportInfo info, string Action)
 {
     return CanUserRunAction(UserId, info.Id, Action);
 }
Beispiel #3
0
        /// <summary>
        /// Gets the report.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <returns></returns>
        public ReportInfo GetReport(string name)
        {
            ReportInfo retVal = null;

            using(IDataReader reader = DBReport.GetByName(this.ContainerKey, name))
            {
                if(reader.Read())
                {
                    UserReportInfo info = UserReportConfig.GetConfig().Reports[(string)reader["Name"]];
                    if(info!=null)
                        retVal = new ReportInfo((int)reader["ReportId"], info,
                            (int)SqlHelper.DBNull2Null(reader["ReportCategoryId"],-1),
                            (string)SqlHelper.DBNull2Null(reader["ReportCategoryName"]));
                }
            }

            return retVal;
        }
Beispiel #4
0
 public bool CanUserRead(int UserId, ReportInfo info)
 {
     return CanUserRead(UserId, info.Id);
 }