Subversion Repositories DevTools

Rev

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

Rev 2155 Rev 2161
Line 219... Line 219...
219
         // values in the ReqPro database, into one set.
219
         // values in the ReqPro database, into one set.
220
         foreach (ReqPro_ReqType rp_rt in rq_req_types)
220
         foreach (ReqPro_ReqType rp_rt in rq_req_types)
221
         {
221
         {
222
            try 
222
            try 
223
            {
223
            {
224
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr("Status", ReqPro40.enumAttrLookups.eAttrLookups_Label);
224
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr(Constants.RP_ATTR_STATUS, ReqPro40.enumAttrLookups.eAttrLookups_Label);
225
               rp_rt.hasStatus = true;
225
               rp_rt.hasStatus = true;
226
 
226
 
227
               foreach (ReqPro40.ListItem listItem in attr.ListItems)
227
               foreach (ReqPro40.ListItem listItem in attr.ListItems)
228
               {
228
               {
229
                  if (!status_values.Contains(listItem.Text))
229
                  if (!status_values.Contains(listItem.Text))
Line 246... Line 246...
246
            // Also check if this requirement type has any of the other attributes we might import. This is
246
            // Also check if this requirement type has any of the other attributes we might import. This is
247
            // a little off topic for this function but this is a convenient place to do this until another
247
            // a little off topic for this function but this is a convenient place to do this until another
248
            // function is written.
248
            // function is written.
249
            try 
249
            try 
250
            {
250
            {
251
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr("Difficulty", ReqPro40.enumAttrLookups.eAttrLookups_Label);
251
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr(Constants.RP_ATTR_DIFFICULTY, ReqPro40.enumAttrLookups.eAttrLookups_Label);
252
               rp_rt.hasDifficulty = true;
252
               rp_rt.hasDifficulty = true;
253
            }
253
            }
254
            catch 
254
            catch 
255
            {
255
            {
256
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no Difficulty attribute", rp_rt.prefix) );
256
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no {1} attribute", rp_rt.prefix, Constants.RP_ATTR_DIFFICULTY) );
257
            };
257
            };
258
 
258
 
259
            try 
259
            try 
260
            {
260
            {
261
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr("Priority", ReqPro40.enumAttrLookups.eAttrLookups_Label);
261
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr(Constants.RP_ATTR_PRIORITY, ReqPro40.enumAttrLookups.eAttrLookups_Label);
262
               rp_rt.hasPriority = true;
262
               rp_rt.hasPriority = true;
263
            }
263
            }
264
            catch 
264
            catch 
265
            {
265
            {
266
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no Priority attribute", rp_rt.prefix) );
266
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no {1} attribute", rp_rt.prefix, Constants.RP_ATTR_PRIORITY) );
267
            };
267
            };
268
 
268
 
269
            try 
269
            try 
270
            {
270
            {
271
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr("Source", ReqPro40.enumAttrLookups.eAttrLookups_Label);
271
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr(Constants.RP_ATTR_SOURCE, ReqPro40.enumAttrLookups.eAttrLookups_Label);
272
               rp_rt.hasSource = true;
272
               rp_rt.hasSource = true;
273
            }
273
            }
274
            catch 
274
            catch 
275
            {
275
            {
276
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no Source attribute", rp_rt.prefix) );
276
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no {1} attribute", rp_rt.prefix, Constants.RP_ATTR_SOURCE) );
277
            };
277
            };
278
 
278
 
279
            try 
279
            try 
280
            {
280
            {
281
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr("Source Version", ReqPro40.enumAttrLookups.eAttrLookups_Label);
281
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr(Constants.RP_ATTR_SOURCE_VERSION, ReqPro40.enumAttrLookups.eAttrLookups_Label);
282
               rp_rt.hasSourceVersion = true;
282
               rp_rt.hasSourceVersion = true;
283
            }
283
            }
284
            catch 
284
            catch 
285
            {
285
            {
286
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no Source Version attribute", rp_rt.prefix) );
286
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no {1} attribute", rp_rt.prefix, Constants.RP_ATTR_SOURCE_VERSION) );
287
            };
287
            };
288
 
288
 
289
            try 
289
            try 
290
            {
290
            {
291
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr("Source Section", ReqPro40.enumAttrLookups.eAttrLookups_Label);
291
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr(Constants.RP_ATTR_SOURCE_SECTION, ReqPro40.enumAttrLookups.eAttrLookups_Label);
292
               rp_rt.hasSourceSection = true;
292
               rp_rt.hasSourceSection = true;
293
            }
293
            }
294
            catch 
294
            catch 
295
            {
295
            {
296
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no Source Section attribute", rp_rt.prefix) );
296
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no {1} attribute", rp_rt.prefix, Constants.RP_ATTR_SOURCE_SECTION) );
297
            };
297
            };
298
 
298
 
299
            try 
299
            try 
300
            {
300
            {
301
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr("Subsystem", ReqPro40.enumAttrLookups.eAttrLookups_Label);
301
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr(Constants.RP_ATTR_SUBSYSTEM_TYPE, ReqPro40.enumAttrLookups.eAttrLookups_Label);
302
               rp_rt.hasSubsystem = true;
302
               rp_rt.hasSubsystem = true;
303
            }
303
            }
304
            catch 
304
            catch 
305
            {
305
            {
306
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no Subsystem attribute", rp_rt.prefix) );
306
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no {1} attribute", rp_rt.prefix, Constants.RP_ATTR_SUBSYSTEM_TYPE) );
307
            };
307
            };
308
 
308
 
309
            try 
309
            try 
310
            {
310
            {
311
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr("Stability", ReqPro40.enumAttrLookups.eAttrLookups_Label);
311
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr(Constants.RP_ATTR_STABILITY, ReqPro40.enumAttrLookups.eAttrLookups_Label);
312
               rp_rt.hasStability = true;
312
               rp_rt.hasStability = true;
313
            }
313
            }
314
            catch 
314
            catch 
315
            {
315
            {
316
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no Stability attribute", rp_rt.prefix) );
316
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no {1} attribute", rp_rt.prefix, Constants.RP_ATTR_STABILITY) );
317
            };
317
            };
318
 
318
 
319
            try 
319
            try 
320
            {
320
            {
321
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr("Requirement Type", ReqPro40.enumAttrLookups.eAttrLookups_Label);
321
               ReqPro40.Attr attr = rp_rt.rq_type.get_Attr(Constants.RP_ATTR_REQ_TYPE, ReqPro40.enumAttrLookups.eAttrLookups_Label);
322
               rp_rt.hasType = true;
322
               rp_rt.hasType = true;
323
            }
323
            }
324
            catch 
324
            catch 
325
            {
325
            {
326
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no Requirement Type attribute", rp_rt.prefix) );
326
               delayedMessages.Add( string.Format("WARNING, ReqPro requirement type ({0}) has no {1} attribute", rp_rt.prefix, Constants.RP_ATTR_REQ_TYPE) );
327
            };
327
            };
328
         }
328
         }
329
 
329
 
330
         // if reqpro had no status values, then add a dummy one
330
         // if reqpro had no status values, then add a dummy one
331
         if (status_values.Count == 0)
331
         if (status_values.Count == 0)