public override List<PdfContentParameter> BuildContent(EntityDTO dto)
 {
     dto.ExtractProperties();
     this.dto = dto;
     List<PdfContentParameter> contents = new List<PdfContentParameter>();
     contents.Add(base.CreateTitlePage(this.dto));
     contents.Add(base.CreateChangeHistory(this.dto));
     contents.Add(base.CreateReviewers(this.dto));
     contents.Add(base.CreateApprovers(this.dto));
     contents.Add(CreateTitle(GlobalStringResource.Report_Introduction));
     contents.Add(CreatePurpose());
     contents.Add(CreateProcessObjective());
     contents.Add(CreateStrategy());
     contents.Add(CreateStakeHolders());
     contents.Add(CreateProcessDescription());
     contents.Add(CreateProcessRelation());
     contents.Add(CreateSubProcessRelation());
     contents.Add(CreateTitle(GlobalStringResource.Report_References));
     contents.Add(CreateFrameworkReference());
     contents.Add(CreateInternalReference());
     contents.Add(CreateTitle(GlobalStringResource.Report_Appendices));
     contents.Add(CreateAcronyms());
     contents.Add(CreateDefintionOfTerms());
     contents.Add(CreateBookmarks());
     return contents;
 }
 private bool IsSucceeding(EntityDTO dto)
 {
     dto.ExtractProperties();
     string e_type = dto.RenderHTML(GlobalStringResource.EventType, ADB.SA.Reports.Entities.Enums.RenderOption.None);
     if (e_type.ToLower().Trim() == "succeeding")
     {
         return true;
     }
     return false;
 }
        protected override string BuildDiagramDescription(EntityDTO dto)
        {
            dto.ExtractProperties();
            string description = dto.RenderHTML("Description", ADB.SA.Reports.Entities.Enums.RenderOption.Break);
            if (string.IsNullOrEmpty(description))
            {
                description = "There is no description for this diagram.";
            }

            return description;
        }
        private void CreateMainTable(HtmlTable t, EntityDTO dto)
        {
            if (dto != null)
            {
                dto.ExtractProperties();

                string personName = dto.RenderHTML(GlobalStringResource.Assignedto, RenderOption.None);
                if (!string.IsNullOrEmpty(personName))
                {
                    EntityDTO relatedPerson = entityData.GetOneEntityByNameAndType(personName, 663);
                    if (relatedPerson != null)
                    {
                        relatedPerson.ExtractProperties();
                        personName = relatedPerson.RenderAsPopupLink();
                    }
                }
                t.AddCell(personName);
                t.AddCell(dto.RenderAsPopupLink());
            }
        }
        protected override string BuildDiagramDescription(EntityDTO dto)
        {
            HtmlTable t = new HtmlTable(2, 0, "grid", new int[]{ 15,85 });
            dto.ExtractProperties();

            //t.AddHeader(GlobalStringResource.SubProcessDescription, 2);

            t.AddHeader("&emsp;", 2);

            t.AddCell(GlobalStringResource.Objective);
            t.AddCell(dto.RenderHTML(GlobalStringResource.Description, RenderOption.Paragraph));

            t.AddCell(GlobalStringResource.DocumentOwners);
            t.AddCell(dto.RenderHTML(GlobalStringResource.DocumentOwners, RenderOption.Break));

            t.AddCell(GlobalStringResource.FrameworkReference);
            t.AddCell(dto.RenderHTML(GlobalStringResource.FrameworkReference, RenderOption.Break));

            t.AddCell(GlobalStringResource.InternalReference);
            t.AddCell(dto.RenderHTML(GlobalStringResource.InternalReference, RenderOption.Break));

            return t.EndHtmlTable();
        }
        private SubProcessDescription SubProcessDescription(EntityDTO dto)
        {
            SubProcessDescription spd = new SubProcessDescription();
            dto.ExtractProperties();

            spd.Objective = dto.RenderHTML(GlobalStringResource.Description, RenderOption.Paragraph);
            spd.DocumentOwners = dto.RenderHTML(GlobalStringResource.DocumentOwners, RenderOption.Break);
            spd.FrameworkReference = dto.RenderHTML(GlobalStringResource.FrameworkReference, RenderOption.Break);
            spd.InternalReference = dto.RenderHTML(GlobalStringResource.InternalReference, RenderOption.Break);

            return spd;
        }