////public override object BuildContent(EntityDTO entity) 
 ////{
 //    int id = entity.ID;
 //    ProcessContentDTO process = new ProcessContentDTO();
 //    process.Diagram = new DiagramContent() {
 //        DiagramPath = BuildDiagramContent(entity),
 //        RelatedProcess = GetRelatedProcess(entity),
 //        RelatedSubProcess = GetRelatedSubProcess(entity)
 //    };
 //    process.Description = ProcessDescription(entity);
 //    process.ProcessRelations = ProcessRelation(id);
 //    process.SubProcessRelations = SubProcessRelation(id);
 //    process.BusinessRuleMappings = BusinessMapping(id);
 //    process.Acronyms = Acronyms(id);
 //    process.Applications = ApplicationRelationship(id);
 //    process.Frameworks = FrameworkReference(id);
 //    process.InternalReferences = InternalReference(id);
 //    return process;
 ////}
 public override object BuildContent(EntityDTO entity)
 {
     int id = entity.ID;
     ProcessContentDTO process = new ProcessContentDTO();
     process.Diagram = new DiagramContent() {
         DiagramPath = BuildDiagramContent(entity),
         RelatedProcess = GetRelatedProcess(entity),
         RelatedSubProcess = GetRelatedSubProcess(entity)
     };
     process.Description = ProcessDescription(entity);
     process.ProcessRelations = ProcessRelation(id);
     process.SubProcessRelations = SubProcessRelation(id);
     process.BusinessRuleMappings = BusinessMapping(id);
     process.Acronyms = Acronyms(id);
     process.Applications = ApplicationRelationship(id);
     process.Frameworks = FrameworkReference(id);
     process.InternalReferences = InternalReference(id);
     process.CurrentID = id;
     process.ShowResize = ShowResize();
     return process;
 }
Exemplo n.º 2
0
        ////public override object BuildContent(EntityDTO entity)
        ////{
        //    int id = entity.ID;
        //    ProcessContentDTO process = new ProcessContentDTO();
        //    process.Diagram = new DiagramContent() {
        //        DiagramPath = BuildDiagramContent(entity),
        //        RelatedProcess = GetRelatedProcess(entity),
        //        RelatedSubProcess = GetRelatedSubProcess(entity)
        //    };
        //    process.Description = ProcessDescription(entity);
        //    process.ProcessRelations = ProcessRelation(id);
        //    process.SubProcessRelations = SubProcessRelation(id);
        //    process.BusinessRuleMappings = BusinessMapping(id);
        //    process.Acronyms = Acronyms(id);
        //    process.Applications = ApplicationRelationship(id);
        //    process.Frameworks = FrameworkReference(id);
        //    process.InternalReferences = InternalReference(id);
        //    return process;
        ////}

        public override object BuildContent(EntityDTO entity)
        {
            int id = entity.ID;
            ProcessContentDTO process = new ProcessContentDTO();

            process.Diagram = new DiagramContent()
            {
                DiagramPath       = BuildDiagramContent(entity),
                RelatedProcess    = GetRelatedProcess(entity),
                RelatedSubProcess = GetRelatedSubProcess(entity)
            };
            process.Description          = ProcessDescription(entity);
            process.ProcessRelations     = ProcessRelation(id);
            process.SubProcessRelations  = SubProcessRelation(id);
            process.BusinessRuleMappings = BusinessMapping(id);
            process.Acronyms             = Acronyms(id);
            process.Applications         = ApplicationRelationship(id);
            process.Frameworks           = FrameworkReference(id);
            process.InternalReferences   = InternalReference(id);
            process.CurrentID            = id;
            process.ShowResize           = ShowResize();
            return(process);
        }