Exemplo n.º 1
0
        private void ShowModel(int id,Ps_forecast_list report)
        {
            switch (id)
            {
                case 1:
                    FormAverageGrowthRateSH FMA1 = new FormAverageGrowthRateSH(report);
                    FMA1.CanEdit = base.EditRight;
                    FMA1.Text = this.Text + "- 年增长率法";
                    FMA1.ShowDialog();
                    break;
                case 2:
                    FormExtrapolationMethodSH FMA2 = new FormExtrapolationMethodSH(report);
                    FMA2.Text = this.Text + "- 外推法";
                    FMA2.CanEdit = base.EditRight;
                    FMA2.ShowDialog();
                    break;

                case 3:
                    FormCoefficientOfElasticitySH FMA3 = new FormCoefficientOfElasticitySH(report);
                    FMA3.Text = this.Text + "- 弹性系数法";
                    FMA3.CanEdit = base.EditRight;
                    FMA3.ShowDialog();
                    break;
                case 4:
                    FormExponentialSmoothingSH FMA4 = new FormExponentialSmoothingSH(report);
                    FMA4.Text = this.Text + "- 指数平滑法";
                    FMA4.CanEdit = base.EditRight;
                    FMA4.ShowDialog();
                    break;
                case 5:
                    GrayModelSH FMA5 = new GrayModelSH(report);
                    FMA5.Text = this.Text + "- 灰色理论法";
                    FMA5.CanEdit = base.EditRight;
                    FMA5.ShowDialog();
                    break;
                case 6:
                    FormForecast11_DSH FMA6 = new FormForecast11_DSH(report);
                    FMA6.Text = this.Text + "- 大用户";
                    FMA6.CanEdit = base.EditRight;
                    FMA6.ShowDialog();
                    break;
                case 7:
                    FormUnitConsumptionValueSH FMA7 = new FormUnitConsumptionValueSH(report);
                    FMA7.Text = this.Text + "- 产值单耗法";
                    FMA7.CanEdit = base.EditRight;
                    FMA7.ShowDialog();
                    break;
                case 8:
                    FormForecast9SH FMA8 = new FormForecast9SH(report);
                    FMA8.Text = this.Text + "- 复合算法";
                    FMA8.CanEdit = base.EditRight;
                    FMA8.ShowDialog();
                    break;
                case 9:
                    FormForecastDResult FMA9 = new FormForecastDResult(report);
                    FMA9.Text = this.Text + "- 预测结果列表和综合";
                    FMA9.CanEdit = base.EditRight;
                    FMA9.ShowDialog();
                    break;
                case 10:
                    FormExpertSH FMA10 = new FormExpertSH(report);
                    FMA10.Text = this.Text + "- 专家决策法";
                    FMA10.CanEdit = base.EditRight;
                    FMA10.ShowDialog();
                    break;
            }
        }
Exemplo n.º 2
0
        private void ShowModel(int id, Ps_forecast_list report)
        {
            switch (id)
            {
                case 1:
                    FormAverageGrowthRateSH FMA1 = new FormAverageGrowthRateSH(report);
                    FMA1.CanEdit = CnaEdit;
                    FMA1.Text = this.Text + "- 年增长率法";
                    FMA1.ShowDialog();
                    break;
                case 2:
                    FormExtrapolationMethodSH FMA2 = new FormExtrapolationMethodSH(report);
                    FMA2.Text = this.Text + "- 外推法";
                    FMA2.CanEdit = CnaEdit;
                    FMA2.ShowDialog();
                    break;

                case 3:
                    FormCoefficientOfElasticitySH FMA3 = new FormCoefficientOfElasticitySH(report);
                    FMA3.Text = this.Text + "- 弹性系数法";
                    FMA3.CanEdit = CnaEdit;
                    FMA3.ShowDialog();
                    break;
                case 4:
                    FormExponentialSmoothingSH FMA4 = new FormExponentialSmoothingSH(report);
                    FMA4.Text = this.Text + "- 指数平滑法";
                    FMA4.CanEdit = CnaEdit;
                    FMA4.ShowDialog();
                    break;
                case 5:
                    GrayModelSH FMA5 = new GrayModelSH(report);
                    FMA5.Text = this.Text + "- 灰色理论法";
                    FMA5.CanEdit = CnaEdit;
                    FMA5.ShowDialog();
                    break;
                case 6:
                    FormForecast11_FSH FMA6 = new FormForecast11_FSH(report);
                    FMA6.Text = this.Text + "- 大用户";
                    FMA6.CanEdit = CnaEdit;
                    FMA6.ShowDialog();
                    break;
                case 7:
                    FormMaxHourSH FMA7 = new FormMaxHourSH(report);
                    FMA7.Text = this.Text + "- 负荷最大利用小时数法";
                    FMA7.CanEdit = CnaEdit;
                    FMA7.ShowDialog();
                    break;
                case 8:
                    FormForecast9SH FMA8 = new FormForecast9SH(report);
                    FMA8.Text = this.Text + "- 复合算法";
                    FMA8.CanEdit = CnaEdit;
                    FMA8.ShowDialog();
                    break;
                case 10:
                    FormExpertSH FMA10 = new FormExpertSH(report);
                    FMA10.Text = this.Text + "- 专家决策法";
                    FMA10.CanEdit = CnaEdit;
                    FMA10.ShowDialog();
                    break;
            }
        }