Esempio n. 1
0
        void SetViewbagReport()
        {
            ViewBag.CaseGroupId_ddl          = nomService.GetDropDownList <CaseGroup>();
            ViewBag.CaseStateId_ddl          = nomService.GetDDL_CaseStateHand(false, true);
            ViewBag.LinkDelo_CourtId_ddl     = nomService.GetCourts();
            ViewBag.CaseClassificationId_ddl = nomService.GetDropDownList <Classification>();

            //Заседания
            ViewBag.CourtHallId_ddl     = commonService.GetDropDownList_CourtHall(userContext.CourtId);
            ViewBag.SessionTypeId_ddl   = nomService.GetDropDownList <SessionType>();
            ViewBag.SessionStateId_ddl  = nomService.GetDropDownList <SessionState>();
            ViewBag.SessionResultId_ddl = nomService.GetDropDownList <SessionResult>();

            //Актове
            ViewBag.ActTypeId_ddl = nomService.GetDropDownList <ActType>();

            //Свързани дела
            ViewBag.Institution_InstitutionTypeId_ddl = nomService.GetDropDownList <InstitutionType>();
            ViewBag.HasRegNumberOtherSystem           = false;
            if (userContext.CourtInstances.Contains(NomenclatureConstants.CaseInstanceType.SecondInstance) ||
                userContext.CourtInstances.Contains(NomenclatureConstants.CaseInstanceType.ThirdInstance))
            {
                ViewBag.HasRegNumberOtherSystem = true;
            }

            // Съдебен състав
            ViewBag.CourtDepartmentId_ddl = courtDepartmentService.Department_SelectDDL(userContext.CourtId, NomenclatureConstants.DepartmentType.Systav);
        }