コード例 #1
0
ファイル: BaseLeftMenu.cs プロジェクト: dongliang/Scut
    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);
    }
コード例 #2
0
ファイル: BaseLeftMenu.cs プロジェクト: rongxiong/Scut
 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;
 }
コード例 #3
0
ファイル: BasePurviewPage.cs プロジェクト: rongxiong/Scut
    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;
    }
コード例 #4
0
    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);
    }