/*
 *      public void LoadNewFile_Dynamic()
 *      {
 *          if ( m_DocumentFormDynamic.Visible == false )
 *          {
 *              m_DocumentFormDynamic = new DocumentForm2();
 *
 *              m_DocumentFormDynamic.Text = "初级SR动态报表";
 *              m_DocumentFormDynamic.MdiParent = this;
 *              m_DocumentFormDynamic.Show();
 *
 *              this.Text = "DemoSoft - " + m_DocumentFormDynamic.Text;
 *
 *              axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormDynamic.Handle.ToInt32() );
 *
 *          }
 *          else
 *              m_DocumentFormDynamic.Activate();
 *
 *          this.SuspendLayout();
 *
 *          m_DocumentFormDynamic.InitSRReport( GlobalSetting.SRReports );
 *
 *          this.ResumeLayout( false );
 *      }
 *
 *      public void LoadNewFile_StockDCUR()
 *      {
 *          if ( m_DocumentFormStockDCUR.Visible == false )
 *          {
 *              m_DocumentFormStockDCUR = new DocumentForm3();
 *
 *              m_DocumentFormStockDCUR.Text = "优质UT股票清单";
 *              m_DocumentFormStockDCUR.MdiParent = this;
 *              m_DocumentFormStockDCUR.Show();
 *
 *              this.Text = "DemoSoft - " + m_DocumentFormStockDCUR.Text;
 *
 *              axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormStockDCUR.Handle.ToInt32() );
 *
 *          }
 *          else
 *              m_DocumentFormStockDCUR.Activate();
 *
 *          this.SuspendLayout();
 *
 *          m_DocumentFormStockDCUR.InitSRReport( GlobalSetting.SRReports );
 *
 *          this.ResumeLayout( false );
 *      }
 *
 *      public void LoadNewFile_StaticDCUR()
 *      {
 *          if ( m_DocumentFormStaticDCUR.Visible == false )
 *          {
 *              m_DocumentFormStaticDCUR = new DocumentForm4();
 *
 *              m_DocumentFormStaticDCUR.Text = "优质UT静态报表";
 *              m_DocumentFormStaticDCUR.MdiParent = this;
 *              m_DocumentFormStaticDCUR.Show();
 *
 *              this.Text = "DemoSoft - " + m_DocumentFormStaticDCUR.Text;
 *
 *              axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormStaticDCUR.Handle.ToInt32() );
 *
 *          }
 *          else
 *              m_DocumentFormStaticDCUR.Activate();
 *
 *          this.SuspendLayout();
 *
 *          m_DocumentFormStaticDCUR.InitSRReport( GlobalSetting.SRReports );
 *
 *          this.ResumeLayout( false );
 *      }
 *
 *      public void LoadNewFile_DynamicDCUR()
 *      {
 *          if ( m_DocumentFormDynamicDCUR.Visible == false )
 *          {
 *              m_DocumentFormDynamicDCUR = new DocumentForm5();
 *
 *              m_DocumentFormDynamicDCUR.Text = "优质UT动态报表";
 *              m_DocumentFormDynamicDCUR.MdiParent = this;
 *              m_DocumentFormDynamicDCUR.Show();
 *
 *              this.Text = "DemoSoft - " + m_DocumentFormDynamicDCUR.Text;
 *
 *              axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormDynamicDCUR.Handle.ToInt32() );
 *
 *          }
 *          else
 *              m_DocumentFormDynamicDCUR.Activate();
 *
 *          this.SuspendLayout();
 *
 *          m_DocumentFormDynamicDCUR.InitSRReport( GlobalSetting.SRReports );
 *
 *          this.ResumeLayout( false );
 *      }
 *
 *      public void LoadNewFile_QualityDCUR()
 *      {
 *          if ( m_DocumentFormQualityDCUR.Visible == false )
 *          {
 *              m_DocumentFormQualityDCUR = new DocumentForm6();
 *
 *              m_DocumentFormQualityDCUR.Text = "DCUR股票清单";
 *              m_DocumentFormQualityDCUR.MdiParent = this;
 *              m_DocumentFormQualityDCUR.Show();
 *
 *              this.Text = "DemoSoft - " + m_DocumentFormQualityDCUR.Text;
 *
 *              axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormQualityDCUR.Handle.ToInt32() );
 *
 *          }
 *          else
 *              m_DocumentFormQualityDCUR.Activate();
 *
 *          this.SuspendLayout();
 *
 *          m_DocumentFormQualityDCUR.InitSRReport( GlobalSetting.SRReports );
 *
 *          this.ResumeLayout( false );
 *      }
 *
 *      public void LoadNewFile_StockDCDS()
 *      {
 *          if ( m_DocumentFormStockDCDS.Visible == false )
 *          {
 *              m_DocumentFormStockDCDS = new DocumentForm7();
 *
 *              m_DocumentFormStockDCDS.Text = "优质DT股票清单";
 *              m_DocumentFormStockDCDS.MdiParent = this;
 *              m_DocumentFormStockDCDS.Show();
 *
 *              this.Text = "DemoSoft - " + m_DocumentFormStockDCDS.Text;
 *
 *              axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormStockDCDS.Handle.ToInt32() );
 *
 *          }
 *          else
 *              m_DocumentFormStockDCDS.Activate();
 *
 *          this.SuspendLayout();
 *
 *          m_DocumentFormStockDCDS.InitSRReport( GlobalSetting.SRReports );
 *
 *          this.ResumeLayout( false );
 *      }
 *
 *      public void LoadNewFile_StaticDCDS()
 *      {
 *          if ( m_DocumentFormStaticDCDS.Visible == false )
 *          {
 *              m_DocumentFormStaticDCDS = new DocumentForm8();
 *
 *              m_DocumentFormStaticDCDS.Text = "优质DT静态报表";
 *              m_DocumentFormStaticDCDS.MdiParent = this;
 *              m_DocumentFormStaticDCDS.Show();
 *
 *              this.Text = "DemoSoft - " + m_DocumentFormStaticDCDS.Text;
 *
 *              axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormStaticDCDS.Handle.ToInt32() );
 *
 *          }
 *          else
 *              m_DocumentFormStaticDCDS.Activate();
 *
 *          this.SuspendLayout();
 *
 *          m_DocumentFormStaticDCDS.InitSRReport( GlobalSetting.SRReports );
 *
 *          this.ResumeLayout( false );
 *      }
 *
 *      public void LoadNewFile_DynamicDCDS()
 *      {
 *          if ( m_DocumentFormDynamicDCDS.Visible == false )
 *          {
 *              m_DocumentFormDynamicDCDS = new DocumentForm9();
 *
 *              m_DocumentFormDynamicDCDS.Text = "优质DT动态报表";
 *              m_DocumentFormDynamicDCDS.MdiParent = this;
 *              m_DocumentFormDynamicDCDS.Show();
 *
 *              this.Text = "DemoSoft - " + m_DocumentFormDynamicDCDS.Text;
 *
 *              axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormDynamicDCDS.Handle.ToInt32() );
 *
 *          }
 *          else
 *              m_DocumentFormDynamicDCDS.Activate();
 *
 *          this.SuspendLayout();
 *
 *          m_DocumentFormDynamicDCDS.InitSRReport( GlobalSetting.SRReports );
 *
 *          this.ResumeLayout( false );
 *      }
 *
 *      public void LoadNewFile_QualityDCDS()
 *      {
 *          if ( m_DocumentFormQualityDCDS.Visible == false )
 *          {
 *              m_DocumentFormQualityDCDS = new DocumentForm10();
 *
 *              m_DocumentFormQualityDCDS.Text = "DCDS股票清单";
 *              m_DocumentFormQualityDCDS.MdiParent = this;
 *              m_DocumentFormQualityDCDS.Show();
 *
 *              this.Text = "DemoSoft - " + m_DocumentFormQualityDCDS.Text;
 *
 *              axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormQualityDCDS.Handle.ToInt32() );
 *
 *          }
 *          else
 *              m_DocumentFormQualityDCDS.Activate();
 *
 *          this.SuspendLayout();
 *
 *          m_DocumentFormQualityDCDS.InitSRReport( GlobalSetting.SRReports );
 *
 *          this.ResumeLayout( false );
 *      }
 *
 */

        public void LoadNewHomeDocument()
        {
            if (m_DocumentHomeForm.Visible == false)
            {
                m_DocumentHomeForm = new DocumentHomeForm();

                m_DocumentHomeForm.Text      = "  主页    ";
                m_DocumentHomeForm.MdiParent = this;
                m_DocumentHomeForm.Show();

                this.Text = "Sonima";

                axCommandBars.EnableOffice2007FrameHandle(m_DocumentHomeForm.Handle.ToInt32());
            }
            else
            {
                m_DocumentHomeForm.Activate();
            }

            this.SuspendLayout();

            //m_DocumentHomeForm.InitSRReport( GlobalSetting.SRReports );

            this.ResumeLayout(false);
        }
