コード例 #1
0
        public IActionResult CaseFastProcess(int caseId)
        {
            if (!CheckAccess(service, SourceTypeSelectVM.CaseFastProcess, null, AuditConstants.Operations.Update, caseId))
            {
                return(Redirect_Denied());
            }

            CaseFastProcessEditVM model = service.GetByCaseId_CaseFastProcess(caseId);

            if (model.Id < 1)
            {
                model = new CaseFastProcessEditVM()
                {
                    CaseId  = caseId,
                    CourtId = userContext.CourtId
                };
            }
            return(PartialView(model));
        }
コード例 #2
0
        public JsonResult CaseFastProcess(CaseFastProcessEditVM model)
        {
            string validationError = ValidateCaseFastProcess(model);

            if (!string.IsNullOrEmpty(validationError))
            {
                return(Json(new { result = false, message = validationError }));
            }

            var currentId = model.Id;
            var res       = service.CaseFastProcess_SaveData(model);

            if (res)
            {
                SetAuditContext(service, SourceTypeSelectVM.CaseFastProcess, model.Id, currentId == 0);
            }

            return(Json(new { result = res }));
        }
コード例 #3
0
 private string ValidateCaseFastProcess(CaseFastProcessEditVM model)
 {
     return(string.Empty);
 }