Ignore:
Timestamp:
Jul 7, 2010, 4:51:54 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Upgrading to version 27

File:
1 edited

Legend:

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

    r456 r830  
    55uses
    66  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
    7   fAutoSz, StdCtrls, ORFn, ORCtrls, ComCtrls, ImgList;
     7  fAutoSz, StdCtrls, ORFn, ORCtrls, ComCtrls, ImgList, VA508AccessibilityManager,
     8  VA508ImageListLabeler;
    89
    910type
     
    2122    lblDetail: TLabel;
    2223    lblSearchCaption: TLabel;
     24    imgLblAllgyFindTree: TVA508ImageListLabeler;
    2325    procedure cmdSearchClick(Sender: TObject);
    2426    procedure cmdCancelClick(Sender: TObject);
     
    133135  try
    134136    if tvAgent.Items <> nil then tvAgent.Items.Clear;
    135     AList.Assign(SearchForAllergies(UpperCase(txtSearch.Text)));
     137    FastAssign(SearchForAllergies(UpperCase(txtSearch.Text)), AList);
    136138    uFileCount := 0;
    137139    for i := 0 to AList.Count - 1 do
     
    204206procedure TfrmAllgyFind.cmdOKClick(Sender: TObject);
    205207var
    206   x: string;
     208  x, AGlobal: string;
    207209  tmpList: TStringList;
    208210  OKtoContinue: boolean ;
     
    272274      FAllergy := TORTreeNode(tvAgent.Selected).StringData;
    273275      x := Piece(FAllergy, U, 2);
    274       x := Trim(Piece(x, '<', 1));
     276      AGlobal := Piece(FAllergy, U, 3);
     277      if ((Pos('GMRD', AGlobal) > 0) or (Pos('PSDRUG', AGlobal) > 0)) and (Pos('<', x) > 0) then
     278        //x := Trim(Piece(x, '<', 1));
     279        x := Copy(x, 1, Length(Piece(x, '<', 1)) - 1);
    275280      SetPiece(FAllergy, U, 2, x);
    276281      Close;
Note: See TracChangeset for help on using the changeset viewer.