public bool PointChange(int AddChangePoint, int EasePoint, int AttributeUserID, int AcceptUserID)
{
string sql = "declare @IfChangeSucceess int exec Change_Point " + AddChangePoint + ","+EasePoint+"," + AttributeUserID + "," + AcceptUserID + ",@IfChangeSucceess output";
int i = 0;
try
{
i = Com.SqlHelper.Bring.ExecuteNonQuery(sql);
}
catch (Exception){}
return i > 1;
}
{
string sql = "declare @IfChangeSucceess int exec Change_Point " + AddChangePoint + ","+EasePoint+"," + AttributeUserID + "," + AcceptUserID + ",@IfChangeSucceess output";
int i = 0;
try
{
i = Com.SqlHelper.Bring.ExecuteNonQuery(sql);
}
catch (Exception){}
return i > 1;
}
拼凑一个SQL 语句
然后执行