You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
2.9 KiB
96 lines
2.9 KiB
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 操作员管理
|
|
/// <summary>
|
|
/// 查询操作员信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public DataTable GetOperatorInfo()
|
|
{
|
|
return sToolsManage.SelOperator();
|
|
}
|
|
public List<string> GetOperatorNameInfo(out int length)
|
|
{
|
|
return sToolsManage.SelOperatorName(out length);
|
|
}
|
|
/// <summary>
|
|
/// 保存操作员信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public bool SaveToolsOperatorsInfo(string operatorNum)
|
|
{
|
|
return sToolsManage.SaveToolsOperators(operatorNum);
|
|
}
|
|
/// <summary>
|
|
/// 删除操作员
|
|
/// </summary>
|
|
/// <param name="stationType"></param>
|
|
/// <returns></returns>
|
|
public bool DeleteToolsOperators(string operatorNum)
|
|
{
|
|
return sToolsManage.DeleteToolsOperators(operatorNum);
|
|
}
|
|
#endregion 操作员管理
|
|
|
|
#region 客户端登录账号管理
|
|
|
|
/// <summary>
|
|
/// 查询当前分组下的用户
|
|
/// </summary>
|
|
/// <param name="userGroup"></param>
|
|
/// <returns></returns>
|
|
public DataTable GetUserManageInfo(string userGroup)
|
|
{
|
|
return sToolsManage.SelUserManage(userGroup);
|
|
}
|
|
/// <summary>
|
|
/// 保存操作员信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public bool SaveUserManageInfo(ToolsUsersManage toolsUsersManage)
|
|
{
|
|
return sToolsManage.SaveUserManage(toolsUsersManage);
|
|
}
|
|
/// <summary>
|
|
/// 查询当前用户是否已经存在
|
|
/// </summary>
|
|
/// <param name="toolsUsersManage"></param>
|
|
/// <returns></returns>
|
|
public bool SelUserNameInfo(string userName, string user_group)
|
|
{
|
|
return sToolsManage.SelUserName(userName, user_group);
|
|
}
|
|
/// <summary>
|
|
/// 根据用户名删除用户
|
|
/// </summary>
|
|
/// <param name="userName"></param>
|
|
/// <returns></returns>
|
|
public bool DeleteUser(string userName,string user_group)
|
|
{
|
|
return sToolsManage.DeleteUserInfo(userName, user_group);
|
|
}
|
|
/// <summary>
|
|
/// 根据用户名修改用户密码
|
|
/// </summary>
|
|
/// <param name="userName"></param>
|
|
/// <returns></returns>
|
|
public bool ModifyUser(string userName,string userPw,string userGrouping)
|
|
{
|
|
return sToolsManage.ModifyUserInfo(userName,userPw, userGrouping);
|
|
}
|
|
#endregion 客户端登录账号管理
|
|
}
|
|
}
|