Exemple #1
0
        public void SetOrdersStatus(HttpContext context)
        {
            BLL.Order order    = new BLL.Order();
            string    ordersID = context.Request["rowIDs"];
            string    status   = context.Request["status"];

            string[] ordersList = getOrdersList(ordersID);
            int      statusInt  = int.Parse(status);
            int      result     = 0;

            foreach (string ids in ordersList)
            {
                result = order.InitialiseStatus(ids, statusInt);
            }
            if (result > 0)
            {
                context.Response.Write("{\"msg\":\"保存成功。\",\"success\":true}");
            }
            else
            {
                context.Response.Write("{\"msg\":\"保存失败。\",\"success\":false}");
            }
        }