-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuMainForm.pas
More file actions
85 lines (74 loc) · 2.67 KB
/
uMainForm.pas
File metadata and controls
85 lines (74 loc) · 2.67 KB
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
77
78
79
80
81
82
83
84
85
unit uMainForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxClasses, dxReport, cxGraphics,
cxLookAndFeels, cxLookAndFeelPainters, Vcl.Menus, cxButtons,
dxBackend, cxControls, cxStyles, cxCustomData, cxFilter, cxData,
cxDataStorage, cxEdit, cxNavigator, dxDateRanges, dxScrollbarAnnotations,
Data.DB, cxDBData, cxGridLevel, cxGridCustomView, cxGridCustomTableView,
cxGridTableView, cxGridDBTableView, cxGrid, FireDAC.Comp.DataSet,
FireDAC.Comp.Client, dxBackend.ConnectionString.JSON.DataSet,
dxBackend.ConnectionString.JSON, Vcl.StdCtrls, dxmdaset, uData, cxContainer,
cxLabel;
type
TMainForm = class(TForm)
dxReport1: TdxReport;
dxBackendDataConnectionManager1: TdxBackendDataConnectionManager;
btnShowDesigner: TcxButton;
btnViewReport: TcxButton;
dxBackendDataConnectionManager1dxBackendDataSetJSONConnection1: TdxBackendDataSetJSONConnection;
itmProducts: TdxBackendDataSetCollectionItem;
itmCategories: TdxBackendDataSetCollectionItem;
cxGrid1: TcxGrid;
gvCategories: TcxGridDBTableView;
gvCategoriesCategoryID: TcxGridDBColumn;
gvCategoriesCategoryName: TcxGridDBColumn;
gvCategoriesDescription: TcxGridDBColumn;
gvProducts: TcxGridDBTableView;
gvProductsProductID: TcxGridDBColumn;
gvProductsProductName: TcxGridDBColumn;
gvProductsSupplierID: TcxGridDBColumn;
gvProductsCategoryID: TcxGridDBColumn;
gvProductsQuantityPerUnit: TcxGridDBColumn;
gvProductsUnitPrice: TcxGridDBColumn;
gvProductsUnitsInStock: TcxGridDBColumn;
gvProductsUnitsOnOrder: TcxGridDBColumn;
gvProductsReorderLevel: TcxGridDBColumn;
gvProductsDiscontinued: TcxGridDBColumn;
gvProductsEAN13: TcxGridDBColumn;
cxGrid1Level1: TcxGridLevel;
cxGrid1Level2: TcxGridLevel;
btnSetLanguageUS: TcxButton;
btnSetLanguageDE: TcxButton;
lblSelectLanguage: TcxLabel;
procedure btnShowDesignerClick(Sender: TObject);
procedure btnViewReportClick(Sender: TObject);
procedure btnSetLanguageUSClick(Sender: TObject);
procedure btnSetLanguageDEClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
MainForm: TMainForm;
implementation
{$R *.dfm}
procedure TMainForm.btnSetLanguageDEClick(Sender: TObject);
begin
dxReport1.Language := 'de-DE'
end;
procedure TMainForm.btnSetLanguageUSClick(Sender: TObject);
begin
dxReport1.Language := 'en-US'
end;
procedure TMainForm.btnShowDesignerClick(Sender: TObject);
begin
dxReport1.ShowDesigner;
end;
procedure TMainForm.btnViewReportClick(Sender: TObject);
begin
dxReport1.ShowViewer;
end;
end.