Ignore:
Timestamp:
May 7, 2015, 12:34:29 PM (9 years ago)
Author:
healthsevak
Message:

Updating the working copy to CPRS version 28

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/Consults/fConsultAct.pas

    r829 r1679  
    153153  i: integer;
    154154  OrdItmIEN: integer;
     155  attention: string;                                                              //wat cq 15561
     156  AList: TStringList;                                                             {WAT cq 19626}
    155157begin
    156158 pnlSigFind.Visible := False;
     
    158160 pnlComments.Visible := True;
    159161 memComments.Clear;
     162 AList := TStringList.Create;
     163try                                                                               {WAT cq 19626}
    160164 if IsProcedure then
    161165   begin
     
    183187 else
    184188   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}
    186192     for i := 0 to SvcList.Count - 1 do
    187193        if (cboService.Items.IndexOf(Trim(Piece(SvcList.Strings[i], U, 2))) = -1) and   {RV}
     
    200206             end ;
    201207       end;
    202      pnlForward.Visible := True ;       
     208     pnlForward.Visible := True ;
    203209   end ;
    204210 if cboService.Items.Count = 1 then cboService.ItemIndex := 0;
    205211 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
    207219 with cboUrgency do
    208220  begin
     
    224236  cboPerson.OnNeedData := NewPersonNeedData;         //
    225237  cboPerson.InitLongList(User.Name)  ;
    226   cboPerson.SelectByIEN(User.DUZ);       
     238  cboPerson.SelectByIEN(User.DUZ);
    227239  ckAlert.Visible := False ;
    228240  lblAutoAlerts.Visible := False;
    229241  Result := True;
     242finally
     243  AList.Free;                                                                      {WAT cq 19626}
     244end;
    230245end;
    231246
     
    601616begin
    602617  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;
     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;
    627642end;
    628643
Note: See TracChangeset for help on using the changeset viewer.