BUG: dalUser.CopyPermission方法
BUG: dalUser.CopyPermission方法
Loginer.Current改为:_Loginer
扫一扫加作者微信
Loginer.Current改为:_Loginer
C# Code:
public bool CopyPermission(string sourceUser, string targetUser)
{
SqlProcedure sp = SqlBuilder.BuildSqlProcedure("usp_CopyPermission");
sp.AddParam("DataSetID", SqlDbType.VarChar, _Loginer.DataSetID);
sp.AddParam("AccountFrom", SqlDbType.VarChar, sourceUser);
sp.AddParam("AccountTo", SqlDbType.VarChar, targetUser);
sp.AddParam("OperateUser", SqlDbType.VarChar, _Loginer.Account);
int i = DataProvider.Instance.ExecuteNoQuery(DBName, sp.SqlCommand);
return true;
}
//来源:C/S框架网(www.csframework.com) QQ:1980854898
public bool CopyPermission(string sourceUser, string targetUser)
{
SqlProcedure sp = SqlBuilder.BuildSqlProcedure("usp_CopyPermission");
sp.AddParam("DataSetID", SqlDbType.VarChar, _Loginer.DataSetID);
sp.AddParam("AccountFrom", SqlDbType.VarChar, sourceUser);
sp.AddParam("AccountTo", SqlDbType.VarChar, targetUser);
sp.AddParam("OperateUser", SqlDbType.VarChar, _Loginer.Account);
int i = DataProvider.Instance.ExecuteNoQuery(DBName, sp.SqlCommand);
return true;
}
//来源:C/S框架网(www.csframework.com) QQ:1980854898
扫一扫加作者微信
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网