Changeset 1692 for cprs/branches


Ignore:
Timestamp:
May 8, 2015, 7:26:56 AM (10 years ago)
Author:
healthsevak
Message:

Committing the files for first time to this new branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/HealthSevak-CPRS/CPRS-Chart/uReminders.pas

    r830 r1692  
    4242    function Processing: boolean;
    4343    procedure AddText(Lst: TStrings);
    44     procedure ClearMHTest(RIEN: String);
    4544    property PrintName: string read GetPrintName;
    4645    property IEN: string read GetIEN;
     
    20882087  MHRes := False;
    20892088  tmpText := '';
    2090   if Pos('~', AText)>0 then MHLoop := 2;
     2089  if (MHTest = True) and (Pos('~', AText)>0) then MHLoop := 2;
    20912090  for j := 1 to MHLoop do
    20922091  begin
     
    26402639    end;
    26412640  end;
    2642 end;
    2643 
    2644 procedure TReminderDialog.ClearMHTest(RIEN: String);
    2645 var
    2646 i,j: integer;
    2647 TestName: string;
    2648 begin
    2649   if (self.MHTestArray <> nil) and (self.MHTestArray.Count > 0) then
    2650     begin
    2651       i := self.MHTestArray.IndexOfPiece(RIEN, U, 2, -1);
    2652       while i > -1 do
    2653         begin
    2654           TestName := Piece(self.MHTestArray.Strings[i], U, 1);
    2655           self.MHTestArray.Delete(i);
    2656           j := self.MHTestArray.IndexOfPiece(TestName, U, 1, -1);
    2657           if j = -1 then RemoveMHTest(TestName);
    2658           i := self.MHTestArray.IndexOfPiece(RIEN, U, 2, -1);
    2659         end;
    2660     end;
    26612641end;
    26622642
     
    35173497    // Element.FFieldValues.
    35183498    Entry.OnChange := FieldPanelChange;
     3499    //AGP BACKED OUT THE CHANGE CAUSE A PROBLEM WITH TEMPLATE WORD PROCESSING FIELDS WHEN RESIZING
     3500    //FieldPanelChange(Entry); // to accomodate fields with default values - CQ#15960
     3501    //AGP END BACKED OUT
    35193502    // Calls TTemplateDialogEntry.SetFieldValues which calls
    35203503    // TTemplateDialogEntry.SetControlText to reset the template field default
     
    46504633          Prompt := TRemPrompt(FPrompts[i]);
    46514634          if(not Prompt.FIsShared) then
    4652             WordWrap(Prompt.NoteText, Lst, ilvl);
     4635            begin
     4636               if Prompt.PromptType = ptMHTest then  WordWrap(Prompt.NoteText, Lst, ilvl, 4, true)
     4637               else WordWrap(Prompt.NoteText, Lst, ilvl);
     4638            end;
     4639
    46534640        end;
    46544641      end;
     
    66956682  TestComp := 0;
    66966683  try
    6697   if (sender is TCPRSDialogButton) then
    6698      (Sender as TCPRSDialogButton).Enabled := false;
     6684  if (Sender is TCPRSDialogButton) then
     6685    (Sender as TCPRSDialogButton).Enabled := false;
    66996686  if FParent.FReminder.MHTestArray = nil then FParent.FReminder.MHTestArray := TORStringList.Create;
    67006687  if(MHTestAuthorized(FData.Narrative)) then
     
    67986785                   'Insufficient Authorization', MB_OK + MB_ICONERROR);
    67996786  finally
    6800      (Sender as TCPRSDialogButton).Enabled := true;
     6787    if (Sender is TCPRSDialogButton) then
     6788      begin
     6789        (Sender as TCPRSDialogButton).Enabled := true;
     6790        (Sender as TCPRSDialogButton).SetFocus;
     6791      end;
     6792
    68016793  end;
    68026794end;
Note: See TracChangeset for help on using the changeset viewer.