Ejemplo n.º 1
0
        private void ShowMeDistributionReport()
        {
            ClearWorkSpace();
            tbTotalSum.Text = "";
            WindowMode      = (int)Mods.Distribution;
            cbProjectName.Items.Clear();
            cbProjectName.FontSize           = 16;
            dgReportDistribution.ItemsSource = null;
            //Отображение
            cStartDate.Visibility           = Visibility.Visible;
            cFinishDate.Visibility          = Visibility.Visible;
            dgReportDistribution.Visibility = Visibility.Visible;
            gDistributionSum.Visibility     = Visibility.Visible;
            //tbAlltime.Visibility = Visibility.Visible;
            cbAlltime.Visibility     = Visibility.Visible;
            cbProjectName.Visibility = Visibility.Visible;
            //OldSize = new Size(this.Width, this.Height);
            //this.MinWidth = 535;
            //this.Width = 535;
            //this.MinHeight = 435;
            //this.Height = 435;
            //комбобокс с именами акционеров
            lst.Clear();
            lst = DataWork.GetDistributionNamesForReport(ActiveUser.UserID);
            cbProjectName.Items.Add("Введите акционера");
            foreach (ComboBoxItem cbi in lst)
            {
                if ((!cbProjectName.Items.Contains(cbi.Content)) && (cbi.Content != ""))
                {
                    cbProjectName.Items.Add(cbi.Content);
                }
            }

            cbProjectName.SelectedIndex = 0;
        }