Exemple #1
0
        public PaymentContractInfoSummaryT GetContractInfoSummary(int packNo, int itemCount, string acntType
			, string itemPrice, string deliveryPrice, string discountPrice)
        {
            PaymentContractInfoSummaryT summary = new PaymentContractInfoSummaryT
            {
                ItemPrice = 0,
                DeliveryPrice = 0,
                DiscountPrice = 0
            };

            summary.PackNo = packNo;
            summary.ItemCount = itemCount;
            summary.ItemPrice = Util.GetSafeDecimal(itemPrice);
            summary.DeliveryPrice = Util.GetSafeDecimal(deliveryPrice);
            summary.DiscountPrice = Util.GetSafeDecimal(discountPrice);
            summary.TotalPrice = summary.ItemPrice - summary.DiscountPrice + summary.DeliveryPrice;

            switch (acntType.ToUpper())
            {
                case "A2" :
                case "A7":
                    summary.PayMethodName = "신용카드";
                    break;
                case "A3":
                    summary.PayMethodName = "은행송금";
                    break;
                case "I1":
                    summary.PayMethodName = "외화입금";
                    break;
                default:
                    summary.PayMethodName = "기타";
                    break;
            }

            return summary;
        }
Exemple #2
0
 public ActionResult PaymentComplete(PaymentContractInfoSummaryT summary)
 {
     ViewBag.Summary = summary;
     return View();
 }