Example #1
0
 /// <summary>
 /// 删除会员
 /// </summary>
 /// <param name="buyerID"></param>
 /// <param name="sellerNick"></param>
 /// <returns></returns>
 public static bool DeleteBuyer(string buyerID, string buyerNick, string sellerNick)
 {
     try
     {
         //string query = @"delete from Buyer where buyer_id = @buyer_id and SELLER_ID = @SELLER_ID";
         DataBase       db    = new DataBase();
         SqlParameter[] param = new SqlParameter[]
         {
             new SqlParameter("@buyer_id", buyerID),
             new SqlParameter("@SELLER_ID", sellerNick)
         };
         db.RunProc("proc_DeleteBuyer", param);
         return(true);
     }
     catch (Exception ex)
     {
         ExceptionReporter.WriteLog(ex, ExceptionPostion.TBApply_Data);
         return(false);
     }
 }
Example #2
0
 /// <summary>
 /// 更新卖家预警评价配置
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool UpdatePreReminderRateConfig(ReminderRateConfig obj)
 {
     try
     {
         SqlParameter[] param = new SqlParameter[]
         {
             new SqlParameter("@sellerNick", obj.SellerNick),
             new SqlParameter("@preReminderPhone", obj.PreReminderPhone),
             new SqlParameter("@preReminderMsgContent", obj.PreReminderMsgContent)
         };
         DataBase db = new DataBase();
         db.RunProc("proc_UpdatePreReminderRateConfig", param);
         return(true);
     }
     catch (Exception ex)
     {
         ExceptionReporter.WriteLog(ex, ExceptionPostion.TBApply_Data);
         return(false);
     }
 }
Example #3
0
 /// <summary>
 /// 添加卖家报警策略配置
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool AddRateReminderWithSeller(ReminderRateConfig obj)
 {
     try
     {
         SqlParameter[] param = new SqlParameter[]
         {
             new SqlParameter("@sellerNick", obj.SellerNick),
             new SqlParameter("@reminderPhone", obj.ReminderPhone),
             new SqlParameter("@reminderMsgContent", obj.ReminderMsgContent),
             new SqlParameter("@isSendMsgToBuyer", obj.IsSendMsgToBuyer),
             new SqlParameter("@buyerMsgContent", obj.BuyerMsgContent)
         };
         DataBase db = new DataBase();
         db.RunProc("proc_ReminderRateConfig", param);
         return(true);
     }
     catch (Exception ex)
     {
         ExceptionReporter.WriteLog(ex, ExceptionPostion.TBApply_Data);
         return(false);
     }
 }