Esempio n. 1
0
 ///<sumary>
 ///修改信息
 ///时间:2010-9-24 21:04:56
 ///</sumary>
 public static Boolean UpdateOrderotherhistory(Orderotherhistory orderotherhistory)
 {
     try
     {
         return(orderotherhistoryService.UpdateOrderotherhistory(orderotherhistory));
     }
     catch (Exception ex)
     {
         //可以记录到异常日志
         return(false);
     }
 }
Esempio n. 2
0
 ///<summary>
 ///修改方法,返回Boolean类型,为true表示操作成功,否则操作失败
 ///生成时间:2011-3-19 21:56:52
 ///</summary>
 public Boolean UpdateOrderotherhistory(Orderotherhistory orderotherhistory)
 {
     MySqlParameter[] param = new MySqlParameter[] {
         new MySqlParameter("?UserName", orderotherhistory.UserName),
         new MySqlParameter("?WebUserName", orderotherhistory.WebUserName),
         new MySqlParameter("?OrderID", orderotherhistory.OrderID),
         new MySqlParameter("?WebOrderID", orderotherhistory.WebOrderID),
         new MySqlParameter("?time", orderotherhistory.Time),
         new MySqlParameter("?leaguecn", orderotherhistory.Leaguecn),
         new MySqlParameter("?leaguetw", orderotherhistory.Leaguetw),
         new MySqlParameter("?leagueen", orderotherhistory.Leagueen),
         new MySqlParameter("?leagueth", orderotherhistory.Leagueth),
         new MySqlParameter("?leaguevn", orderotherhistory.Leaguevn),
         new MySqlParameter("?BeginTime", orderotherhistory.BeginTime),
         new MySqlParameter("?BetType", orderotherhistory.BetType),
         new MySqlParameter("?IsHalf", orderotherhistory.IsHalf),
         new MySqlParameter("?BetItem", orderotherhistory.BetItem),
         new MySqlParameter("?Score", orderotherhistory.Score),
         new MySqlParameter("?Awaycn", orderotherhistory.Awaycn),
         new MySqlParameter("?Awaytw", orderotherhistory.Awaytw),
         new MySqlParameter("?Awayen", orderotherhistory.Awayen),
         new MySqlParameter("?Awayth", orderotherhistory.Awayth),
         new MySqlParameter("?Awayvn", orderotherhistory.Awayvn),
         new MySqlParameter("?Homecn", orderotherhistory.Homecn),
         new MySqlParameter("?Hometw", orderotherhistory.Hometw),
         new MySqlParameter("?Homeen", orderotherhistory.Homeen),
         new MySqlParameter("?Hometh", orderotherhistory.Hometh),
         new MySqlParameter("?Homevn", orderotherhistory.Homevn),
         new MySqlParameter("?Handicap", orderotherhistory.Handicap),
         new MySqlParameter("?OddsType", orderotherhistory.OddsType),
         new MySqlParameter("?Odds", orderotherhistory.Odds),
         new MySqlParameter("?Amount", orderotherhistory.Amount),
         new MySqlParameter("?ValidAmount", orderotherhistory.ValidAmount),
         new MySqlParameter("?Status", orderotherhistory.Status),
         new MySqlParameter("?WebSiteiID", orderotherhistory.WebSiteiID),
         new MySqlParameter("?agent", orderotherhistory.Agent),
         new MySqlParameter("?websitepossess", orderotherhistory.Websitepossess),
         new MySqlParameter("?selfpossess", orderotherhistory.Selfpossess),
         new MySqlParameter("?commission", orderotherhistory.Commission),
         new MySqlParameter("?multiple", orderotherhistory.Multiple),
         new MySqlParameter("?gameid", orderotherhistory.Gameid),
         new MySqlParameter("?betflag", orderotherhistory.Betflag),
         new MySqlParameter("?Result", orderotherhistory.Result),
         new MySqlParameter("?Reason", orderotherhistory.Reason),
         new MySqlParameter("?Scorehalf", orderotherhistory.Scorehalf),
         new MySqlParameter("?MoreAmount", orderotherhistory.MoreAmount),
         new MySqlParameter("?ID", orderotherhistory.ID)
     };
     return(MySqlHelper.ExecuteNonQuery(SQL_UPDATE, param) > 0);
 }