SVN-Revision: r923
This commit is contained in:
cyf
2025-08-07 09:20:25 +00:00
parent 25e9863964
commit f7a53010be
9 changed files with 376 additions and 34 deletions
+12 -3
View File
@@ -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>