Esempio n. 1
0
		//
		void FinalPass(string folder)
		{
			// Now do some addition validation and final preparation

			// Prepare the Globals and User variables
			_PageNumber = new FunctionPageNumber();	
			_TotalPages = new FunctionTotalPages();	
			_ExecutionTime = new FunctionExecutionTime();	
			_ReportFolder = new FunctionReportFolder();	
			this.Folder = folder;						// set the folder
			_ReportName = new FunctionReportName();	
			_UserID = new FunctionUserID();		
			_ClientLanguage = new FunctionUserLanguage();	

			// Create the Globals and User lookup dictionaries
			_LUGlobals = new ListDictionary();	// if entries grow beyond 10; make hashtable
			_LUGlobals.Add("PageNumber", _PageNumber);
			_LUGlobals.Add("TotalPages", _TotalPages);
			_LUGlobals.Add("ExecutionTime", _ExecutionTime);
			_LUGlobals.Add("ReportFolder", _ReportFolder);
			_LUGlobals.Add("ReportName", _ReportName);
			_LUUser = new ListDictionary();		// if entries grow beyond 10; make hashtable
			_LUUser.Add("UserID", _UserID);
			_LUUser.Add("Language", _ClientLanguage);
			if (_CodeModules != null)
			{
				_CodeModules.FinalPass();
				_CodeModules.LoadModules();
			}
			if (_Classes != null)
			{
				_Classes.FinalPass();
				_Classes.Load();
			}

			if (_DataSources != null)
				_DataSources.FinalPass();
			if (_DataSets != null)
				_DataSets.FinalPass();
			_Body.FinalPass();
			if (_ReportParameters != null)
				_ReportParameters.FinalPass();
			if (_PageHeader != null)
				_PageHeader.FinalPass();
			if (_PageFooter != null)
				_PageFooter.FinalPass();
			if (_EmbeddedImages != null)
				_EmbeddedImages.FinalPass();
			if (_Language != null)
				_Language.FinalPass();

			_DataCache.TrimToSize();	// reduce size of array of expressions that cache data
			return;
		}
Esempio n. 2
0
        //
        void FinalPass(string folder)
        {
            // Now do some addition validation and final preparation

            // Prepare the Globals and User variables
            _PageNumber     = new FunctionPageNumber();
            _TotalPages     = new FunctionTotalPages();
            _ExecutionTime  = new FunctionExecutionTime();
            _ReportFolder   = new FunctionReportFolder();
            this.Folder     = folder;                                                   // set the folder
            _ReportName     = new FunctionReportName();
            _UserID         = new FunctionUserID();
            _ClientLanguage = new FunctionUserLanguage();

            // Create the Globals and User lookup dictionaries
            _LUGlobals = new ListDictionary();                  // if entries grow beyond 10; make hashtable
            _LUGlobals.Add("PageNumber", _PageNumber);
            _LUGlobals.Add("TotalPages", _TotalPages);
            _LUGlobals.Add("ExecutionTime", _ExecutionTime);
            _LUGlobals.Add("ReportFolder", _ReportFolder);
            _LUGlobals.Add("ReportName", _ReportName);
            _LUUser = new ListDictionary();                     // if entries grow beyond 10; make hashtable
            _LUUser.Add("UserID", _UserID);
            _LUUser.Add("Language", _ClientLanguage);
            if (_CodeModules != null)
            {
                _CodeModules.FinalPass();
                _CodeModules.LoadModules();
            }
            if (_Classes != null)
            {
                _Classes.FinalPass();
                _Classes.Load();
            }

            if (_DataSources != null)
            {
                _DataSources.FinalPass();
            }
            if (_DataSets != null)
            {
                _DataSets.FinalPass();
            }
            _Body.FinalPass();
            if (_ReportParameters != null)
            {
                _ReportParameters.FinalPass();
            }
            if (_PageHeader != null)
            {
                _PageHeader.FinalPass();
            }
            if (_PageFooter != null)
            {
                _PageFooter.FinalPass();
            }
            if (_EmbeddedImages != null)
            {
                _EmbeddedImages.FinalPass();
            }
            if (_Language != null)
            {
                _Language.FinalPass();
            }

            _DataCache.TrimToSize();                    // reduce size of array of expressions that cache data
            return;
        }