Procedure

TfrmODLab.txtOrderCommentExit

Module

fODLab

Last Modified

7/15/2014 3:26:42 PM

Visibility

Public/Published

Owner

TfrmODLab

Declaration

procedure txtOrderCommentExit(Sender: TObject);

Calls Hierarchy


TfrmODLab.txtOrderCommentExit
 ├TLabTest.ChangeComment
 └TfrmODLab.ControlChange
   ├TResponses.FindResponseByName
   ├TResponses.Clear
   ├TResponses.Update
   │ ├TResponses.FindResponseByName
   │ └TResponses.IENForPrompt
   ├TLabTest.NameOfCollSamp
   │ └TLabTest.IndexOfCollSamp
   ├TLabTest.NameOfSpecimen
   │ └TLabTest.IndexOfCollSamp
   ├TLabTest.NameOfUrgency
   ├TfrmODLab.ValidCollTime
   │ └StrToFMDateTime
   └TResponses.GetOrderText
     ├TResponses.NextInstance
     ├TResponses.FindResponseByName
     ├TResponses.FormatResponse
     │ └TResponses.FindResponseByIEN
     └TResponses.AppendChildren
       ├TResponses.FindPromptByIEN
       ├TResponses.FindResponseByIEN
       └TResponses.FormatResponse...

Calls

Name Declaration Comments
TLabTest.ChangeComment procedure ChangeComment(const CommentText: string); -
TfrmODLab.ControlChange procedure ControlChange(Sender: TObject); -


Source

1670  procedure TfrmODLab.txtOrderCommentExit(Sender: TObject);
1671  begin
1672    inherited;
1673    if (not pnlOrderComment.Visible) or (ALabTest = nil) then exit;
1674    with ALabTest do
1675        if Length(txtOrderComment.Text)>0 then
1676         begin
1677          Comment.Clear;
1678          ChangeComment('~For Test: ' + TestName);
1679          ChangeComment('~' + txtOrderComment.Text) ;
1680         end
1681        else
1682          Comment.Clear;
1683    ControlChange(Self);
1684  end;