Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="ordernum"></param>
        /// <returns></returns>
        public ActionResult Checkout(string obj_uid, string cate, double?money, string brankcode)
        {
            UtilPay NowUtiPay = new UtilPay(System.Web.HttpContext.Current);

            NowUtiPay.Yinhang = brankcode;

            return(Redirect(NowUtiPay.GetTenpayUrl(cate,
                                                   obj_uid,
                                                   money.ToString2(), "/Tenpay/Tenpay_Return"
                                                   )));
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="ordernum"></param>
        /// <returns></returns>
        public ActionResult Checkout(string Order_UID, string Retaion_UID, string brankcode)
        {
            //应付金额
            double?PayMoney = 0;
            //会员编号
            string Member_UID = string.Empty;
            //订单编号集合
            string OrderUIDLIST = string.Empty;
            //if (!string.IsNullOrEmpty(Retaion_UID))
            //{
            //    List<Orders> order_list = Orders.GetModelList(t => t.O_Relation_UID == Retaion_UID).List;
            //    foreach (var item in order_list)
            //    {
            //        PayMoney += item.O_PayMoney;
            //        Member_UID = item.Member_UID;
            //        OrderUIDLIST += item.O_UID + ",";
            //    }
            //}
            //else
            //{
            //    Orders m_order = Orders.GetModel(t => t.O_UID == Order_UID);
            //    PayMoney = m_order.O_PayMoney;
            //    Member_UID = m_order.Member_UID;
            //    OrderUIDLIST += m_order.O_UID + ",";
            //}

            UtilPay NowUtiPay = new UtilPay(System.Web.HttpContext.Current);

            NowUtiPay.Yinhang = brankcode;

            return(Redirect(
                       NowUtiPay.GetTenpayUrl(
                           "会员[" + Member_UID + "] 支付订单",
                           OrderUIDLIST,
                           PayMoney.ToString2(), "/TenpayForOrder/Tenpay_Return"
                           )));
        }