Example #1
0
        public ActionResult CheckOrderAfterService(int asId, CheckOrderAfterServiceModel model)
        {
            OrderAfterServiceInfo orderAfterServiceInfo = AdminOrderAfterServices.GetOrderAfterServiceByASId(asId);

            if (orderAfterServiceInfo == null || orderAfterServiceInfo.StoreId != WorkContext.StoreId)
            {
                return(PromptView("订单售后服务不存在"));
            }
            if (orderAfterServiceInfo.State != (int)OrderAfterServiceState.Checking)
            {
                return(PromptView("不能执行此操作"));
            }

            if (ModelState.IsValid)
            {
                if (model.State == 0)
                {
                    AdminOrderAfterServices.CheckRefuseOrderAfterService(asId, model.CheckResult ?? "", DateTime.Now);
                }
                else
                {
                    AdminOrderAfterServices.CheckAgreeOrderAfterService(asId, model.CheckResult ?? "", DateTime.Now);
                }
                return(PromptView("操作成功"));
            }
            ViewData["asId"] = asId;
            return(View(model));
        }
Example #2
0
        public ActionResult CheckOrderAfterService(int asId)
        {
            OrderAfterServiceInfo orderAfterServiceInfo = AdminOrderAfterServices.GetOrderAfterServiceByASId(asId);

            if (orderAfterServiceInfo == null || orderAfterServiceInfo.StoreId != WorkContext.StoreId)
            {
                return(PromptView("订单售后服务不存在"));
            }
            if (orderAfterServiceInfo.State != (int)OrderAfterServiceState.Checking)
            {
                return(PromptView("不能执行此操作"));
            }

            CheckOrderAfterServiceModel model = new CheckOrderAfterServiceModel();

            ViewData["asId"] = asId;
            return(View(model));
        }