SVN r486
SVN-Revision: r486
This commit is contained in:
@@ -154,6 +154,10 @@ namespace Lskj.Business.Impl
|
||||
{
|
||||
field += ",MuitlAuditBackFlag";
|
||||
}
|
||||
if (HasExistsColumn("p_systembilltype", "DisableAutomaticRefresh"))
|
||||
{
|
||||
field += ",DisableAutomaticRefresh";
|
||||
}
|
||||
string sqlValue = string.Format("select mastertable,overbacksql,overbackkey,overbackoper,overbackcond,prefix,formkey,billPrintType {0} from p_systembilltype where typecode=@DllCoid", field);
|
||||
DataTable dtTable = SqlHelper.ExecuteDataTable(sqlValue, new SqlParameter[] { new SqlParameter("@DllCoid", menuCode) });
|
||||
return dtTable.Rows.Count > 0 ? dtTable.Rows[0] : null;
|
||||
@@ -408,23 +412,4 @@ namespace Lskj.Business.Impl
|
||||
/// <para>创建人:</para>
|
||||
/// <para>创建日期:2023-05-12</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;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
/// <para>
|
||||
Reference in New Issue
Block a user