SVN-Revision: r468
This commit is contained in:
wyf
2025-04-09 09:51:07 +00:00
parent be3557c043
commit 62a5bc8f66
+13 -1
View File
@@ -234,7 +234,8 @@ namespace Lskj.Business.Impl
}
return 1;
}
else {
else
{
string sqlValue = string.Format(@"update {0} set {1}printCount=isnull({1}printCount,0)+1,
{1}printLastTime=getdate(),{1}printLastOper='{4}'
@@ -1033,6 +1034,17 @@ namespace Lskj.Business.Impl
string sqlValue = string.Format("select * from P_systempopupmenu where isnull(visible,0)=0 and (isnull(privilegeOper,'')='' or charindex(',{0},',','+privilegeOper+',')>0) and tab=@tab ", ERPInfo.Instance.UserName) + where + " order by orderid";
return SqlHelper.ExecuteDataTable(sqlValue, new SqlParameter[] { new SqlParameter("@tab", key) });
}
/// <summary>
/// 获取单个右键菜单
/// </summary>
/// <param name="key"></param>
/// <param name="type"></param>
/// <returns></returns>
public static DataRow GetBaseGridRightMenuById(string id)
{
string sqlValue = $"select * from P_systempopupmenu where id = '{id}'";
return BaseImpl.GetDataRowResult(sqlValue);
}
public static bool IsGridViewRightMenuBtnEdit(string key, ModuleType type = ModuleType.BaseModule)
{
DataTable rightMentTab = GetBaseGridRightMenus(key, type);