private void ShowData()
 {
     List<OrgExtInfo> _rootOrgExtData;
     CurrentOrgExtList = new OrgExtList();
     using (SinoSZClientBase.CommonService.CommonServiceClient _csc = new SinoSZClientBase.CommonService.CommonServiceClient())
     {
         _rootOrgExtData = _csc.GetOrgExtRootData(PropertieDefines.ToArray()).ToList<OrgExtInfo>();
     }
     OrgExtFinder _finder = new OrgExtFinder(SessionClass.CurrentSinoUser.CurrentPost.PostDwID);
     List<OrgExtInfo> olist = _rootOrgExtData.FindAll(new Predicate<OrgExtInfo>(_finder.FindByID));
     olist.Sort(new OrgExtComparer());
     foreach (OrgExtInfo _dw in olist)
     {
         OrgExtBusinessObject _bi = new OrgExtBusinessObject(_dw, ExtendFields);
         _bi.ChildOrgList.Add(new OrgExtBusinessObject(null, null));
         CurrentOrgExtList.Add(_bi);
     }
     this.treeList1.DataSource = CurrentOrgExtList;
 }
        private void treeList1_BeforeExpand(object sender, DevExpress.XtraTreeList.BeforeExpandEventArgs e)
        {
            OrgExtBusinessObject _orgExtData = (OrgExtBusinessObject)treeList1.GetDataRecordByNode(e.Node);
            if (_orgExtData == null) return;
            if (_orgExtData.ChildOrgList.Count == 1)
            {
                OrgExtBusinessObject _firstData = _orgExtData.ChildOrgList[0];
                if (_firstData.IsBlank)
                {
                    this.treeList1.BeginUpdate();
                    _orgExtData.ChildOrgList.Clear();
                    foreach (OrgExtInfo _dw in GetChildOrgList((string)_orgExtData.GetData("ZZJGID")))
                    {
                        OrgExtBusinessObject _bi = new OrgExtBusinessObject(_dw, ExtendFields);
                        _bi.ChildOrgList.Add(new OrgExtBusinessObject(null, null));
                        _orgExtData.ChildOrgList.Add(_bi);
                    }

                    this.treeList1.EndUpdate();
                }
            }
        }