예제 #1
0
 private Dictionary<string, List<int>> GetOWSSheetIdsByAssignment(E3Project project, Sheet sheet, IEnumerable<string> assignments)
 {
     Dictionary<string, List<int>> sheetIdsByAssignment = new Dictionary<string, List<int>>(assignments.Count());
     foreach (string assignment in assignments)
         sheetIdsByAssignment.Add(assignment, new List<int>());
     foreach(int sheetId in project.SheetIds)
     {
         sheet.Id = sheetId;
         if (sheet.GetAttributeValue(subProjectAttribute).Equals("СВП"))
         {
             string assignment = sheet.GetAttributeValue(sheetMarkAttribute);
             if (sheetIdsByAssignment.ContainsKey(assignment))
                 sheetIdsByAssignment[assignment].Add(sheetId);
         }
     }
     return sheetIdsByAssignment;
 }