Exemplo n.º 1
0
        private void simpleButton7_Click(object sender, EventArgs e)
        {
            FormForecastCalcTX fc = new FormForecastCalcTX();

            fc.DTable = dataTable;
            fc.ISEdit = true;
            if (!HaveSelectYear())
            {
                MessageBox.Show("请选设置好年份再选择参数!");
            }
            fc.firstyear        = Convert.ToInt32(comboBox1.SelectedItem.ToString().Replace("年", ""));
            fc.endyear          = Convert.ToInt32(comboBox4.SelectedItem.ToString().Replace("年", ""));
            fc.PForecastReports = forecastReport;
            if (fc.ShowDialog() != DialogResult.OK)
            {
                return;
            }
        }
Exemplo n.º 2
0
 private void simpleButton7_Click(object sender, EventArgs e)
 {
     FormForecastCalcTX fc = new FormForecastCalcTX();
     fc.DTable = dataTable;
     fc.ISEdit = true;
     if (!HaveSelectYear())
     {
         MessageBox.Show("请选设置好年份再选择参数!");
     }
     fc.firstyear = Convert.ToInt32(comboBox1.SelectedItem.ToString().Replace("年", ""));
     fc.endyear = Convert.ToInt32(comboBox4.SelectedItem.ToString().Replace("年", ""));
     fc.PForecastReports = forecastReport;
     if (fc.ShowDialog() != DialogResult.OK)
         return;
 }