public FrmPlanTableInfo_HuanBei(PowerEachList ptable)
 {
     InitializeComponent();
     plantable = ptable;
     typeflag = ptable.UID;
     dt =ptable.CreateDate ;
     this.Text = ptable.ListName;
 }
예제 #2
0
        private void Form9_Load(object sender, EventArgs e)
        {
            this.Text="淮北供电公司2008--2010年110千伏及以上电网规划项目前期计划工作表";
            HideToolBarButton();

            PowerEachList report = new PowerEachList();
            report.Types = typeFlag;
            IList listReports = Common.Services.BaseService.GetList("SelectPowerEachListList", report);

            dataTable = Itop.Common.DataConverter.ToDataTable(listReports, typeof(PowerEachList));
            gridView1.BeginUpdate();
            gridControl1.DataSource = dataTable;

            gridView1.Columns["UID"].Visible = false;
            gridView1.Columns["UID"].OptionsColumn.ShowInCustomizationForm = false;
            gridView1.Columns["ParentID"].Visible = false;
            gridView1.Columns["ParentID"].OptionsColumn.ShowInCustomizationForm = false;
            gridView1.Columns["Types"].Visible = false;
            gridView1.Columns["Types"].OptionsColumn.ShowInCustomizationForm = false;
            gridView1.Columns["ListName"].Caption = "项目计划表名称";
            gridView1.Columns["ListName"].Width = 300;

            gridView1.Columns["CreateDate"].Caption = "创建日期";
            gridView1.Columns["CreateDate"].Width = 80;
            gridView1.Columns["CreateDate"].VisibleIndex = 20;
            gridView1.Columns["Remark"].Caption = "备注";
            gridView1.Columns["Remark"].VisibleIndex = 21;
               // gridView1.Columns["Remark"].Width = 150;

            gridView1.EndUpdate();
        }
