Changeset 829 for cprs/trunk/CPRS-Chart/Consults/fConsultAct.pas
- Timestamp:
- Jul 7, 2010, 4:31:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/Consults/fConsultAct.pas
r456 r829 5 5 uses 6 6 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; 8 9 9 10 type 10 TfrmConsultAction = class(T Form)11 TfrmConsultAction = class(TfrmBase508Form) 11 12 lblActionBy: TOROffsetLabel; 12 13 calDateofAction: TORDateBox; … … 160 161 begin 161 162 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) 164 165 i := SvcList.IndexOf(IntToStr(ConsultRec.ToService) + U + Trim(ExternalName(ConsultRec.ToService, 123.5))); 165 166 if i > -1 then SvcList.Delete(i); … … 167 168 end 168 169 else 169 SvcList.Assign(LoadServiceListWithSynonyms(CN_SVC_LIST_FWD, ConsultRec.IEN)); {RV}170 FastAssign(LoadServiceListWithSynonyms(CN_SVC_LIST_FWD, ConsultRec.IEN), SvcList); {RV} 170 171 if (IsProcedure and (SvcList.Count <= 0)) then 171 172 begin … … 204 205 FToService := cboService.ItemIEN; 205 206 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) ; 209 210 MixedCaseList(Items) ; 210 211 SelectByIEN(ConsultRec.Urgency); … … 562 563 end; 563 564 564 procedure TfrmConsultAction.ShowAutoAlertText; 565 (*procedure TfrmConsultAction.ShowAutoAlertText; **** SEE BELOW FOR REPLACEMENT - v27.9 Phelps/Vertigan 565 566 const 566 567 TX_ALERT1 = 'An alert will automatically be sent to '; … … 588 589 end; 589 590 lblAutoAlerts.Caption := x; 590 end; 591 end;*) 592 593 procedure TfrmConsultAction.ShowAutoAlertText; 594 const 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 599 var 600 x: string; 601 begin 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; 627 end; 628 591 629 592 630 initialization
Note:
See TracChangeset
for help on using the changeset viewer.