using Learun.Util;
using System.Collections.Generic;
using System.Data;
namespace Learun.Application.Organization
{
///
/// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
/// Copyright (c) 2013-2018 Hexagon PPM
/// 创建人:研发部
/// 日 期:2017.03.06
/// 描 述:用户模块业务类(接口)
///
public interface UserIBLL
{
#region 获取数据
///
/// 用户列表(根据公司主键)
///
/// 公司主键
///
List GetList(string companyId);
///
/// 用户列表(根据公司主键,部门主键)
///
/// 公司主键
/// 部门主键
/// 查询关键词
///
List GetList(string companyId, string departmentId, string keyword);
///
/// 用户列表(全部)
///
///
List GetAllList();
///
/// 用户列表(根据部门主键)
///
/// 部门主键
///
List GetListByDepartmentId(string departmentId);
///
/// 获取分页数据
///
/// 公司主键
/// 部门主键
/// 分页参数
/// 查询关键词
///
List GetPageList(string companyId, string departmentId, Pagination pagination, string keyword);
///
/// 用户列表(导出Excel)
///
///
void GetExportList();
///
/// 获取实体,通过用户账号
///
/// 用户账号
///
UserEntity GetEntityByAccount(string account);
///
/// 获取用户数据
///
/// 用户主键
///
UserEntity GetEntityByUserId(string userId);
///
/// 获取用户列表数据
///
/// 用户主键串
///
List GetListByUserIds(string userIds);
///
/// 获取映射数据
///
///
Dictionary GetModelMap();
///
/// 获取超级管理员用户列表
///
///
IEnumerable GetAdminList();
///
/// 用户实体
///
/// 主键值
///
UserEntity GetEntity(string keyValue);
#endregion
#region 提交数据
///
/// 虚拟删除
///
/// 主键
void Delete(string keyValue);
///
/// 保存用户表单(新增、修改)
///
/// 主键值
/// 用户实体
///
void SaveEntity(string keyValue, UserEntity userEntity);
///
/// 修改用户登录密码
///
/// 新密码(MD5 小写)
/// 旧密码(MD5 小写)
bool RevisePassword(string newPassword, string oldPassword);
///
/// 重置密码(000000)
///
/// 账号主键
void ResetPassword(string keyValue);
///
/// 修改用户状态
///
/// 主键值
/// 状态:1-启动;0-禁用
void UpdateState(string keyValue, int state);
///
/// 修改用户登录密码
///
///用户实体对象
/// 新密码(MD5 小写)
/// 旧密码(MD5 小写)
bool RevisePasswordByUserId(UserEntity entity, string newPassword, string oldPassword);
///
/// 修改用户OpenId
///
/// 主键值
/// openId
void UpdateOpenId(string keyValue, string openId);
#endregion
#region 验证数据
///
/// 账户不能重复
///
/// 账户值
/// 主键
///
bool ExistAccount(string account, string keyValue);
#endregion
#region 扩展方法
///
/// 验证登录 F_UserOnLine 0 不成功,1成功
///
/// 账号
/// 密码 MD5 32位 小写
///
UserEntity CheckLogin(string username, string password);
///
/// 获取用户头像
///
/// 用户ID
void GetImg(string userId);
///
/// 获取通用的人员选择
///
///
///
///
IEnumerable GetCommonSelectUsers(Pagination pagination, string queryJson);
///
/// 验证登录OpenId
///
/// OpenId
///
UserEntity CheckLoginByOpenId(string openId);
#endregion
}
}