Пример #1
0
 public static bool ValidateCustomerPhone(string cellNumber, string confimKey, Point point)
 {
     using (var tran = TransactionManager.Create())
     {
         if (CustomerDA.ValidateCustomerPhone(cellNumber, confimKey) == false)
         {
             return(false);
         }
         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);
     }
 }
Пример #2
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);
 }