/// <summary> /// 生成退款账单 /// </summary> /// <param name="payBill">改期支付账单</param> public static Distribution.Domain.Bill.Refund.PostponeRefundBill ProducePostponeRefundBill(Distribution.Domain.Bill.Pay.PostponePayBill payBill) { if (payBill == null) { throw new ArgumentNullException("payBill"); } if (DistributionQueryService.QueryPostponeRefundBill(payBill.ApplyformId) != null) { throw new RepeatedItemException("退款账单已存在"); } return(payBill.MakeRefundBill("拒绝改期")); }
/// <summary> /// 生成退款账单 /// </summary> /// <param name="postponeApplyformId">改期申请单号</param> public static Distribution.Domain.Bill.Refund.PostponeRefundBill ProducePostponeRefundBill(decimal postponeApplyformId) { var payBill = DistributionQueryService.QueryPostponePayBill(postponeApplyformId); if (payBill == null) { throw new NotFoundException("无 " + postponeApplyformId + " 的支付账单记录"); } if (DistributionQueryService.QueryPostponeRefundBill(postponeApplyformId) != null) { throw new RepeatedItemException("退款账单已存在"); } return(payBill.MakeRefundBill("拒绝改期")); }