Exemplo n.º 1
0
        //取消订单
        public void ORDWORD()
        {
            var    aa     = 200;
            string OrCode = Request["OrId"];
            var    ord    = OrddeService.GetEntity(n => n.Code == OrCode);

            ord.State = "已取消";
            if (OrddeService.Add(ord))
            {
                aa = 100;
            }
            Response.ContentType = "text/plain";
            Response.Write(aa);
            Response.End();
        }
Exemplo n.º 2
0
        //收货
        public void shouhuo()
        {
            var    aa     = 200;
            string OrCode = Request["OrId"];
            var    ord    = OrddeService.GetEntity(n => n.Code == OrCode);

            ord.State    = "已收货";
            ord.ReceTime = DateTime.Now;
            if (OrddeService.Add(ord))
            {
                aa = 100;
            }
            Response.ContentType = "text/plain";
            Response.Write(aa);
            Response.End();
        }
Exemplo n.º 3
0
        public void OrderUp()
        {
            var aa    = 200;
            var code  = Request["Code"];
            var PayId = Convert.ToInt32(Request["PayId"]);
            var order = OrddeService.GetEntity(n => n.Code == code);

            order.PayId    = PayId;
            order.State    = "已发货";
            order.PayTime  = DateTime.Now;
            order.PostTime = DateTime.Now.AddMinutes(1);
            if (OrddeService.Add(order))
            {
                aa = 100;
            }
            Response.ContentType = "text/plain";
            Response.Write(aa);
            Response.End();
        }