private List <CardPaymentInfo> GetCardPaymentRecords(RecordSearchCondition recordCon) { List <CardPaymentInfo> cardPaymentRecords = (new CardPaymentRecordBll(AppSettings.CurrentSetting.ParkConnect)).GetItems(recordCon).QueryObjects; cardPaymentRecords = (from card in cardPaymentRecords where card.PaymentCode != PaymentCode.APM orderby card.PaymentCode, card.ChargeDateTime descending select card).ToList(); CardBll cbll = new CardBll(AppSettings.CurrentSetting.ParkConnect); List <APMRefundRecord> apmRefundRecords = cbll.GetAPMRefundRecords(recordCon).QueryObjects; apmRefundRecords = (from apm in apmRefundRecords orderby apm.RefundDateTime descending select apm).ToList(); foreach (APMRefundRecord record in apmRefundRecords) { CardPaymentInfo payment = new CardPaymentInfo { CardID = record.CardID, CardCertificate = record.CardCertificate, OwnerName = record.OwnerName, CardType = record.CardType, CarPlate = record.CarPlate, EnterDateTime = record.EnterDateTime, ChargeDateTime = record.RefundDateTime, Accounts = -record.TotalPaidFee, Paid = -record.RefundMoney, PaymentCode = PaymentCode.Computer, PaymentMode = PaymentMode.Cash, OperatorID = record.OperatorID, StationID = record.StationID, Memo = Resources.Resource1.APMRefund //Memo = string.Format("缴费机退款,流水号[{0}]{1}", record.PaymentSerialNumber, !string.IsNullOrEmpty(record.Memo) ? (",说明:" + record.Memo) : string.Empty) }; cardPaymentRecords.Add(payment); } return(cardPaymentRecords); }