void SetViewbag(int caseId, int?caseSessionId) { ViewBag.MoneyTypeId_ddl = nomService.GetDropDownList <MoneyType>(); ViewBag.CaseLawUnitId_ddl = caseLawUnitService.CaseLawUnit_SelectForDropDownList(caseId, null); ViewBag.RegNumber = service.GetById <Case>(caseId).RegNumber; if (caseSessionId != null) { var caseSession = sessionService.CaseSessionById(caseSessionId ?? 0); ViewBag.CaseSessionName = caseSession.SessionType?.Label + "/" + caseSession.DateFrom.ToString("dd.MM.yyyy"); } }
void SetViewbag(int CaseSessionId) { var modelSession = caseSessionService.CaseSessionById(CaseSessionId); //ViewBag.breadcrumbs = commonService.Breadcrumbs_GetForCaseSession(CaseSessionId); //ViewBag.breadcrumbsEdit = commonService.Breadcrumbs_GetCaseSessionFastDocument(CaseSessionId); ViewBag.breadcrumbsEdit = commonService.Breadcrumbs_GetForCaseSession(CaseSessionId); ViewBag.caseSessionId = CaseSessionId; ViewBag.caseSessionName = modelSession.SessionType.Label + " " + modelSession.DateFrom.ToString("dd.MM.yyyy"); ViewBag.CasePersonId_ddl = casePersonService.GetDropDownList(modelSession.CaseId, modelSession.Id, true, 0, 0, false); ViewBag.SessionDocTypeId_ddl = nomService.GetDropDownList <SessionDocType>(); ViewBag.SessionDocStateId_ddl = nomService.GetDropDownList <SessionDocState>(); SetHelpFile(HelpFileValues.SessionDoc); }