using Central.Control.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MES.Production.Service.IService
{
///
/// Service层基本用户信息(登录)接口
/// add 作者: 季健国 QQ:181589805 by 2016-05-22
///
public interface IUserManage : IRepository
{
///
/// 管理用户登录验证,并返回用户信息与权限集合
///
SYS_USER UserLogin(string username, string password);
///
/// 是否超级管理员
///
bool IsAdmin(int userId);
///
/// 根据用户ID获取用户名,不存在返回空
///
string GetUserName(int id);
///
/// 根据用户ID获取本职部门名称
///
string GetUserDptName(int id);
///
/// 删除用户
///
bool Remove(int userId);
///
/// 根据用户构造用户基本信息
///
Account GetAccountByUser(SYS_USER user);
///
/// 从Cookie中获取用户信息
///
Account GetAccountByCookie();
}
}