SVN r676
SVN-Revision: r676
This commit is contained in:
@@ -725,6 +725,10 @@ namespace Lskj.Business.Impl
|
|||||||
{
|
{
|
||||||
fields += " ,IsUnioDetail";
|
fields += " ,IsUnioDetail";
|
||||||
}
|
}
|
||||||
|
if (BaseImpl.HasExistsColumn("p_systembillauditAttach", "gridDetailCheck"))
|
||||||
|
{
|
||||||
|
fields += " ,gridDetailCheck";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
string sqlCond = string.Empty;
|
string sqlCond = string.Empty;
|
||||||
@@ -975,23 +979,4 @@ namespace Lskj.Business.Impl
|
|||||||
/// <para>创建人:</para>
|
/// <para>创建人:</para>
|
||||||
/// <para>创建日期:2023-05-12</para>
|
/// <para>创建日期:2023-05-12</para>
|
||||||
/// <para>修改人:</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