提交当前本机整理版本
This commit is contained in:
@@ -1206,4 +1206,23 @@ namespace Lskj.Business.Impl
|
||||
/// <para>创建人:</para>
|
||||
/// <para>创建日期:2023-05-12</para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="typeCode">模块编号.</param>
|
||||
/// <returns>DataRow.</returns>
|
||||
public static DataRow GetAgencyAuthority(string typeCode)
|
||||
{
|
||||
DataTable dtTable = new DataTable();
|
||||
if (SqlHelper.ExecuteDataTable("select object_id('p_systemPrivilegeAgentTab')").Rows.Count > 0 && int.Parse(SqlHelper.ExecuteScalar("select count(*) from sysobjects where id = object_id('p_systemPrivilegeAgentTab')") + "") > 0)
|
||||
{
|
||||
string sqlValue = string.Format("select sourceuser from p_systemPrivilegeAgentTab where modid='{0}' and targetuser='{1}' and starttime<=getdate() and endtime>=getdate() and ban=1", typeCode, ERPInfo.Instance.UserName);
|
||||
dtTable = SqlHelper.ExecuteDataTable(sqlValue);
|
||||
}
|
||||
return dtTable.Rows.Count > 0 ? dtTable.Rows[0] : null;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user