public void SetReportCategory(ReportInfo report, ReportCategoryInfo category) { SetReportCategory(report.Id, category==null?-1:category.Id); }
public bool CanUserRunAction(int UserId, ReportInfo info, string Action) { return CanUserRunAction(UserId, info.Id, Action); }
/// <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; }
public bool CanUserRead(int UserId, ReportInfo info) { return CanUserRead(UserId, info.Id); }