コード例 #1
0
 /// <summary>
 /// Display period of the current AutomaticSourcingColumn
 /// </summary>
 /// <param name="automaticSourcingColumn"></param>
 private void DisplayPeriod(AutomaticSourcingColumn automaticSourcingColumn)
 {
     HideControls(PeriodGrid, false);
     TypeComboBox.SelectedItem        = Kernel.Application.ParameterType.PERIOD.ToString();
     PeriodNameTextBox.Text           = automaticSourcingColumn.periodName;
     FormatComboBox.SelectionChanged -= OnFormatDateChanged;
     FormatComboBox.SelectedItem      = automaticSourcingColumn.dateFormat;
     primaryCheckbox.IsChecked        = automaticSourcingColumn.primary;
 }
コード例 #2
0
        /// <summary>
        /// Display the columnTargetItems of the current target.
        /// </summary>
        /// <param name="automaticSourcingColumn"></param>
        private void DisplayTargetColumnItems(AutomaticSourcingColumn automaticSourcingColumn, List <object> liste)
        {
            if (automaticSourcingColumn.columnTargetItemListChangeHandler == null)
            {
                automaticSourcingColumn.columnTargetItemListChangeHandler = new PersistentListChangeHandler <ColumnTargetItem>();
            }

            if (liste == null)
            {
                liste = new List <object>(0);
            }
            newTargetElement.columnsItemsPanel.DisplayAutomaticSourcingColumn(liste, automaticSourcingColumn);
        }
コード例 #3
0
 /// <summary>
 /// Display TagName of the current AutomaticSourcingColumn
 /// </summary>
 /// <param name="automaticSourcingColumn"></param>
 private void DisplayTagName(AutomaticSourcingColumn automaticSourcingColumn)
 {
     if (automaticSourcingColumn.tagName != null)
     {
         HideControls(TagGrid, false);
         TypeComboBox.SelectedItem             = Kernel.Application.ParameterType.TAG.ToString();
         TagNameTextBox.Text                   = this.AutomaticSourcingColumn.tagName;
         automaticSourcingColumn.parameterType = ParameterType.TAG;
     }
     else
     {
         TypeComboBox.SelectedItem = "";
     }
 }
コード例 #4
0
 /// <summary>
 /// Display scope of the current AutomaticSourcingColumn
 /// </summary>
 /// <param name="automaticSourcingColumn"></param>
 private void DisplayScope(AutomaticSourcingColumn automaticSourcingColumn)
 {
     if (this.AutomaticSourcingColumn.attribute != null)
     {
         HideControls(ScopeGrid, false);
         TypeComboBox.SelectedItem             = Kernel.Application.ParameterType.SCOPE.ToString();
         AttributeTextBox.Text                 = automaticSourcingColumn.attribute.name;
         automaticSourcingColumn.parameterType = ParameterType.SCOPE;
     }
     else
     {
         TypeComboBox.SelectedItem = "";
     }
 }
コード例 #5
0
 /// <summary>
 /// Display measure of the current AutomaticSourcingColumn
 /// </summary>
 /// <param name="automaticSourcingColumn"></param>
 private void DisplayMeasure(AutomaticSourcingColumn automaticSourcingColumn)
 {
     HideControls(MeasureGrid, false);
     TypeComboBox.SelectedItem = Kernel.Application.ParameterType.MEASURE.ToString();
     if (automaticSourcingColumn.measure != null)
     {
         MeasureTextBox.Text = automaticSourcingColumn.measure.name;
         allocationPanel.DisplayAllocationData(automaticSourcingColumn.allocationData);
         automaticSourcingColumn.parameterType = ParameterType.MEASURE;
     }
     else
     {
         TypeComboBox.SelectedItem = "";
     }
 }
