Beispiel #1
0
        /// <summary>
        /// 创建一条网银积分消费记录
        /// </summary>
        /// <param name="tlPoint"></param>
        /// <returns></returns>
        public static bool CreateUseBankPointRecord(TLPoint tlPoint)
        {
            DataCommand dataCommand = DataCommandManager.GetDataCommand("Payment_CreateUseBankPointRecord");

            dataCommand.SetParameterValue("@SOSysNo", tlPoint.SoSysNO);
            dataCommand.SetParameterValue("@Point", tlPoint.Point);
            dataCommand.SetParameterValue("@Type", tlPoint.Type);
            dataCommand.SetParameterValue("@InDate", tlPoint.InDate);
            dataCommand.SetParameterValue("@InUser", tlPoint.InUser);
            dataCommand.SetParameterValue("@LastEditDate", tlPoint.LastEditDate);
            dataCommand.SetParameterValue("@LastEditUser", tlPoint.LastEditUser);
            int effectRow = dataCommand.ExecuteNonQuery();

            return(effectRow == 1);
        }
Beispiel #2
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");
     }
 }