标签:string tracking help gen charge use desc ota query
--insert into w_OnlinePayOrderLog(info) values (‘PayPal_All订单:‘ + @orderNO + ‘生成成功‘)
/// <param name="storedProcName">存储过程名</param>
/// <param name="parameters">存储过程參数</param>
/// <param name="rowsAffected">影响的行数</param>
/// <returns></returns>
public static int RunProcedure(string storedProcName, int DataBaseType, IDataParameter[] parameters, out int rowsAffected)
{
using (SqlConnection connection = new SqlConnection(GetDBGameConnstring(DataBaseType)))
{
int result;
connection.Open();
SqlCommand command = BuildIntCommand(connection, storedProcName, parameters);
command.CommandTimeout = 60;
rowsAffected = command.ExecuteNonQuery();
result = (int)command.Parameters["ReturnValue"].Value;
//Connection.Close();
return result;
}
}
public static void OnlineRechargePayPalAll(string OrderNo, int AccountIDFrom, int AccountIDTo, string TotalMoney, int PriceType, int GameID, int GameArea, int AreaServerID, string sGameRoleName, int vMoney, int GamePoint, string IP, string Name, string
Email, string Tel, int PayType, int BuyType, out int ErrorCode, out string ReturnOrderNo, out string BalanceMoney)
{
int iRows = 0;
SqlParameter[] parsRechargePayPal = {
new SqlParameter("@PayPalOrderNo", SqlDbType.NVarChar,50),
new SqlParameter("@nAccountIDFrom", SqlDbType.Int),
new SqlParameter("@nAccountIDTo", SqlDbType.Int),
new SqlParameter("@cTotalMoney", SqlDbType.Decimal),
new SqlParameter("@nMoneyType",SqlDbType.Int),
new SqlParameter("@nToGameID",SqlDbType.Int),
new SqlParameter("@nToGameAreaID",SqlDbType.Int),
new SqlParameter("@nToGameServerID",SqlDbType.Int),
new SqlParameter("@GameRoleName",SqlDbType.NVarChar,50),
new SqlParameter("@nVMoney",SqlDbType.Int),
new SqlParameter("@nGamePoint",SqlDbType.Int),
new SqlParameter("@AccountIP",SqlDbType.NVarChar,50),
new SqlParameter("@AccountName",SqlDbType.NVarChar,150),
new SqlParameter("@AccountEmail",SqlDbType.NVarChar,150),
new SqlParameter("@AccountTel",SqlDbType.NVarChar,50),
new SqlParameter("@PayType",SqlDbType.Int),
new SqlParameter("@BuyType",SqlDbType.Int),
new SqlParameter("@rv",SqlDbType.Int),
new SqlParameter("@rOrderNo",SqlDbType.NVarChar,50),
new SqlParameter("@rBalanceMoney",SqlDbType.Decimal)};
parsRechargePayPal[0].Value = OrderNo;
parsRechargePayPal[1].Value = AccountIDFrom;
parsRechargePayPal[2].Value = AccountIDTo;
parsRechargePayPal[3].Value = TotalMoney;
parsRechargePayPal[4].Value = PriceType;
parsRechargePayPal[5].Value = GameID;
parsRechargePayPal[6].Value = GameArea;
parsRechargePayPal[7].Value = AreaServerID;
parsRechargePayPal[8].Value = sGameRoleName;
parsRechargePayPal[9].Value = vMoney;
parsRechargePayPal[10].Value = GamePoint;
parsRechargePayPal[11].Value = IP;
parsRechargePayPal[12].Value = Name;
parsRechargePayPal[13].Value = Email;
parsRechargePayPal[14].Value = Tel;
parsRechargePayPal[15].Value = PayType;
parsRechargePayPal[16].Value = BuyType;
parsRechargePayPal[17].Direction = ParameterDirection.Output;
parsRechargePayPal[17].Value = 0;
parsRechargePayPal[18].Direction = ParameterDirection.Output;
parsRechargePayPal[18].Value = "";
parsRechargePayPal[19].Direction = ParameterDirection.Output;
parsRechargePayPal[19].Value = "0.0";
parsRechargePayPal[19].Precision = 10;
parsRechargePayPal[19].Scale = 2;
DbHelperSQL.RunProcedure("mp_w_RechargePortalPayPal_All", parsRechargePayPal, out iRows);
ErrorCode = CmnProc.getInt(parsRechargePayPal[17].Value);
ReturnOrderNo = CmnProc.getString(parsRechargePayPal[18].Value);
BalanceMoney = CmnProc.getString(parsRechargePayPal[19].Value);
}
标签:string tracking help gen charge use desc ota query
原文地址:http://www.cnblogs.com/claireyuancy/p/6913460.html