Exemplo n.º 1
0
 /// <summary>
 /// 新增角色权限表
 /// </summary>
 /// <param name="sql"></param>
 /// <returns></returns>
 public int AddPer(string sql)
 {
     if (SqlDBHelper.ADU(sql))
     {
         return(1);
     }
     else
     {
         return(2);
     }
 }
Exemplo n.º 2
0
        //根据角色id删除角色权限表
        public int DeletePer(string rid)
        {
            string sql = string.Format(@" Delete  from [dbo].[GuanliPop]  where [GuanliID] ='{0}'", rid);

            if (SqlDBHelper.ADU(sql))
            {
                return(1);
            }
            else
            {
                return(2);
            }
        }