Beispiel #1
0
        public static void UpdateRefundAndRescheduling(RefundAndReschedulingView refundAndReschedulingView, string account)
        {
            var refundAndRescheduling = RefundAndRescheduling.GetRefundAndRescheduling(refundAndReschedulingView);
            var repository            = ChinaPay.B3B.Service.Foundation.Repository.Factory.CreateRefundAndReschedulingRepository();

            repository.Update(refundAndRescheduling);
            saveLog(OperationType.Update, "修改退改签客规", refundAndRescheduling.AirlineCode.Value, account);
        }
Beispiel #2
0
        public static void AddRefundAndRescheduling(RefundAndReschedulingView refundAndReschedulingView, string account)
        {
            var refundAndRescheduling = RefundAndRescheduling.GetRefundAndRescheduling(refundAndReschedulingView);

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

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