コード例 #1
0
        private void ShowDetails()
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                return;
            }

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

            Form6Details frm = new Form6Details(report);

            frm.CanAdd    = base.AddRight;
            frm.CanEdit   = base.EditRight;
            frm.CanDelete = base.DeleteRight;
            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
ファイル: Form6.cs プロジェクト: EdgarEDT/myitoppsp
        private void ShowDetails()
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                return;
            }

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

            Form6Details frm = new Form6Details(report);
            frm.CanAdd = base.AddRight;
            frm.CanEdit = base.EditRight;
            frm.CanDelete = base.DeleteRight;
            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;
            }
        }