-
Notifications
You must be signed in to change notification settings - Fork 0
/
ParametersPanelReport.cs
36 lines (34 loc) · 1.41 KB
/
ParametersPanelReport.cs
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
using DevExpress.XtraReports.Parameters;
using DevExpress.XtraReports.UI;
namespace DXWebApplication1.PredefinedReports {
public partial class ParametersPanelReport : DevExpress.XtraReports.UI.XtraReport {
public ParametersPanelReport() {
InitializeComponent();
CustomizeParametersPanel(this);
}
private void CustomizeParametersPanel(XtraReport report) {
ParameterPanelFluentBuilder.Begin(report)
.ClearItems()
.AddGroupItem(g0 => g0
.WithTitle("Select dates")
.WithBorderVisible(true)
.AddParameterItem(report.Parameters["pOrderDates"], p0 => p0
.WithLabelOrientation(Orientation.Vertical)
)
)
.AddGroupItem(g1 => g1
.WithTitle("Select a customer")
.WithOrientation(Orientation.Horizontal)
.WithShowExpandButton(true)
.AddParameterItem(report.Parameters["pCustomer"], p1 => p1
.WithLabelOrientation(Orientation.Vertical))
.AddSeparatorItem()
.AddGroupItem(g2 => g2
.WithTitle("Customer order details")
.AddParameterItem(report.Parameters["pCountry"])
)
)
.End();
}
}
}