public bool HasPurview(int aGroupid) { CacheEmployeeGroup oCacheEmployeeGroup = new CacheEmployeeGroup(); BaseEmployeeGroup oGroup = oCacheEmployeeGroup.GetEmployeeGroup(aGroupid); for (int i = 0; i < _listPurviewPage.Count; i++) { for (int k = 0; k < oGroup.HasPurviewPageId.Count; k++) { if (_listPurviewPage[i].Pageid == oGroup.HasPurviewPageId[k]) { return(true); } } } foreach (BaseLeftMenu child in ChildPages) { for (int i = 0; i < child.PurviewPages.Count; i++) { for (int k = 0; k < oGroup.HasPurviewPageId.Count; k++) { if (child.PurviewPages[i].Pageid == oGroup.HasPurviewPageId[k]) { return(true); } } } } return(false); }
public bool HasPurview(int aGroupid) { CacheEmployeeGroup oCacheEmployeeGroup = new CacheEmployeeGroup(); BaseEmployeeGroup oGroup = oCacheEmployeeGroup.GetEmployeeGroup(aGroupid); for (int i = 0; i < _listPurviewPage.Count; i++) { for (int k = 0; k < oGroup.HasPurviewPageId.Count; k++) { if (_listPurviewPage[i].Pageid == oGroup.HasPurviewPageId[k]) { return true; } } } foreach (BaseLeftMenu child in ChildPages) { for (int i = 0; i < child.PurviewPages.Count; i++) { for (int k = 0; k < oGroup.HasPurviewPageId.Count; k++) { if (child.PurviewPages[i].Pageid == oGroup.HasPurviewPageId[k]) { return true; } } } } return false; }
public bool IsSetToGroup(int aGroupid) { CacheEmployeeGroup oCacheEmployeeGroup = new CacheEmployeeGroup(); BaseEmployeeGroup oBaseGroup = oCacheEmployeeGroup.GetEmployeeGroup(aGroupid); bool IsSetTo = false; for (int i = 0; i < oBaseGroup.HasPurviewPageId.Count; i++) { if (oBaseGroup.HasPurviewPageId[i] == this._PageId) { IsSetTo = true; break; } } return IsSetTo; }
public bool IsSetToGroup(int aGroupid) { CacheEmployeeGroup oCacheEmployeeGroup = new CacheEmployeeGroup(); BaseEmployeeGroup oBaseGroup = oCacheEmployeeGroup.GetEmployeeGroup(aGroupid); bool IsSetTo = false; for (int i = 0; i < oBaseGroup.HasPurviewPageId.Count; i++) { if (oBaseGroup.HasPurviewPageId[i] == this._PageId) { IsSetTo = true; break; } } return(IsSetTo); }