/// <summary> /// /// </summary> public override void InitializeGroups() { base.InitializeGroups(); this.InputTableGroup = new InputTableGroup("Input Tables", true); this.EntityGroup = new ModelSidebarGroup(); this.TargetGroup = new TargetGroup("Targets", true); this.MeasureGroup = new MeasureSidebarGroup(); this.PeriodGroup = new PeriodSidebarGroup(); this.DesignerGroup = new DesignerGroup("Designs", true); this.CustomizedTargetGroup = new CustomizedTargetGroup("Customized Targets", true); this.TreeLoopGroup = new TreeLoopGroup("Loops", true); this.CustomizedTargetGroup.Background = System.Windows.Media.Brushes.LightBlue; this.CustomizedTargetGroup.BorderBrush = System.Windows.Media.Brushes.LightBlue; this.InputTableGroup.Background = System.Windows.Media.Brushes.LightBlue; this.TargetGroup.Background = System.Windows.Media.Brushes.LightBlue; this.DesignerGroup.Background = System.Windows.Media.Brushes.LightBlue; this.TreeLoopGroup.Background = System.Windows.Media.Brushes.LightBlue; this.InputTableGroup.BorderBrush = System.Windows.Media.Brushes.LightBlue; this.TargetGroup.BorderBrush = System.Windows.Media.Brushes.LightBlue; this.DesignerGroup.BorderBrush = System.Windows.Media.Brushes.LightBlue; this.TreeLoopGroup.BorderBrush = System.Windows.Media.Brushes.LightBlue; this.AddGroup(this.InputTableGroup); this.AddGroup(this.EntityGroup); this.AddGroup(this.CustomizedTargetGroup); //this.AddGroup(this.TargetGroup); this.AddGroup(this.MeasureGroup); this.AddGroup(this.PeriodGroup); this.AddGroup(this.DesignerGroup); }
protected void displayPage(ReportEditorController page) { if (page == null) { displaySideBar(null); displayView(null); displayPropertyBar(null); dockingManager.Visibility = Visibility.Collapsed; return; } displaySideBar(page.SideBar); displayView(page.View); displayPropertyBar(page.PropertyBar); if (page.SideBar != null) { TreeLoopGroup LoopGroup = ((ReportSideBar)page.SideBar).TreeLoopGroup; page.SideBar.RemoveGroup(page.SideBar.StatusGroup); page.SideBar.RemoveGroup(0); if (LoopGroup != null) { page.SideBar.AddGroup(LoopGroup, 0); } } dockingManager.Visibility = Visibility.Visible; }
public void initializeSideBarData(ObservableCollection <TransformationTreeItem> loops) { if (this.TransformationTableController != null) { TreeLoopGroup LoopGroup = ((TransformationTableSideBar)this.TransformationTableController.SideBar).TreeLoopGroup; if (LoopGroup != null) { LoopGroup.TransformationTreeLoopTreeview.fillTree(loops); } } }
public void initializeSideBarData(System.Collections.ObjectModel.ObservableCollection <TransformationTreeItem> loops) { if (this.PresentationEditorController != null) { this.PresentationEditorController.Loops = loops; TreeLoopGroup LoopGroup = ((PresentationSideBar)this.PresentationEditorController.SideBar).TreeLoopGroup; if (LoopGroup != null) { LoopGroup.TransformationTreeLoopTreeview.fillTree(loops); } } }
/// <summary> /// /// </summary> public override void InitializeGroups() { this.TreeLoopGroup = new TreeLoopGroup("Loops", true); this.EntityGroup = new ModelSidebarGroup(); this.TargetGroup = new TargetGroup("Targets", true); this.PeriodGroup = new PeriodSidebarGroup(); this.CustomizedTargetGroup = new CustomizedTargetGroup("Customized Target", true); this.CustomizedTargetGroup.Background = System.Windows.Media.Brushes.LightBlue; this.CustomizedTargetGroup.BorderBrush = System.Windows.Media.Brushes.LightBlue; this.TreeLoopGroup.Background = System.Windows.Media.Brushes.LightBlue; this.TargetGroup.Background = System.Windows.Media.Brushes.LightBlue; this.TreeLoopGroup.BorderBrush = System.Windows.Media.Brushes.LightBlue; this.TargetGroup.BorderBrush = System.Windows.Media.Brushes.LightBlue; this.AddGroup(this.TreeLoopGroup); this.AddGroup(this.EntityGroup); this.AddGroup(this.CustomizedTargetGroup); this.AddGroup(this.TargetGroup); this.AddGroup(this.PeriodGroup); }
/// <summary> /// /// </summary> public override void InitializeGroups() { base.InitializeGroups(); this.PresentationGroup = new PresentationGroup("Presentations", true); this.SpecialGroup = new SpecialGroup("Specials", true); this.MeasureGroup = new MeasureSidebarGroup(); this.PeriodNameGroup = new PeriodNameGroup("Period", true); this.DesignerGroup = new DesignerGroup("Designs", true); this.TreeLoopGroup = new TreeLoopGroup("Loops", true); this.PresentationGroup.Background = System.Windows.Media.Brushes.LightBlue; this.PeriodNameGroup.Background = System.Windows.Media.Brushes.LightBlue; this.DesignerGroup.Background = System.Windows.Media.Brushes.LightBlue; this.TreeLoopGroup.Background = System.Windows.Media.Brushes.LightBlue; this.PresentationGroup.BorderBrush = System.Windows.Media.Brushes.LightBlue; this.PeriodNameGroup.BorderBrush = System.Windows.Media.Brushes.LightBlue; this.DesignerGroup.BorderBrush = System.Windows.Media.Brushes.LightBlue; this.TreeLoopGroup.BorderBrush = System.Windows.Media.Brushes.LightBlue; CustomizeForPowerpoint(); }
public void displayReportView(int reportoid = 0, int treeOid = -1) { if (slideDialog == null) { return; } TreeActionDialog.IsActionReportView = false; slideDialog.IsReportView = true; PresentationEditorItem page = (PresentationEditorItem)getPresentationEditor().getActivePage(); if (page == null) { return; } NavigationToken token = NavigationToken.GetCreateViewToken(Reporting.Base.ReportingFunctionalitiesCode.REPORT_EDIT); if (reportoid > 0) { token = NavigationToken.GetModifyViewToken(Reporting.Base.ReportingFunctionalitiesCode.REPORT_EDIT, reportoid); } controllable = ApplicationManager.ControllerFactory.GetController(token.Functionality, token.ViewType, token.EditionMode); controllable.NavigationToken = token; controllable.Initialize(); ReportEditorController controller = (ReportEditorController)controllable; controller.getInputTableEditor().NewPageSelected -= controller.NewPageSelectedHandler; controller.getInputTableEditor().OnRemoveNewPage += OnRemoveNewReportPage; controller.listeTotalReport = BlockPanel.listeTotalReport; TreeLoopGroup LoopGroup = ((ReportSideBar)controller.SideBar).TreeLoopGroup; controller.SideBar.RemoveGroup(((ReportSideBar)controller.SideBar).StatusGroup); controller.SideBar.RemoveGroup(0); if (LoopGroup != null) { LoopGroup.TransformationTreeLoopTreeview.fillTree(this.Loops); controller.SideBar.AddGroup(LoopGroup, 0); } controller.CustomizeMenuForTree(slideDialog.dockingManager); slideDialog.displaySideBar(controller.SideBar); slideDialog.displayPropertyBar(controller.PropertyBar); slideDialog.displayView(controller.View); controller.treeOid = treeOid; if (reportoid > 0) { controller.Open(reportoid); if (slideDialog != null) { slideDialog.SaveButton.IsEnabled = false; } } else { controller.Create(); if (slideDialog != null) { slideDialog.SaveButton.IsEnabled = true; } } controller.ChangeEventListener += onChange; }