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

    r830 r1679  
    2323    lblPtName: TStaticText;
    2424    Memo: TCaptionMemo;
    25     lblPtHRN: TStaticText;
     25    lblCombatVet: TStaticText;
    2626    procedure FormCreate(Sender: TObject);
    2727    procedure FormDestroy(Sender: TObject);
     28    procedure FormShow(Sender: TObject);
    2829  private
    2930    FLastDFN: string;
     
    4142implementation
    4243
    43 uses rCore, VA508AccessibilityRouter;
     44uses rCore, VA508AccessibilityRouter, uCombatVet;
    4445
    4546{$R *.DFM}
     
    7071  PtRec: TPtIDInfo;
    7172  i: Integer;
    72 
     73  CV : TCombatVet;
    7374begin
    7475  if ItemID = FLastDFN then Exit;
     
    100101    lblPtLocation.Caption := Location;
    101102    lblPtRoomBed.Caption  := RoomBed;
    102     //VWPT
    103     if HRN <> '' then lblPtHRN.Caption      := 'HRN: '+HRN
    104     else    lblPtHRN.Caption :=''  ;
    105103  end;
    106104  with orapnlMain do for i := 0 to ControlCount - 1 do
     
    114112  else
    115113    lblRoomBed.Show;
     114  CV := TCombatVet.Create(ItemID);
     115  if CV.IsEligible then begin
     116    lblCombatVet.Caption := 'CV ' + CV.ExpirationDate + ' ' + CV.OEF_OIF;
     117    Memo.Lines.Add(lblCombatVet.Caption);
     118  end else
     119    lblCombatVet.Caption := '';
     120  CV.Free;
    116121  Memo.SelectAll;
    117122end;
     
    186191    lblPtRoomBed.Height := uHeight;
    187192    lblPtRoomBed.Top  := lblRoomBed.Top ;
     193    lblCombatVet.Top := (lblRoomBed.Top + uHeight) + 2;
    188194  end;
    189195end;
     
    192198begin
    193199  orapnlMain.WindowProc := FOldWinProc;
     200end;
     201
     202procedure TfrmPtSelDemog.FormShow(Sender: TObject);
     203begin
     204  inherited;
     205  lblCombatVet.Caption := '';
    194206end;
    195207
Note: See TracChangeset for help on using the changeset viewer.