Beispiel #1
0
        public static int GamePayAdd(string sTranIP, string sTranUrl, string sTranID, string sTranReturn, string sGameAbbre, int iUserID)
        {
            GamePay gpObject = new GamePay();

            gpObject.TranIP     = sTranIP;
            gpObject.TranUrl    = sTranUrl;
            gpObject.TranID     = sTranID;
            gpObject.TranReturn = sTranReturn;
            gpObject.GameAbbre  = sGameAbbre;
            gpObject.UserID     = iUserID;
            return(GamePayDAL.GamePayAdd(gpObject));
        }
Beispiel #2
0
        public static int GamePayAdd(GamePay gpObject)
        {
            Database  dbDCenter = DatabaseFactory.CreateDatabase(sConn);
            DbCommand dcUrLPay  = dbDCenter.GetStoredProcCommand("SP_GamePay_Add");

            dbDCenter.AddInParameter(dcUrLPay, "@tranip", DbType.String, gpObject.TranIP);
            dbDCenter.AddInParameter(dcUrLPay, "@tranid", DbType.String, gpObject.TranID);
            dbDCenter.AddInParameter(dcUrLPay, "@tranurl", DbType.String, gpObject.TranUrl);
            dbDCenter.AddInParameter(dcUrLPay, "@tranreturn", DbType.String, gpObject.TranReturn);
            dbDCenter.AddInParameter(dcUrLPay, "@gameabbre", DbType.String, gpObject.GameAbbre);
            dbDCenter.AddInParameter(dcUrLPay, "@userid", DbType.String, gpObject.UserID);

            return(dbDCenter.ExecuteNonQuery(dcUrLPay));
        }
Beispiel #3
0
 public static int GamePayAdd(GamePay gpObject)
 {
     return(GamePayDAL.GamePayAdd(gpObject));
 }