Changeset 1679 for cprs/trunk/CPRS-Chart/Options/fOptionsLists.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/Options/fOptionsLists.pas
r829 r1679 58 58 procedure lstAddByKeyPress(Sender: TObject; var Key: Char); 59 59 procedure grpVisibilityClick(Sender: TObject); 60 procedure lstAddByChange(Sender: TObject); 60 61 private 61 62 { Private declarations } … … 146 147 case radAddByType.ItemIndex of 147 148 0: begin 148 ListItemsOnly := true;149 ListItemsOnly := false; 149 150 LongList := true; 150 151 InitLongList(''); … … 256 257 end; 257 258 259 procedure TfrmOptionsLists.lstAddByChange(Sender: TObject); 260 procedure ShowMatchingPatients; 261 begin 262 with lstAddBy do begin 263 if ShortCount > 0 then begin 264 if ShortCount = 1 then begin 265 ItemIndex := 0; 266 end; 267 Items.Add(LLS_LINE); 268 Items.Add(LLS_SPACE); 269 end; 270 InitLongList(''); 271 end; 272 end; 273 274 begin 275 inherited; 276 if radAddByType.ItemIndex = 0 {patient} then begin 277 with lstAddBy do 278 if frmPtSelOptns.IsLast5(Text) then begin 279 ListPtByLast5(Items, Text); 280 ShowMatchingPatients; 281 end 282 else if frmPtSelOptns.IsFullSSN(Text) then begin 283 ListPtByFullSSN(Items, Text); 284 ShowMatchingPatients; 285 end; 286 end; 287 end; 288 289 258 290 procedure TfrmOptionsLists.lstAddByClick(Sender: TObject); 259 291 var … … 266 298 if lstAddBy.ItemIndex < 0 then exit; 267 299 ien := Piece(lstAddBy.Items[lstAddBy.ItemIndex], '^', 1); 300 If ien = '' then exit; 268 301 case radAddByType.ItemIndex of 269 302 0:
Note:
See TracChangeset
for help on using the changeset viewer.