Пример #1
0
 public void Refuse(Product item)
 {
     ListToDecide.Remove(item);
     ListToApply.Remove(item);
     //Failed.Remove(item);
     RefusedList.Add(item.ID);
 }
 ///<sumary>
 ///修改信息
 ///时间:2011-4-14 21:35:22
 ///</sumary>
 public static Boolean UpdateRefusedList(RefusedList refusedList)
 {
     try
     {
         return(refusedListService.UpdateRefusedList(refusedList));
     }
     catch (Exception ex)
     {
         //可以记录到异常日志
         return(false);
     }
 }
Пример #3
0
 ///<summary>
 ///添加方法,返回Boolean类型,为true表示操作成功,否则操作失败
 ///生成时间:2011-4-14 21:35:13
 ///</summary>
 public Boolean AddRefusedList(RefusedList refusedList)
 {
     MySqlParameter[] param = new MySqlParameter[] {
         new MySqlParameter("?reasoncn", refusedList.Reasoncn),
         new MySqlParameter("?reasontw", refusedList.Reasontw),
         new MySqlParameter("?reasonen", refusedList.Reasonen),
         new MySqlParameter("?reasonth", refusedList.Reasonth),
         new MySqlParameter("?reasonvn", refusedList.Reasonvn),
         new MySqlParameter("?isdate", refusedList.Isdate),
         new MySqlParameter("?operator", refusedList.Operator),
         new MySqlParameter("?operationtime", refusedList.Operationtime),
         new MySqlParameter("?ip", refusedList.Ip)
     };
     return(MySqlHelper.ExecuteNonQuery(SQL_INSERT, param) > 0);
 }