Ignore:
Timestamp:
Jul 12, 2010, 3:56:51 PM (14 years ago)
Author:
Sam Habiel
Message:

Fixes issue with printing (Bug #15).

Location:
Scheduling/branches/GUI1.2
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • Scheduling/branches/GUI1.2/DPatientLetter.cs

    r789 r855  
    319319                _currentApptPrinting = 0;
    320320                e.HasMorePages = true;
    321             }           
     321                return;
     322            }
     323           
     324            // if neither of these conditions is true, then we are done with printing.
     325            // So reset counters for next one. Fixes ticket #15 on https://trac.opensourcevista.net/ticket/15
     326            _currentResourcePrinting = 0;
     327            _currentApptPrinting = 0;
     328            _pageNumber = 0;
    322329        }
    323330
     
    338345                _currentApptPrinting++;
    339346                if (_currentApptPrinting < _dsApptDisplay.PatientAppts.Count)
     347                {
    340348                    e.HasMorePages = true;
    341             }
     349                    return;
     350                }
     351            }
     352
     353            // If we reach this point, we need to reset the counter (ticket #15 on https://trac.opensourcevista.net/ticket/15)
     354            _currentApptPrinting = 0;
    342355           
    343356        }
     
    359372                _currentApptPrinting++;
    360373                if (_currentApptPrinting < _dsRebookAppts.PatientAppts.Count)
     374                {
    361375                    e.HasMorePages = true;
    362             }
     376                    return;
     377                }
     378            }
     379
     380            // If we reach this point, we need to reset the counter (ticket #15 on https://trac.opensourcevista.net/ticket/15)
     381            _currentApptPrinting = 0;
    363382
    364383        }
     
    381400                _currentApptPrinting++;
    382401                if (_currentApptPrinting < _dsRebookAppts.PatientAppts.Count)
     402                {
    383403                    e.HasMorePages = true;
    384             }
     404                    return;
     405                }
     406            }
     407
     408            // If we reach this point, we need to reset the counter (ticket #15 on https://trac.opensourcevista.net/ticket/15)
     409            _currentApptPrinting = 0;
     410
    385411        }
    386412        }
Note: See TracChangeset for help on using the changeset viewer.