Ignore:
Timestamp:
Jul 7, 2010, 4:51:54 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Upgrading to version 27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/fVitals.pas

    r456 r830  
    3636uses
    3737  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
    38   StdCtrls, ORCtrls, TeEngine, Series, TeeProcs, Chart, ExtCtrls, Grids,
    39   Buttons, ORNet, ORFn, uConst, Menus, ORDtTmRng
    40   , ComCtrls
    41   , uVitals
    42   ;  {*KCM*}
     38  StdCtrls, ORCtrls, TeEngine, Series, TeeProcs, Chart, ExtCtrls, Grids,Buttons,
     39  ORNet, ORFn, uConst, Menus, ORDtTmRng, fBase508Form, ComCtrls, uVitals, VAUtils,
     40  VA508AccessibilityManager;
    4341
    4442type
    45   TfrmVitals = class(TForm)
     43  TfrmVitals = class(TfrmBase508Form)
    4644    pnlTop: TPanel;
    4745    chtChart: TChart;
     
    130128implementation
    131129
    132 uses fCover, uCore, rCore, fVit, fFrame, fEncnt, fVisit, fRptBox, rReports,
    133   uAccessibleStringGrid, uInit;
     130uses fCover, uCore, rCore, fVit, fFrame, fEncnt, fVisit, fRptBox, rReports, uInit;
    134131
    135132const
     
    185182  GMV_LibName :='GMV_VitalsViewEnter.dll';
    186183  GMV_LibName := GetProgramFilesPath + SHARE_DIR + GMV_LibName;
    187   VitalsDLLHandle := LoadLibrary(PChar(GMV_LibName));
     184  if VitalsDLLHandle = 0 then
     185    VitalsDLLHandle := LoadLibrary(PChar(GMV_LibName));
    188186 // UpdateTimeOutInterval(5000);
    189187  if VitalsDLLHandle <> 0 then
     
    204202    MessageDLG('Can''t find library "'+GMV_LibName+'".',mtError,[mbok],0);
    205203  @VLPtVitals := nil;
    206   FreeLibrary(VitalsDLLHandle);
    207   if DLLForceClose then
    208     frmFrame.Close; // Fix for CQ: 7535
     204  if VitalsDLLHandle <> 0 then
     205  begin
     206    FreeLibrary(VitalsDLLHandle);
     207    VitalsDLLHandle := 0;
     208  end;
     209//  if DLLForceClose then                  // jm - removed as part of timeout fix
     210//    frmFrame.Close; // Fix for CQ: 7535  // jm - removed as part of timeout fix
    209211end;
    210212
     
    343345    BeginEndDates(date1,date2,daysback);
    344346  //date1 := date1 + 0.2359;
    345   tmpGrid.Assign(VitalsGrid(Patient.DFN, date1, date2, 0, lstVitals.Items));
     347  FastAssign(VitalsGrid(Patient.DFN, date1, date2, 0, lstVitals.Items), tmpGrid);
    346348  vindex := lstVitals.ItemIndex;
    347349  VGrid(tmpGrid);
     
    364366procedure TfrmVitals.FormCreate(Sender: TObject);
    365367begin
    366   grdVitals.Color := ReadOnlyColor;
    367368  tmpGrid := TStringList.Create;
    368369  if Patient.Inpatient then lstDates.ItemIndex := 1 else lstDates.ItemIndex := 4;
    369370  SerTest.GetHorizAxis.ExactDateTime := true;
    370371  SerTest.GetHorizAxis.Increment := DateTimeStep[dtOneMinute];
    371   TAccessibleStringGrid.WrapControl(grdVitals);
    372372end;
    373373
     
    375375begin
    376376  tmpGrid.free;
    377   TAccessibleStringGrid.UnwrapControl(grdVitals);
    378377end;
    379378
Note: See TracChangeset for help on using the changeset viewer.