Changeset 1679 for cprs/trunk/CPRS-Chart/fPatientFlagMulti.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/fPatientFlagMulti.pas
r830 r1679 24 24 25 25 TfrmFlags = class(TfrmBase508Form) 26 Panel1: TPanel; 27 Splitter3: TSplitter; 26 28 Splitter1: TSplitter; 27 pnlTop: TORAutoPanel;28 29 lblFlags: TLabel; 29 30 lstFlagsCat2: TORListBox; … … 311 312 TRUE_STRING = '1'; 312 313 var 313 i : integer; 314 begin 314 i, TypeOneCount, TypeTwoCount : integer; 315 begin 316 TypeOneCount := 0; 317 TypeTwoCount := 0; 315 318 for i := 0 to flags.Count-1 do begin 316 if Piece(flags[i],U,FLAG_TYPE_POS) = TRUE_STRING then 317 Cat1List.Add(flags[i]) 318 else 319 if Piece(flags[i],U,FLAG_TYPE_POS) = TRUE_STRING then begin 320 Cat1List.Add(flags[i]); 321 Inc(TypeOneCount); 322 end else begin 319 323 Cat2List.Add(flags[i]); 320 end; 321 end; 324 Inc(TypeTwoCount); 325 end; 326 end; 327 If TypeOneCount > 0 then 328 lblCat1.Caption := 'Category I Flags: ' + IntToStr(TypeOneCount) + ' Item(s)' 329 else 330 lblCat1.Caption := 'Category I Flags'; 331 332 If TypeTwoCount > 0 then 333 lblFlags.Caption := 'Category II Flags: ' + IntToStr(TypeTwoCount) + ' Item(s)' 334 else 335 lblFlags.Caption := 'Category II Flags'; 336 end; 337 322 338 323 339 end.
Note:
See TracChangeset
for help on using the changeset viewer.