示例#1
0
 private bool ControlIDINCollection(string id, DesktopType dt)
 {
     foreach (string s in DeskTopTypeBFL.GetIDCollectionByDesktopType(dt))
     {
         if (id.Equals(s))
         {
             return(true);
         }
     }
     return(false);
 }
示例#2
0
        private bool ControlIDINCollection(string id)
        {
            string      deskType = Request.QueryString["DesktopType"];
            DesktopType ddt      = DesktopType.OA;

            if (deskType.Equals(DesktopType.PM.ToString()))
            {
                ddt = DesktopType.PM;
            }
            foreach (string s in DeskTopTypeBFL.GetIDCollectionByDesktopType(ddt))
            {
                if (id.Equals(s))
                {
                    return(true);
                }
            }
            return(false);
        }
示例#3
0
        public bool ControlInDesktop(string controlID)
        {
            string      strDeskType = Request.QueryString["DesktopType"];
            DesktopType dkTT        = DesktopType.OA;

            deskLabel.Text = "办公管理桌面";
            if (strDeskType.Equals("PM"))
            {
                dkTT           = DesktopType.PM;
                deskLabel.Text = "项目管理桌面";
            }
            List <string> listValue = DeskTopTypeBFL.GetIDCollectionByDesktopType(dkTT);

            foreach (string s in listValue)
            {
                if (s.Equals(controlID))
                {
                    return(true);
                }
            }
            return(false);
        }