/// <summary> /// Обединяване на дело /// </summary> /// <param name="caseId"></param> /// <returns></returns> public IActionResult UnionCase(int caseId) { var caseInfo = caseService.Case_GetById(caseId); var model = new CaseMigrationUnionVM() { CaseId = caseId }; model.CaseInfo = $"{caseInfo.RegNumber} ({caseInfo.CaseTypeCode})"; SetViewBag(model); return(View(model)); }
void SetViewbag(int caseId) { var caseCase = caseService.Case_GetById(caseId); ViewBag.CaseName = caseCase.RegNumber; ViewBag.CaseLoadCorrectionActivityId_ddl = service.GetDDL_CaseLoadCorrectionActivity(caseCase.CaseGroupId, caseCase.CaseInstanceId); SetHelpFile(HelpFileValues.CaseLoadCorrection); }
/// <summary> /// Зареждане на пълна информация за дело с табове /// </summary> /// <param name="id"></param> /// <returns></returns> public IActionResult CasePreview(int id) { if (!CheckAccess(service, SourceTypeSelectVM.Case, id, AuditConstants.Operations.View)) { return(RedirectToAction(nameof(HomeController.AccessDenied), HomeController.ControlerName)); } var model = service.Case_GetById(id); if (model == null) { throw new NotFoundException("Търсеното от Вас дело не е намерено и/или нямате достъп до него."); } SetViewbag(id); ViewBag.isAutorized = this.CurrentContext.CanAccess; ViewBag.isFastProcess = nomService.CaseCodeGroup_Check(NomenclatureConstants.CaseCodeGroupAlias.CaseFastProcess, model.CaseCodeId ?? 0); SetHelpFile(HelpFileValues.CaseMainData); return(View(nameof(CasePreview), model)); }