예제 #1
0
 private void AddChild(OrgExtList orgExtList, List<OrgExtBusinessObject> _ret)
 {
     if (orgExtList == null) return;
     foreach (OrgExtBusinessObject _obj in orgExtList)
     {
         if (_obj.IsChanged)
         {
             _ret.Add(_obj);
         }
         AddChild(_obj.ChildOrgList, _ret);
     }
 }
예제 #2
0
 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;
 }