-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathufrmInvcUsrFieldTendEntered.pas
93 lines (73 loc) · 2.08 KB
/
ufrmInvcUsrFieldTendEntered.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
85
86
87
88
89
90
91
92
unit ufrmInvcUsrFieldTendEntered;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, StdCtrls, Buttons,
{$IFDEF UseCodeSite} CodeSiteLogging, {$ENDIF}
RDA2_TLB;
type
TfrmUserFieldsTenderEntered = class(TForm)
BitBtn1: TBitBtn;
tmrCountdown: TTimer;
lbFields: TListBox;
lblSID: TLabel;
lblRecNum: TLabel;
procedure FormShow(Sender: TObject);
procedure BitBtn1Click(Sender: TObject);
procedure tmrCountdownTimer(Sender: TObject);
private
{ Private declarations }
public
class procedure ShowFields(RdaDoc: IRdaDocument);
end;
implementation
{$R *.DFM}
class procedure TfrmUserFieldsTenderEntered.ShowFields(RdaDoc: IRdaDocument);
var
i: Integer;
s: string;
IsNull: WordBool;
UserFieldList: TStringList;
begin
{$IFDEF UseCodeSite}CodeSite.EnterMethod('TfrmUserFieldsTenderEntered.ShowFields');{$ENDIF}
with TfrmUserFieldsTenderEntered.Create(nil) do
try
UserFieldList := TStringList.Create;
try
for i := 0 to 9 do begin
s := RdaDoc.GetString(fidInvcUsr0 + i, IsNull);
if IsNull then
Break;
UserFieldList.Add(IntToStr(i) + ': ' + s);
end;
lbFields.Items := UserFieldList;
finally
UserFieldList.Free;
end;
lblSID.Caption := IntToStr(RdaDoc.GetInt64(fidDocSID, IsNull));
lblRecNum.Caption := IntToStr(RdaDoc.GetInteger(fidInvcNum, IsNull));
Show;
repeat
Application.ProcessMessages;
until not Visible;
finally
Free;
end;
{$IFDEF UseCodeSite}CodeSite.ExitMethod('TfrmUserFieldsTenderEntered.ShowFields');{$ENDIF}
end;
procedure TfrmUserFieldsTenderEntered.FormShow(Sender: TObject);
begin
{$IFDEF UseCodeSite}CodeSite.EnterMethod(Self, 'FormShow');{$ENDIF}
Top := 300;
Left := 100;
{$IFDEF UseCodeSite}CodeSite.ExitMethod(Self, 'FormShow');{$ENDIF}
end;
procedure TfrmUserFieldsTenderEntered.BitBtn1Click(Sender: TObject);
begin
Close;
end;
procedure TfrmUserFieldsTenderEntered.tmrCountdownTimer(Sender: TObject);
begin
Close;
end;
end.