ReportTab.cs 989 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.Text;
  5. namespace FastReport.Web
  6. {
  7. public class ReportTabCollection : Collection<ReportTab>
  8. {
  9. }
  10. public class ReportTab
  11. {
  12. public string Name { get; set; } = null;
  13. public Report Report { get; set; } = null;
  14. public bool ReportPrepared { get => Report?.IsPrepared ?? false; set { } }
  15. public int CurrentPageIndex { get; set; } = 0;
  16. public int MinPageIndex { get; set; } = 0;
  17. public bool Closeable { get; set; } = true;
  18. public bool NeedParent { get; set; } = false;
  19. //public ReportTab Clone()
  20. //{
  21. // return new ReportTab()
  22. // {
  23. // Name = Name,
  24. // Report = Report,
  25. // ReportPrepared = ReportPrepared,
  26. // CurrentPageIndex = CurrentPageIndex,
  27. // Closeable = Closeable,
  28. // };
  29. //}
  30. }
  31. }