private void Initialize()
        {
            m_DocumentFormSub1      = new DocumentFormSub1();
            m_DocumentFormSub1.Dock = DockStyle.Fill;
            this.SplitContainer.Panel2.Controls.Add(m_DocumentFormSub1);

            m_CurrentDocumen = m_DocumentFormSub1;

            //this.axTabControl.InsertItem( 0, "静态SR初级报表", m_DocumentFormSub1.Handle.ToInt32(), 0 );
        }
        private void Initialize()
        {
            m_DocumentFormSub1 = new DocumentFormSub1();
            m_DocumentFormSub1.Dock = DockStyle.Fill;
            this.SplitContainer.Panel2.Controls.Add( m_DocumentFormSub1 );

            m_CurrentDocumen = m_DocumentFormSub1;

            //this.axTabControl.InsertItem( 0, "静态SR初级报表", m_DocumentFormSub1.Handle.ToInt32(), 0 );
        }
        public void InitSRReport(SRReport[] srReportArray)
        {
            if (m_CurrentSRReportArray == srReportArray)
            {
                return;
            }
            else
            {
                m_CurrentSRReportArray = srReportArray;
            }

            this.ListView.Items.Clear();
            if (this.m_CurrentDocumen != null && m_DocumentFormSub1 != this.m_CurrentDocumen)
            {
                this.m_CurrentDocumen.Visible = false;
            }

            m_DocumentFormSub1.Visible = true;
            this.m_CurrentDocumen      = m_DocumentFormSub1;

            foreach (var item in srReportArray)
            {
                ListViewItem listViewItem = new ListViewItem(item.SRDynamicData.StockSymbol);

                ListViewItem.ListViewSubItem subListViewItem1 = new ListViewItem.ListViewSubItem();
                subListViewItem1.Text = item.SRStaticData.LastStock.StockClose.ToString();

                ListViewItem.ListViewSubItem subListViewItem2 = new ListViewItem.ListViewSubItem();
                subListViewItem2.Text = VolumeString(item.SRDynamicData.CurrentStock.StockVolume);

                listViewItem.SubItems.Add(subListViewItem1);
                listViewItem.SubItems.Add(subListViewItem2);

                this.ListView.Items.Add(listViewItem);

                DocumentFormSub1 documentFormSub1 = new DocumentFormSub1();
                documentFormSub1.InitSRReport(item);
                documentFormSub1.Visible = false;
                documentFormSub1.Dock    = DockStyle.Fill;
                this.SplitContainer.Panel2.Controls.Add(documentFormSub1);

                m_AllDocumenInfo.Add(listViewItem, documentFormSub1);
            }
        }
        public void InitSRReport( SRReport[] srReportArray )
        {
            if ( m_CurrentSRReportArray == srReportArray )
                return;
            else
                m_CurrentSRReportArray = srReportArray;

            this.ListView.Items.Clear();
            if ( this.m_CurrentDocumen != null && m_DocumentFormSub1 != this.m_CurrentDocumen )
                this.m_CurrentDocumen.Visible = false;

            m_DocumentFormSub1.Visible = true;
            this.m_CurrentDocumen = m_DocumentFormSub1;

            foreach ( var item in srReportArray )
            {
                ListViewItem listViewItem = new ListViewItem( item.SRDynamicData.StockSymbol );

                ListViewItem.ListViewSubItem subListViewItem1 = new ListViewItem.ListViewSubItem();
                subListViewItem1.Text = item.SRStaticData.LastStock.StockClose.ToString();

                ListViewItem.ListViewSubItem subListViewItem2 = new ListViewItem.ListViewSubItem();
                subListViewItem2.Text = VolumeString( item.SRDynamicData.CurrentStock.StockVolume );

                listViewItem.SubItems.Add( subListViewItem1 );
                listViewItem.SubItems.Add( subListViewItem2 );

                this.ListView.Items.Add( listViewItem );

                DocumentFormSub1 documentFormSub1 = new DocumentFormSub1();
                documentFormSub1.InitSRReport( item );
                documentFormSub1.Visible = false;
                documentFormSub1.Dock = DockStyle.Fill;
                this.SplitContainer.Panel2.Controls.Add( documentFormSub1 );

                m_AllDocumenInfo.Add( listViewItem, documentFormSub1 );
            }
        }