Changeset 830 for cprs/trunk/CPRS-Chart/fVitals.pas
- Timestamp:
- Jul 7, 2010, 4:51:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/fVitals.pas
r456 r830 36 36 uses 37 37 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; 43 41 44 42 type 45 TfrmVitals = class(T Form)43 TfrmVitals = class(TfrmBase508Form) 46 44 pnlTop: TPanel; 47 45 chtChart: TChart; … … 130 128 implementation 131 129 132 uses fCover, uCore, rCore, fVit, fFrame, fEncnt, fVisit, fRptBox, rReports, 133 uAccessibleStringGrid, uInit; 130 uses fCover, uCore, rCore, fVit, fFrame, fEncnt, fVisit, fRptBox, rReports, uInit; 134 131 135 132 const … … 185 182 GMV_LibName :='GMV_VitalsViewEnter.dll'; 186 183 GMV_LibName := GetProgramFilesPath + SHARE_DIR + GMV_LibName; 187 VitalsDLLHandle := LoadLibrary(PChar(GMV_LibName)); 184 if VitalsDLLHandle = 0 then 185 VitalsDLLHandle := LoadLibrary(PChar(GMV_LibName)); 188 186 // UpdateTimeOutInterval(5000); 189 187 if VitalsDLLHandle <> 0 then … … 204 202 MessageDLG('Can''t find library "'+GMV_LibName+'".',mtError,[mbok],0); 205 203 @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 209 211 end; 210 212 … … 343 345 BeginEndDates(date1,date2,daysback); 344 346 //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); 346 348 vindex := lstVitals.ItemIndex; 347 349 VGrid(tmpGrid); … … 364 366 procedure TfrmVitals.FormCreate(Sender: TObject); 365 367 begin 366 grdVitals.Color := ReadOnlyColor;367 368 tmpGrid := TStringList.Create; 368 369 if Patient.Inpatient then lstDates.ItemIndex := 1 else lstDates.ItemIndex := 4; 369 370 SerTest.GetHorizAxis.ExactDateTime := true; 370 371 SerTest.GetHorizAxis.Increment := DateTimeStep[dtOneMinute]; 371 TAccessibleStringGrid.WrapControl(grdVitals);372 372 end; 373 373 … … 375 375 begin 376 376 tmpGrid.free; 377 TAccessibleStringGrid.UnwrapControl(grdVitals);378 377 end; 379 378
Note:
See TracChangeset
for help on using the changeset viewer.