/// <summary>
        ///     Create a DataView Tab
        /// </summary>
        private void ViewDataRecord()
        {
            //由于Collection 和 Document 都可以触发这个事件,所以,先把Tag以前的标题头去掉
            //Collectiong:XXXX 和 Document:XXXX 都统一成 XXXX
            String DataKey = SystemManager.SelectTagData;
            if (_viewTabList.ContainsKey(DataKey))
            {
                tabView.SelectTab(_viewTabList[DataKey]);
            }
            else
            {
                var mDataViewInfo = new MongoDbHelper.DataViewInfo
                {
                    strDBTag = SystemManager.SelectObjectTag,
                    IsUseFilter = false,
                    IsReadOnly = _config.IsReadOnly,
                    mDataFilter = new DataFilter()
                };

                //mDataViewInfo.IsSafeMode = config.IsSafeMode;

                ctlDataView DataViewctl;
                switch (SystemManager.SelectTagType)
                {
                    case MongoDbHelper.GRID_FILE_SYSTEM_TAG:
                        DataViewctl = new ctlGFSView(mDataViewInfo);
                        break;
                    case MongoDbHelper.USER_LIST_TAG:
                        DataViewctl = new ctlUserView(mDataViewInfo);
                        break;
                    default:
                        DataViewctl = new ctlDocumentView(mDataViewInfo);
                        break;
                }


                DataViewctl.mDataViewInfo = mDataViewInfo;

                var DataTab = new TabPage(SystemManager.GetCurrentCollection().FullName)
                {
                    Tag = SystemManager.SelectObjectTag,
                    ToolTipText = SystemManager.SelectObjectTag
                };

                switch (SystemManager.SelectTagType)
                {
                    case MongoDbHelper.COLLECTION_TAG:
                        DataTab.ImageIndex = 2;
                        break;
                    case MongoDbHelper.USER_LIST_TAG:
                        DataTab.ImageIndex = 3;
                        break;
                    default:
                        DataTab.ImageIndex = 4;
                        break;
                }

                DataTab.Controls.Add(DataViewctl);
                DataViewctl.Dock = DockStyle.Fill;
                tabView.Controls.Add(DataTab);

                var DataMenuItem = new ToolStripMenuItem(SystemManager.GetCurrentCollection().Name)
                {
                    Tag = DataTab.Tag,
                    Image = GetSystemIcon.TabViewImage.Images[DataTab.ImageIndex]
                };
                collectionToolStripMenuItem.DropDownItems.Add(DataMenuItem);
                DataMenuItem.Click += (x, y) => tabView.SelectTab(DataTab);
                _viewTabList.Add(DataKey, DataTab);
                _viewInfoList.Add(DataKey, mDataViewInfo);
                DataViewctl.CloseTab += (x, y) =>
                {
                    tabView.Controls.Remove(DataTab);
                    _viewTabList.Remove(DataKey);
                    _viewInfoList.Remove(DataKey);
                    collectionToolStripMenuItem.DropDownItems.Remove(DataMenuItem);
                    DataTab = null;
                };
                tabView.SelectTab(DataTab);
            }
        }
 /// <summary>
 ///     初始化
 /// </summary>
 /// <param name="mDataViewInfo">Filter也是DataViewInfo的一个属性,所以这里加上参数</param>
 public frmQuery(MongoDbHelper.DataViewInfo mDataViewInfo)
 {
     InitializeComponent();
     CurrentDataViewInfo = mDataViewInfo;
     SystemManager.SelectObjectTag = mDataViewInfo.strDBTag;
 }
 /// <summary>
 ///     初始化
 /// </summary>
 /// <param name="_DataViewInfo"></param>
 public ctlDataView(MongoDbHelper.DataViewInfo _DataViewInfo)
 {
     InitializeComponent();
     mDataViewInfo = _DataViewInfo;
 }
 public frmExport(MongoDbHelper.DataViewInfo info)
 {
     InitializeComponent();
     _viewinfo = info;
 }