protected override void OnBeforeCreateDocument(DashboardInteractionController interactionController, DashboardReportViewItem dashboardReportViewItem, ListViewFilteringArgs listViewFilteringArgs)
        {
            base.OnBeforeCreateDocument(interactionController, dashboardReportViewItem, listViewFilteringArgs);
            var reportDataTypeMember = ((IModelDashboardViewFilterReport)((IModelDashboardViewItemEx)dashboardReportViewItem.Model).Filter).ReportDataTypeMember;
            var report       = (XafReport)dashboardReportViewItem.Report;
            var propertyName = PropertyName(report, reportDataTypeMember);
            var criteria     = new InOperator(propertyName, interactionController.Getkeys(listViewFilteringArgs.DataSourceListView));

            report.SetFilteringObject(new LocalizedCriteriaWrapper(report.DataType, criteria));
        }
예제 #2
0
        protected override void OnBeforeCreateDocument(DashboardInteractionController interactionController, DashboardReportViewItem dashboardReportViewItem, ListViewFilteringArgs listViewFilteringArgs)
        {
            base.OnBeforeCreateDocument(interactionController, dashboardReportViewItem, listViewFilteringArgs);
            var objectTypeInfo       = Application.TypesInfo.FindTypeInfo(((IReportDataV2)dashboardReportViewItem.ReportData).DataType);
            var reportDataTypeMember = GetReportDataTypeMember(((IModelDashboardViewItemEx)dashboardReportViewItem.Model), objectTypeInfo);
            var report   = dashboardReportViewItem.Report;
            var criteria = new InOperator(reportDataTypeMember, interactionController.Getkeys(listViewFilteringArgs.DataSourceListView));

            report.FilterString = new LocalizedCriteriaWrapper(objectTypeInfo.Type, criteria).CriteriaOperator.ToString();
            report.CreateDocument(false);
        }
 protected virtual void OnBeforeCreateDocument(DashboardInteractionController interactionController, DashboardReportViewItem dashboardReportViewItem, ListViewFilteringArgs listViewFilteringArgs)
 {
 }