예제 #3
0
        /// <summary>
        /// �޸Ľ������
        /// </summary>
        public void UpdateObject()
        {
            //��ȡ�������
            PowerEachList obj = FocusedObject;
            if (obj == null)
            {
                return;
            }

            //���������һ������
            PowerEachList objCopy = new PowerEachList();
            DataConverter.CopyTo<PowerEachList>(obj, objCopy);

            //ִ���޸IJ���
            using (FrmPowerEachListDialog2 dlg = new FrmPowerEachListDialog2())
            {
                dlg.Object = objCopy;   //�󶨸���
                dlg.IsJSXM = isjsxm;
                dlg.IsBTN = isbtn;
                if (dlg.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
            }

            //�ø������½������
            DataConverter.CopyTo<PowerEachList>(objCopy, obj);
            //ˢ�±��
            gridControl.RefreshDataSource();
        }
예제 #4
0
        /// <summary>
        /// ˢ�±���е�����
        /// </summary>
        /// <returns>ture:�ɹ�  false:ʧ��</returns>
        public bool RefreshData(string type)
        {
            try
            {
                //IList<PowerEachList> list = Services.BaseService.GetStrongList<PowerEachList>();
                PowerEachList pe=new PowerEachList();
                pe.Types=type;
                //IList<PowerEachList> list = Services.BaseService.GetStrongList<PowerEachList>(pe);
                IList<PowerEachList> list = Services.BaseService.GetList<PowerEachList>("SelectPowerEachListList", pe);
                this.gridControl.DataSource = list;
            }
            catch (Exception exc)
            {
                Debug.Fail(exc.Message);
                HandleException.TryCatch(exc);
                return false;
            }

            return true;
        }
예제 #5
0
        public void AddObjecta(string type,bool bl)
        {
            //�����������Ƿ��Ѿ�����
            if (ObjectList == null)
            {
                return;
            }
            //�½�����
            PowerEachList obj = new PowerEachList();
            obj.Types = type;

            //ִ����Ӳ���
            using (FrmPowerEachListDialog2 dlg = new FrmPowerEachListDialog2())
            {
                dlg.IsCreate = true;    //�����½���־
                dlg.Object = obj;
                dlg.IsPower = true;
                dlg.IsJSXM = isjsxm;
                dlg.bl = bl;
                dlg.IsBTN = isbtn;
                if (dlg.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
            }

            //���¶�����뵽������
            ObjectList.Add(obj);

               // ObjectList.Insert(0, obj);

            //ˢ�±�񣬲��������ж�λ���¶����ϡ�
            gridControl.RefreshDataSource();
            GridHelper.FocuseRow(this.gridView, obj);
        }
예제 #6
0
        public FormPSP_VolumeBalance(PowerEachList fr)
        {
            InitializeComponent();

            //this.barSub1 = new DevExpress.XtraBars.BarSubItem();
            this.barA1 = new DevExpress.XtraBars.BarButtonItem();
            this.barA2 = new DevExpress.XtraBars.BarButtonItem();
            this.barA3 = new DevExpress.XtraBars.BarButtonItem();
            this.barA4 = new DevExpress.XtraBars.BarButtonItem();
            this.barA5 = new DevExpress.XtraBars.BarButtonItem();
            this.barA6 = new DevExpress.XtraBars.BarButtonItem();
            this.barA7 = new DevExpress.XtraBars.BarButtonItem();
            this.barA8 = new DevExpress.XtraBars.BarButtonItem();
            this.barA9 = new DevExpress.XtraBars.BarButtonItem();
            this.barA10 = new DevExpress.XtraBars.BarButtonItem();
            this.barManager.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
                 //this.barSub1,
            this.barA1,
            this.barA2,
            this.barA3,
            this.barA4,
            this.barA5,
            this.barA6,
            this.barA7,
            this.barA8,
            this.barA9,
              this.barA10
            });
            forecastReport = fr;
            Flag = fr.UID;
            if (fr.Types.Contains("110"))
            {
                string s = Guid.NewGuid().ToString();
                TypeID = s;
                this.ctrlPSP_VolumeBalance1.Type = "110";
                TypeID = "110";
                this.ctrlPSP_VolumeBalance1.colL1.Caption = "分区综合最高负荷";
                this.ctrlPSP_VolumeBalance1.colL2.Caption = "本区220kV主变35kV、10KV侧可供负荷";
                this.ctrlPSP_VolumeBalance1.colL4.Caption = "本区110kV用户变和110kV及以下小电源等直接供电负荷";
                this.ctrlPSP_VolumeBalance1.Flag = Flag;
                this.ctrlPSP_VolumeBalance1.Volumecalc0 = EnsureVolumecalc().ToString();
                this.ctrlPSP_VolumeBalance1.Loadrate = EnsureVolumecalc().ToString();
                this.ctrlPSP_VolumeBalance1.RefreshData();
              //  this.Show();
                    //bar.InsertItem(bar.ItemLinks[4], barButtonItem1);
                    //barButtonItem1.ImageIndex = 19;

            }
            else if (fr.Types.Contains("220"))
            {
                Volumecalc = "Volumecalc220";

                this.ctrlPSP_VolumeBalance1.Type = "220";
                this.ctrlPSP_VolumeBalance1.Flag = Flag;
                TypeID = "220";
                this.ctrlPSP_VolumeBalance1.GridView.GroupPanelText = "220千伏变电容量平衡表 ";
                this.ctrlPSP_VolumeBalance1.colL1.Caption = "综合最高负荷";
                this.ctrlPSP_VolumeBalance1.colL2.Caption = "直接供电负荷";
                this.ctrlPSP_VolumeBalance1.colL4.Caption = "外网供电";
                //this.ctrlPSP_VolumeBalance1.colL3.Visible = true;
                //this.ctrlPSP_VolumeBalance1.colL4.VisibleIndex=4;
                this.ctrlPSP_VolumeBalance1.colL4.Visible = false;
                this.ctrlPSP_VolumeBalance1.colL5.Caption = "需220kV降压供电负荷";
                this.ctrlPSP_VolumeBalance1.colL6.Caption = "现有220kV降压变电容量";
                this.ctrlPSP_VolumeBalance1.colL7.Caption = "220kV容载比";
                this.ctrlPSP_VolumeBalance1.colL8.Caption = "需220kV变电容量(容载比)";
                this.ctrlPSP_VolumeBalance1.colL14.Visible = false;
                this.ctrlPSP_VolumeBalance1.colL15.Visible = false;
                this.ctrlPSP_VolumeBalance1.colL16.Visible = false;
                this.ctrlPSP_VolumeBalance1.Volumecalc0 = EnsureVolumecalc().ToString();
                this.ctrlPSP_VolumeBalance1.RefreshData();
             //   this.Show();
                //bar.InsertItem(bar.ItemLinks[4], barButtonItem1);
                //barButtonItem1.ImageIndex = 19;

            }
            else if (fr.Types.Contains("35"))
            {
                Volumecalc = "Volumecalc35";
                this.ctrlPSP_VolumeBalance1.Type = "35";
                this.ctrlPSP_VolumeBalance1.Flag = Flag;
                TypeID = "35";
                loadrate = "loadrate35";
                this.ctrlPSP_VolumeBalance1.GridView.GroupPanelText = "220千伏变电容量平衡表 ";
                this.ctrlPSP_VolumeBalance1.colL1.Caption = "本区负荷";
                this.ctrlPSP_VolumeBalance1.colL2.Caption = "本地平衡负荷";
                //this.ctrlPSP_VolumeBalance1.colL4.Caption = "外网供电";
                //this.ctrlPSP_VolumeBalance1.colL3.Visible = true;
                //this.ctrlPSP_VolumeBalance1.colL4.VisibleIndex=4;
                this.ctrlPSP_VolumeBalance1.colL4.Visible = false;
                this.ctrlPSP_VolumeBalance1.colL5.Caption = "需要35千伏变电电力";
                this.ctrlPSP_VolumeBalance1.colL6.Caption = "现有35千伏变电容量";
                this.ctrlPSP_VolumeBalance1.colL7.Caption = "本区容载比";
                this.ctrlPSP_VolumeBalance1.colL8.Caption = "需要35千伏变电容量(容载比2.1)";
                this.ctrlPSP_VolumeBalance1.colL9.Caption = "本区35千伏变电容量盈亏";
                this.ctrlPSP_VolumeBalance1.colL12.Caption = "35千伏变电容量合计";
                //this.ctrlPSP_VolumeBalance1.colL14.Visible = false;
                this.ctrlPSP_VolumeBalance1.colL16.Visible = false;
                this.ctrlPSP_VolumeBalance1.Volumecalc0 = EnsureVolumecalc().ToString();
                this.ctrlPSP_VolumeBalance1.Loadrate = Ensureloadrate().ToString();
                this.ctrlPSP_VolumeBalance1.RefreshData();
             //   this.Show();

            }
            if (forecastReport.ListName.Contains(TypeID + "千伏变电容量平衡表"))
            {
                //this.Text = forecastReport.ListName;
                this.ctrlPSP_VolumeBalance1.GridView.GroupPanelText = forecastReport.ListName;
            }
            else
            {
                //this.Text = forecastReport.ListName + TypeID + "千伏变电容量平衡表";
                this.ctrlPSP_VolumeBalance1.GridView.GroupPanelText = forecastReport.ListName + TypeID + "千伏变电容量平衡表";
            }

            //this.bar.InsertItem(bar.ItemLinks[4], barSub1);

            ////
            //// barSub1
            ////
            //this.barSub1.Caption = "下级维护";
            //this.barSub1.Id = 280;
            //this.barSub1.ImageIndex = 31;

            //this.barSub1.Name = "barSub1";
            //this.barSub1.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
            ////

            //
            // barA3
            //

            //if (TypeID == "110")
            //{
            //    barA1.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;

            //}
            //this.barSub1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
            //new DevExpress.XtraBars.LinkPersistInfo(this.barA1),
            //new DevExpress.XtraBars.LinkPersistInfo(this.barA2),
            //new DevExpress.XtraBars.LinkPersistInfo(this.barA3)});
        }
