/// <summary>
        /// 添加功能
        /// </summary>
        /// <returns></returns>
        public string adddata(FormCollection collection)
        {
            string s       = string.Empty;
            string funName = Request.Form["funName"].ToString();
            int    menuId  = helpcommon.ParmPerportys.GetNumParms(Request.Form["menuId"].ToString());

            int funIndex = helpcommon.ParmPerportys.GetNumParms(Request.Form["funIndex"].ToString());
            int UserId   = userInfo.User.Id;

            bll.menubll      menuBll = new bll.menubll();
            IDataParameter[] ipara   = new IDataParameter[] {
                new SqlParameter("funName", SqlDbType.NVarChar, 20),
                new SqlParameter("menuId", SqlDbType.Int, 4),
                new SqlParameter("funIndex", SqlDbType.Int, 4),
                new SqlParameter("UserId", SqlDbType.Int, 4)
            };
            ipara[0].Value = funName;
            ipara[1].Value = menuId;
            ipara[2].Value = funIndex;
            ipara[3].Value = UserId;

            s = menuBll.Add(ipara, "funPermissonAdd");

            return(s);
        }
        /// <summary>
        /// 添加菜单
        /// </summary>
        /// <returns></returns>
        public string adddata(FormCollection collection)
        {
            string s        = string.Empty;
            string menuName = Request.Form["menuName"].ToString();
            string MenuSrc  = Request.Form["MenuSrc"].ToString();

            int MenuLevel = helpcommon.ParmPerportys.GetNumParms(Request.Form["MenuLevel"].ToString());
            int MenuIndex = helpcommon.ParmPerportys.GetNumParms(Request.Form["MenuIndex"].ToString());
            int UserId    = 1;

            bll.menubll      menuBll = new bll.menubll();
            IDataParameter[] ipara   = new IDataParameter[] {
                new SqlParameter("menuName", SqlDbType.NVarChar, 20),
                new SqlParameter("MenuSrc", SqlDbType.NVarChar, 500),
                new SqlParameter("MenuLevel", SqlDbType.Int, 4),
                new SqlParameter("MenuIndex", SqlDbType.Int, 4),
                new SqlParameter("UserId", SqlDbType.Int, 4)
            };
            ipara[0].Value = menuName;
            ipara[1].Value = MenuSrc;
            ipara[2].Value = MenuLevel;
            ipara[3].Value = MenuIndex;
            ipara[4].Value = UserId;

            s = menuBll.Add(ipara, "menuAdd");

            return(s);
        }