Changeset 829 for cprs/trunk/CPRS-Chart/Encounter/fEncVitals.pas
- Timestamp:
- Jul 7, 2010, 4:31:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/Encounter/fEncVitals.pas
r456 r829 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 7 fPCEBase, ORDtTm, StdCtrls, ORCtrls, ExtCtrls, Buttons, fAutoSz, ORFn, 8 rvitals, ComCtrls, ORNet, uVitals 9 , TRPCB // Vitals Lite 2004-05-21 =========================================== 10 ; 11 {== Vitals Lite 2004-05-21 ===================================================} 12 type 13 TGMV_GetInputPanel = function( 14 var anApp: TApplication; 15 aB: TRPCBroker; 16 aP, // Patient DFN 17 aL, // Hospitals IEN 18 aSig, // Application signature 19 aTemplate // Vitals Input template 20 : String; 21 aNow // Input Date/Time 22 :TDateTime):TCustomForm; 23 {== Vitals Lite 2004-05-21 ===================================================} 8 rvitals, ComCtrls, ORNet, uVitals, VAUtils, TRPCB, VA508AccessibilityManager; 24 9 25 10 type … … 63 48 txtMeasHt: TCaptionEdit; 64 49 pnlBottom: TPanel; 50 lvVitals: TCaptionListView; 65 51 btnEnterVitals: TButton; 66 lvVitals: TCaptionListView; 52 btnOKkludge: TButton; 53 btnCancelkludge: TButton; 67 54 procedure SetVitPointer(Sender: TObject); 68 55 procedure txtMeasBPExit(Sender: TObject); … … 87 74 procedure txtMeasHtExit(Sender: TObject); 88 75 procedure txtMeasWtExit(Sender: TObject); 89 procedure FormKeyDown(Sender: TObject; var Key: Word;90 Shift: TShiftState);91 76 procedure btnEnterVitalsClick(Sender: TObject); //vitals lite 92 77 private … … 120 105 fEncounterFrame, uInit 121 106 // , fGMV_InputTemp // Vitals Lite 2004-05-21 122 ;107 , VA508AccessibilityRouter; 123 108 124 109 const … … 418 403 419 404 {== Vitals Lite 2004-05-21 ===================================================} 420 FreeLibrary(VitalsDLLHandle); 405 if VitalsDLLHandle <> 0 then 406 begin 407 FreeLibrary(VitalsDLLHandle); 408 VitalsDLLHandle := 0; 409 end; 421 410 {== Vitals Lite 2004-05-21 ===================================================} 422 411 inherited; … … 448 437 GMV_LibName :='GMV_VitalsViewEnter.dll'; 449 438 GMV_LibName := GetProgramFilesPath + SHARE_DIR + GMV_LibName; 450 VitalsDLLHandle := LoadLibrary(PChar(GMV_LibName)); 439 if VitalsDLLHandle = 0 then 440 VitalsDLLHandle := LoadLibrary(PChar(GMV_LibName)); 451 441 if VitalsDLLHandle = 0 then // No Handle found 452 442 MessageDLG('Can''t find library "'+GMV_LibName+'".',mtError,[mbok],0) … … 555 545 txtMeasWt.text := ''; 556 546 cboPain.text := ''; 557 end;558 559 procedure TfrmEncVitals.FormKeyDown(Sender: TObject; var Key: Word;560 Shift: TShiftState);561 begin562 {capture return key press if on the vital screen}563 begin564 inherited;565 if (ActiveCtrl.tag in VitalDateTagSet)then566 begin567 if Key = VK_RETURN then568 begin569 Key := 0;570 if (ActiveCtrl.Tag = TAG_VITPAIN) then571 ChangeFocus(btnOK)572 else573 begin574 GetParentForm(Self).Perform(WM_NEXTDLGCTL,0,0);575 SetVitPointer(Sender);576 end;577 end;578 end;579 end;580 547 end; 581 548 … … 636 603 end 637 604 else 638 MessageDLG(' Can notfind function "'+GMV_FName+'".',mtError,[mbok],0);605 MessageDLG('Unable to find function "'+GMV_FName+'".',mtError,[mbok],0); 639 606 @VLPtVitals := nil; 640 607 LoadVitalsList; … … 652 619 if assigned(VLPtVitals) then 653 620 begin 654 frmFrame.VitalsDLLActive := True; // need this flag for CCOW (RV)621 // frmFrame.DLLActive := True; // need this flag for CCOW (RV) 655 622 VitalsList := VLPtVitals(RPCBrokerV,Patient.DFN,U,false); 656 623 if assigned(VitalsList) then … … 660 627 MessageDLG('Can''t find function "'+GMV_FName+'".',mtError,[mbok],0); 661 628 @VLPtVitals := nil; 662 frmFrame.VitalsDLLActive := False; // need this flag for CCOW (RV)629 // frmFrame.DLLActive := False; // need this flag for CCOW (RV) 663 630 end; 664 631 //End Vitals Lite 665 632 633 initialization 634 SpecifyFormIsNotADialog(TfrmEncVitals); 635 666 636 end.
Note:
See TracChangeset
for help on using the changeset viewer.