Subversion Repositories DevTools

Rev

Rev 2141 | Rev 2145 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2141 Rev 2143
Line 350... Line 350...
350
            new_rq_obj.status     = rq_requirement.AttrValues["Status", ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text;
350
            new_rq_obj.status     = rq_requirement.AttrValues["Status", ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text;
351
            new_rq_obj.difficulty = rq_requirement.AttrValues["Difficulty", ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text;
351
            new_rq_obj.difficulty = rq_requirement.AttrValues["Difficulty", ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text;
352
            new_rq_obj.priority   = rq_requirement.AttrValues["Priority", ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text;
352
            new_rq_obj.priority   = rq_requirement.AttrValues["Priority", ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text;
353
            new_rq_obj.version    = rq_requirement.VersionNumber;
353
            new_rq_obj.version    = rq_requirement.VersionNumber;
354
            new_rq_obj.versionDateTime = rq_requirement.VersionDateTime;
354
            new_rq_obj.versionDateTime = rq_requirement.VersionDateTime;
-
 
355
 
-
 
356
 
-
 
357
            // requirements can trace to other requirements, so we have to find those in order to re-construct
-
 
358
            // that traceability later on. Currently, we only process TracesTo relationships from ReqPro.
-
 
359
            int limit_numberOfTracesTo = 0;
-
 
360
            if (true == rq_requirement.get_HasTracesTo(ref limit_numberOfTracesTo))
-
 
361
            {
-
 
362
               // scan through the TracesTo relationships
-
 
363
               ReqPro40.Relationships theseRelationships = (ReqPro40.Relationships)rq_requirement.TracesTo;
-
 
364
 
-
 
365
               int i_numberOfTracesTo;
-
 
366
               theseRelationships.MoveFirst();
-
 
367
               for (i_numberOfTracesTo = 0; i_numberOfTracesTo < limit_numberOfTracesTo; i_numberOfTracesTo++)
-
 
368
               {
-
 
369
                  // Obtain the traced-to requirement from the relationship, and parse it
-
 
370
                  ReqPro40.Relationship thisRelationship = theseRelationships.GetCurrentRelationship();
-
 
371
 
-
 
372
                  ReqPro40.Requirement tracedToRequirement = 
-
 
373
                     thisRelationship.get_DestinationRequirement(ReqPro40.enumRequirementsWeights.eReqWeight_Heavy);
-
 
374
 
-
 
375
                  if (tracedToRequirement != null)
-
 
376
                  {
-
 
377
                     // Add the GUID of the traced-to requirement to the relevant list within the
-
 
378
                     // object representing the traced-from requirement (ie. parent requirement).
-
 
379
                     new_rq_obj.ReqPro_traces.Add(tracedToRequirement.GUID);
-
 
380
                  }
-
 
381
 
-
 
382
                  theseRelationships.MoveNext();
-
 
383
               }
-
 
384
            }
-
 
385
 
355
         }
386
         }
356
         else if (rq_package != null)
387
         else if (rq_package != null)
357
         {
388
         {
358
            new_rq_obj.isPackage = true;
389
            new_rq_obj.isPackage = true;
359
 
390
 
Line 374... Line 405...
374
         new_rq_obj.treePos = treePos;
405
         new_rq_obj.treePos = treePos;
375
 
406
 
376
         // attach it to its parent object
407
         // attach it to its parent object
377
         ReqPro_object parent_rq_obj = (ReqPro_object)rq_objs.Peek();
408
         ReqPro_object parent_rq_obj = (ReqPro_object)rq_objs.Peek();
378
         parent_rq_obj.ReqPro_objects.Add( new_rq_obj );
409
         parent_rq_obj.ReqPro_objects.Add( new_rq_obj );
-
 
410
         new_rq_obj.parent = parent_rq_obj;
379
 
411
 
380
         // keep a count of the number of requirements the object has beneath it
412
         // keep a count of the number of requirements the object has beneath it
381
         if (true == new_rq_obj.isRequirement)
413
         if (true == new_rq_obj.isRequirement)
382
            parent_rq_obj.numberOfRequirements++;
414
            parent_rq_obj.numberOfRequirements++;
383
 
415
 
Line 411... Line 443...
411
         rq_objs.Push(rq_root_package);
443
         rq_objs.Push(rq_root_package);
412
         ea_treePos.Clear();
444
         ea_treePos.Clear();
413
         ea_treePos.Push(0);
445
         ea_treePos.Push(0);
414
         lastLevel = 0;
446
         lastLevel = 0;
415
      }
447
      }
-
 
448
 
-
 
449
 
-
 
450
                         
-
 
451
 
416
	}
452
	}
417
}
453
}