Exemplo n.º 1
0
        protected void btnOK_OnClick(object sender, EventArgs e)
        {
            byte byteDeliveryStar = 1;
            byte byteEatingStar   = 1;

            byte.TryParse(hfDeliveryStar.Value, out byteDeliveryStar);
            byte.TryParse(hfEatingStar.Value, out byteEatingStar);
            if (OrderBll.AddOrderResult(new Ye_OrderResult()
            {
                OrderID = Convert.ToInt32(Request.QueryString["orderId"]),
                ShopID = ShopId,
                UserID = YeUser.UserID,
                EvaluationContent = tbxContent.Text,
                DeliveryStar = byteDeliveryStar, //待修改
                EatingStar = byteEatingStar,     //待修改
                CreateTime = DateTime.Now
            }))
            {
                WebUtil.AlertAndRedirect("感谢您的支持!", "UserOrders.aspx");
            }
            else
            {
                WebUtil.AlertAndRedirect("用餐评价失败!", "UserOrders.aspx");
            }
        }