SVN r923
SVN-Revision: r923
This commit is contained in:
@@ -37,7 +37,9 @@ namespace Lskj.Business.Impl
|
||||
/// <exception cref="System.NotImplementedException"></exception>
|
||||
public static DataTable GetReportDetailPages(string menuCode)
|
||||
{
|
||||
string sqlTemplate = @"WITH UserRoles AS (
|
||||
try
|
||||
{
|
||||
string sqlTemplate = @"WITH UserRoles AS (
|
||||
SELECT r.roleName
|
||||
FROM p_systemRoleOperSetTab AS ro
|
||||
JOIN p_systemRoleSetTab AS r ON r.id = ro.roleId
|
||||
@@ -55,8 +57,15 @@ namespace Lskj.Business.Impl
|
||||
FROM UserRoles AS ur
|
||||
WHERE CHARINDEX('{{&' + ur.roleName + '&}}', pm.privilegeOper) > 0)
|
||||
) ORDER BY pm.orderid;";
|
||||
string sqlValue = string.Format(sqlTemplate, ERPInfo.Instance.UserName, menuCode);
|
||||
return SqlHelper.ExecuteDataTable(sqlValue);
|
||||
string sqlValue = string.Format(sqlTemplate, ERPInfo.Instance.UserName, menuCode);
|
||||
return SqlHelper.ExecuteDataTable(sqlValue);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string sqlValue = "select * from p_systemDlltabDetail where tab=@tab and isVisible=0 order by orderid";
|
||||
return SqlHelper.ExecuteDataTable(sqlValue, new SqlParameter[] { new SqlParameter("@tab", menuCode) });
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:获取报表明细列</para>
|
||||
|
||||
Reference in New Issue
Block a user