Subversion Repositories DevTools

Rev

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

Rev 2157 Rev 2161
Line 310... Line 310...
310
               ref hasSource, ref hasSourceVersion, ref hasSourceSection,
310
               ref hasSource, ref hasSourceVersion, ref hasSourceSection,
311
               ref hasSubsystem, ref hasStability, ref hasType))
311
               ref hasSubsystem, ref hasStability, ref hasType))
312
            {
312
            {
313
               if (hasStatus)
313
               if (hasStatus)
314
               {
314
               {
315
                  new_rq_obj.status = rq_requirement.AttrValues["Status", ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text;
315
                  new_rq_obj.status = rq_requirement.AttrValues[Constants.RP_ATTR_STATUS, ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text;
316
               }
316
               }
317
               if (hasDifficulty)
317
               if (hasDifficulty)
318
               {
318
               {
319
                  new_rq_obj.difficulty = rq_requirement.AttrValues["Difficulty", ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text;
319
                  new_rq_obj.difficulty = rq_requirement.AttrValues[Constants.RP_ATTR_DIFFICULTY, ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text;
320
               }
320
               }
321
               if (hasPriority)
321
               if (hasPriority)
322
               {
322
               {
323
                  new_rq_obj.priority = rq_requirement.AttrValues["Priority", ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text;
323
                  new_rq_obj.priority = rq_requirement.AttrValues[Constants.RP_ATTR_PRIORITY, ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text;
324
               }
324
               }
325
               if (hasSource)
325
               if (hasSource)
326
               {
326
               {
327
                  new_rq_obj.source = firstTokenOnly( rq_requirement.AttrValues["Source", ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text );
327
                  new_rq_obj.source = firstTokenOnly( rq_requirement.AttrValues[Constants.RP_ATTR_SOURCE, ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text );
328
               }
328
               }
329
               if (hasSourceVersion)
329
               if (hasSourceVersion)
330
               {
330
               {
331
                  new_rq_obj.sourceVersion = firstTokenOnly( rq_requirement.AttrValues["Source Version", ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text );
331
                  new_rq_obj.sourceVersion = firstTokenOnly( rq_requirement.AttrValues[Constants.RP_ATTR_SOURCE_VERSION, ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text );
332
               }
332
               }
333
               if (hasSourceSection)
333
               if (hasSourceSection)
334
               {
334
               {
335
                  new_rq_obj.sourceSection = firstTokenOnly( rq_requirement.AttrValues["Source Section", ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text );
335
                  new_rq_obj.sourceSection = firstTokenOnly( rq_requirement.AttrValues[Constants.RP_ATTR_SOURCE_SECTION, ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text );
336
               }
336
               }
337
               if (hasSubsystem)
337
               if (hasSubsystem)
338
               {
338
               {
339
                  new_rq_obj.subsystem = firstTokenOnly( rq_requirement.AttrValues["Subsystem", ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text );
339
                  new_rq_obj.subsystem = firstTokenOnly( rq_requirement.AttrValues[Constants.RP_ATTR_SUBSYSTEM_TYPE, ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text );
340
               }
340
               }
341
               if (hasStability)
341
               if (hasStability)
342
               {
342
               {
343
                  new_rq_obj.stability = firstTokenOnly( rq_requirement.AttrValues["Stability", ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text );
343
                  new_rq_obj.stability = firstTokenOnly( rq_requirement.AttrValues[Constants.RP_ATTR_STABILITY, ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text );
344
               }
344
               }
345
               if (hasType)
345
               if (hasType)
346
               {
346
               {
347
                  new_rq_obj.type = firstTokenOnly( rq_requirement.AttrValues["Requirement Type", ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text );
347
                  new_rq_obj.type = firstTokenOnly( rq_requirement.AttrValues[Constants.RP_ATTR_REQ_TYPE, ReqPro40.enumAttrValueLookups.eAttrValueLookup_Label].Text );
348
               }
348
               }
349
            }
349
            }
350
 
350
 
351
            new_rq_obj.version = rq_requirement.VersionNumber;
351
            new_rq_obj.version = rq_requirement.VersionNumber;
352
            new_rq_obj.versionDateTime = rq_requirement.VersionDateTime;
352
            new_rq_obj.versionDateTime = rq_requirement.VersionDateTime;