using System; using Sarand.Net.Standard.Base.App; using Sarand.Net.Standard.Base.Bus; namespace Sarand.Net.Standard.Base.Procs { //======================================================================= public abstract class SaReport_Base : SaErrorStateItem { //------------------------------------------------------------------- // Definitions. //------------------------------------------------------------------- // Configuration. public class Config { } //------------------------------------------------------------------- // Data members. private Config config = null; //------------------------------------------------------------------- // Construction. protected SaReport_Base (Config config) { this.config = config; } protected override void Dispose (bool disposing) { if (disposing) { } } //------------------------------------------------------------------- // Properties. public abstract String Caption { get; } public abstract bool ValidConfig { get; } public bool DebugMode { get { return SacsSystem.DebugMode; } } //------------------------------------------------------------------- // P a g i n g //------------------------------------------------------------------- /// First Page number currently being printed. public int PageNumberFrom { get; protected set; } = 1; /// Last Page number currently being printed. public int PageNumberTo { get; protected set; } = 1; /// Page number currently being printed. public int PageNumber { get; protected set; } = 1; /// Does the report require the page count, eg. to be printed in footer. public virtual bool RequirePageCount { get; } /// /// Highest page number known to be in report. /// Used to indicate minimum page range prior to page count being known. /// public int PageNumberMaxKnown { get; protected set; } = 1; /// Total number of pages - only populated once confirmed. public int PageCount { get; protected set; } /// Report progress (0-100) where available. public virtual decimal ProgressPercent { get; } //------------------------------------------------------------------- } //======================================================================= }