///<summary> ///修改方法,返回Boolean类型,为true表示操作成功,否则操作失败 ///生成时间:2011-6-1 14:31:11 ///</summary> public Boolean UpdateMatches_copy(Matches_copy matches_copy) { MySqlParameter[] param = new MySqlParameter[] { new MySqlParameter("?number", matches_copy.Number), new MySqlParameter("?matchid", matches_copy.Matchid), new MySqlParameter("?leaguecn", matches_copy.Leaguecn), new MySqlParameter("?leaguetw", matches_copy.Leaguetw), new MySqlParameter("?leagueen", matches_copy.Leagueen), new MySqlParameter("?leagueth", matches_copy.Leagueth), new MySqlParameter("?leaguevn", matches_copy.Leaguevn), new MySqlParameter("?league1", matches_copy.League1), new MySqlParameter("?color", matches_copy.Color), new MySqlParameter("?time", matches_copy.Time), new MySqlParameter("?begintime", matches_copy.Begintime), new MySqlParameter("?homecn", matches_copy.Homecn), new MySqlParameter("?hometw", matches_copy.Hometw), new MySqlParameter("?homeen", matches_copy.Homeen), new MySqlParameter("?hometh", matches_copy.Hometh), new MySqlParameter("?homevn", matches_copy.Homevn), new MySqlParameter("?home1", matches_copy.Home1), new MySqlParameter("?awaycn", matches_copy.Awaycn), new MySqlParameter("?awaytw", matches_copy.Awaytw), new MySqlParameter("?awayen", matches_copy.Awayen), new MySqlParameter("?awayth", matches_copy.Awayth), new MySqlParameter("?awayvn", matches_copy.Awayvn), new MySqlParameter("?away1", matches_copy.Away1), new MySqlParameter("?running", matches_copy.Running), new MySqlParameter("?score", matches_copy.Score), new MySqlParameter("?redcard", matches_copy.Redcard), new MySqlParameter("?danger", matches_copy.Danger), new MySqlParameter("?dotime", matches_copy.Dotime), new MySqlParameter("?isstart", matches_copy.Isstart), new MySqlParameter("?state", matches_copy.State), new MySqlParameter("?display", matches_copy.Display), new MySqlParameter("?resulthomescore", matches_copy.Resulthomescore), new MySqlParameter("?resultawayscore", matches_copy.Resultawayscore), new MySqlParameter("?halfhomescore", matches_copy.Halfhomescore), new MySqlParameter("?halfawayscore", matches_copy.Halfawayscore), new MySqlParameter("?updatetime", matches_copy.Updatetime), new MySqlParameter("?type", matches_copy.Type), new MySqlParameter("?casino", matches_copy.Casino), new MySqlParameter("?reason", matches_copy.Reason), new MySqlParameter("?scoreinputtime", matches_copy.Scoreinputtime), new MySqlParameter("?scoreinputuser", matches_copy.Scoreinputuser), new MySqlParameter("?jstime", matches_copy.Jstime), new MySqlParameter("?jsuser", matches_copy.Jsuser), new MySqlParameter("?resulthomescore2", matches_copy.Resulthomescore2), new MySqlParameter("?resultawayscore2", matches_copy.Resultawayscore2), new MySqlParameter("?halfhomescore2", matches_copy.Halfhomescore2), new MySqlParameter("?halfawayscore2", matches_copy.Halfawayscore2), new MySqlParameter("?id", matches_copy.Id) }; return(MySqlHelper.ExecuteNonQuery(SQL_UPDATE, param) > 0); }
///<sumary> ///修改信息 ///时间:2010-12-30 15:24:07 ///</sumary> public static Boolean UpdateMatches_copy(Matches_copy matches_copy) { try { return(matches_copyService.UpdateMatches_copy(matches_copy)); } catch (Exception ex) { //可以记录到异常日志 return(false); } }