Пример #1
0
 /// <summary>
 /// 创建泰隆银行网银积分消费记录
 /// </summary>
 /// <param name="context"></param>
 private static void CreateUserBankPointRecord(CallbackContext context)
 {
     try
     {
         TLPoint point = new TLPoint();
         point.Point   = 0;
         point.SoSysNO = context.SOSysNo;
         point.InUser  = "******";
         bool result = PaymentDA.CreateUseBankPointRecord(point);
         Logger.WriteLog("写入积分消费记录结果:" + result, "PaymentCallback", "CreateUseBankPointRecord");
     }
     catch (Exception ex)
     {
         Logger.WriteLog("写入积分消费记录异常:" + ex.Message, "PaymentCallback", "CreateUseBankPointRecord");
     }
 }
Пример #2
0
        public static List <PayTypeInfo> GetAllPayTypeList()
        {
            string cacheKey = "Payment_GetAllPayTypeList";

            if (HttpRuntime.Cache[cacheKey] != null)
            {
                return((List <PayTypeInfo>)HttpRuntime.Cache[cacheKey]);
            }
            List <PayTypeInfo> payTypeList = PaymentDA.GetAllPayTypeList();

            var cachedPayTypeList = SerializationUtility.DeepClone(payTypeList);

            HttpRuntime.Cache.Insert(cacheKey, cachedPayTypeList, null, DateTime.Now.AddSeconds(CacheTime.Longest), Cache.NoSlidingExpiration);

            return(payTypeList);
        }
Пример #3
0
 /// <summary>
 /// Updates the type of the order pay.
 /// </summary>
 /// <param name="soSysNo">The so system no.</param>
 /// <param name="payTypeSysNo">The pay type system no.</param>
 public static void UpdateOrderPayType(int soSysNo, int payTypeSysNo)
 {
     PaymentDA.UpdateOrderPayType(soSysNo, payTypeSysNo);
 }