Last change
on this file since 737 was 453, checked in by Kevin Toppenberg, 16 years ago |
Initial upload of TMG-CPRS 1.0.26.69
|
File size:
1.2 KB
|
Line | |
---|
1 | //kt -- Modified with SourceScanner on 8/8/2007
|
---|
2 | unit fOCAccept;
|
---|
3 |
|
---|
4 | interface
|
---|
5 |
|
---|
6 | uses
|
---|
7 | Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
|
---|
8 | fAutoSz, StdCtrls, ComCtrls, ORFn, ExtCtrls, DKLang;
|
---|
9 |
|
---|
10 | type
|
---|
11 | TfrmOCAccept = class(TfrmAutoSz)
|
---|
12 | memChecks: TRichEdit;
|
---|
13 | pnlBottom: TPanel;
|
---|
14 | cmdAccept: TButton;
|
---|
15 | cmdCancel: TButton;
|
---|
16 | private
|
---|
17 | { Private declarations }
|
---|
18 | public
|
---|
19 | { Public declarations }
|
---|
20 | end;
|
---|
21 |
|
---|
22 | function AcceptOrderWithChecks(OCList: TStringList): Boolean;
|
---|
23 |
|
---|
24 | implementation
|
---|
25 |
|
---|
26 | {$R *.DFM}
|
---|
27 |
|
---|
28 | function AcceptOrderWithChecks(OCList: TStringList): Boolean;
|
---|
29 | var
|
---|
30 | i: Integer;
|
---|
31 | frmOCAccept: TfrmOCAccept;
|
---|
32 | begin
|
---|
33 | Result := True;
|
---|
34 | if OCList.Count > 0 then
|
---|
35 | begin
|
---|
36 | frmOCAccept := TfrmOCAccept.Create(Application);
|
---|
37 | try
|
---|
38 | ResizeFormToFont(TForm(frmOCAccept));
|
---|
39 | for i := 0 to OCList.Count - 1 do
|
---|
40 | begin
|
---|
41 | frmOCAccept.memChecks.Lines.Add(Piece(OCList[i], U, 4));
|
---|
42 | frmOCAccept.memChecks.Lines.Add('');
|
---|
43 | end;
|
---|
44 | frmOCAccept.memChecks.SelStart := 0;
|
---|
45 | frmOCAccept.memChecks.SelLength := 0;
|
---|
46 | Result := frmOCAccept.ShowModal = mrYes;
|
---|
47 | finally
|
---|
48 | frmOCAccept.Release;
|
---|
49 | end;
|
---|
50 | end;
|
---|
51 | end;
|
---|
52 |
|
---|
53 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.