Changeset 1679 for cprs/trunk/CPRS-Chart/Vitals
- Timestamp:
- May 7, 2015, 12:34:29 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/Vitals/uVitals.pas
r829 r1679 2 2 { Old class TVital currently not used - commented out at bottom of unit } 3 3 4 {$DEFINE CCOWBROKER} 5 4 6 interface 5 7 6 8 uses 7 9 SysUtils, Dialogs, Controls, Windows, Classes, ORClasses, ORCtrls, ORFn, Forms 8 , TRPCB 9 ; 10 , TRPCB ; 10 11 11 12 const … … 86 87 87 88 TGMV_VitalsEnterForm = function( 88 aBroker:TRPCBroker;89 RPCBrokerV: TRPCBroker; 89 90 aPatient, aLocation, aTemplate,aSignature:String; 90 91 aDateTime:TDateTime): TCustomForm; stdcall; 91 92 92 93 TGMV_VitalsEnterDLG = function( 93 aBroker:TRPCBroker;94 RPCBrokerV: TRPCBroker; 94 95 aDFN, aLocation, aTemplate,aSignature:String; 95 96 aDateTime:TDateTime; … … 97 98 98 99 TGFM_VitalsViewDLG = function( 99 aBroker:TRPCBroker;100 RPCBrokerV: TRPCBroker; 100 101 aDFN, aLocation, 101 102 DateStart, DateStop, … … 105 106 106 107 TGMV_VitalsViewForm = function( 107 aBroker:TRPCBroker;108 RPCBrokerV: TRPCBroker; 108 109 aDFN, aLocation, 109 110 DateStart, DateStop, … … 114 115 115 116 TGMV_LatestVitalsList = function ( 116 aBroker:TRPCBroker;117 RPCBrokerV: TRPCBroker; 117 118 aDFN, 118 119 aDelim:String; … … 124 125 var 125 126 VitalsDLLHandle : THandle = 0; 126 // DLLForceClose : Boolean = False; // jm - removed as part of timeout fix 127 127 128 const 129 VitalsDLLName = 'GMV_VitalsViewEnter.dll'; 130 131 procedure LoadVitalsDLL; 132 procedure UnloadVitalsDLL; 128 133 129 134 const … … 188 193 if assigned(VitalsExit) then 189 194 VitalsExit(); 190 FreeLibrary(VitalsDLLHandle); 191 VitalsDLLHandle := 0; 192 // DLLForceClose := True; // jm - removed as part of timeout fix 195 UnloadVitalsDLL; 193 196 end; 194 197 end; … … 619 622 for i := 1 to Length(x) do if not (x[i] in ['0'..'9','.']) then Result := False; 620 623 end; 624 625 procedure LoadVitalsDLL; 626 var 627 GMV_LibName: String; 628 629 begin 630 if VitalsDLLHandle = 0 then 631 begin 632 GMV_LibName := GetProgramFilesPath + SHARE_DIR + VitalsDLLName; 633 VitalsDLLHandle := LoadLibrary(PChar(GMV_LibName)); 634 end; 635 end; 636 637 procedure UnloadVitalsDLL; 638 begin 639 if VitalsDLLHandle <> 0 then 640 begin 641 FreeLibrary(VitalsDLLHandle); 642 VitalsDLLHandle := 0; 643 end; 644 end; 645 621 646 (* Old class currently not used 622 647 {$OPTIMIZATION OFF} // REMOVE AFTER UNIT IS DEBUGGED
Note:
See TracChangeset
for help on using the changeset viewer.