Ejemplo n.º 1
0
        void SetViewBag(int courtId, int caseId)
        {
            var roles = service.AvailableJudgeRolesForFelect_SelectForDropDownList(caseId);

            ViewBag.JudgeRoleId_ddl         = roles;
            ViewBag.countAvailableJudgeRole = roles.Count();
            ViewBag.SelectionModes          = nomService.GetDropDownList <SelectionMode>(false);
            ViewBag.CourtDutyId_ddl         = courtDutyService.CourtDuty_SelectForDropDownList(courtId);
            ViewBag.CourtDepartmentId_ddl   = courtDepartmentservice.CourtDepartment_Select(courtId, null).ToSelectList(x => x.Id, x => x.Label).ToList();
            //ViewBag.SpecialityId_ddl = nomService.GetDropDownList<Speciality>(false, true);
            ViewBag.SpecialityId_ddl = nomService.GetDDL_Specyality_ByLowUnit_Type(NomenclatureConstants.LawUnitTypes.Jury, false, true);
            ViewBag.breadcrumbs      = commonService.Breadcrumbs_GetForCaseSelectionProtokol(caseId);
            SetHelpFile(HelpFileValues.CaseLawunit);
        }
Ejemplo n.º 2
0
        public IActionResult ListData(IDataTablesRequest request)
        {
            var data = service.CourtDepartment_Select(userContext.CourtId, request.Search?.Value);

            return(request.GetResponse(data));
        }