Changeset 830 for cprs/trunk/CPRS-Chart/fPtSelOptns.pas
- Timestamp:
- Jul 7, 2010, 4:51:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/fPtSelOptns.pas
r456 r830 5 5 uses 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 ORDtTmRng, ORCtrls, StdCtrls, ExtCtrls, ORFn; 7 ORDtTmRng, ORCtrls, StdCtrls, ExtCtrls, ORFn, fBase508Form, 8 VA508AccessibilityManager; 8 9 9 10 type … … 11 12 TSetPtListTopProc = procedure(IEN: Int64) of object; 12 13 13 TfrmPtSelOptns = class(T Form)14 TfrmPtSelOptns = class(TfrmBase508Form) 14 15 orapnlMain: TORAutoPanel; 15 16 bvlPtList: TORAutoPanel; … … 55 56 procedure SetDefaultPtList(Dflt: string); 56 57 procedure UpdateDefault; 57 58 59 60 61 58 property LastTopList: string read FLastTopList write FLastTopList; 62 59 property SrcType: Integer read FSrcType write FSrcType; … … 76 73 77 74 var 78 75 frmPtSelOptns: TfrmPtSelOptns; 79 76 //frmPtSelOptns: TfrmPtSelOptns; 80 77 clinDoSave, clinSaveToday: boolean; … … 86 83 87 84 uses 88 rCore, fPtSelOptSave, fPtSel;85 rCore, fPtSelOptSave, fPtSel, VA508AccessibilityRouter; 89 86 90 87 const … … 100 97 TC_LS_SAVE = 'Save Patient List Settings'; 101 98 102 103 104 99 function TfrmPtSelOptns.IsLast5(x: string): Boolean; 105 100 { returns true if string matchs patterns: A9999 or 9999 (BS & BS5 xrefs for patient lookup) } … … 117 112 Result := True; 118 113 end; 114 119 115 function TfrmPtSelOptns.IsPatientName(x: string):Boolean; 120 116 { returns true if string matchs patient name pattern: all alphabetic," ",",","-","." only } … … 128 124 Result := True; 129 125 end; 126 130 127 function TfrmPtSelOptns.IsEnhanced(x: String) : boolean ; 131 128 var … … 141 138 if (frmPtSelOptns.radAll.Checked <> True)and (frmPtSelOptns.radDflt.Checked <> True) then Result := False; 142 139 end; 140 143 141 function TfrmPtSelOptns.IsFullSSN(x: string): boolean; 144 142 var … … 187 185 procedure TfrmPtSelOptns.radShowSrcClick(Sender: TObject); 188 186 { called by radTeams, radSpecialties, radWards - shows items for the list source } 187 begin 188 cboList.Pieces := '2'; 189 FSrcType := TControl(Sender).Tag; 190 FLastTopList := ''; 191 HideDateRange; 192 FSetCaptionTop; 193 with cboList do 194 begin 195 Clear; 196 LongList := False; 197 Sorted := True; 198 case FSrcType of 199 TAG_SRC_TEAM: ListTeamAll(Items); 200 TAG_SRC_SPEC: ListSpecialtyAll(Items); 201 TAG_SRC_WARD: ListWardAll(Items); 202 end; 203 Visible := True; 204 end; 205 cboList.Caption := TRadioButton(Sender).Caption; 206 end; 207 208 procedure TfrmPtSelOptns.radLongSrcClick(Sender: TObject); 209 { called by radProviders, radClinics - switches to long list & shows items for the list source } 189 210 begin 190 211 //vwpt remove other radio button selections … … 221 242 FSrcType := TControl(Sender).Tag; 222 243 FLastTopList := ''; 223 HideDateRange;224 FSetCaptionTop;225 with cboList do226 begin227 Clear;228 LongList := False;229 Sorted := True;230 case FSrcType of231 TAG_SRC_TEAM: ListTeamAll(Items);232 TAG_SRC_SPEC: ListSpecialtyAll(Items);233 TAG_SRC_WARD: ListWardAll(Items);234 end;235 Visible := True;236 end;237 cboList.Caption := TRadioButton(Sender).Caption;238 end; //else239 end;240 241 procedure TfrmPtSelOptns.radLongSrcClick(Sender: TObject);242 { called by radProviders, radClinics - switches to long list & shows items for the list source }243 begin244 //vwpt remove other radio button selections245 if fPtSel.radiogrp1index <> 0 then246 begin247 FSrcType := TControl(Sender).Tag;248 case FSrcType of249 TAG_SRC_PROV: begin250 radProviders.Checked := False;251 radProviders.Refresh;252 radAll.Checked := True;253 radAll.Refresh;254 255 end;256 TAG_SRC_CLIN: begin257 radClinics.Checked := False;258 radClinics.Refresh;259 radAll.Checked := True;260 radAll.Refresh;261 end;262 end;263 //frmPtSel.RadioGroup1.SetFocus;264 //frmPtSel.RadioGroup1.Refresh;265 end266 else267 begin268 //end vwpt269 cboList.Pieces := '2';270 FSrcType := TControl(Sender).Tag;271 FLastTopList := '';272 244 FSetCaptionTop; 273 245 with cboList do … … 324 296 ^SC("B","zz bhost/resident",2710) = 325 297 ^SC("B","zz bhost/sws",2946) = 326 ^SC("B","zz c&P ortho/patel",3292) = 298 ^SC("B","zz c&P ortho/patel",3292) = 327 299 ^SC("B","zz mhc md/kelley",320) = 328 300 ^SC("B","zz/mhc/p",1076) = 329 ^SC("B","zzMHC MD/THRASHER",1018) = 301 ^SC("B","zzMHC MD/THRASHER",1018) = 330 302 ^SC("B","zztest clinic",3090) = 331 303 ^SC("B","zzz-hbpc-phone-jung",1830) = … … 492 464 end; 493 465 466 initialization 467 SpecifyFormIsNotADialog(TfrmPtSelOptns); 468 494 469 end.
Note:
See TracChangeset
for help on using the changeset viewer.