source: cprs/branches/foia-cprs/CPRS-Chart/Orders/fOCAccept.pas@ 459

Last change on this file since 459 was 459, checked in by Kevin Toppenberg, 16 years ago

Adding foia-cprs branch

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