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/fPatientFlagMulti.pas

    r830 r1679  
    2424
    2525  TfrmFlags = class(TfrmBase508Form)
     26    Panel1: TPanel;
     27    Splitter3: TSplitter;
    2628    Splitter1: TSplitter;
    27     pnlTop: TORAutoPanel;
    2829    lblFlags: TLabel;
    2930    lstFlagsCat2: TORListBox;
     
    311312  TRUE_STRING = '1';
    312313var
    313   i : integer;
    314 begin
     314  i, TypeOneCount, TypeTwoCount : integer;
     315begin
     316  TypeOneCount := 0;
     317  TypeTwoCount := 0;
    315318  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
    319323      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';
     336end;
     337
    322338
    323339end.
Note: See TracChangeset for help on using the changeset viewer.