using Common.Wechat;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using ZcPeng.PublicLibrary;
namespace CoreEntity.DAL
{
public class PermissionDAL
{
///
///
/// ContactId
///
///
///
///
public static Tuple getPermission(string permUri, string roleid)
{
string commandTextContact = "Select A.PermissionRule,PermissionRuleType From " + Config.TablePrefix+ "RoleRelatePermission A " +
" left join " + Config.TablePrefix + "Permission B on A.PermissionId = B.Id " +
"Where A.RoleId=@RoleId and B.PermissionUrl = @PermissionUrl";
string resultContact;
string rule = "";
string ruletype = "";
List> parametersContact = new List>();
DataTable dt = new DataTable();
if (permUri != null && roleid != null)
{
parametersContact.Add(new List