public override void Persist() { Buffer.Cache.Clear(); base.Persist(); foreach (INCategory item in Caches[typeof(INCategory)].Cached) { if (item.TempParentID < 0) { foreach (INCategory item2 in Caches[typeof(INCategory)].Cached) { if (item2.TempChildID == item.TempParentID) { item.ParentID = item2.CategoryID; item.TempParentID = item2.CategoryID; Caches[typeof(INCategory)].SetStatus(item, PXEntryStatus.Updated); } } } } base.Persist(); Members.View.RequestRefresh(); CategoryCache <INCategory> .Clear(this); CategoryCache <INFolderCategory> .Clear(this); }
/// <summary> /// 清理缓存 /// </summary> public virtual void ClearCache() { CategoryCache.Clear(); CategoryListCache.Clear(); PropertyListCache.Clear(); }