Changeset 1679 for cprs/trunk/CPRS-Chart/Orders/fODRad.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/Orders/fODRad.pas
r829 r1679 6 6 SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls, 7 7 Forms, Dialogs, StdCtrls, ORCtrls, fODBase, ORFn, ExtCtrls, 8 ComCtrls, uConst, ORDtTm, VA508AccessibilityManager ;8 ComCtrls, uConst, ORDtTm, VA508AccessibilityManager, VA508AccessibilityRouter; 9 9 10 10 type … … 49 49 txtReason: TCaptionEdit; 50 50 pnlRightBase: TORAutoPanel; 51 Submitlbl508: TVA508StaticText; 52 VA508ComponentAccessibility1: TVA508ComponentAccessibility; 53 VA508ComponentAccessibility2: TVA508ComponentAccessibility; 51 54 procedure cboProcedureNeedData(Sender: TObject; 52 55 const StartFrom: string; Direction, InsertAt: Integer); … … 71 74 procedure calPreOpExit(Sender: TObject); 72 75 procedure cboImTypeDropDownClose(Sender: TObject); 76 procedure pnlMessageExit(Sender: TObject); 77 procedure VA508ComponentAccessibility1StateQuery(Sender: TObject; 78 var Text: string); 79 procedure pnlMessageMouseUp(Sender: TObject; Button: TMouseButton; 80 Shift: TShiftState; X, Y: Integer); 73 81 private 74 82 FLastRadID: string; … … 82 90 procedure ImageTypeChange; 83 91 procedure FormFirstOpened(Sender: TObject); 92 procedure setup508Label(text: string; lbl: TVA508StaticText; ctrl: TControl); 84 93 protected 85 94 procedure InitDialog; override; … … 221 230 i: integer; 222 231 tmplst: TStringList; 232 cboSubmitText: String; 223 233 begin 224 234 if not FEditCopy then … … 266 276 lblSubmit.Enabled := False; 267 277 cboSubmit.Enabled := False; 278 //TDP - CQ#19393 cboSubmit 508 changes 279 cboSubmitText := cboSubmit.Text; 280 if cboSubmitText = '' then cboSubmitText := 'No Value'; 281 setup508Label(cboSubmitText, Submitlbl508, cboSubmit); 268 282 cboSubmit.Font.Color := clGrayText; 269 283 end … … 283 297 lblSubmit.Enabled := True; 284 298 cboSubmit.Enabled := True; 299 //TDP - CQ#19393 cboSubmit 508 changes 300 cboSubmitText := cboSubmit.Text; 301 if cboSubmitText = '' then cboSubmitText := 'No Value'; 302 setup508Label(cboSubmitText, Submitlbl508, cboSubmit); 285 303 cboSubmit.Font.Color := clWindowText; 286 304 end … … 290 308 lblSubmit.Enabled := False; 291 309 cboSubmit.Enabled := False; 310 //TDP - CQ#19393 cboSubmit 508 changes 311 cboSubmitText := cboSubmit.Text; 312 if cboSubmitText = '' then cboSubmitText := 'No Value'; 313 setup508Label(cboSubmitText, Submitlbl508, cboSubmit); 292 314 cboSubmit.Font.Color := clGrayText; 293 315 end; … … 301 323 lblSubmit.Enabled := False; 302 324 cboSubmit.Enabled := False; 325 //TDP - CQ#19393 cboSubmit 508 changes 326 cboSubmitText := cboSubmit.Text; 327 if cboSubmitText = '' then cboSubmitText := 'No Value'; 328 setup508Label(cboSubmitText, Submitlbl508, cboSubmit); 303 329 cboSubmit.Font.Color := clGrayText; 304 330 end; … … 311 337 cboProcedure.InitLongList('') ; 312 338 StatusText(''); 313 314 339 end; 315 340 … … 349 374 else with Encounter do Responses.Update('LOCATION', 1, IntToStr(Location) , LocationName); 350 375 memOrder.Text := Responses.OrderText; 376 end; 377 378 //TDP - CQ#19393 Made history memobox read text 379 procedure TfrmODRad.VA508ComponentAccessibility1StateQuery(Sender: TObject; 380 var Text: string); 381 begin 382 inherited; 383 Text := memHistory.Text; 351 384 end; 352 385 … … 639 672 if (Patient.Sex <> 'F') then 640 673 begin 674 //TDP - CQ#19393 change to allow grpPregnant to be tabbed to if screen reader active 675 if ScreenReaderSystemActive then grpPregnant.TabStop := True; 641 676 radPregnant.Enabled := False; 642 677 radPregnantNo.Enabled := False; … … 695 730 begin 696 731 if (Patient.Sex = 'F') and ((Patient.Age > 55) or (Patient.Age < 12)) then 732 begin 697 733 radPregnantNo.Checked := True; 734 grpPregnant.TabStop := False; 735 end; 698 736 end; 699 737 … … 720 758 end; 721 759 760 //TDP - CQ#19393 cboSubmit 508 changes. Can change in future to be generic if needed. (See fODLab.pas) 761 procedure TfrmODRad.setup508Label(text: string; lbl: TVA508StaticText; ctrl: TControl); 762 begin 763 if ScreenReaderSystemActive and not ctrl.Enabled then begin 764 lbl.Enabled := True; 765 lbl.Visible := True; 766 lbl.Caption := lblSubmit.Caption + '. Read Only. Value is ' + Text; 767 lbl.Width := lblSubmit.Width + 2; 768 end else 769 lbl.Visible := false; 770 end; 771 722 772 procedure TfrmODRad.cboProcedureExit(Sender: TObject); 723 773 var … … 739 789 for i := 0 to Items.Count - 1 do 740 790 Responses.Update('MODIFIER',i+1, Piece(Items[i],U,1), Piece(Items[i],U,2)); 791 //TDP - Made Order Message next focus if showing and Tab or Entered was pressed 792 if (pnlMessage.Showing) AND ((TabIsPressed()) OR (EnterIsPressed())) then memMessage.SetFocus; 741 793 end; 742 794 … … 778 830 begin 779 831 result := not ((radPregnant.Checked) or (radPregnantNo.Checked) or (radPregnantUnknown.Checked)); 832 end; 833 834 {TDP - Added to control where focus went now that pnlMessage was being focused 835 out of turn after cboProcedure.} 836 procedure TfrmODRad.pnlMessageExit(Sender: TObject); 837 begin 838 inherited; 839 if TabIsPressed() then cboAvailMod.SetFocus; 840 if ShiftTabIsPressed() then cboProcedure.SetFocus; 841 end; 842 843 {TDP - Added to control where focus went now that pnlMessage was being focused 844 out of turn after cboProcedure.} 845 procedure TfrmODRad.pnlMessageMouseUp(Sender: TObject; Button: TMouseButton; 846 Shift: TShiftState; X, Y: Integer); 847 begin 848 inherited; 849 cboProcedure.SetFocus; 780 850 end; 781 851
Note:
See TracChangeset
for help on using the changeset viewer.