using RS.Model;
using RS.SQLServerDAL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RS.BLL
{
public class BToolsManageInfo
{
SToolsManage sToolsManage = new SToolsManage();
#region 操作员管理
///
/// 查询操作员信息
///
///
public DataTable GetOperatorInfo()
{
return sToolsManage.SelOperator();
}
public List GetOperatorNameInfo(out int length)
{
return sToolsManage.SelOperatorName(out length);
}
///
/// 保存操作员信息
///
///
public bool SaveToolsOperatorsInfo(string operatorNum)
{
return sToolsManage.SaveToolsOperators(operatorNum);
}
///
/// 删除操作员
///
///
///
public bool DeleteToolsOperators(string operatorNum)
{
return sToolsManage.DeleteToolsOperators(operatorNum);
}
#endregion 操作员管理
#region 客户端登录账号管理
///
/// 查询当前分组下的用户
///
///
///
public DataTable GetUserManageInfo(string userGroup)
{
return sToolsManage.SelUserManage(userGroup);
}
///
/// 保存操作员信息
///
///
public bool SaveUserManageInfo(ToolsUsersManage toolsUsersManage)
{
return sToolsManage.SaveUserManage(toolsUsersManage);
}
///
/// 查询当前用户是否已经存在
///
///
///
public bool SelUserNameInfo(string userName, string user_group)
{
return sToolsManage.SelUserName(userName, user_group);
}
///
/// 根据用户名删除用户
///
///
///
public bool DeleteUser(string userName,string user_group)
{
return sToolsManage.DeleteUserInfo(userName, user_group);
}
///
/// 根据用户名修改用户密码
///
///
///
public bool ModifyUser(string userName,string userPw,string userGrouping)
{
return sToolsManage.ModifyUserInfo(userName,userPw, userGrouping);
}
#endregion 客户端登录账号管理
}
}