Changeset 830 for cprs/trunk/CPRS-Chart/fAllgyFind.pas
- Timestamp:
- Jul 7, 2010, 4:51:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/fAllgyFind.pas
r456 r830 5 5 uses 6 6 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; 8 9 9 10 type … … 21 22 lblDetail: TLabel; 22 23 lblSearchCaption: TLabel; 24 imgLblAllgyFindTree: TVA508ImageListLabeler; 23 25 procedure cmdSearchClick(Sender: TObject); 24 26 procedure cmdCancelClick(Sender: TObject); … … 133 135 try 134 136 if tvAgent.Items <> nil then tvAgent.Items.Clear; 135 AList.Assign(SearchForAllergies(UpperCase(txtSearch.Text)));137 FastAssign(SearchForAllergies(UpperCase(txtSearch.Text)), AList); 136 138 uFileCount := 0; 137 139 for i := 0 to AList.Count - 1 do … … 204 206 procedure TfrmAllgyFind.cmdOKClick(Sender: TObject); 205 207 var 206 x : string;208 x, AGlobal: string; 207 209 tmpList: TStringList; 208 210 OKtoContinue: boolean ; … … 272 274 FAllergy := TORTreeNode(tvAgent.Selected).StringData; 273 275 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); 275 280 SetPiece(FAllergy, U, 2, x); 276 281 Close;
Note:
See TracChangeset
for help on using the changeset viewer.