Procedure

TfrmODMisc.ControlChange

Module

fODMisc

Last Modified

7/15/2014 3:26:42 PM

Visibility

Public/Published

Owner

TfrmODMisc

Declaration

procedure ControlChange(Sender: TObject);

Calls Hierarchy


TfrmODMisc.ControlChange
 ├TResponses.Clear
 ├TResponses.Update
 │ ├TResponses.FindResponseByName
 │ └TResponses.IENForPrompt
 └TResponses.GetOrderText
   ├TResponses.NextInstance
   ├TResponses.FindResponseByName
   ├TResponses.FormatResponse
   │ └TResponses.FindResponseByIEN
   └TResponses.AppendChildren
     ├TResponses.FindPromptByIEN
     ├TResponses.FindResponseByIEN
     └TResponses.FormatResponse...

Called-By Hierarchy


TfrmODMisc.ControlChange
TfrmODMisc.SetupDialog┘ 

Calls

Name Declaration Comments
TResponses.Clear procedure Clear; overload; -
TResponses.GetOrderText function GetOrderText: string; -
TResponses.Update procedure Update(const APromptID: string; AnInstance: Integer; const AnIValue, AnEValue: string); -

Called-By

Name Declaration Comments
TfrmODMisc.SetupDialog procedure SetupDialog(OrderAction: Integer; const ID: string); override; -


Source

114   procedure TfrmODMisc.ControlChange(Sender: TObject);
115   begin
116     inherited;
117     if Changing then Exit;
118     Responses.Clear;
119     with cboCare    do if ItemIEN > 0      then Responses.Update('ORDERABLE', 1, ItemID, Text);
120     with txtComment do if Length(Text) > 0 then Responses.Update('COMMENT',   1, Text,   Text);
121     with calStart   do if Length(Text) > 0 then Responses.Update('START',     1, Text,   Text);
122     with calStop    do if Length(Text) > 0 then Responses.Update('STOP',      1, Text,   Text);
123     memOrder.Text := Responses.OrderText;
124   end;