Last change
on this file since 697 was 459, checked in by Kevin Toppenberg, 16 years ago |
Adding foia-cprs branch
|
File size:
1.3 KB
|
Line | |
---|
1 | unit mVitCVP;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
|
---|
7 | mVitBase, ComCtrls, StdCtrls, Buttons, ORCtrls;
|
---|
8 |
|
---|
9 | type
|
---|
10 | TfraVitCVP = class(TfraVitBase)
|
---|
11 | edtCVPcm: TEdit;
|
---|
12 | UpDown1: TUpDown;
|
---|
13 | lblMm: TLabel;
|
---|
14 | edtCVPmm: TEdit;
|
---|
15 | lblCm: TLabel;
|
---|
16 | cbcmH2O: TORCheckBox;
|
---|
17 | procedure cbcmH2OClick(Sender: TObject);
|
---|
18 | private
|
---|
19 | FChanging: boolean;
|
---|
20 | public
|
---|
21 | function GetVitalInfo: TVitInfo; override;
|
---|
22 | procedure VitalsCVPUnitsChanged; override;
|
---|
23 | end;
|
---|
24 |
|
---|
25 | var
|
---|
26 | fraVitCVP: TfraVitCVP;
|
---|
27 |
|
---|
28 | implementation
|
---|
29 |
|
---|
30 | uses uVitals, rVitals;
|
---|
31 |
|
---|
32 | {$R *.DFM}
|
---|
33 |
|
---|
34 | { TfraVitCVP }
|
---|
35 |
|
---|
36 | function TfraVitCVP.GetVitalInfo: TVitInfo;
|
---|
37 | begin
|
---|
38 | Result.VType := vtCVP;
|
---|
39 | Result.VValue := edtCVPcm.Text;
|
---|
40 | end;
|
---|
41 |
|
---|
42 | procedure TfraVitCVP.VitalsCVPUnitsChanged;
|
---|
43 | begin
|
---|
44 | inherited;
|
---|
45 | edtCVPmm.Color := VitEnabledColor[uVitCVPmmHg];
|
---|
46 | edtCVPmm.Enabled := uVitCVPmmHg;
|
---|
47 | edtCVPmm.TabStop := uVitCVPmmHg;
|
---|
48 | edtCVPcm.Color := VitEnabledColor[not uVitCVPmmHg];
|
---|
49 | edtCVPcm.Enabled := not uVitCVPmmHg;
|
---|
50 | edtCVPcm.TabStop := not uVitCVPmmHg;
|
---|
51 | FChanging := TRUE;
|
---|
52 | try
|
---|
53 | cbcmH2O.Checked := not uVitCVPmmHg;
|
---|
54 | finally
|
---|
55 | FChanging := FALSE;
|
---|
56 | end;
|
---|
57 | end;
|
---|
58 |
|
---|
59 | procedure TfraVitCVP.cbcmH2OClick(Sender: TObject);
|
---|
60 | begin
|
---|
61 | inherited;
|
---|
62 | if FChanging then exit;
|
---|
63 | SetVitCVPmmHg(not cbcmH2O.Checked);
|
---|
64 | end;
|
---|
65 |
|
---|
66 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.