Example #1
0
 private void TransformFromLastPageWhenOnGroup()
 {
     if (_lastpage != null && _currentpage != null)
     {
         //groupaccsum from the last group
         if (_groupsumkeys != null)
         {
             foreach (string key in _groupsumkeys)
             {
                 _currentpage.AddGroupAccSum(key, _lastpage.GetGroupAccSum(key));
             }
         }
         //pageaccsum from the last page
         if (_pageaccsumkeys != null)
         {
             foreach (string key in _pageaccsumkeys)
             {
                 _currentpage.AddPageAccSum(key, _lastpage.GetPageAccSum(key));
             }
         }
     }
 }
Example #2
0
 private void TransformDataFromLastWhenOnPage(PrintPage lastpage)
 {
     if (lastpage != null)
     {
         //getdata from the last group
         if (_getdatakeys != null)
         {
             foreach (string key in _getdatakeys)
             {
                 _currentpage.AddData(key, lastpage.GetData(key));
             }
         }
         //groupaccsum from the last group
         if (_groupsumkeys != null)
         {
             foreach (string key in _groupsumkeys)
             {
                 _currentpage.AddGroupAccSum(key, lastpage.GetGroupAccSum(key));
             }
         }
         //grouppageaccsum from the last page in this group
         if (_groupsumkeys != null)
         {
             foreach (string key in _groupsumkeys)
             {
                 _currentpage.AddGroupPageAccSum(key, lastpage.GetGroupPageAccSum(key));
             }
         }
         //pageaccsum from the last page
         if (_pageaccsumkeys != null)
         {
             foreach (string key in _pageaccsumkeys)
             {
                 _currentpage.AddPageAccSum(key, lastpage.GetPageAccSum(key));
             }
         }
     }
 }