Last change
on this file since 762 was 456, checked in by Kevin Toppenberg, 16 years ago |
Initial Upload of Official WV CPRS 1.0.26.76
|
File size:
1.6 KB
|
Line | |
---|
1 | unit tfVType;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
|
---|
7 | StdCtrls, ExtCtrls;
|
---|
8 |
|
---|
9 | type
|
---|
10 | TfrmLaunch = class(TForm)
|
---|
11 | grpFontSize: TRadioGroup;
|
---|
12 | cmdShow: TButton;
|
---|
13 | Edit1: TEdit;
|
---|
14 | Label1: TLabel;
|
---|
15 | cmdClose: TButton;
|
---|
16 | procedure cmdShowClick(Sender: TObject);
|
---|
17 | procedure FormCreate(Sender: TObject);
|
---|
18 | procedure cmdCloseClick(Sender: TObject);
|
---|
19 | private
|
---|
20 | { Private declarations }
|
---|
21 | public
|
---|
22 | { Public declarations }
|
---|
23 | end;
|
---|
24 |
|
---|
25 | var
|
---|
26 | frmLaunch: TfrmLaunch;
|
---|
27 |
|
---|
28 | implementation
|
---|
29 |
|
---|
30 | {$R *.DFM}
|
---|
31 |
|
---|
32 | uses ORFn, ORNet, fVType, uCore;
|
---|
33 |
|
---|
34 | procedure TfrmLaunch.FormCreate(Sender: TObject);
|
---|
35 | begin
|
---|
36 | if not ConnectToServer('OR CPRS GUI CHART') then
|
---|
37 | begin
|
---|
38 | Close; // need a way to exit without needing the broker (close may call it)
|
---|
39 | Exit;
|
---|
40 | end;
|
---|
41 | User := TUser.Create; // creates the user object defined in uCore
|
---|
42 | Patient := TPatient.Create; // creates the patient object defined in uCore
|
---|
43 | Encounter := TEncounter.Create; // creates the encounter object defined in uCore
|
---|
44 | Encounter.Location := 16;
|
---|
45 | end;
|
---|
46 |
|
---|
47 | procedure TfrmLaunch.cmdShowClick(Sender: TObject);
|
---|
48 | begin
|
---|
49 | case grpFontSize.ItemIndex of
|
---|
50 | 0: Self.Font.Size := 8;
|
---|
51 | 1: Self.Font.Size := 10;
|
---|
52 | 2: Self.Font.Size := 12;
|
---|
53 | 3: Self.Font.Size := 14;
|
---|
54 | 4: Self.Font.Size := 18;
|
---|
55 | end;
|
---|
56 | UpdateVisitType;
|
---|
57 | //Edit1.Text := IntToStr(Patient.DFN) + U + Patient.Name + U + Encounter.LocationName;
|
---|
58 | end;
|
---|
59 |
|
---|
60 | procedure TfrmLaunch.cmdCloseClick(Sender: TObject);
|
---|
61 | begin
|
---|
62 | Close;
|
---|
63 | end;
|
---|
64 |
|
---|
65 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.