Ignore:
Timestamp:
May 7, 2015, 12:34:29 PM (9 years ago)
Author:
healthsevak
Message:

Updating the working copy to CPRS version 28

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/Options/fOptionsLists.pas

    r829 r1679  
    5858    procedure lstAddByKeyPress(Sender: TObject; var Key: Char);
    5959    procedure grpVisibilityClick(Sender: TObject);
     60    procedure lstAddByChange(Sender: TObject);
    6061  private
    6162    { Private declarations }
     
    146147    case radAddByType.ItemIndex of
    147148      0: begin
    148            ListItemsOnly := true;
     149           ListItemsOnly := false;
    149150           LongList := true;
    150151           InitLongList('');
     
    256257end;
    257258
     259procedure 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
     274begin
     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;
     287end;
     288
     289
    258290procedure TfrmOptionsLists.lstAddByClick(Sender: TObject);
    259291var
     
    266298  if lstAddBy.ItemIndex < 0 then exit;
    267299  ien := Piece(lstAddBy.Items[lstAddBy.ItemIndex], '^', 1);
     300  If ien = '' then exit;
    268301  case radAddByType.ItemIndex of
    269302    0:
Note: See TracChangeset for help on using the changeset viewer.