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

Upgrade to version 27

File:
1 edited

Legend:

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

    r456 r829  
    66  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
    77  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;
    249
    2510type
     
    6348    txtMeasHt: TCaptionEdit;
    6449    pnlBottom: TPanel;
     50    lvVitals: TCaptionListView;
    6551    btnEnterVitals: TButton;
    66     lvVitals: TCaptionListView;
     52    btnOKkludge: TButton;
     53    btnCancelkludge: TButton;
    6754    procedure SetVitPointer(Sender: TObject);
    6855    procedure txtMeasBPExit(Sender: TObject);
     
    8774    procedure txtMeasHtExit(Sender: TObject);
    8875    procedure txtMeasWtExit(Sender: TObject);
    89     procedure FormKeyDown(Sender: TObject; var Key: Word;
    90       Shift: TShiftState);
    9176    procedure btnEnterVitalsClick(Sender: TObject); //vitals lite
    9277  private
     
    120105     fEncounterFrame, uInit
    121106  //   , fGMV_InputTemp // Vitals Lite 2004-05-21
    122      ;
     107     , VA508AccessibilityRouter;
    123108
    124109const
     
    418403
    419404{== Vitals Lite 2004-05-21 ===================================================}
    420   FreeLibrary(VitalsDLLHandle);
     405  if VitalsDLLHandle <> 0 then
     406  begin
     407    FreeLibrary(VitalsDLLHandle);
     408    VitalsDLLHandle := 0;
     409  end;
    421410{== Vitals Lite 2004-05-21 ===================================================}
    422411  inherited;
     
    448437  GMV_LibName :='GMV_VitalsViewEnter.dll';
    449438  GMV_LibName := GetProgramFilesPath + SHARE_DIR + GMV_LibName;
    450   VitalsDLLHandle := LoadLibrary(PChar(GMV_LibName));
     439  if VitalsDLLHandle = 0 then
     440    VitalsDLLHandle := LoadLibrary(PChar(GMV_LibName));
    451441  if VitalsDLLHandle = 0 then // No Handle found
    452442    MessageDLG('Can''t find library "'+GMV_LibName+'".',mtError,[mbok],0)
     
    555545  txtMeasWt.text    := '';
    556546  cboPain.text      := '';
    557 end;
    558 
    559 procedure TfrmEncVitals.FormKeyDown(Sender: TObject; var Key: Word;
    560   Shift: TShiftState);
    561 begin
    562   {capture return key press if on the vital screen}
    563   begin
    564     inherited;
    565     if (ActiveCtrl.tag in VitalDateTagSet)then
    566     begin
    567       if Key = VK_RETURN then
    568       begin
    569         Key := 0;
    570         if (ActiveCtrl.Tag = TAG_VITPAIN) then
    571           ChangeFocus(btnOK)
    572         else
    573         begin
    574           GetParentForm(Self).Perform(WM_NEXTDLGCTL,0,0);
    575           SetVitPointer(Sender);
    576         end;
    577       end;
    578     end;
    579   end;
    580547end;
    581548
     
    636603  end
    637604  else
    638     MessageDLG('Can not find function "'+GMV_FName+'".',mtError,[mbok],0);
     605    MessageDLG('Unable to find function "'+GMV_FName+'".',mtError,[mbok],0);
    639606  @VLPtVitals := nil;
    640607  LoadVitalsList;
     
    652619  if assigned(VLPtVitals) then
    653620  begin
    654     frmFrame.VitalsDLLActive := True;  // need this flag for CCOW (RV)
     621//    frmFrame.DLLActive := True;  // need this flag for CCOW (RV)
    655622    VitalsList := VLPtVitals(RPCBrokerV,Patient.DFN,U,false);
    656623    if assigned(VitalsList) then
     
    660627    MessageDLG('Can''t find function "'+GMV_FName+'".',mtError,[mbok],0);
    661628  @VLPtVitals := nil;
    662   frmFrame.VitalsDLLActive := False;  // need this flag for CCOW (RV)
     629//  frmFrame.DLLActive := False;  // need this flag for CCOW (RV)
    663630end;
    664631//End Vitals Lite
    665632
     633initialization
     634  SpecifyFormIsNotADialog(TfrmEncVitals);
     635
    666636end.
Note: See TracChangeset for help on using the changeset viewer.