Example #1
0
 public void Update(Analysis analysis)
 {
     if (analysis != null && !PivotGridSettingsHelper.HasPivotGridSettings(analysis))
     {
         IAnalysisControl control = CreateAnalysisControl();
         control.DataSource = new AnalysisDataSource(analysis, objectSpace.GetObjects(typeof(DemoTask)));
         control.Fields["Priority"].Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea;
         control.Fields["Subject"].Area  = DevExpress.XtraPivotGrid.PivotArea.DataArea;
         control.Fields["AssignedTo.DisplayName"].Area = DevExpress.XtraPivotGrid.PivotArea.RowArea;
         PivotGridSettingsHelper.SavePivotGridSettings(CreatePivotGridSettingsStore(control), analysis);
     }
 }
Example #2
0
 public void Update(Analysis analysis)
 {
     if (analysis != null && !PivotGridSettingsHelper.HasPivotGridSettings(analysis))
     {
         IAnalysisControl control = CreateAnalysisControl();
         control.DataSource = new AnalysisDataSource(analysis, new XPCollection <crmPaymentPlan>(analysis.Session));
         //Customize the settings of the control's fields (their caption, etc.) as required
         control.Fields["Priority"].Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea;
         control.Fields["Subject"].Area  = DevExpress.XtraPivotGrid.PivotArea.DataArea;
         control.Fields["AssignedTo.DisplayName"].Area = DevExpress.XtraPivotGrid.PivotArea.RowArea;
         PivotGridSettingsHelper.SavePivotGridSettings(CreatePivotGridSettingsStore(control), analysis);
         analysis.Save();
     }
 }
Example #3
0
 public void Update(Analysis analysis)
 {
     if (analysis != null && !PivotGridSettingsHelper.HasPivotGridSettings(analysis))
     {
         IAnalysisControl control = CreateAnalysisControl();
         control.DataSource                            = new AnalysisDataSource(analysis, new XPCollection <DemoTask>(analysis.Session));
         control.Fields["Status"].Area                 = DevExpress.XtraPivotGrid.PivotArea.ColumnArea;
         control.Fields["Priority"].Area               = DevExpress.XtraPivotGrid.PivotArea.ColumnArea;
         control.Fields["EstimatedWork"].Area          = DevExpress.XtraPivotGrid.PivotArea.DataArea;
         control.Fields["ActualWork"].Area             = DevExpress.XtraPivotGrid.PivotArea.DataArea;
         control.Fields["AssignedTo.DisplayName"].Area = DevExpress.XtraPivotGrid.PivotArea.RowArea;
         PivotGridSettingsHelper.SavePivotGridSettings(CreatePivotGridSettingsStore(control), analysis);
     }
 }