Changeset 460 for cprs/branches/foia-cprs/CPRS-Chart/Options/fOptions.pas
- Timestamp:
- Jul 6, 2008, 8:20:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/foia-cprs/CPRS-Chart/Options/fOptions.pas
r459 r460 72 72 btnNotesTitles: TButton; 73 73 imgNotesNotes: TImage; 74 Image1: TImage;74 imgNotes: TImage; 75 75 imgTeams: TImage; 76 76 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; 87 86 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; 88 104 procedure FormCreate(Sender: TObject); 89 105 procedure FormDestroy(Sender: TObject); … … 108 124 procedure btnNotesNotesClick(Sender: TObject); 109 125 procedure btnNotesTitlesClick(Sender: TObject); 110 procedure Button1Click(Sender: TObject);111 procedure Button2Click(Sender: TObject);126 procedure btnReportsClick(Sender: TObject); 127 procedure btnReport1Click(Sender: TObject); 112 128 procedure lvwNotificationsEnter(Sender: TObject); 113 129 procedure lvwNotificationsMouseDown(Sender: TObject; 114 130 Button: TMouseButton; Shift: TShiftState; X, Y: Integer); 115 131 procedure btnDiagnosesClick(Sender: TObject); 132 procedure btnGraphSettingsClick(Sender: TObject); 133 procedure btnGraphViewsClick(Sender: TObject); 134 procedure rdoRDVClick(Sender: TObject); 116 135 private 117 136 { Private declarations } … … 145 164 uses fOptionsDays, fOptionsReminders, fOptionsSurrogate, 146 165 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; 148 169 //fTestDialog; 149 170 … … 195 216 tsListsTeams.TabVisible := true; 196 217 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 ' + 198 219 '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 ' + 200 221 '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...'; 203 224 if User.IsReportsOnly then // For "Reports Only" users. 204 225 begin … … 217 238 if (not User.ToolsRptEdit) then // For users with Reports settings edit parameter not set. 218 239 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 ' + 220 241 '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 ' + 222 243 '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...'; 225 246 end; 226 247 end; … … 249 270 FdirtyOtherStuff := false; 250 271 CheckApply; 251 if not BILLING_AWARE then btnDiagnoses.Enabled := False; 252 if (Encounter.Provider = 0) and not PersonHasKey(Encounter.Provider, 'PROVIDER') then272 273 if (Encounter.Provider = 0) and not IsCIDCProvider(User.DUZ) then 253 274 btnDiagnoses.Enabled := False; 275 if UseVistaWeb then rdoRDV.ItemIndex := 1; 254 276 255 277 end; … … 641 663 end; 642 664 643 procedure TfrmOptions. Button1Click(Sender: TObject);665 procedure TfrmOptions.btnReportsClick(Sender: TObject); 644 666 var 645 667 topsize, leftsize, value: integer; … … 650 672 end; 651 673 652 procedure TfrmOptions. Button2Click(Sender: TObject);674 procedure TfrmOptions.btnReport1Click(Sender: TObject); 653 675 var 654 676 topsize, leftsize, value: integer; … … 678 700 topsize, leftsize, value: integer; 679 701 begin 680 if BILLING_AWARE then {BAV25 Code}702 if IsCIDCProvider(User.DUZ) then //(hds7564) 681 703 begin 682 704 value := 0; … … 686 708 end; 687 709 710 procedure TfrmOptions.btnGraphSettingsClick(Sender: TObject); 711 // display GraphSettings 712 var 713 actiontype: boolean; 714 topsize, leftsize: integer; 715 begin 716 actiontype := false; 717 Offset(topsize, -60, leftsize, -60); 718 DialogOptionsGraphSettings(topsize, leftsize, Font.Size, actiontype); 719 end; 720 721 procedure TfrmOptions.btnGraphViewsClick(Sender: TObject); 722 // display Graph Views 723 var 724 actiontype: boolean; 725 topsize, leftsize: integer; 726 begin 727 actiontype := false; 728 Offset(topsize, -60, leftsize, -60); 729 DialogOptionsGraphProfiles(topsize, leftsize, Font.Size, actiontype); 730 end; 731 732 procedure TfrmOptions.rdoRDVClick(Sender: TObject); 733 var 734 iIndex: integer; 735 begin 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 779 end; 780 688 781 end. 689 782
Note:
See TracChangeset
for help on using the changeset viewer.