public void AddUpdatematches()
        {
            if (Session[Util.ProjectConfig.ADMINUSER] == null)
            {
                return;
            }

            string str = "13";
            IList <Model.Notice> notices = NoticeManager.GetMutilILNotice();

            foreach (Model.Notice info in notices)
            {
                str += "`" + info.Msgcn;
                str += "|" + info.Msgtw;
                str += "|" + info.Msgen;
                str += "|" + info.Msgth;
                str += "|" + info.Msgvn;
                str += "|" + info.Displayagent + info.Windowagent + info.Displayuser + info.Windowuser;
            }
            Model.Updatematches updatematches = new Updatematches();
            updatematches.Type1      = 13;
            updatematches.Content    = str;
            updatematches.Updatetime = DateTime.Now;
            UpdatematchesManager.AddUpdatematches(updatematches);
        }
示例#2
0
 ///<summary>
 ///添加方法,返回Boolean类型,为true表示操作成功,否则操作失败
 ///生成时间:2011-1-9 20:45:38
 ///</summary>
 public Boolean AddUpdatematches(Updatematches updatematches)
 {
     MySqlParameter[] param = new MySqlParameter[] {
         new MySqlParameter("?type1", updatematches.Type1),
         new MySqlParameter("?content", updatematches.Content)
     };
     return(MySqlHelper.ExecuteNonQuery(SQL_INSERT, param) > 0);
 }
示例#3
0
 ///<summary>
 ///修改方法,返回Boolean类型,为true表示操作成功,否则操作失败
 ///生成时间:2011-1-9 20:45:38
 ///</summary>
 public Boolean UpdateUpdatematches(Updatematches updatematches)
 {
     MySqlParameter[] param = new MySqlParameter[] {
         new MySqlParameter("?type1", updatematches.Type1),
         new MySqlParameter("?content", updatematches.Content),
         new MySqlParameter("?updatetime", updatematches.Updatetime),
         new MySqlParameter("?id", updatematches.Id)
     };
     return(MySqlHelper.ExecuteNonQuery(SQL_UPDATE, param) > 0);
 }
示例#4
0
 ///<sumary>
 ///修改信息
 ///时间:2011-1-9 20:45:48
 ///</sumary>
 public static Boolean UpdateUpdatematches(Updatematches updatematches)
 {
     try
     {
         return(updatematchesService.UpdateUpdatematches(updatematches));
     }
     catch (Exception ex)
     {
         //可以记录到异常日志
         return(false);
     }
 }