예제 #1
0
        private void ShowDetails()
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                return;
            }

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

            Form8Forecast frm = new Form8Forecast(report, typeFlag);

            frm.CanPrint    = base.PrintRight;
            frm.CanEdit     = base.EditRight;
            frm.IsSelect    = IsSelect;
            frm.ADdRight    = AddRight;
            frm.DEleteRight = DeleteRight;
            DialogResult dr = frm.ShowDialog();

            if (IsSelect && dr == DialogResult.OK)
            {
                Title        = report.Title;
                Unit         = "单位:万千瓦时";
                Gcontrol     = frm.GridControl;
                DialogResult = DialogResult.OK;
            }
        }
예제 #2
0
파일: Form8.cs 프로젝트: EdgarEDT/myitoppsp
        private void ShowDetails()
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                return;
            }

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

            Form8Forecast frm = new Form8Forecast(report, typeFlag);
            frm.CanPrint = base.PrintRight;
            frm.CanEdit = base.EditRight;
            frm.IsSelect = IsSelect;
            frm.ADdRight = AddRight;
            frm.DEleteRight = DeleteRight;
            DialogResult dr = frm.ShowDialog();

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