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/Encounter/fPCEBaseMain.pas

    r829 r1679  
    6060    FPCECode: string;
    6161    FSplitterMove: boolean;
     62    FProblems: TStringList;
    6263    function GetCat: string;
    6364    procedure UpdateNewItemStr(var x: string); virtual;
     
    8687
    8788uses fPCELex, fPCEOther, fEncounterFrame, fHFSearch, VA508AccessibilityRouter,
    88   ORCtrlsVA508Compatibility, fBase508Form;
     89  ORCtrlsVA508Compatibility, fBase508Form, UBAConst;
    8990
    9091{$R *.DFM}
     
    104105  CheckOffEntries;
    105106  FSectionPopulated := TRUE;
     107  if (lbSection.Items.Count > 0) then
     108    lblList.Caption := StringReplace(lbSection.DisplayText[lbSection.ItemIndex],
     109      '&', '&&', [rfReplaceAll] );
     110  if (lbSection.DisplayText[lbSection.ItemIndex] = DX_PROBLEM_LIST_TXT) then
     111    FastAssign(lbxSection.Items, FProblems);
    106112end;
    107113
     
    296302begin
    297303  inherited FormCreate(Sender);
     304  FProblems := TStringList.Create;
    298305  lbxSection.HideSelection := TRUE;
    299306  amgrMain.ComponentManager[lbSection] := TLBSectionManager.Create;
     
    301308
    302309procedure TfrmPCEBaseMain.FormDestroy(Sender: TObject);
    303 var
    304   i:integer;
    305 
    306 begin
    307   inherited;
    308   with lbGrid.Items do for i := 0 to Count - 1 do TPCEItem(Objects[i]).Free;
     310begin
     311  inherited;
     312  FProblems.Free;
    309313end;
    310314
Note: See TracChangeset for help on using the changeset viewer.