/*
        public void LoadNewFile_Dynamic()
        {
            if ( m_DocumentFormDynamic.Visible == false )
            {
                m_DocumentFormDynamic = new DocumentForm2();

                m_DocumentFormDynamic.Text = "初级SR动态报表";
                m_DocumentFormDynamic.MdiParent = this;
                m_DocumentFormDynamic.Show();

                this.Text = "DemoSoft - " + m_DocumentFormDynamic.Text;

                axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormDynamic.Handle.ToInt32() );

            }
            else
                m_DocumentFormDynamic.Activate();

            this.SuspendLayout();

            m_DocumentFormDynamic.InitSRReport( GlobalSetting.SRReports );

            this.ResumeLayout( false );
        }

        public void LoadNewFile_StockDCUR()
        {
            if ( m_DocumentFormStockDCUR.Visible == false )
            {
                m_DocumentFormStockDCUR = new DocumentForm3();

                m_DocumentFormStockDCUR.Text = "优质UT股票清单";
                m_DocumentFormStockDCUR.MdiParent = this;
                m_DocumentFormStockDCUR.Show();

                this.Text = "DemoSoft - " + m_DocumentFormStockDCUR.Text;

                axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormStockDCUR.Handle.ToInt32() );

            }
            else
                m_DocumentFormStockDCUR.Activate();

            this.SuspendLayout();

            m_DocumentFormStockDCUR.InitSRReport( GlobalSetting.SRReports );

            this.ResumeLayout( false );
        }

        public void LoadNewFile_StaticDCUR()
        {
            if ( m_DocumentFormStaticDCUR.Visible == false )
            {
                m_DocumentFormStaticDCUR = new DocumentForm4();

                m_DocumentFormStaticDCUR.Text = "优质UT静态报表";
                m_DocumentFormStaticDCUR.MdiParent = this;
                m_DocumentFormStaticDCUR.Show();

                this.Text = "DemoSoft - " + m_DocumentFormStaticDCUR.Text;

                axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormStaticDCUR.Handle.ToInt32() );

            }
            else
                m_DocumentFormStaticDCUR.Activate();

            this.SuspendLayout();

            m_DocumentFormStaticDCUR.InitSRReport( GlobalSetting.SRReports );

            this.ResumeLayout( false );
        }

        public void LoadNewFile_DynamicDCUR()
        {
            if ( m_DocumentFormDynamicDCUR.Visible == false )
            {
                m_DocumentFormDynamicDCUR = new DocumentForm5();

                m_DocumentFormDynamicDCUR.Text = "优质UT动态报表";
                m_DocumentFormDynamicDCUR.MdiParent = this;
                m_DocumentFormDynamicDCUR.Show();

                this.Text = "DemoSoft - " + m_DocumentFormDynamicDCUR.Text;

                axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormDynamicDCUR.Handle.ToInt32() );

            }
            else
                m_DocumentFormDynamicDCUR.Activate();

            this.SuspendLayout();

            m_DocumentFormDynamicDCUR.InitSRReport( GlobalSetting.SRReports );

            this.ResumeLayout( false );
        }

        public void LoadNewFile_QualityDCUR()
        {
            if ( m_DocumentFormQualityDCUR.Visible == false )
            {
                m_DocumentFormQualityDCUR = new DocumentForm6();

                m_DocumentFormQualityDCUR.Text = "DCUR股票清单";
                m_DocumentFormQualityDCUR.MdiParent = this;
                m_DocumentFormQualityDCUR.Show();

                this.Text = "DemoSoft - " + m_DocumentFormQualityDCUR.Text;

                axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormQualityDCUR.Handle.ToInt32() );

            }
            else
                m_DocumentFormQualityDCUR.Activate();

            this.SuspendLayout();

            m_DocumentFormQualityDCUR.InitSRReport( GlobalSetting.SRReports );

            this.ResumeLayout( false );
        }

        public void LoadNewFile_StockDCDS()
        {
            if ( m_DocumentFormStockDCDS.Visible == false )
            {
                m_DocumentFormStockDCDS = new DocumentForm7();

                m_DocumentFormStockDCDS.Text = "优质DT股票清单";
                m_DocumentFormStockDCDS.MdiParent = this;
                m_DocumentFormStockDCDS.Show();

                this.Text = "DemoSoft - " + m_DocumentFormStockDCDS.Text;

                axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormStockDCDS.Handle.ToInt32() );

            }
            else
                m_DocumentFormStockDCDS.Activate();

            this.SuspendLayout();

            m_DocumentFormStockDCDS.InitSRReport( GlobalSetting.SRReports );

            this.ResumeLayout( false );
        }

        public void LoadNewFile_StaticDCDS()
        {
            if ( m_DocumentFormStaticDCDS.Visible == false )
            {
                m_DocumentFormStaticDCDS = new DocumentForm8();

                m_DocumentFormStaticDCDS.Text = "优质DT静态报表";
                m_DocumentFormStaticDCDS.MdiParent = this;
                m_DocumentFormStaticDCDS.Show();

                this.Text = "DemoSoft - " + m_DocumentFormStaticDCDS.Text;

                axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormStaticDCDS.Handle.ToInt32() );

            }
            else
                m_DocumentFormStaticDCDS.Activate();

            this.SuspendLayout();

            m_DocumentFormStaticDCDS.InitSRReport( GlobalSetting.SRReports );

            this.ResumeLayout( false );
        }

        public void LoadNewFile_DynamicDCDS()
        {
            if ( m_DocumentFormDynamicDCDS.Visible == false )
            {
                m_DocumentFormDynamicDCDS = new DocumentForm9();

                m_DocumentFormDynamicDCDS.Text = "优质DT动态报表";
                m_DocumentFormDynamicDCDS.MdiParent = this;
                m_DocumentFormDynamicDCDS.Show();

                this.Text = "DemoSoft - " + m_DocumentFormDynamicDCDS.Text;

                axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormDynamicDCDS.Handle.ToInt32() );

            }
            else
                m_DocumentFormDynamicDCDS.Activate();

            this.SuspendLayout();

            m_DocumentFormDynamicDCDS.InitSRReport( GlobalSetting.SRReports );

            this.ResumeLayout( false );
        }

        public void LoadNewFile_QualityDCDS()
        {
            if ( m_DocumentFormQualityDCDS.Visible == false )
            {
                m_DocumentFormQualityDCDS = new DocumentForm10();

                m_DocumentFormQualityDCDS.Text = "DCDS股票清单";
                m_DocumentFormQualityDCDS.MdiParent = this;
                m_DocumentFormQualityDCDS.Show();

                this.Text = "DemoSoft - " + m_DocumentFormQualityDCDS.Text;

                axCommandBars.EnableOffice2007FrameHandle( m_DocumentFormQualityDCDS.Handle.ToInt32() );

            }
            else
                m_DocumentFormQualityDCDS.Activate();

            this.SuspendLayout();

            m_DocumentFormQualityDCDS.InitSRReport( GlobalSetting.SRReports );

            this.ResumeLayout( false );
        }

*/

        public void LoadNewHomeDocument()
        {
            if ( m_DocumentHomeForm.Visible == false )
            {
                m_DocumentHomeForm = new DocumentHomeForm();

                m_DocumentHomeForm.Text = "  主页    ";
                m_DocumentHomeForm.MdiParent = this;
                m_DocumentHomeForm.Show();

                this.Text = "Sonima";

                axCommandBars.EnableOffice2007FrameHandle( m_DocumentHomeForm.Handle.ToInt32() );

            }
            else
                m_DocumentHomeForm.Activate();

            this.SuspendLayout();

            //m_DocumentHomeForm.InitSRReport( GlobalSetting.SRReports );

            this.ResumeLayout( false );
        }