Ignore:
Timestamp:
Jul 7, 2010, 4:31:10 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Upgrade to version 27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/Orders/fOrdersPrint.pas

    r456 r829  
    55uses
    66  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
    7   StdCtrls, ORCtrls, ORfn, ExtCtrls, rOrders, fFrame;
     7  StdCtrls, ORCtrls, ORfn, ExtCtrls, rOrders, fFrame, fBase508Form,
     8  VA508AccessibilityManager;
    89
    910type
    10   TfrmOrdersPrint = class(TForm)
     11  TfrmOrdersPrint = class(TfrmBase508Form)
    1112    ckChartCopy: TCheckBox;
    1213    ckLabels: TCheckBox;
     
    5960  NO_WIN_PRINT = False;
    6061
    61 procedure SetupOrdersPrint(OrderList: TStringList; var DeviceInfo: string; Nature: Char; SelectAll: Boolean; var PrintIt: Boolean);
     62procedure SetupOrdersPrint(OrderList: TStringList; var DeviceInfo: string; Nature: Char; SelectAll: Boolean; var PrintIt: Boolean;
     63                           PrintTitle: string = ''; PrintLoc: Integer = 0);
    6264
    6365implementation
     
    6870  fDeviceSelect, uCore, ORNet, fOrders;
    6971
    70 procedure SetupOrdersPrint(OrderList: TStringList; var DeviceInfo: string; Nature: Char; SelectAll: Boolean; var PrintIt: Boolean);
     72procedure SetupOrdersPrint(OrderList: TStringList; var DeviceInfo: string; Nature: Char; SelectAll: Boolean; var PrintIt: Boolean;
     73                           PrintTitle: string = ''; PrintLoc: Integer = 0);
    7174{displays device and copy selection form for printing orders, and returns a record of the selections}
    7275var
     
    7477begin
    7578  frmOrdersPrint := TfrmOrdersPrint.Create(Application);
     79  if PrintTitle <> '' then frmOrdersPrint.Caption := 'Print Orders for ' + PrintTitle;
    7680  try
    7781    frmFrame.CCOWBusy := True;
     
    8791          lblPart2.Text := 'Greyed out items are not available.';
    8892        end;
    89       OrderPrintDeviceInfo(OrderList, PrintParams, Nature);
     93      OrderPrintDeviceInfo(OrderList, PrintParams, Nature, PrintLoc);
    9094      SetupControls(PrintParams);
    9195      if (PrintParams.AnyPrompts) {or FSelectAll} then ShowModal;
Note: See TracChangeset for help on using the changeset viewer.