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/Consults/fConsultAct.pas

    r456 r829  
    55uses
    66  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ORFN,
    7   StdCtrls, ExtCtrls, ORCtrls, uCore, ComCtrls, ORDtTm;
     7  StdCtrls, ExtCtrls, ORCtrls, uCore, ComCtrls, ORDtTm, fBase508Form,
     8  VA508AccessibilityManager;
    89
    910type
    10   TfrmConsultAction = class(TForm)
     11  TfrmConsultAction = class(TfrmBase508Form)
    1112    lblActionBy: TOROffsetLabel;
    1213    calDateofAction: TORDateBox;
     
    160161   begin
    161162     OrdItmIEN := GetOrderableIEN(IntToStr(ConsultRec.ORFileNumber));
    162      SvcList.Assign(GetProcedureServices(OrdItmIEN));
    163      //SvcList.Assign(GetProcedureServices(ProcIEN));   RPC expects pointer to 101.43, NOT 123.3  (RV)
     163     FastAssign(GetProcedureServices(OrdItmIEN), SvcList);
     164     //FastAssign(GetProcedureServices(ProcIEN), SvcList);   RPC expects pointer to 101.43, NOT 123.3  (RV)
    164165     i := SvcList.IndexOf(IntToStr(ConsultRec.ToService) + U + Trim(ExternalName(ConsultRec.ToService, 123.5)));
    165166     if i > -1 then SvcList.Delete(i);
     
    167168   end
    168169 else
    169    SvcList.Assign(LoadServiceListWithSynonyms(CN_SVC_LIST_FWD, ConsultRec.IEN));           {RV}
     170   FastAssign(LoadServiceListWithSynonyms(CN_SVC_LIST_FWD, ConsultRec.IEN), SvcList);           {RV}
    170171 if (IsProcedure and (SvcList.Count <= 0)) then
    171172   begin
     
    204205 FToService := cboService.ItemIEN;
    205206 cboAttentionOf.InitLongList('') ;
    206  with cboUrgency do       
    207   begin       
    208     Items.Assign(SubsetofUrgencies(ConsultRec.IEN)) ;
     207 with cboUrgency do
     208  begin
     209    FastAssign(SubsetofUrgencies(ConsultRec.IEN), cboUrgency.Items) ;
    209210    MixedCaseList(Items) ;
    210211    SelectByIEN(ConsultRec.Urgency);
     
    562563end;                                                                     
    563564
    564 procedure TfrmConsultAction.ShowAutoAlertText;
     565(*procedure TfrmConsultAction.ShowAutoAlertText;      ****  SEE BELOW FOR REPLACEMENT - v27.9 Phelps/Vertigan
    565566const
    566567  TX_ALERT1          = 'An alert will automatically be sent to ';
     
    588589   end;
    589590   lblAutoAlerts.Caption := x;
    590 end;
     591end;*)
     592
     593procedure TfrmConsultAction.ShowAutoAlertText;
     594const
     595  TX_ALERT1          = 'An alert will automatically be sent to ';
     596  TX_ALERT_PROVIDER  = 'the ordering provider';
     597  TX_ALERT_SVC_USERS = 'notification recipients for this service.';
     598  TX_ALERT_NOBODY    = 'No automatic alerts will be sent.';  // this should be rare to never
     599var
     600  x: string;
     601begin
     602  case FUserLevel of
     603    UL_NONE, UL_REVIEW:
     604      begin
     605        if FUserIsRequester then
     606          x := TX_ALERT1 + TX_ALERT_SVC_USERS
     607        else
     608          x := TX_ALERT1 + TX_ALERT_PROVIDER + ' and to ' + TX_ALERT_SVC_USERS;
     609      end;
     610    UL_UPDATE, UL_ADMIN, UL_UPDATE_AND_ADMIN:
     611      begin
     612        if FUserIsRequester then
     613          //x := TX_ALERT_NOBODY   Replace with following line
     614          x := TX_ALERT1 + TX_ALERT_SVC_USERS
     615        else
     616          x := TX_ALERT1 + TX_ALERT_PROVIDER + '.';
     617      end;
     618    UL_UNRESTRICTED:
     619      begin
     620        if FUserIsRequester then
     621          x := TX_ALERT1 + TX_ALERT_SVC_USERS
     622        else
     623          x := TX_ALERT1 + TX_ALERT_PROVIDER + ' and to ' + TX_ALERT_SVC_USERS;
     624      end;
     625  end;
     626  lblAutoAlerts.Caption := x;
     627end;
     628
    591629
    592630initialization
Note: See TracChangeset for help on using the changeset viewer.