1 | //kt -- Modified with SourceScanner on 7/19/2007
|
---|
2 | unit fLaunch;
|
---|
3 |
|
---|
4 | interface
|
---|
5 |
|
---|
6 | uses
|
---|
7 | Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
|
---|
8 | StdCtrls, ExtCtrls;
|
---|
9 |
|
---|
10 | type
|
---|
11 | TfrmLaunch = class(TForm)
|
---|
12 | grpFontSize: TRadioGroup;
|
---|
13 | cmdShow: TButton;
|
---|
14 | Edit1: TEdit;
|
---|
15 | Label1: TLabel;
|
---|
16 | cmdClose: TButton;
|
---|
17 | cmdNotif: TButton;
|
---|
18 | procedure cmdShowClick(Sender: TObject);
|
---|
19 | procedure FormCreate(Sender: TObject);
|
---|
20 | procedure cmdCloseClick(Sender: TObject);
|
---|
21 | private
|
---|
22 | { Private declarations }
|
---|
23 | public
|
---|
24 | { Public declarations }
|
---|
25 | end;
|
---|
26 |
|
---|
27 | var
|
---|
28 | frmLaunch: TfrmLaunch;
|
---|
29 |
|
---|
30 | implementation
|
---|
31 |
|
---|
32 | {$R *.DFM}
|
---|
33 |
|
---|
34 | uses ORFn, ORNet, fPtSel, uCore;
|
---|
35 |
|
---|
36 | procedure TfrmLaunch.FormCreate(Sender: TObject);
|
---|
37 | begin
|
---|
38 | //if not ConnectToServer('OR CPRS GUI CHART') then <-- original line. //kt 7/19/2007
|
---|
39 | if not ConnectToServer(DKLangConstW('fLaunch_OR_CPRS_GUI_CHART')) then //kt added 7/19/2007
|
---|
40 | begin
|
---|
41 | Close; // need a way to exit without needing the broker (close may call it)
|
---|
42 | Exit;
|
---|
43 | end;
|
---|
44 | User := TUser.Create; // creates the user object defined in uCore
|
---|
45 | Patient := TPatient.Create; // creates the patient object defined in uCore
|
---|
46 | Encounter := TEncounter.Create; // creates the encounter object defined in uCore
|
---|
47 | end;
|
---|
48 |
|
---|
49 | procedure TfrmLaunch.cmdShowClick(Sender: TObject);
|
---|
50 | var
|
---|
51 | ASize: Integer;
|
---|
52 | Notif: Boolean;
|
---|
53 | begin
|
---|
54 | ASize := 8;
|
---|
55 | case grpFontSize.ItemIndex of
|
---|
56 | 0: ASize := 8;
|
---|
57 | 1: ASize := 10;
|
---|
58 | 2: ASize := 12;
|
---|
59 | 3: ASize := 14;
|
---|
60 | 4: ASize := 18;
|
---|
61 | end;
|
---|
62 | Notif := TControl(Sender).Tag = 1;
|
---|
63 | SelectPatient(Notif, ASize);
|
---|
64 | Edit1.Text := IntToStr(Patient.DFN) + U + Patient.Name + U + Encounter.LocationName;
|
---|
65 | end;
|
---|
66 |
|
---|
67 | procedure TfrmLaunch.cmdCloseClick(Sender: TObject);
|
---|
68 | begin
|
---|
69 | Close;
|
---|
70 | end;
|
---|
71 |
|
---|
72 | end.
|
---|