SVN r468
SVN-Revision: r468
This commit is contained in:
@@ -213,7 +213,7 @@ namespace Lskj.Business.Impl
|
|||||||
if (primaryValue.Contains(","))
|
if (primaryValue.Contains(","))
|
||||||
{
|
{
|
||||||
HashSet<string> hashSet = new HashSet<string>(primaryValue.Split(','));//去重,避免多选时同一条数据记录多次
|
HashSet<string> hashSet = new HashSet<string>(primaryValue.Split(','));//去重,避免多选时同一条数据记录多次
|
||||||
foreach (string value in hashSet)
|
foreach (string value in hashSet)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -234,7 +234,8 @@ namespace Lskj.Business.Impl
|
|||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
|
|
||||||
string sqlValue = string.Format(@"update {0} set {1}printCount=isnull({1}printCount,0)+1,
|
string sqlValue = string.Format(@"update {0} set {1}printCount=isnull({1}printCount,0)+1,
|
||||||
{1}printLastTime=getdate(),{1}printLastOper='{4}'
|
{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";
|
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) });
|
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)
|
public static bool IsGridViewRightMenuBtnEdit(string key, ModuleType type = ModuleType.BaseModule)
|
||||||
{
|
{
|
||||||
DataTable rightMentTab = GetBaseGridRightMenus(key, type);
|
DataTable rightMentTab = GetBaseGridRightMenus(key, type);
|
||||||
|
|||||||
Reference in New Issue
Block a user