-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVarViewFr.pas
81 lines (71 loc) · 1.93 KB
/
VarViewFr.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
unit VarViewFr;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, ComCtrls, DynamicSkinForm, SkinCtrls;
type
TVarViewFrm = class(TForm)
spDynamicSkinForm1: TspDynamicSkinForm;
spSkinButton1: TspSkinButton;
spSkinPanel1: TspSkinPanel;
spSkinScrollBar1: TspSkinScrollBar;
rzListView2: TspSkinListView;
procedure SetupListView;
procedure SetupEcoView;
private
{ Private declarations }
public
{ Public declarations }
end;
var
VarViewFrm: TVarViewFrm;
implementation
uses Main, DataModFr;
{$R *.DFM}
procedure TVarViewFrm.SetupListView;
var
ListItem : TListItem;
i : integer;
begin
RzListView2.Items.Clear;
for i := 0 to NTreat - 1 do
begin
with RzListView2 do
begin
ListItem := items.Add;
listitem.Caption := Inttostr (MTR[i+1]);
ListItem.SubItems.Add (Tnam [i+1]);
ListItem.SubItems.Add (Fnam [i+1]);
ListItem.SubItems.Add (Ccode[i+1]);
ListItem.SubItems.Add (Format ('%9.1f',[pardat[1,i+1]]));
ListItem.SubItems.Add (Format ('%9.1f',[pardat[2,i+1]]));
ListItem.SubItems.Add (Format ('%9.1f',[pardat[3,i+1]]));
ListItem.SubItems.Add (Format ('%9.1f',[pardat[9,i+1]]));
end;
end;
RzListView2.Update;
end;
procedure TVarViewFrm.SetupEcoView;
var
ListItem : TListItem;
i : integer;
begin
RzListView2.Items.Clear;
for i := 0 to NTreat - 1 do
begin
with RzListView2 do
begin
ListItem := items.Add;
listitem.Caption := Inttostr (MTR[i+1]);
ListItem.SubItems.Add (Tnam [i+1]);
ListItem.SubItems.Add (Fnam [i+1]);
ListItem.SubItems.Add (Ccode[i+1]);
ListItem.SubItems.Add (Format ('%9.1f',[xmu[1,i+1]]));
ListItem.SubItems.Add (Format ('%9.1f',[xmu[2,i+1]]));
ListItem.SubItems.Add (Format ('%9.1f',[xmu[3,i+1]]));
ListItem.SubItems.Add (Format ('%9.1f',[xmu[9,i+1]]));
end;
end;
RzListView2.Update;
end;
end.