protected void btnOrder_Click(object sender, EventArgs e)
    {
        IUserBLL userBll = (IUserBLL)SpringContext.Context.CreateSecurityProxyInstance("UserBLL");

        Order order = new Order();

        order.ID         = Guid.NewGuid();
        order.CreateTime = DateTime.Now;
        order.Status     = 0;
        order.CustomID   = userBll.UserID;

        order.OrderProducts = _shopCarBLL.GetList();
        for (int i = 0; i < order.OrderProducts.Count; i++)
        {
            order.OrderProducts[i].OrderID = order.ID;
        }

        IOrderBLL orderBll = (IOrderBLL)SpringContext.Context.CreateSecurityProxyInstance("OrderBLL");

        orderBll.Insert(order);

        Response.Redirect("OrderList.aspx", true);
    }
    private void Order()
    {
        IUserBLL userBLL = (IUserBLL)SpringContext.Context.CreateInstance("UserBLL");

        Model.Order order = new Model.Order();
        order.ID         = Guid.NewGuid();
        order.CreateTime = DateTime.Now;
        order.Status     = 0;
        order.CustomID   = userBLL.UserID;

        order.OrderProducts = shopCarBLL.GetList();
        for (int i = 0; i < order.OrderProducts.Count; i++)
        {
            order.OrderProducts[i].OrderID = order.ID;
        }

        IOrderBLL orderBll = (IOrderBLL)SpringContext.Context.CreateInstance("OrderBLL");

        orderBll.Insert(order);

        Response.Write("{success:true}");
        Response.End();
    }