예제 #1
0
        public ActionResult Passed(string RecordID, string AuditRemark, string CarTypeID, string CarModelID, string AreaIDS, string GateID)
        {
            try
            {
                bool result = ParkMonthlyCarApplyServices.Passed(RecordID, AuditRemark, CarTypeID, CarModelID, AreaIDS, GateID, AdminLoginUser.RecordID);
                if (!result)
                {
                    throw new MyException("审核失败");
                }

                return(RedirectToAction("Index", "AdminAduitCarApply", new { RemindUserContent = "审核成功" }));
            }
            catch (MyException ex)
            {
                return(RedirectToAction("Passed", "AdminAduitCarApply", new { recordId = RecordID, RemindUserContent = ex.Message }));
            }
            catch (Exception ex)
            {
                ExceptionsServices.AddExceptions(ex, "审核月租车申请操作失败");
                return(RedirectToAction("Passed", "AdminAduitCarApply", new { recordId = RecordID, RemindUserContent = "审核操作失败" }));
            }
        }
예제 #2
0
        public JsonResult Passed(string RecordID, string AuditRemark, string CarTypeID, string CarModelID, string AreaIDS, string GateID)
        {
            try
            {
                bool result = ParkMonthlyCarApplyServices.Passed(RecordID, AuditRemark, CarTypeID, CarModelID, AreaIDS, GateID, GetLoginUser.RecordID);
                if (!result)
                {
                    throw new MyException("审核失败");
                }

                return(Json(MyResult.Success()));
            }
            catch (MyException ex)
            {
                return(Json(MyResult.Error(ex.Message)));
            }
            catch (Exception ex)
            {
                ExceptionsServices.AddExceptions(ex, "审核月租车申请操作失败");
                return(Json(MyResult.Error("审核操作失败")));
            }
        }