-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSummaryFr.pas
84 lines (71 loc) · 2.13 KB
/
SummaryFr.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
82
83
84
unit SummaryFr;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ComCtrls, StdCtrls, Buttons, DynamicSkinForm, SkinCtrls, SkinGrids;
type
TSummary = class(TForm)
spDynamicSkinForm1: TspDynamicSkinForm;
spSkinButton1: TspSkinButton;
spSkinPanel1: TspSkinPanel;
spSkinScrollBar1: TspSkinScrollBar;
rzListView2: TspSkinListView;
spSkinStringGrid1: TspSkinStringGrid;
procedure SetupListView;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Summary: TSummary;
implementation
uses Main, GraphFr, DataModFr;
{$R *.DFM}
procedure TSummary.SetupListView;
var
ListItem : TListItem;
i : integer;
g : TDateTime;
s : string;
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 (IntToStr (NReps));
ListItem.SubItems.Add (CCODE[i+1]);
end;
end;
spSkinStringGrid1.ColWidths[1] := 306;
spSkinStringGrid1.Cells[0,0] := 'Experiment Title';
spSkinStringGrid1.Cells[1,0] := TrimLeft(ExpTitle);
spSkinStringGrid1.Cells[0,1] := 'Experiment Code';
spSkinStringGrid1.Cells[1,1] := ExpCode;
spSkinStringGrid1.Cells[0,2] := 'Crop Group';
spSkinStringGrid1.Cells[1,2] := CG;
spSkinStringGrid1.Cells[0,3] := 'Runs';
spSkinStringGrid1.Cells[1,3] := IntToStr (NRuns);
spSkinStringGrid1.Cells[0,4] := 'Replications';
spSkinStringGrid1.Cells[1,4] := IntToStr (NReps);
g := FileDateToDateTime (FileAge(SNSFile));
s := FormatDateTime('hh:mm:ss, ddd, d mmmm yyyy', g);
spSkinStringGrid1.Cells[0,5] := 'File Creation date';
spSkinStringGrid1.Cells[1,5] := s;
RzListView2.Update;
MainForm.RzCheckList1.Clear;
MainForm.RzCheckList3.Clear;
for i := 0 to NTreat - 1 do
begin
MainForm.RzCheckList1.Items.Add (TNAM[i+1]);
MainForm.RzCheckList1.Checked[i] := true;
MainForm.RzCheckList3.Items.Add (TNAM[i+1]);
MainForm.RzCheckList3.Checked[i] := true;
end;
end;
end.