-
Notifications
You must be signed in to change notification settings - Fork 0
/
EditOrder.pas
60 lines (49 loc) · 1.33 KB
/
EditOrder.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
unit EditOrder;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.DBCtrls, Vcl.ComCtrls,
Vcl.ToolWin, DBDateTimePicker, Vcl.StdCtrls, Vcl.Mask;
type
TFormEditOrder = class(TForm)
DBNavigator1: TDBNavigator;
ToolBar1: TToolBar;
ToolButton1: TToolButton;
ToolButton3: TToolButton;
GridPanel1: TGridPanel;
Label1: TLabel;
DBEdit1: TDBEdit;
DBEdit2: TDBEdit;
Label4: TLabel;
DBDateTimePicker1: TDBDateTimePicker;
Label2: TLabel;
LeftPanel: TPanel;
RightPanel: TPanel;
procedure ToolButton1Click(Sender: TObject);
procedure ToolButton3Click(Sender: TObject);
procedure FormKeyPress(Sender: TObject; var Key: Char);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FormEditOrder: TFormEditOrder;
implementation
{$R *.dfm}
uses DM, OrderAdd;
procedure TFormEditOrder.FormKeyPress(Sender: TObject; var Key: Char);
begin
if (Key = #27) then
Close;
end;
procedure TFormEditOrder.ToolButton1Click(Sender: TObject);
begin
FormOrderAdd.ShowModal;
end;
procedure TFormEditOrder.ToolButton3Click(Sender: TObject);
begin
if Application.MessageBox('Óäàëèòü?','',MB_YESNO)=IDYES then
DMl.ADOStoredProcGetOrder.Delete;
end;
end.