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