Пример #1
0
        private void OpenForecast()
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                return;
            }

            PSP_ForecastReports report = Itop.Common.DataConverter.RowToObject <PSP_ForecastReports>(gridView1.GetDataRow(gridView1.FocusedRowHandle));

            Form10Forecast frm = new Form10Forecast(report, typeFlag);

            frm.CanEdit  = base.EditRight;
            frm.CanPrint = base.PrintRight;
            frm.IsSelect = IsSelect;

            DialogResult dr = frm.ShowDialog();

            if (IsSelect && dr == DialogResult.OK)
            {
                Gcontrol     = frm.gridControl1;
                Unit         = "单位:万千瓦";
                Title        = report.Title;
                DialogResult = DialogResult.OK;
            }
        }
Пример #2
0
        private void OpenForecast()
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                return;
            }

            PSP_ForecastReports report = Itop.Common.DataConverter.RowToObject<PSP_ForecastReports>(gridView1.GetDataRow(gridView1.FocusedRowHandle));

            Form10Forecast frm = new Form10Forecast(report, typeFlag);
            frm.CanEdit = base.EditRight;
            frm.CanPrint = base.PrintRight;
            frm.IsSelect = IsSelect;

            DialogResult dr = frm.ShowDialog();

            if (IsSelect && dr == DialogResult.OK)
            {
                Gcontrol = frm.gridControl1;
                Unit = "单位:万千瓦";
                Title = report.Title;
                DialogResult = DialogResult.OK;
            }
        }