-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathUsers.pas
76 lines (63 loc) · 1.67 KB
/
Users.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
unit Users;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.ToolWin, Vcl.ExtCtrls,
Vcl.Grids, Vcl.DBGrids, Vcl.StdCtrls, Vcl.Buttons, Vcl.Mask, Vcl.DBCtrls,
Vcl.CheckLst;
type
TUsersForm = class(TForm)
Panel1: TPanel;
Panel2: TPanel;
ToolBar1: TToolBar;
ToolButton1: TToolButton;
ToolButton2: TToolButton;
DBGrid1: TDBGrid;
Label1: TLabel;
Label2: TLabel;
GroupBox1: TGroupBox;
ComboBox1: TComboBox;
Label3: TLabel;
SpeedButton1: TSpeedButton;
Edit1: TEdit;
DBEdit1: TDBEdit;
CheckListBox1: TCheckListBox;
BitBtn1: TBitBtn;
procedure ToolButton1Click(Sender: TObject);
procedure ToolButton2Click(Sender: TObject);
procedure ComboBox1Select(Sender: TObject);
procedure CheckBox1Click(Sender: TObject);
procedure CheckListBox1ClickCheck(Sender: TObject);
private
{ Private declarations }
public
st_changed : boolean;
otv_id : integer;
{ Public declarations }
end;
var
UsersForm: TUsersForm;
implementation
Uses Main, Data;
{$R *.dfm}
procedure TUsersForm.CheckBox1Click(Sender: TObject);
begin
st_changed:=true;
end;
procedure TUsersForm.CheckListBox1ClickCheck(Sender: TObject);
begin
st_changed:=true;
end;
procedure TUsersForm.ComboBox1Select(Sender: TObject);
begin
st_changed:=true;
end;
procedure TUsersForm.ToolButton1Click(Sender: TObject);
begin
DM.GrantUserRights;
end;
procedure TUsersForm.ToolButton2Click(Sender: TObject);
begin
DM.RevokeUserRights;
end;
end.