#region
using System;
using System.Collections.Generic;
using System.Data;
using CSFrameworkV5.Core;
#endregion
namespace CSFrameworkV5.Interfaces
{
///
/// 用户功能策略接口
///
public interface IBridge_User
{
///
/// 复制用户权限
///
/// 来源用户
/// 目的用户
///
bool CopyPermission(string sourceUser, string targetUser);
///
/// 删除用户
///
/// 用户编号
///
bool DeleteUser(string account);
///
/// 删除用户的组
///
/// 用户编号
/// 组编号
///
bool DeleteUserGroup(string account, string groupCode);
///
/// 删除用户的角色
///
/// 用户编号
/// 角色编号
///
bool DeleteUserRole(string account, string roleID);
///
/// 销毁用户的权限
///
/// 用户编号
///
bool DestroyRights(string account);
///
/// 检查用户编号是否存在
///
/// 用户编号
///
bool ExistsUser(string account);
///
/// 取指定用户的资料
///
/// 用户编号
///
DataTable GetUser(string account);
///
/// 获取用户的权限清单
///
///
///
DataTable GetUserActionsList(string account);
///
/// 取指定用户所属的组
///
/// 用户编号
///
DataTable GetUserGroups(string account);
///
/// 获取用户报表数据
///
/// 起始日期
/// 截止日期
///
DataSet GetUserReportData(DateTime createDateFrom,
DateTime createDateTo);
///
/// 获取指定用户的角色
///
/// 用户编号
///
DataTable GetUserRoles(string currentUser);
///
/// 返回指定用户的角色资料
///
/// 用户编号
/// 搜索内容,匹配角色编号及名称
///
DataTable GetUserRoles4Picker(string currentUser, string content);
///
/// 获取指定用户的角色
///
/// 用户编号
///
DataTable GetUserRolesAll(string user);
///
/// 取用户表
///
///
DataTable GetUsers();
///
/// 用户登录
///
/// 用户登录信息
///
DataTable Login(LoginUser loginUser);
///
/// 用户登出
///
/// 用户登录信息
void Logout(LoginUser loginUser);
///
/// 修改用户密码
///
/// 用户编号
/// 旧密码
/// 新密码
///
bool ModifyPassword(string account, string OldPwd, string NewPwd);
bool insrer(string account, string OldPwd, string NewPwd);
///
/// 查询用户
///
/// 查询内容
///
DataTable Search(string content);
///
/// 搜索用户资料
///
/// 搜索内容
/// 忽略改组的用户
///
List SearchEx(string content, string ignoreGroup);
///
/// 锁定,解除锁定
///
///
///
///
bool SetLockState(string account, bool isLock);
///
/// 用户登录
///
/// 用户编号
/// 加密后的密码
///
bool TryLogin(string user, string encodedPwd);
///
/// 提交用户数据
///
/// 修改过的用户数据
///
bool Update(DataSet ds);
}
}