private void Initialize() { nfi2 = new NumberFormatInfo() { NumberGroupSeparator = " ", NumberDecimalSeparator = ",", NumberDecimalDigits = 1 }; MarketingBatchReport = new BatchExcelReport(); ExpeditionStatistics = new MarketingExpeditionStatistics( ref MFSummaryDG, ref MDSummaryDG, ref ExpFrontsDataGrid, ref ExpDecorProductsDataGrid, ref ExpDecorItemsDataGrid); }
private void Initialize() { nfi2 = new NumberFormatInfo() { NumberGroupSeparator = " ", NumberDecimalSeparator = ",", NumberDecimalDigits = 1 }; StorageStatistics = new ZOVStorageStatistics( ref PrepareFSummaryDG, ref PrepareCurvedFSummaryDG, ref PrepareDSummaryDG, ref ExpFrontsDataGrid, ref ExpCurvedFrontsDataGrid, ref ExpDecorProductsDataGrid, ref ExpDecorItemsDataGrid); MarketingBatchReport = new BatchExcelReport(); }
private void Initialize() { nfi2 = new NumberFormatInfo() { NumberGroupSeparator = " ", NumberDecimalSeparator = ",", NumberDecimalDigits = 1 }; MarketingBatchReport = new BatchExcelReport(); ConditionOrdersStatistics = new ConditionOrdersStatistics(); ConditionGroupsDG.DataSource = ConditionOrdersStatistics.ClientGroupsBS; ConditionOrdersGrids1(); ConditionOrdersGrids2(); ConditionOrdersGrids3(); CurrentWeekNumber = GetWeekNumber(DateTime.Now); DateTime LastDay = new System.DateTime(DateTime.Now.Year, 12, 31); ArrayList Years = new ArrayList(); for (int i = 2013; i <= LastDay.Year; i++) { Years.Add(i); } cbxYears.DataSource = Years.ToArray(); cbxYears.SelectedIndex = cbxYears.Items.Count - 1; DateTime Monday = GetMonday(CurrentWeekNumber); DateTime Wednesday = GetWednesday(CurrentWeekNumber); DateTime Friday = GetFriday(CurrentWeekNumber); int WeeksCount = GetWeekNumber(LastDay); for (int i = 1; i <= WeeksCount; i++) { WeeksOfYearListBox.Items.Add(i); } WeeksOfYearListBox.SelectedIndex = CurrentWeekNumber - 1; FMondayLabel.Text = CurrentWeekNumber + " неделя\r\n" + "Понедельник " + Monday.ToString("dd.MM.yyyy HH:mm"); FWednesdayLabel.Text = CurrentWeekNumber + " неделя\r\n" + "Среда " + Wednesday.ToString("dd.MM.yyyy HH:mm"); FFridayLabel.Text = CurrentWeekNumber + " неделя\r\n" + "Пятница " + Friday.ToString("dd.MM.yyyy HH:mm"); DMondayLabel.Text = CurrentWeekNumber + " неделя\r\n" + "Понедельник " + Monday.ToString("dd.MM.yyyy HH:mm"); DWednesdayLabel.Text = CurrentWeekNumber + " неделя\r\n" + "Среда " + Wednesday.ToString("dd.MM.yyyy HH:mm"); DFridayLabel.Text = CurrentWeekNumber + " неделя\r\n" + "Пятница " + Friday.ToString("dd.MM.yyyy HH:mm"); }
private void Initialize() { nfi2 = new NumberFormatInfo() { NumberGroupSeparator = " ", NumberDecimalSeparator = ",", NumberDecimalDigits = 1 }; MarketingBatchReport = new BatchExcelReport(); StorageStatistics = new MarketingStorageStatistics( ref MFSummaryDG, ref MDSummaryDG, ref ExpFrontsDataGrid, ref ExpDecorProductsDataGrid, ref ExpDecorItemsDataGrid); dgvClientsGroups.DataSource = StorageStatistics.ClientGroupsBS; dgvClientsGroups.Columns["ClientGroupID"].Visible = false; dgvClientsGroups.Columns["Check"].AutoSizeMode = DataGridViewAutoSizeColumnMode.None; dgvClientsGroups.Columns["Check"].Width = 50; dgvClientsGroups.Columns["ClientGroupName"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; dgvClientsGroups.Columns["ClientGroupName"].MinimumWidth = 110; dgvClientsGroups.Columns["Check"].DisplayIndex = 0; dgvClientsGroups.Columns["ClientGroupName"].DisplayIndex = 1; dgvClientsGroups.Columns["ClientGroupName"].ReadOnly = true; }