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

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

            FormForecastD frm = new FormForecastD(report, typeFlag);

            frm.Text        = this.Text + "- " + report.Title;
            frm.PID         = ProjectUID;
            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;
            }
        }
Beispiel #2
0
        private void ShowDetails()
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                return;
            }

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

            FormForecastD frm = new FormForecastD(report, typeFlag);
            frm.Text = this.Text + "- " + report.Title;
            frm.PID = ProjectUID;
            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;
            }
        }