private M_Payment GetPaymentByOrderNo(string orderNo) { M_Payment payMod = payList.FirstOrDefault(p => p.PaymentNum.Equals(orderNo)); payMod = payBll.SelModelByOrderNo(orderNo); return(payMod); }
public string GetPayInfo() { if (Convert.ToInt32(Eval("PaymentStatus")) == (int)M_OrderList.PayEnum.HasPayed) { M_Payment payMod = payBll.SelModelByOrderNo(Eval("OrderNo", "")); return(payMod == null ? "未找到支付单" : payMod.PayNo); } else { return(OrderHelper.GetPayStatus(Convert.ToInt32(Eval("PaymentStatus")))); } }
public static M_Payment GetPaymentByOrderNo(string payno, string orderno, double allmoney) { B_Payment payBll = new B_Payment(); M_Payment payMod = null; if (!string.IsNullOrEmpty(payno)) { payMod = payBll.SelModelByPayNo(payno); } else if (!string.IsNullOrEmpty(orderno)) { payMod = payBll.SelModelByOrderNo(orderno); } if (payMod == null) { payMod = new M_Payment(); payMod.MoneyReal = allmoney; } return(payMod); }