-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDlgUser.pas
76 lines (61 loc) · 2.2 KB
/
DlgUser.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
{===============================================================================
Program ID : DlgUser.pas
Program Name : 다이얼로그 단일 IP 다중 User 선택
Program Desc. : 동일 IP를 공유하는 다중 User (예: OP 선생님..)인 경우,
세부 담당자를 선택할 수 있도록 도와줌.
Author : Lee, Se-Ha
Date : 2013.08.29
===============================================================================}
unit DlgUser;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Grids, BaseGrid, AdvGrid, StdCtrls, Variants, AdvObj;
type
TSelUser = class(TForm)
asg_UserList: TAdvStringGrid;
lb_UserCnt: TLabel;
procedure asg_UserListDblClick(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure asg_UserListGetAlignment(Sender: TObject; ARow,
ACol: Integer; var HAlign: TAlignment; var VAlign: TVAlignment);
private
{ Private declarations }
public
{ Public declarations }
end;
var
SelUser: TSelUser;
implementation
uses
MainDialog;
{$R *.DFM}
procedure TSelUser.asg_UserListDblClick(Sender: TObject);
begin
//-----------------------------------------------------------
// 선택한 사용자 정보를 MainDlg로 CallBack 처리
//-----------------------------------------------------------
MainDlg.GetMultiUser(asg_UserList.Cells[0, asg_UserList.Row],
asg_UserList.Cells[2, asg_UserList.Row],
asg_UserList.Cells[3, asg_UserList.Row],
asg_UserList.Cells[4, asg_UserList.Row],
asg_UserList.Cells[5, asg_UserList.Row],
asg_UserList.Cells[6, asg_UserList.Row],
asg_UserList.Cells[7, asg_UserList.Row]
);
// 선택화면 종료.
Close;
end;
procedure TSelUser.FormDestroy(Sender: TObject);
begin
SelUser := nil;
end;
procedure TSelUser.asg_UserListGetAlignment(Sender: TObject; ARow,
ACol: Integer; var HAlign: TAlignment; var VAlign: TVAlignment);
begin
// Horizontal Alignment
HAlign := taCenter;
// Vertical Alignment
VAlign := vtaCenter;
end;
end.