コード例 #6
0
        /// <summary>
        /// Display properties of the current AutomaticSourcingColumn
        /// in Ui.
        /// </summary>
        /// <param name="automaticSourcingColumn"></param>
        public void Display(AutomaticSourcingColumn automaticSourcingColumn, List <AutomaticSourcingColumn> liste)
        {
            throwChange = false;
            this.AutomaticSourcingColumn      = automaticSourcingColumn;
            this.ListeAutomaticSourcingColumn = liste;
            HideControls();

            if (this.AutomaticSourcingColumn != null)
            {
                this.primaryCheckbox.IsChecked = this.AutomaticSourcingColumn.primary;
                this.DefaultValuePanel.Display(this.AutomaticSourcingColumn.defaultValue);
                this.ExcludedValuePanel.Display(this.AutomaticSourcingColumn);
                string columnType = TypeComboBox.SelectedItem.ToString();

                if (columnType != "" || this.AutomaticSourcingColumn.parameterType.ToString() != "")
                {
                    //HideControls();
                    if (this.AutomaticSourcingColumn.parameterType.ToString() != "")
                    {
                        if (this.AutomaticSourcingColumn.parameterType.ToString() == Kernel.Application.ParameterType.MEASURE.ToString())
                        {
                            DisplayMeasure(this.AutomaticSourcingColumn);
                        }
                        else if (this.AutomaticSourcingColumn.parameterType.ToString() == Kernel.Application.ParameterType.PERIOD.ToString())
                        {
                            DisplayPeriod(this.AutomaticSourcingColumn);
                        }
                        else if (this.AutomaticSourcingColumn.parameterType.ToString() == Kernel.Application.ParameterType.TARGET.ToString())
                        {
                            DisplayTarget(this.AutomaticSourcingColumn);
                        }
                        else if (this.AutomaticSourcingColumn.parameterType.ToString() == Kernel.Application.ParameterType.SCOPE.ToString())
                        {
                            DisplayScope(this.AutomaticSourcingColumn);
                        }
                        else if (this.AutomaticSourcingColumn.parameterType.ToString() == Kernel.Application.ParameterType.TAG.ToString())
                        {
                            DisplayTagName(this.AutomaticSourcingColumn);
                        }
                    }
                }
            }
            throwChange = true;
        }
コード例 #7
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="table"></param>
        public void Display(AutomaticSourcingColumn column)
        {
            this.Column = column;
            this.panel.Children.Clear();
            int position = 1;

            if (column == null)
            {
                this.ActiveItemPanel = new ColumItemPanel(position);
                AddItemPanel(this.ActiveItemPanel);
                return;
            }
            foreach (AutomaticSourcingColumnItem item in column.excludedItemListChangeHandler.Items)
            {
                ColumItemPanel itemPanel = new ColumItemPanel(item);
                AddItemPanel(itemPanel);
                position++;
            }
            this.ActiveItemPanel = new ColumItemPanel(position);
            AddItemPanel(this.ActiveItemPanel);
        }
コード例 #8
0
        /// <summary>
        /// Add the visual component that represent a ColumnTargetItem.
        /// </summary>
        /// <param name="automaticSourcingColumn"></param>
        private void AddColumnsTarget(AutomaticSourcingColumn automaticSourcingColumn)
        {
            throwChange = false;

            if (automaticSourcingColumn.targetType == TargetType.CREATE)
            {
                if (automaticSourcingColumn.columnTargetItemListChangeHandler != null)
                {
                    if (filterList == null)
                    {
                        filterList = new List <object>(0);
                    }
                    this.newTargetElement.columnsItemsPanel.AddItemPanel(automaticSourcingColumn.columnTargetItemListChangeHandler, filterList.Distinct().ToList());
                }
                else
                {
                    HideControls(NewTargetGrid, false);
                }
            }
            throwChange = true;
        }
コード例 #9
0
        /// <summary>
        /// Display target presentation when the type is Target
        /// </summary>
        /// <param name="automaticSourcingColumn"></param>
        private void DisplayTarget(AutomaticSourcingColumn automaticSourcingColumn)
        {
            HideControls(TargetGrid, false);
            TypeComboBox.SelectedItem = Kernel.Application.ParameterType.TARGET.ToString();

            if (automaticSourcingColumn.targetType != null)
            {
                if (automaticSourcingColumn.targetType == Kernel.Application.TargetType.CREATE)
                {
                    TargetTypeComboBox.SelectedItem = Kernel.Application.TargetType.CREATE.ToString();
                    AddColumnsTarget(automaticSourcingColumn);
                }
                else if (automaticSourcingColumn.targetType == Kernel.Application.TargetType.USE_AS_SCOPE)
                {
                    TargetTypeComboBox.SelectedItem = Kernel.Application.TargetType.USE_AS_SCOPE.ToString();
                }
                else
                {
                    TargetTypeComboBox.SelectedItem = "";
                }
            }
        }
コード例 #10
0
 public void displayColumn(AutomaticSourcingColumn column, List <AutomaticSourcingColumn> liste)
 {
     this.AutomaticSourcingPanel.DisplayColumn(column, liste);
 }
コード例 #11
0
 public void DisplayColumn(AutomaticSourcingColumn col, List <AutomaticSourcingColumn> liste)
 {
     this.ColumnPanel.Display(col, liste);
 }
コード例 #12
0
        public void DisplayAutomaticSourcingColumn(List <object> listeAutomaticSourcingColumn, AutomaticSourcingColumn automaticSourcingColumn)
        {
            this.panel.Children.Clear();
            int index = 1;

            if (listeAutomaticSourcingColumn != null && listeAutomaticSourcingColumn.Count > 0)
            {
                this.ActiveColumnsItems = new ColumnsItems(index, isAutomaticTarget);
                AddItemPanel(this.ActiveColumnsItems, listeAutomaticSourcingColumn);
                return;
            }
        }