56 lines
1.6 KiB
C#
56 lines
1.6 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Data;
|
|||
|
|
using WMS.Model.Base;
|
|||
|
|
using WMS.SqlServerData.SystemManageData;
|
|||
|
|
using WMS.IData;
|
|||
|
|
using WMS.Model.SystemManage;
|
|||
|
|
|
|||
|
|
namespace WMS.Business.SystemManage
|
|||
|
|
{
|
|||
|
|
public class BussSysRole:IBussFactory
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 获取角色信息
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="strRoleId">Role Name</param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
public List<RoleModel> GetRole(string strRoleId)
|
|||
|
|
{
|
|||
|
|
return DataProvider.Instance.SysRole.GetRole(strRoleId);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 获取角色对应的用户信息
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="strRoleId">Role Name</param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
public List<UserDataModel> GetRoleUser(string strRoleId)
|
|||
|
|
{
|
|||
|
|
return DataProvider.Instance.SysRole.GetRoleUser(strRoleId);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 获取角色对象的功能操作
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="strRoleId">Role Name</param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
public List<RoleMenuFunModel> GetRoleMenuFun(string strRoleId, string strType)
|
|||
|
|
{
|
|||
|
|
return DataProvider.Instance.SysRole.GetRoleMenuFun(strRoleId, strType);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
///// <summary>
|
|||
|
|
///// 获取角色对象的功能操作
|
|||
|
|
///// </summary>
|
|||
|
|
///// <param name="strRoleId">Role Name</param>
|
|||
|
|
///// <returns></returns>
|
|||
|
|
//public DataSet GetRoleMenuFun(string strRoleId)
|
|||
|
|
//{
|
|||
|
|
// return DataProvider.Instance.SysRole.GetRoleMenuFun(strRoleId);
|
|||
|
|
//}
|
|||
|
|
}
|
|||
|
|
}
|