using LeaRun.Application.Entity.BaseManage;
using LeaRun.Util.WebControl;
using System.Collections.Generic;
using System.Data;
using LeaRun.Application.Code;
namespace LeaRun.Application.IService.BaseManage
{
///
/// 版 本
/// Copyright (c) 2013-2016 上海力软信息技术有限公司
/// 创建人:佘赐雄
/// 日 期:2015.11.03 10:58
/// 描 述:用户管理
///
public interface IUserService
{
#region 获取数据
///
/// 用户列表
///
///
DataTable GetTable();
///
/// 用户列表
///
///
IEnumerable GetList();
///
/// 用户列表
///
/// 分页
/// 查询参数
///
IEnumerable GetPageList(Pagination pagination, string queryJson);
///
/// 用户列表(ALL)
///
///
DataTable GetAllTable();
///
/// 用户实体
///
/// 主键值
///
UserEntity GetEntity(string keyValue);
///
/// 登录验证
///
/// 用户名
///
UserEntity CheckLogin(string username);
///
/// 导出用户列表
///
///
DataTable GetExportList();
#endregion
#region 验证数据
///
/// 账户不能重复
///
/// 账户值
/// 主键
///
bool ExistAccount(string account, string keyValue);
#endregion
#region 提交数据
///
/// 删除用户
///
/// 主键
void RemoveForm(string keyValue);
///
/// 保存用户表单(新增、修改)
///
/// 主键值
/// 用户实体
///
string SaveForm(string keyValue, UserEntity userEntity);
///
/// 修改用户登录密码
///
/// 主键值
/// 新密码(MD5 小写)
void RevisePassword(string keyValue, string Password);
///
/// 修改用户状态
///
/// 主键值
/// 状态:1-启动;0-禁用
void UpdateState(string keyValue, int State);
///
/// 修改用户信息
///
/// 实体对象
void UpdateEntity(UserEntity userEntity);
#endregion
}
}