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)); }
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)); }
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)); }
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 })); }
public JsonResult PayOrderByIntegral(string orderIds) { try { OrderApplication.ConfirmOrder(UserId, orderIds); return(SuccessResult()); } catch (Exception e) { return(ErrorResult(e.Message)); } }
public JsonResult PayOrderByIntegral(string orderIds) { OrderApplication.ConfirmOrder(UserId, orderIds); return(SuccessResult <dynamic>()); }