Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportInfo"/> class.
 /// </summary>
 /// <param name="id">The id.</param>
 /// <param name="innerInfo">The inner info.</param>
 /// <param name="categoryId">The category id.</param>
 /// <param name="categoryName">Name of the category.</param>
 internal ReportInfo(int id, UserReportInfo innerInfo, int categoryId, string categoryName)
 {
     _id = id;
     _innerInfo = innerInfo;
     if(categoryName!=null)
         _category = new ReportCategoryInfo(categoryId, categoryName);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportInfo"/> class.
 /// </summary>
 /// <param name="id">The id.</param>
 /// <param name="innerInfo">The inner info.</param>
 /// <param name="categoryId">The category id.</param>
 /// <param name="categoryName">Name of the category.</param>
 internal ReportInfo(int id, UserReportInfo innerInfo, int categoryId, string categoryName)
 {
     _id        = id;
     _innerInfo = innerInfo;
     if (categoryName != null)
     {
         _category = new ReportCategoryInfo(categoryId, categoryName);
     }
 }
Exemplo n.º 3
0
 public void SetReportCategory(ReportInfo report, ReportCategoryInfo category)
 {
     SetReportCategory(report.Id, category == null?-1:category.Id);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Gets the reports.
 /// </summary>
 /// <param name="category">The category.</param>
 /// <returns></returns>
 public ReportInfo[] GetReports(ReportCategoryInfo category)
 {
     return(GetReports(category == null?null:category.Name));
 }
Exemplo n.º 5
0
 public void SetReportCategory(ReportInfo report, ReportCategoryInfo category)
 {
     SetReportCategory(report.Id, category==null?-1:category.Id);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Gets the reports.
 /// </summary>
 /// <param name="category">The category.</param>
 /// <returns></returns>
 public ReportInfo[] GetReports(ReportCategoryInfo category)
 {
     return GetReports(category==null?null:category.Name);
 }