Esempio n. 1
0
        public static void UpdateRefundAndReschedulingNewBase(RefundAndReschedulingBaseView refundAndReschedulingView, string account)
        {
            var refundAndRescheduling = RefundAndReschedulingBase.GetRefundAndRescheduling(refundAndReschedulingView);
            var repository            = ChinaPay.B3B.Service.Foundation.Repository.Factory.CreateRefundAndReschedulingNewRepository();

            repository.Update(refundAndRescheduling);
            saveLog(OperationType.Update, "修改退改签客规基础信息", refundAndRescheduling.AirlineCode.Value, account);
        }
Esempio n. 2
0
        public static void AddRefundAndReschedulingNewBase(RefundAndReschedulingBaseView refundAndReschedulingView, string account)
        {
            var refundAndRescheduling = RefundAndReschedulingBase.GetRefundAndRescheduling(refundAndReschedulingView);

            if (QueryRefundAndRescheduling(refundAndRescheduling.AirlineCode) != null)
            {
                throw new ChinaPay.Core.Exception.KeyRepeatedException("航空公司[" + refundAndRescheduling.AirlineCode + "]的退改签客规已存在");
            }
            var repository = ChinaPay.B3B.Service.Foundation.Repository.Factory.CreateRefundAndReschedulingNewRepository();

            repository.Insert(refundAndRescheduling);
            saveLog(OperationType.Insert, "添加退改签客规基础信息", refundAndRescheduling.AirlineCode.Value, account);
        }