예제 #1
0
        public void ChangeType(HttpContext context)
        {
            BLL.Order order      = new BLL.Order();
            string    ordersID   = context.Request["rowIDs"];
            string    ordersType = context.Request["cmboxOrderType"];

            string[] ordersList = getOrdersList(ordersID);
            int      nType      = int.Parse(ordersType);
            int      result     = 0;

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