示例#1
0
        private void CS()
        {
            //if (firstyear == "0" && endyear == "0")
            //{
            //    MsgBox.Show("请设置历史数据起始年结束年后再点参数设置");
            //    return;
            //}


            FormForecastCalc10 fc = new FormForecastCalc10();

            fc.DTable           = dataTable;
            fc.ISEdit           = EditRight;
            fc.PForecastReports = forecastReport;
            if (fc.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            ha = fc.Ha;
            if (ha != null && ha.Count < 1)
            {
                simpleButton2.Enabled = false;
            }
            else
            {
                simpleButton2.Enabled = true;
            }
            JS();
        }
示例#2
0
        private void CS()
        {
            //if (firstyear == "0" && endyear == "0")
            //{
            //    MsgBox.Show("��������ʷ������ʼ���������ٵ��������");
            //    return;
            //}

            FormForecastCalc10 fc = new FormForecastCalc10();
            fc.DTable = dataTable;
            fc.ISEdit = EditRight;
            fc.PForecastReports = forecastReport;
            if (fc.ShowDialog() != DialogResult.OK)
                return;
            ha = fc.Ha;
            if (ha!=null&&ha.Count < 1)
            {
                simpleButton2.Enabled = false;

            }
            else
            {
                simpleButton2.Enabled = true;
            }
            JS();
        }