SVN r468
SVN-Revision: r468
This commit is contained in:
@@ -213,7 +213,7 @@ namespace Lskj.Business.Impl
|
||||
if (primaryValue.Contains(","))
|
||||
{
|
||||
HashSet<string> hashSet = new HashSet<string>(primaryValue.Split(','));//去重,避免多选时同一条数据记录多次
|
||||
foreach (string value in hashSet)
|
||||
foreach (string value in hashSet)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -226,15 +226,16 @@ namespace Lskj.Business.Impl
|
||||
values ('{0}','{1}','{2}','{3}','{4}')", modeCode, value, ERPInfo.Instance.UserId, DateTime.Now, 3);
|
||||
SqlHelper.ExecuteNonQuery(sqlValue2);
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception ex)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
|
||||
string sqlValue = string.Format(@"update {0} set {1}printCount=isnull({1}printCount,0)+1,
|
||||
{1}printLastTime=getdate(),{1}printLastOper='{4}'
|
||||
@@ -247,7 +248,7 @@ namespace Lskj.Business.Impl
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:保存方案</para>
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user