Ignore:
Timestamp:
Jul 6, 2008, 8:20:14 PM (16 years ago)
Author:
Kevin Toppenberg
Message:

Uploading from OR_30_258

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/foia-cprs/CPRS-Chart/Options/fOptions.pas

    r459 r460  
    7272    btnNotesTitles: TButton;
    7373    imgNotesNotes: TImage;
    74     Image1: TImage;
     74    imgNotes: TImage;
    7575    imgTeams: TImage;
    7676    tsCprsReports: TTabSheet;
    77     Label1: TStaticText;
    78     Bevel1: TBevel;
    79     Label3: TMemo;
    80     Image2: TImage;
    81     Button1: TButton;
    82     Label2: TStaticText;
    83     Image3: TImage;
    84     Label4: TMemo;
    85     Button2: TButton;
    86     Bevel2: TBevel;
     77    lblReports: TStaticText;
     78    bvlReports: TBevel;
     79    memReports: TMemo;
     80    imgReports: TImage;
     81    btnReports: TButton;
     82    lblReport1: TStaticText;
     83    memReport1: TMemo;
     84    btnReport1: TButton;
     85    bvlReport1: TBevel;
    8786    btnDiagnoses: TButton;
     87    tsGraphs: TTabSheet;
     88    lblGraphSettings: TStaticText;
     89    bvlGraphSettings: TBevel;
     90    imgGraphSettings: TImage;
     91    btnGraphSettings: TButton;
     92    bvlGraphViews: TBevel;
     93    lblGraphViews: TStaticText;
     94    imgGraphViews: TImage;
     95    btnGraphViews: TButton;
     96    memGraphSettings: TMemo;
     97    memGraphViews: TMemo;
     98    bvlReport2: TBevel;
     99    lblReport2: TStaticText;
     100    memReport2: TMemo;
     101    imgReport1: TImage;
     102    imgReport2: TImage;
     103    rdoRDV: TRadioGroup;
    88104    procedure FormCreate(Sender: TObject);
    89105    procedure FormDestroy(Sender: TObject);
     
    108124    procedure btnNotesNotesClick(Sender: TObject);
    109125    procedure btnNotesTitlesClick(Sender: TObject);
    110     procedure Button1Click(Sender: TObject);
    111     procedure Button2Click(Sender: TObject);
     126    procedure btnReportsClick(Sender: TObject);
     127    procedure btnReport1Click(Sender: TObject);
    112128    procedure lvwNotificationsEnter(Sender: TObject);
    113129    procedure lvwNotificationsMouseDown(Sender: TObject;
    114130      Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
    115131    procedure btnDiagnosesClick(Sender: TObject);
     132    procedure btnGraphSettingsClick(Sender: TObject);
     133    procedure btnGraphViewsClick(Sender: TObject);
     134    procedure rdoRDVClick(Sender: TObject);
    116135  private
    117136    { Private declarations }
     
    145164uses fOptionsDays, fOptionsReminders, fOptionsSurrogate,
    146165     fOptionsPatientSelection, fOptionsLists, fOptionsTeams, fOptionsCombinations,
    147      fOptionsOther, fOptionsNotes, fOptionsTitles, fOptionsReportsCustom, fOptionsReportsDefault, rOptions, rCore, uCore, uOptions;
     166     fOptionsOther, fOptionsNotes, fOptionsTitles, fOptionsReportsCustom, fOptionsReportsDefault,
     167     fGraphs, fGraphSettings, fGraphProfiles, rGraphs, uGraphs,
     168     rOptions, rCore, uCore, uOptions, UBACore, fFrame;
    148169     //fTestDialog;
    149170
     
    195216             tsListsTeams.TabVisible := true;
    196217             ActivePage := tsCoverSheet;
    197              Label3.Text := 'Change the default date range and occurrence limits for all reports on ' +
     218             memReports.Text := 'Change the default date range and occurrence limits for all reports on ' +
    198219                               'the CPRS Reports tab (excluding health summary reports) .';
    199              Label4.Text := 'Change the individual date range and occurrence limits for each report on ' +
     220             memReport1.Text := 'Change the individual date range and occurrence limits for each report on ' +
    200221                               'the CPRS Reports tab (excluding health summary reports) .';
    201              Button1.caption := 'Set All Reports...';
    202              Button2.caption := 'Set Individual Reports...';
     222             btnReports.caption := 'Set All Reports...';
     223             btnReport1.caption := 'Set Individual Reports...';
    203224             if User.IsReportsOnly then // For "Reports Only" users.
    204225               begin
     
    217238             if (not User.ToolsRptEdit) then // For users with Reports settings edit parameter not set.
    218239               begin
    219                  Label3.Text := 'View the default date range and occurrence limits for all reports on ' +
     240                 memReports.Text := 'View the default date range and occurrence limits for all reports on ' +
    220241                                   'the CPRS Reports tab (excluding health summary reports) .';
    221                  Label4.Text := 'View the individual date range and occurrence limits for each report on ' +
     242                 memReport1.Text := 'View the individual date range and occurrence limits for each report on ' +
    222243                                   'the CPRS Reports tab (excluding health summary reports) .';
    223                  Button1.caption := 'View All Report Settings...';
    224                  Button2.caption := 'View Individual Report Settings...';
     244                 btnReports.caption := 'View All Report Settings...';
     245                 btnReport1.caption := 'View Individual Report Settings...';
    225246               end;
    226247           end;
     
    249270  FdirtyOtherStuff := false;
    250271  CheckApply;
    251   if not BILLING_AWARE then   btnDiagnoses.Enabled := False;
    252   if (Encounter.Provider = 0) and not PersonHasKey(Encounter.Provider, 'PROVIDER') then
     272
     273  if (Encounter.Provider = 0) and not IsCIDCProvider(User.DUZ) then
    253274      btnDiagnoses.Enabled := False;
     275  if UseVistaWeb then rdoRDV.ItemIndex := 1;
    254276
    255277end;
     
    641663end;
    642664
    643 procedure TfrmOptions.Button1Click(Sender: TObject);
     665procedure TfrmOptions.btnReportsClick(Sender: TObject);
    644666var
    645667  topsize, leftsize, value: integer;
     
    650672end;
    651673
    652 procedure TfrmOptions.Button2Click(Sender: TObject);
     674procedure TfrmOptions.btnReport1Click(Sender: TObject);
    653675var
    654676  topsize, leftsize, value: integer;
     
    678700  topsize, leftsize, value: integer;
    679701begin
    680   if BILLING_AWARE then  {BAV25 Code}
     702  if IsCIDCProvider(User.DUZ) then    //(hds7564)
    681703  begin
    682704     value := 0;
     
    686708end;
    687709
     710procedure TfrmOptions.btnGraphSettingsClick(Sender: TObject);
     711// display GraphSettings
     712var
     713  actiontype: boolean;
     714  topsize, leftsize: integer;
     715begin
     716  actiontype := false;
     717  Offset(topsize, -60, leftsize, -60);
     718  DialogOptionsGraphSettings(topsize, leftsize, Font.Size, actiontype);
     719end;
     720
     721procedure TfrmOptions.btnGraphViewsClick(Sender: TObject);
     722// display Graph Views
     723var
     724  actiontype: boolean;
     725  topsize, leftsize: integer;
     726begin
     727  actiontype := false;
     728  Offset(topsize, -60, leftsize, -60);
     729  DialogOptionsGraphProfiles(topsize, leftsize, Font.Size, actiontype);
     730end;
     731
     732procedure TfrmOptions.rdoRDVClick(Sender: TObject);
     733var
     734  iIndex: integer;
     735begin
     736  iIndex := rdoRDV.ItemIndex;
     737   with frmFrame do
     738   if iIndex = 0 then
     739    begin
     740      ChangeVistaWebParam('0');
     741      lblCIRN.Caption := ' Remote';
     742      lblCIRNData.Caption := 'Data';
     743      lblCIRNAvail.Caption := '';
     744      lblCIRN.Width := 43;
     745      lblCIRNData.Width := 43;
     746      lblCIRNData.Alignment := taCenter;
     747      lblCIRN.Alignment := taCenter;
     748      lstCIRNLocations.Clear;
     749      SetUpCIRN;
     750    end
     751  else
     752    begin
     753      ChangeVistaWebParam('1');
     754      lblCIRN.Caption := 'Remote';
     755      lblCIRNData.Caption := 'Data*';  //VistaWeb On
     756      lblCIRN.Width := 43;
     757      lblCIRNData.Width := 43;
     758      lblCIRNData.Alignment := taCenter;
     759      lblCIRN.Alignment := taCenter;
     760      lblCIRN.Enabled     := True;
     761      lblCIRNData.Enabled := True;
     762      pnlCIRN.TabStop     := True;
     763      if ColorToRGB(clWindowText) = ColorToRGB(clBlack) then
     764        begin
     765          lblCIRN.Font.Color  := clBlue;
     766          lblCIRNData.Font.Color  := clBlue;
     767          lblCIRNAvail.Font.Color := clBlue;
     768          lstCIRNLocations.Font.Color  := clBlue;
     769        end
     770      else
     771        begin
     772          lblCIRN.Font.Color  := clWindowText;
     773          lblCIRNData.Font.Color  := clWindowText;
     774          lblCIRNAvail.Font.Color := clWindowText;
     775          lstCIRNLocations.Font.Color  := clWindowText;
     776        end;
     777    end;
     778
     779end;
     780
    688781end.
    689782
Note: See TracChangeset for help on using the changeset viewer.