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

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

            FrmPlanTableInfo_HuanBei frm = new FrmPlanTableInfo_HuanBei(report);

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

            frm.add    = base.AddRight;
            frm.edit   = base.EditRight;
            frm.delete = base.DeleteRight;
            frm.print  = base.PrintRight;
            DialogResult dr = frm.ShowDialog();

            //  if (IsSelect && dr == DialogResult.OK)
            if (dr == DialogResult.OK)
            {
                //Title = report.Title;
                // Unit = "单位:万千瓦时";
                Gcontrol     = frm.Gcontrol;
                DialogResult = DialogResult.OK;
            }
        }
        private void ShowDetails()
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                return;
            }

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

            FrmPlanTableInfo_HuanBei frm = new FrmPlanTableInfo_HuanBei(report);
            //frm.CanEdit = base.EditRight;
            //frm.CanPrint = base.PrintRight;
            //frm.IsSelect = IsSelect;

            frm.add= base.AddRight;
            frm.edit = base.EditRight;
            frm.delete = base.DeleteRight;
            frm.print = base.PrintRight;
            DialogResult dr = frm.ShowDialog();

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