예제 #7
0
파일: Form7.cs 프로젝트: EdgarEDT/myitoppsp
 public Form7(PowerEachList report)
 {
     typeFlag =Convert.ToInt32( report.ListName);
     InitializeComponent();
 }
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            if(textEdit1.Text == string.Empty)
            {
                MsgBox.Show("������ƻ������ƣ�");
                return;
            }
            if (dateEdit1.Text == string.Empty)
            {
                MsgBox.Show("�����뽨��ʱ�䣡");
                return;
            }
            if(_isEdit)//�޸�
            {

            }
            else//�½�
            {
                psp_ForecastReport = new PowerEachList();
                psp_ForecastReport.Types= _typeFlag;
            }
            psp_ForecastReport.ListName = textEdit1.Text;
            DateTime dt = DateTime.Now;
            //if (dateEdit1.Text == "")
            //    dateEdit1.Text = dt;
            if (Convert.ToDateTime(dateEdit1.Text) > dt)
            {
                psp_ForecastReport.CreateDate = dt;
            }
            else
            {
                psp_ForecastReport.CreateDate = Convert.ToDateTime(dateEdit1.Text);
            }
            psp_ForecastReport.Remark = memoEdit1.Text;

            if (_isEdit)
            {
                try
                {
                    Common.Services.BaseService.Update<PowerEachList>(psp_ForecastReport);
                }
                catch
                {
                    MsgBox.Show("�޸ļƻ�������");
                    return;
                }
            }
            else
            {
                try
                { PSP_PlanTable_HuaiBei plan =new PSP_PlanTable_HuaiBei ();
              PowerEachList obj=(PowerEachList)Common.Services.BaseService.GetObject("SelectPowerEachListListByTypesAndListName", psp_ForecastReport);
              if (obj != null)
              {
                  MsgBox.Show("�Ѿ����ڴ���Ŀ�����ƣ�");
                  return;
              }

              Common.Services.BaseService.Create<PowerEachList>(psp_ForecastReport);
              PowerEachList oo = (PowerEachList)Common.Services.BaseService.GetObject("SelectPowerEachListListByTypesAndListName", psp_ForecastReport);
              DateTime dtt = new DateTime();
              dtt = DateTime.Now;
                      plan.UID=Guid.NewGuid().ToString();
                    plan.Title="ʱ����";
                    plan.Flag2 = oo.UID;
                    plan.ParentID="0";
                    plan.KeyFlag="time1";
                    plan.ItemSB = "0";
                    plan.ItemPF = "0";
                    plan.KYWC = "0";
                    plan.KYPS = "0";
                    plan.PSYJ = "0";
                   // plan.CSSC = "0";
                   // plan.JSGFSSB = "0";
                   // plan.ZBSB = "0";
                   // plan.ZBSHDateTime = "0";
                    ////plan.CSSC = DateTime.Now;
                    ////plan.JSGFSSB = DateTime.Now;
                    ////plan.ZBSB = DateTime.Now;
                    ////plan.ZBSHDateTime = DateTime.Now;
                    plan.XZYJS = "0";
                    plan.HPPF = "0";
                    plan.TDYS = "0";
                    plan.SBHZSQ = "0";
                    plan.XMHZ = "0";
                    plan.JHKSDateTime = "0";
                    plan.JHTCDateTime = "0";
                    //plan.JHTCDateTime_GuiHua = DateTime.Now;
                    plan.CreateDate = dtt.AddSeconds(1);
                    Common.Services.BaseService.Create<PSP_PlanTable_HuaiBei>(plan);
                      plan.UID=Guid.NewGuid().ToString();
                    plan.Title="220ǧ�����繤��";
                    plan.Flag2 = oo.UID;
                    plan.ParentID="0";
                    plan.KeyFlag="220";
                    plan.ItemSB = "";
                    plan.ItemPF = "";
                    plan.KYWC = "";
                    plan.KYPS = "";
                    plan.PSYJ = "";
                    //plan.CSSC = DateTime.Now;
                    //plan.JSGFSSB = DateTime.Now;
                    //plan.ZBSB = DateTime.Now;
                    //plan.ZBSHDateTime = DateTime.Now;
                    plan.XZYJS = "";
                    plan.HPPF = "";
                    plan.TDYS = "";
                    plan.SBHZSQ = "";
                    plan.XMHZ = "";
                    plan.JHKSDateTime = "";
                    plan.JHTCDateTime = "";
                    plan.JHTCDateTime_GuiHua = DateTime.Now;
                    plan.CreateDate = dtt.AddSeconds(2);
                    Common.Services.BaseService.Create<PSP_PlanTable_HuaiBei>(plan);

                        plan.UID=Guid.NewGuid().ToString();
                    plan.Title="ʱ����";
                    plan.Flag2 = oo.UID;
                    plan.ParentID="0";
                    plan.KeyFlag="time2";
                    plan.ItemSB = "0";
                    plan.ItemPF = "0";
                    plan.KYWC = "0";
                    plan.KYPS = "0";
                    plan.PSYJ = "0";
                    //plan.CSSC = DateTime.Now;
                    //plan.JSGFSSB = DateTime.Now;
                    //plan.ZBSB = DateTime.Now;
                    //plan.ZBSHDateTime = DateTime.Now;
                    plan.XZYJS = "0";
                    plan.HPPF = "0";
                    plan.TDYS = "0";
                    plan.SBHZSQ = "0";
                    plan.XMHZ = "0";
                    plan.JHKSDateTime = "0";
                    plan.JHTCDateTime = "0";
                    plan.JHTCDateTime_GuiHua =null;
                    plan.CreateDate = dtt.AddSeconds(3);
                    Common.Services.BaseService.Create<PSP_PlanTable_HuaiBei>(plan);
                       plan.UID=Guid.NewGuid().ToString();
                    plan.Title="110ǧ�����繤��";
                    plan.Flag2 = oo.UID;
                    plan.ParentID="0";
                    plan.KeyFlag="110";
                    plan.ItemSB = "";
                    plan.ItemPF = "";
                    plan.KYWC = "";
                    plan.KYPS = "";
                    plan.PSYJ = "";
                    //plan.CSSC = DateTime.Now;
                    //plan.JSGFSSB = DateTime.Now;
                    //plan.ZBSB = DateTime.Now;
                    //plan.ZBSHDateTime = DateTime.Now;
                    plan.XZYJS = "";
                    plan.HPPF = "";
                    plan.TDYS = "";
                    plan.SBHZSQ = "";
                    plan.XMHZ = "";
                    plan.JHKSDateTime = "";
                    plan.JHTCDateTime = "";
                    plan.JHTCDateTime_GuiHua = DateTime.Now;
                    plan.CreateDate = dtt.AddSeconds(4);
                    Common.Services.BaseService.Create<PSP_PlanTable_HuaiBei>(plan);
                      plan.UID=Guid.NewGuid().ToString();
                    plan.Title="ʱ����";
                    plan.Flag2 = oo.UID;
                    plan.ParentID="0";
                    plan.KeyFlag="time3";
                    plan.ItemSB = "0";
                    plan.ItemPF = "0";
                    plan.KYWC = "0";
                    plan.KYPS = "0";
                    plan.PSYJ = "0";
                    //plan.CSSC = DateTime.Now;
                    //plan.JSGFSSB = DateTime.Now;
                    //plan.ZBSB = DateTime.Now;
                    //plan.ZBSHDateTime = DateTime.Now;
                    plan.XZYJS = "0";
                    plan.HPPF = "0";
                    plan.TDYS = "0";
                    plan.SBHZSQ = "0";
                    plan.XMHZ = "0";
                    plan.JHKSDateTime = "0";
                    plan.JHTCDateTime = "0";
                    plan.JHTCDateTime_GuiHua = null;
                    plan.CreateDate = dtt.AddSeconds(5);
                    Common.Services.BaseService.Create<PSP_PlanTable_HuaiBei>(plan);
                        plan.UID=Guid.NewGuid().ToString();
                    plan.Title="��������";
                    plan.Flag2 = oo.UID;
                    plan.ParentID="0";
                    plan.KeyFlag="kuojian";
                    plan.ItemSB = "";
                    plan.ItemPF = "";
                    plan.KYWC = "";
                    plan.KYPS = "";
                    plan.PSYJ = "";
                    //plan.CSSC = DateTime.Now;
                    //plan.JSGFSSB = DateTime.Now;
                    //plan.ZBSB = DateTime.Now;
                    //plan.ZBSHDateTime = DateTime.Now;
                    plan.XZYJS = "";
                    plan.HPPF = "";
                    plan.TDYS = "";
                    plan.SBHZSQ = "";
                    plan.XMHZ = "";
                    plan.JHKSDateTime = "";
                    plan.JHTCDateTime = "";
                    plan.JHTCDateTime_GuiHua = DateTime.Now;
                    plan.CreateDate = dtt.AddSeconds(6);
                    Common.Services.BaseService.Create<PSP_PlanTable_HuaiBei>(plan);
                        plan.UID = Guid.NewGuid().ToString();
                    plan.Title = "220ǧ������";
                    plan.Flag2 = oo.UID;
                    plan.ParentID = "0";
                    plan.KeyFlag = "220ǧ��";
                    plan.ItemSB = "";
                    plan.ItemPF = "";
                    plan.KYWC = "";
                    plan.KYPS = "";
                    plan.PSYJ = "";
                    //plan.CSSC = DateTime.Now;
                    //plan.JSGFSSB = DateTime.Now;
                    //plan.ZBSB = DateTime.Now;
                    //plan.ZBSHDateTime = DateTime.Now;
                    plan.XZYJS = "";
                    plan.HPPF = "";
                    plan.TDYS = "";
                    plan.SBHZSQ = "";
                    plan.XMHZ = "";
                    plan.JHKSDateTime = "";
                    plan.JHTCDateTime = "";
                    plan.JHTCDateTime_GuiHua = null;
                    plan.CreateDate = dtt.AddSeconds(7);
                    Common.Services.BaseService.Create<PSP_PlanTable_HuaiBei>(plan);
                       plan.UID = Guid.NewGuid().ToString();
                       plan.Title = "110ǧ������";
                    plan.Flag2 = oo.UID;
                    plan.ParentID = "0";
                    plan.KeyFlag = "110ǧ��";
                    plan.ItemSB = "";
                    plan.ItemPF = "";
                    plan.KYWC = "";
                    plan.KYPS = "";
                    plan.PSYJ = "";
                    //plan.CSSC = DateTime.Now;
                    //plan.JSGFSSB = DateTime.Now;
                    //plan.ZBSB = DateTime.Now;
                    //plan.ZBSHDateTime = DateTime.Now;
                    plan.XZYJS = "";
                    plan.HPPF = "";
                    plan.TDYS = "";
                    plan.SBHZSQ = "";
                    plan.XMHZ = "";
                    plan.JHKSDateTime = "";
                    plan.JHTCDateTime = "";
                    plan.JHTCDateTime_GuiHua = null;
                    plan.CreateDate = dtt.AddSeconds(8);
                    Common.Services.BaseService.Create<PSP_PlanTable_HuaiBei>(plan);

                }
                catch
                {
                    MsgBox.Show("�½��ƻ�������");
                    return;
                }
            }

            DialogResult = DialogResult.OK;
        }
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            //if(textEdit1.Text == string.Empty)
            //{
            //    MsgBox.Show("������ƻ������ƣ�");
            //    return;
            //}

            if(_isEdit)//�޸�
            {

            }
            else//�½�
            {
                psp_ForecastReport = new PowerEachList();
                psp_ForecastReport.Types = _typeFlag;
            }
            psp_ForecastReport.ListName = spinEdit1.Text;
            DateTime dt = DateTime.Now;
            if (dateEdit1.Text == null || dateEdit1.Text == "")
                dateEdit1.Text = dt.ToString();
            if (Convert.ToDateTime(dateEdit1.Text) > dt)
            {
                psp_ForecastReport.CreateDate = dt;
            }
            else
            {
                psp_ForecastReport.CreateDate = Convert.ToDateTime(dateEdit1.Text);
            }
            psp_ForecastReport.Remark = memoEdit1.Text;

            if (_isEdit)
            {
                try
                {
                    Common.Services.BaseService.Update<PowerEachList>(psp_ForecastReport);
                }
                catch
                {
                    MsgBox.Show("�޸ļƻ�������");
                    return;
                }
            }
            else
            {
                try
                {
              PowerEachList obj=(PowerEachList)Common.Services.BaseService.GetObject("SelectPowerEachListListByTypesAndListName", psp_ForecastReport);
              if (obj != null)
              {
                  MsgBox.Show("�Ѿ����ڴ���Ŀ�����ƣ�");
                  return;
              }

              Common.Services.BaseService.Create<PowerEachList>(psp_ForecastReport);
              PowerEachList oo = (PowerEachList)Common.Services.BaseService.GetObject("SelectPowerEachListListByTypesAndListName", psp_ForecastReport);
                }
                catch
                {
                    MsgBox.Show("�½��ƻ�������");
                    return;
                }
            }

            DialogResult = DialogResult.OK;
        }