Exemplo n.º 1
0
 /// <summary>
 /// 用户邮箱地址通过验证
 /// </summary>
 /// <param name="sysno"></param>
 /// <returns></returns>
 public static bool CustomerEmailValidated(int sysno, Point point)
 {
     using (var tran = TransactionManager.Create())
     {
         CustomerDA.CustomerEmailValidated(sysno);
         PointFilter filter = new PointFilter
         {
             CustomerSysNo    = point.CustomerSysNo,
             ObtainType       = point.ObtainType,
             LanguageCode     = ConstValue.LanguageCode,
             CompanyCode      = ConstValue.CompanyCode,
             CurrencyCode     = ConstValue.CurrencySysNo.ToString(),
             StoreCompanyCode = ConstValue.StoreCompanyCode
         };
         if (CommonDA.ExistsPoint(filter) <= 0)
         {
             CommonFacade.AddPoint(point);
         }
         tran.Complete();
         return(true);
     }
     return(false);
 }