You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.1 KiB
61 lines
2.1 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Data;
|
|
|
|
namespace FangYar.IDAL.TBL
|
|
{
|
|
public interface SysUSerRulesIDAL
|
|
{
|
|
/// <summary>
|
|
/// 根据ID获取model
|
|
/// </summary>
|
|
FangYar.Model.TBL.TBL_SYS_USERSRULES_Model GetModelByID(string ID);
|
|
/// <summary>
|
|
/// 添加
|
|
/// </summary>
|
|
bool Add(FangYar.Model.TBL.TBL_SYS_USERSRULES_Model model);
|
|
/// <summary>
|
|
/// 删除
|
|
/// </summary>
|
|
bool Delete(string IDList);
|
|
//根据用户和访问规则类型删除
|
|
bool Delete(string userID, string ruleType);
|
|
/// 根据角色ID删除
|
|
bool DeleteByRulesId(string userID, string ruleType);
|
|
/// <summary>
|
|
/// 编辑
|
|
/// </summary>
|
|
bool Edit(FangYar.Model.TBL.TBL_SYS_USERSRULES_Model model);
|
|
/// <summary>
|
|
/// 获取记录数
|
|
/// </summary>
|
|
/// <param name="strwhere"></param>
|
|
/// <returns></returns>
|
|
int Count(string strwhere);
|
|
/// <summary>
|
|
/// 分页
|
|
/// </summary>
|
|
/// <param name="PageIndex"></param>
|
|
/// <param name="PageSize"></param>
|
|
/// <param name="strwhere"></param>
|
|
/// <param name="order"></param>
|
|
void QueryProc(int PageIndex, int PageSize, string strwhere, string order);
|
|
|
|
List<FangYar.Model.TBL.TBL_SYS_USERSRULES_Model> QueryList(int PageIndex, int PageSize, string strwhere, string order);
|
|
//当前用户下的角色或者权限
|
|
DataTable getUserRules(string UsersUid, string appid, string rulesTypes);
|
|
|
|
//当前用户下的角色或者权限 , 根据机构判断
|
|
DataTable getUserRules(string UsersUid, string appid, string rulesTypes, string Org_Id);
|
|
//当前角色下绑定的用户
|
|
DataTable ChooseUSer(string AppId, string RuleID);
|
|
/// <summary>
|
|
/// 根据账号删除用户角色表
|
|
/// </summary>
|
|
/// <param name="USERS_UID"></param>
|
|
/// <returns></returns>
|
|
bool DeleteByUid(string USERS_UID);
|
|
}
|
|
}
|
|
|