Exemplo n.º 1
0
 private void ReloadData(string orderId)
 {
     try
     {
         purPayForm = icommodity.POGetPayInfo(orderId);
     }
     catch
     {
         purPayForm = null;
     }
 }
Exemplo n.º 2
0
        public PurPayFormEntity POGetPayInfo(string strPurOrderID)
        {
            PurPayFormEntity purPayFormEntity = new PurPayFormEntity();
            PurchaseParent purchaseParent;
            List<PurchasePayment> purchasePaymentList;

            purchaseParent = this.POGetParentInfoByOrderId(strPurOrderID);
            purchasePaymentList = this.GetPurPayList(strPurOrderID);

            //应付
            purPayFormEntity.AmountDuePay = purchaseParent.DuePay;
            //已付
            foreach (PurchasePayment purchasePayment in purchasePaymentList)
            {
                purPayFormEntity.AmountPaid += purchasePayment.PaymentAmount;
            }
            //本次支付
            purPayFormEntity.AmountPaying = purPayFormEntity.AmountDuePay - purPayFormEntity.AmountPaid;

            purPayFormEntity.PurchaseParent = purchaseParent;
            purPayFormEntity.PayList = purchasePaymentList;

            return purPayFormEntity;
        }