コード例 #1
0
        public void RenderEntity(int id)
        {
            EntityDTO dto = data.GetOneEntity(id);

            dto.ExtractProperties();
            ProcessStrategy2 st       = new ProcessStrategy2();
            PageResponseDTO  response = new PageResponseDTO();

            response.BreadCrumbContent = BreadcrumbHelper.BuildBreadcrumbContent(dto);
            response.Header            = dto.Name;
            response.Content           = MainContentBuilder.BuildContent(dto);
            switch (dto.Type)
            {
            case 111:
                response.RenderType = "process";
                break;

            case 142:
                response.RenderType = "subprocess";
                break;

            case 145:
                response.RenderType = "st2020";
                break;

            default:
                break;
            }
            this.view.RenderContent(response);
        }