Ejemplo n.º 1
0
        /// <summary>
        /// 订单详情页面
        /// </summary>
        public void orderDetail()
        {
            int wid = MyCommFun.RequestInt("wid");

            int orderId = MyCommFun.RequestInt("orderid");

            BLL.orders oBll = new BLL.orders();
            //Model.orders order = oBll.GetModel(orderId);
            IList <Model.orders> orderlist_detail = oBll.GetModelList(" id=" + orderId);

            if (orderlist_detail != null)
            {
                Model.orders order = orderlist_detail[0];
                this.Document.SetValue("order", order);
                string statusName = GetOrderStatus(order.status, order.payment_status, order.express_status);
                this.Document.SetValue("statusName", statusName);

                string paymentName = new MxWeiXinPF.BLL.payment().GetTitle(wid, order.payment_id);
                this.Document.SetValue("paymentName", paymentName);
                string expressName = new MxWeiXinPF.BLL.express().GetTitle(order.express_id);
                this.Document.SetValue("expressName", expressName);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 订单详情页面
        /// </summary>
        public void orderDetail()
        {
            int wid = MyCommFun.RequestInt("wid");
            string openid = MyCommFun.RequestOpenid();
            int orderId = MyCommFun.RequestInt("orderid");
            BLL.orders oBll = new BLL.orders();
            //Model.orders order = oBll.GetModel(orderId);
             IList<Model.orders> orderlist_detail = oBll.GetModelList(" id="+orderId);
             if (orderlist_detail != null)
             {
                 Model.orders order = orderlist_detail[0];
                 this.Document.SetValue("order", order);
                 string statusName = GetOrderStatus(order.status, order.payment_status, order.express_status);
                 this.Document.SetValue("statusName", statusName);

                 string paymentName = new MxWeiXinPF.BLL.payment().GetTitle(wid, order.payment_id);
                 this.Document.SetValue("paymentName", paymentName);
                 string expressName = new MxWeiXinPF.BLL.express().GetTitle(order.express_id);
                 this.Document.SetValue("expressName", expressName);

             }
        }