예제 #1
0
        public JsonResult ConfirmOrder(long orderId)
        {
            var    status = OrderApplication.ConfirmOrder(orderId, CurrentUser.Id, CurrentUser.UserName);
            Result result = new Result()
            {
                status = status
            };

            switch (status)
            {
            case 0:
                result.success = true;
                result.msg     = "操作成功";
                break;

            case 1:
                result.success = false;
                result.msg     = "该订单已经确认过!";
                break;

            case 2:
                result.success = false;
                result.msg     = "订单状态发生改变,请重新刷页面操作!";
                break;
            }
            // var data = ServiceApplication.Create<IOrderService>.Create.GetOrder(orderId);
            //确认收货写入结算表 改LH写在Controller里的
            // ServiceApplication.Create<IOrderService>.Create.WritePendingSettlnment(data);
            return(Json <dynamic>(result.success, result.msg));
        }
예제 #2
0
        public JsonResult ConfirmOrder(long orderId)
        {
            int num = OrderApplication.ConfirmOrder(orderId, base.CurrentUser.Id, base.CurrentUser.UserName);

            BaseController.Result data = new BaseController.Result
            {
                status = num
            };
            switch (num)
            {
            case 0:
                data.success = true;
                data.msg     = "操作成功";
                break;

            case 1:
                data.success = false;
                data.msg     = "该预约单已经确认过!";
                break;

            case 2:
                data.success = false;
                data.msg     = "预约单状态发生改变,请重新刷页面操作!";
                break;
            }
            return(base.Json(data));
        }
예제 #3
0
        public JsonResult ConfirmOrder(long orderId)
        {
            var    status = OrderApplication.ConfirmOrder(orderId, CurrentUser.Id, CurrentUser.UserName);
            Result result = new Result()
            {
                status = status
            };

            switch (status)
            {
            case 0:
                result.success = true;
                result.msg     = "操作成功";
                break;

            case 1:
                result.success = false;
                result.msg     = "该预约单已经确认过!";
                break;

            case 2:
                result.success = false;
                result.msg     = "预约单状态发生改变,请重新刷页面操作!";
                break;
            }
            // var data = _iOrderService.GetOrder(orderId);
            //确认收货写入结算表
            // OrderApplication.WritePendingSettlnment(data);
            return(Json(result));
        }
예제 #4
0
 public ActionResult PayConfirm(string orderIds)
 {
     if (string.IsNullOrEmpty(orderIds))
     {
         return(RedirectToAction("index", "userCenter", new { url = "/userOrder", tar = "userOrder" }));
     }
     OrderApplication.ConfirmOrder(UserId, orderIds);
     return(RedirectToAction("ReturnSuccess", "pay", new { id = orderIds }));
 }
예제 #5
0
 public JsonResult PayOrderByIntegral(string orderIds)
 {
     try
     {
         OrderApplication.ConfirmOrder(UserId, orderIds);
         return(SuccessResult());
     }
     catch (Exception e)
     {
         return(ErrorResult(e.Message));
     }
 }
예제 #6
0
 public JsonResult PayOrderByIntegral(string orderIds)
 {
     OrderApplication.ConfirmOrder(UserId, orderIds);
     return(SuccessResult <dynamic>());
 }