Esempio n. 1
0
 /// <summary>
 /// 近效期产品处理
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void b6_DoWork(object sender, DoWorkEventArgs e)
 {
     BLL.Command bll = new BLL.Command();
     while (true)
     {
         try
         {
             bll.SyncExpritationProduct();
         }
         catch (Exception ex)
         {
             bll.AddLog(ex.ToString());
         }
         System.Threading.Thread.Sleep(1000 * 60 * int.Parse(System.Configuration.ConfigurationManager.AppSettings["ExpirationTimeProduct"]));
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 会员数据处理
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void b3_DoWork(object sender, DoWorkEventArgs e)
 {
     BLL.Command bll = new BLL.Command();
     while (true)
     {
         try
         {
             bll.SendMemberinfo();
         }
         catch (Exception ex)
         {
             bll.AddLog(ex.ToString());
         }
         System.Threading.Thread.Sleep(1000 * 60 * int.Parse(System.Configuration.ConfigurationManager.AppSettings["memberTime"]));
     }
 }