Changeset 1679 for cprs/trunk/CPRS-Chart/Consults/fConsultAct.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/Consults/fConsultAct.pas
r829 r1679 153 153 i: integer; 154 154 OrdItmIEN: integer; 155 attention: string; //wat cq 15561 156 AList: TStringList; {WAT cq 19626} 155 157 begin 156 158 pnlSigFind.Visible := False; … … 158 160 pnlComments.Visible := True; 159 161 memComments.Clear; 162 AList := TStringList.Create; 163 try {WAT cq 19626} 160 164 if IsProcedure then 161 165 begin … … 183 187 else 184 188 begin 185 SortByPiece(TStringList(SvcList), U, 2); {RV} 189 FastAssign(SvcList, AList); {WAT cq 19626} 190 SortByPiece(AList, U, 2); {WAT cq 19626} 191 //SortByPiece(TStringList(SvcList), U, 2); {RV} 186 192 for i := 0 to SvcList.Count - 1 do 187 193 if (cboService.Items.IndexOf(Trim(Piece(SvcList.Strings[i], U, 2))) = -1) and {RV} … … 200 206 end ; 201 207 end; 202 pnlForward.Visible := True ; 208 pnlForward.Visible := True ; 203 209 end ; 204 210 if cboService.Items.Count = 1 then cboService.ItemIndex := 0; 205 211 FToService := cboService.ItemIEN; 206 cboAttentionOf.InitLongList('') ; 212 //wat cq 15561 213 //cboAttentionOf.InitLongList('') ; 214 FAttentionOf := ConsultRec.Attention; 215 attention := ExternalName(FAttentionOf,200); 216 cboAttentionOf.InitLongList(attention); 217 cboAttentionOf.SelectByIEN(FAttentionOf); 218 //end cq 15561 207 219 with cboUrgency do 208 220 begin … … 224 236 cboPerson.OnNeedData := NewPersonNeedData; // 225 237 cboPerson.InitLongList(User.Name) ; 226 cboPerson.SelectByIEN(User.DUZ); 238 cboPerson.SelectByIEN(User.DUZ); 227 239 ckAlert.Visible := False ; 228 240 lblAutoAlerts.Visible := False; 229 241 Result := True; 242 finally 243 AList.Free; {WAT cq 19626} 244 end; 230 245 end; 231 246 … … 601 616 begin 602 617 case FUserLevel of 603 UL_NONE, UL_REVIEW:604 begin605 if FUserIsRequester then606 x := TX_ALERT1 + TX_ALERT_SVC_USERS607 else608 x := TX_ALERT1 + TX_ALERT_PROVIDER + ' and to ' + TX_ALERT_SVC_USERS;609 end;610 UL_UPDATE, UL_ADMIN, UL_UPDATE_AND_ADMIN:611 begin612 if FUserIsRequester then613 //x := TX_ALERT_NOBODY Replace with following line614 x := TX_ALERT1 + TX_ALERT_SVC_USERS615 else616 x := TX_ALERT1 + TX_ALERT_PROVIDER + '.';617 end;618 UL_UNRESTRICTED:619 begin620 if FUserIsRequester then621 x := TX_ALERT1 + TX_ALERT_SVC_USERS622 else623 x := TX_ALERT1 + TX_ALERT_PROVIDER + ' and to ' + TX_ALERT_SVC_USERS;624 end;625 end;626 lblAutoAlerts.Caption := x;618 UL_NONE, UL_REVIEW: 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 UL_UPDATE, UL_ADMIN, UL_UPDATE_AND_ADMIN: 626 begin 627 if FUserIsRequester then 628 //x := TX_ALERT_NOBODY Replace with following line 629 x := TX_ALERT1 + TX_ALERT_SVC_USERS 630 else 631 x := TX_ALERT1 + TX_ALERT_PROVIDER + '.'; 632 end; 633 UL_UNRESTRICTED: 634 begin 635 if FUserIsRequester then 636 x := TX_ALERT1 + TX_ALERT_SVC_USERS 637 else 638 x := TX_ALERT1 + TX_ALERT_PROVIDER + ' and to ' + TX_ALERT_SVC_USERS; 639 end; 640 end; 641 lblAutoAlerts.Caption := x; 627 642 end; 628 643
Note:
See TracChangeset
for help on using the changeset viewer.