public void BindTreeList()
        {
            this._Clb = CreateLib("");
            DataSet ds = this._Clb.FixedLibrary.LibraryDataSet;

            this.bindingSource1.DataSource  = ds.Tables["定额表"].Copy();
            this.comboxTreelist1.DataSource = this.bindingSource1;
            this.bindingSource1.Filter      = " 1=1 ";
            this.comboxTreelist1.CheckNodes.Clear();
            if (this.m_CurrQD != null)
            {
                this.listGallery1.textEdit1.Text = (this.m_CurrQD as _Entity_SubInfo).OLDXMBM;
            }
            ListBox_Click(this.listGallery1.listBoxControl1, null);
        }
        private _Library CreateLib(string GalleryName)
        {
            _Library lb = null;

            if (true)
            {
                lb = this.Activitie.Property.Libraries;
            }
            else
            {
                GalleryName = GalleryName.Replace(".qdsx", "");
                lb          = new _Library();
                String GalleryLibName = "";
                String GalleryRule    = "";
                Regex  r  = new Regex(@"\d{4}"); // 定义一个Regex对象实例
                Match  mc = r.Match(GalleryName);
                if (mc.Success)
                {
                    if (mc.Value != "")
                    {
                        GalleryRule    = mc.Value;
                        GalleryLibName = GalleryName.Replace(mc.Value, "");
                    }
                }

                lb.AppFolder            = APP.Application.Global.AppFolder;
                lb.ListGallery.LibName  = GalleryLibName;
                lb.ListGallery.Rule     = GalleryRule;
                lb.FixedLibrary.LibName = GalleryLibName.Replace("清单库", "定额价目表");
                lb.FixedLibrary.Rule    = GalleryRule;
                lb.Init(APP.Application);
            }

            QDPath = lb.ListGallery.Rule + lb.ListGallery.LibName;
            DEPath = lb.FixedLibrary.Rule + lb.FixedLibrary.LibName;
            return(lb);
        }