BUG: dalUser.CopyPermission方法
作者:C/S框架网  发布日期:2015-01-14 17:21:35
  BUG: dalUser.CopyPermission方法


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


上一篇 下一篇