private void PageInit()
        {
            OrderInfo item = new OrdersBLL().GetItem(orderno);

            if (item != null)
            {
                L_OrderTime.Text  = item.AddTime.ToString();
                L_Address.Text    = item.UserAddress;
                L_UserName.Text   = item.UserName;
                L_Phone.Text      = item.UserTel;
                L_OrderPrice.Text = item.TotalPrice.ToString();
                L_SumPrice.Text   = item.TotalPrice.ToString();
                L_SendTime.Text   = item.Remark;

                int ordercount        = 0;
                List <OrderItem> list = new OrderItemBLL().GetList(orderno);
                foreach (OrderItem temp in list)
                {
                    ordercount += temp.BuyNum;
                }
                L_OrderCount.Text = ordercount.ToString();

                rpt_list.DataSource = list;
                rpt_list.DataBind();
            }
        }
Beispiel #2
0
        protected void btnSend_Click(object sender, EventArgs e)
        {
            StringBuilder    str      = new StringBuilder(); //餐品内容
            OrderInfo        item     = new OrdersBLL().GetItem(orderno);
            Shop             shopinfo = new ShopsBLL().GetShopItem(item.ShopId);
            List <OrderItem> list     = new OrderItemBLL().GetList(orderno);

            foreach (OrderItem temp in list)
            {
                str.Append(temp.ProductName + "(" + temp.BuyNum + ") ");
            }
            string contentstr = Server.UrlEncode(shopinfo.ShopName + ":" + str.ToString() + ";合" + item.TotalPrice + "元;电话" + shopinfo.Phone);
            string sendurl    = "http://www.ums86.com:8899/sms/Api/Send.do?SpCode=001418&LoginName=fz_lx&Password=lx6856&MessageContent=" + contentstr + "&UserNumber=" + item.UserTel + "&SerialNumber=&ScheduleTime=&f=1";

            GetHtmlFromUrl(sendurl);

            Response.Write("<script>window.parent.tb_remove();</script>");
        }
Beispiel #3
0
        public List <OrderItem> getOrderItemList(string orderNo)
        {
            OrderItemBLL bll = new OrderItemBLL();

            return(bll.GetList(orderNo));
        }